permdock 0.18.0 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/a2a/index.d.ts +4 -4
- package/dist/a2a/index.js +6 -6
- package/dist/{adoption-scan-CxExBYSJ.js → adoption-scan-C_VQ-J2f.js} +1 -1
- package/dist/agent/index.d.ts +2 -2
- package/dist/agent/index.js +1 -1
- package/dist/ai-sdk/index.d.ts +3 -3
- package/dist/ai-sdk/index.js +4 -4
- package/dist/{approval-normalize-CUjgSsOl.js → approval-normalize-hlfO9BJv.js} +8 -1
- package/dist/{approval-policies-oNnckT12.d.ts → approval-policies-CYqdqAob.d.ts} +1 -1
- package/dist/{approval-prompt-Bg7gDSqd.d.ts → approval-prompt-BxYbwOAU.d.ts} +1 -1
- package/dist/approvals/index.d.ts +4 -4
- package/dist/approvals/index.js +3 -3
- package/dist/{approvals-DGId_hgJ.js → approvals-CuXILe52.js} +9 -6
- package/dist/{arazzo--riLuGY0.js → arazzo-4vfaXj0U.js} +2 -2
- package/dist/{arazzo-CEDbb-uM.js → arazzo-Dc969CA2.js} +1 -1
- package/dist/astro/index.d.ts +4 -4
- package/dist/astro/index.js +2 -2
- package/dist/{audience-B4YR9UpV.js → audience-GCXRRAeZ.js} +1 -1
- package/dist/authzen/index.d.ts +5 -5
- package/dist/authzen/index.js +3 -3
- package/dist/{automation-Bfa_wD1h.d.ts → automation-BJiJT_Xr.d.ts} +1 -1
- package/dist/better-auth/index.d.ts +1 -1
- package/dist/better-auth/index.js +1 -1
- package/dist/better-supabase/index.d.ts +20 -17
- package/dist/better-supabase/index.js +10 -10
- package/dist/{better-supabase-BJtQ-kNf.js → better-supabase-ayun1IKE.js} +38 -4
- package/dist/{bind-B4pMH9bm.js → bind-BnKPWRrE.js} +4 -4
- package/dist/{bind-DR6ku3A9.d.ts → bind-SpRxR213.d.ts} +7 -7
- package/dist/{body-CJQwYVa8.js → body-C9JbIoqb.js} +1 -1
- package/dist/{build-instance-BFMFQdE_.js → build-instance-DrIbZVnm.js} +1 -1
- package/dist/{capability-BZ_veK9o.d.ts → capability-Ci2S8Cdu.d.ts} +1 -1
- package/dist/{casbin-bKC1FpEx.js → casbin-C1TQqWkK.js} +1 -1
- package/dist/{casbin-DCQHkkyj.js → casbin-ChbpgfNR.js} +1 -1
- package/dist/catalog/index.d.ts +5 -5
- package/dist/catalog/index.js +5 -5
- package/dist/catalog-BTPySmbp.js +1 -0
- package/dist/{catalog-zzNuR3sY.js → catalog-DjDc87R2.js} +1 -1
- package/dist/{catalog-doc-C4DGfJCO.js → catalog-doc-nrgfbh8I.js} +2 -1
- package/dist/{catalog-D1fw8qif.js → catalog-s0waIrfY.js} +2 -2
- package/dist/{challenge-B2O2OLEk.js → challenge-D57I5G1k.js} +1 -1
- package/dist/chat/index.d.ts +1 -1
- package/dist/chat/index.js +2 -2
- package/dist/chat-sdk/index.d.ts +3 -3
- package/dist/claude-agent/index.d.ts +3 -3
- package/dist/claude-agent/index.js +2 -2
- package/dist/clerk/index.d.ts +2 -2
- package/dist/cli/bin.js +1 -1
- package/dist/cli/index.d.ts +5 -5
- package/dist/cli/index.js +3 -3
- package/dist/{client-CH7vzSAY.d.ts → client-JK504UCq.d.ts} +15 -2
- package/dist/cloud/index.d.ts +8 -8
- package/dist/cloud/index.js +2 -2
- package/dist/{cloud-C0vXBmLG.js → cloud-Dgj4FiEG.js} +2 -2
- package/dist/{codemod-C-L0w-u7.js → codemod-DN_fBt43.js} +2 -2
- package/dist/{codemod-eYI1FbeJ.js → codemod-WWxwgM77.js} +1 -1
- package/dist/{collect-CU85z6Ta.js → collect-DMQ6Sxr6.js} +2 -2
- package/dist/{collect-D878zLDP.js → collect-DN_x7hvV.js} +1 -1
- package/dist/collect-eSTXOZDC.js +1 -0
- package/dist/compile/index.d.ts +1 -1
- package/dist/{compile-DBm0ub4p.d.ts → compile-RaRUQhmD.d.ts} +2 -2
- package/dist/{completion-Dauc6pVT.js → completion-DnmUvCw0.js} +1 -1
- package/dist/{config-DWp2PucY.js → config-CmuEoob8.js} +1 -1
- package/dist/{config-COHmivz9.js → config-D2oXUwos.js} +8 -5
- package/dist/{config-report-DKpFm5ID.js → config-report-BVm8Dhbj.js} +2 -2
- package/dist/{config-shape-tsxHx71E.js → config-shape-D9paLhEX.js} +5 -1
- package/dist/{connection-B72dg5Q2.js → connection-QFsv-kbh.js} +1 -1
- package/dist/{context-DeammvFl.js → context-YhyXyqBI.js} +3 -2
- package/dist/convex/index.d.ts +4 -4
- package/dist/convex/index.js +3 -3
- package/dist/{core-D87h2kpR.d.ts → core-DNRWXyj4.d.ts} +2 -2
- package/dist/{core-B8sLve3z.js → core-ZIWZBi6-.js} +5 -5
- package/dist/{create-BzwjZuRS.d.ts → create-0B_bjJc-.d.ts} +7 -7
- package/dist/{create-BrQXL-Wt.d.ts → create-BECB6fns.d.ts} +6 -6
- package/dist/{create-C-tm3KIF.js → create-CAZyXZFC.js} +4 -4
- package/dist/{create-3A7J9KRR.js → create-CegYmYHu.js} +69 -29
- package/dist/{create-CtoT1lIQ.d.ts → create-DJ_5REgN.d.ts} +4 -4
- package/dist/decide-set-DXEPepY1.js +100 -0
- package/dist/{delegation-input-FTxMK3ji.js → delegation-input-DcXhiMkf.js} +1 -1
- package/dist/delivery/index.d.ts +4 -4
- package/dist/delivery/index.js +1 -1
- package/dist/{denied-text-DlIxt8fh.d.ts → denied-text-CF-2h8Vz.d.ts} +1 -1
- package/dist/{describe-BKtC_8PG.d.ts → describe-DyN-HX6o.d.ts} +1 -1
- package/dist/{diff-BnNHqtHj.js → diff-BOU7sSnv.js} +4 -4
- package/dist/{diff-CBCzOTWM.js → diff-BrmvcPXk.js} +1 -1
- package/dist/{doctor-CkYKCuX7.js → doctor-BhhNMkU8.js} +242 -65
- package/dist/{doctor-xUpR5rXg.js → doctor-CL1OigyD.js} +15 -5
- package/dist/drizzle/index.d.ts +3 -3
- package/dist/elysia/index.d.ts +4 -4
- package/dist/elysia/index.js +4 -4
- package/dist/{errors-TpzkEKgJ.d.ts → errors-POWcCXy7.d.ts} +1 -1
- package/dist/{errors-B6R_lg2a.js → errors-ynga1EQy.js} +1 -1
- package/dist/{evaluate-Czbj7thS.js → evaluate-CrKkjgXS.js} +2 -2
- package/dist/{evaluations-CisTTURl.d.ts → evaluations--rkKhMqY.d.ts} +3 -3
- package/dist/{evaluations-h3KoJAPa.js → evaluations-CNMVJVD6.js} +3 -3
- package/dist/eve/index.d.ts +4 -4
- package/dist/eve/index.js +3 -3
- package/dist/express/index.d.ts +4 -4
- package/dist/express/index.js +3 -3
- package/dist/fastify/index.d.ts +4 -4
- package/dist/fastify/index.js +3 -3
- package/dist/{fetch-adapter-DH-NJPbL.js → fetch-adapter-Bm1iZolz.js} +3 -3
- package/dist/{fetch-adapter-BdmfnbJM.d.ts → fetch-adapter-Bq4AB3W2.d.ts} +2 -2
- package/dist/{fields-CrjL6A49.js → fields-COvJbUva.js} +1 -1
- package/dist/{from-snapshot-DMlSSo9b.js → from-snapshot-DHnb8Fh4.js} +2 -2
- package/dist/{gen-mf-MRwVr.js → gen-D0NqzeOP.js} +2 -2
- package/dist/{gen-BEIN-DRM.js → gen-DonXr9Hg.js} +1 -1
- package/dist/h3/index.d.ts +4 -4
- package/dist/h3/index.js +3 -3
- package/dist/{helpers-DmqGy63f.js → helpers-D-MXwkOF.js} +28 -4
- package/dist/hono/index.d.ts +4 -4
- package/dist/hono/index.js +5 -5
- package/dist/{hosted-BFNXwcjd.d.ts → hosted-H1xp5Dfw.d.ts} +1 -1
- package/dist/{hosted-waouw2V-.js → hosted-iOGBI_ER.js} +4 -3
- package/dist/{import-C1XXpG_m.js → import-C8ffNykt.js} +2 -2
- package/dist/{import-DObwEota.js → import-DNaFHm53.js} +1 -1
- package/dist/{index-CVGio3cH.d.ts → index-B9-ZXNa-.d.ts} +4 -4
- package/dist/{index-BhnOOnp9.d.ts → index-C2pmTzFx.d.ts} +2 -2
- package/dist/{index-Dfv9Toct.d.ts → index-C5Tfpjex.d.ts} +1 -1
- package/dist/{index-CdUTE6qd.d.ts → index-Cm6mHTZ-.d.ts} +16 -10
- package/dist/{index-rFp6X_QP.d.ts → index-DLlWORcK.d.ts} +5 -5
- package/dist/{index-CdMOd-GY.d.ts → index-DZnpRB0q.d.ts} +24 -6
- package/dist/index.d.ts +17 -17
- package/dist/index.js +15 -15
- package/dist/{init-DS3PEsCG.js → init-4aRjat-S.js} +3 -3
- package/dist/{init-CNJ8lLjo.js → init-QfBfkrGu.js} +1 -1
- package/dist/{instance-options-2sFGSdsf.d.ts → instance-options-D6hyIKJF.d.ts} +1 -1
- package/dist/{instance-snapshot-BWa71my8.js → instance-snapshot-DXxcizAb.js} +3 -3
- package/dist/jwt/index.d.ts +4 -4
- package/dist/{kernel-30Z2zM_d.js → kernel-B2UCK36Z.js} +7 -7
- package/dist/kysely/index.d.ts +3 -3
- package/dist/{login-DUVzBLh7.js → login-Cg1la2yJ.js} +3 -3
- package/dist/{login-BgK5Jloo.js → login-lPtJIjbO.js} +1 -1
- package/dist/{manifest-wclLWBVH.js → manifest-CDhdXgf6.js} +38 -37
- package/dist/{map-error-BH16Ah8P.js → map-error-EOhahOVA.js} +3 -3
- package/dist/mcp/index.d.ts +57 -17
- package/dist/mcp/index.js +199 -53
- package/dist/{module-values-B8tNIxdd.js → module-values-BYuNtdK5.js} +1 -1
- package/dist/nest/index.d.ts +4 -4
- package/dist/nest/index.js +5 -5
- package/dist/next/index.d.ts +12 -12
- package/dist/next/index.js +8 -8
- package/dist/next/plugin.d.ts +1 -1
- package/dist/next/plugin.js +1 -1
- package/dist/node/index.d.ts +4 -4
- package/dist/node/index.js +2 -2
- package/dist/openai/index.d.ts +4 -4
- package/dist/openai/index.js +3 -3
- package/dist/openapi/index.d.ts +2 -2
- package/dist/{openapi-C4gFqeRz.js → openapi-C3BIVLTd.js} +2 -2
- package/dist/{openapi-zMEB9qxn.js → openapi-Cr0B3p2h.js} +2 -2
- package/dist/orpc/index.d.ts +21 -17
- package/dist/orpc/index.js +18 -11
- package/dist/otel/index.d.ts +3 -3
- package/dist/{output-BFWLER4r.js → output-DYq_o2dM.js} +1 -1
- package/dist/{ownership-D-mIt-w0.js → ownership-CrmMERZv.js} +1 -1
- package/dist/{parse-UTC-sDrt.js → parse-CXTT7hBq.js} +1 -1
- package/dist/{parse-local-manifest-DvjTQNuO.d.ts → parse-local-manifest-CQjRmzrw.d.ts} +1 -1
- package/dist/{parse-local-manifest-CxcSMQgl.js → parse-local-manifest-Ce2N-Opr.js} +1 -1
- package/dist/pdp/index.d.ts +3 -3
- package/dist/pdp/index.js +2 -2
- package/dist/{permdock-ffY4CMd9.d.ts → permdock-B45vPQb4.d.ts} +4 -4
- package/dist/{permdock-D-_WrdKu.js → permdock-DeOfonuG.js} +6 -6
- package/dist/{permissions-B3ggI88M.js → permissions-Rk9_Gm04.js} +1 -1
- package/dist/{policy-cV_wwPb8.js → policy-DTmkP72P.js} +2 -2
- package/dist/{policy-from-catalog-B68hGC0S.js → policy-from-catalog-Cljh_B5H.js} +6 -6
- package/dist/{policy-BtKSApSt.d.ts → policy-re2Oag8s.d.ts} +1 -1
- package/dist/{policy-types-D-GwfQTc.d.ts → policy-types-Ky7P23CP.d.ts} +24 -2
- package/dist/{postgrest-D84p5dbA.d.ts → postgrest-pwxeaeOW.d.ts} +1 -1
- package/dist/powersync-B96MUB_Q.js +1 -0
- package/dist/{powersync-9PYOE1wt.js → powersync-BoqBik-G.js} +77 -38
- package/dist/{powersync-DStC_g0B.js → powersync-PKC4yT62.js} +2 -2
- package/dist/prisma/index.d.ts +2 -2
- package/dist/{problem-BVLHFK33.js → problem-BWP1l86g.js} +8 -7
- package/dist/{protected-action-B40tU3yP.js → protected-action-CD1HXwQK.js} +2 -2
- package/dist/{protected-action-Ds_EUY8B.d.ts → protected-action-DHPqBLhz.d.ts} +5 -5
- package/dist/{provider-OtnIiFWm.d.ts → provider-C-CbGEii.d.ts} +1 -1
- package/dist/{provider-CY4TSSJo.js → provider-qESIf_C0.js} +5 -2
- package/dist/{provider-store-BQP_pp8s.js → provider-store-BTHGJH9j.js} +3 -2
- package/dist/pull-BjdsS9x1.js +1 -0
- package/dist/{pull-DLP4I1Kl.js → pull-FG0Tf8aF.js} +3 -3
- package/dist/{push-BSb8j1EW.js → push-CI5G7lRS.js} +3 -3
- package/dist/{pushed-policy-Ck3FZcoy.d.ts → pushed-policy-B94r9DlN.d.ts} +1 -1
- package/dist/{pushed-policy-BecMsTtM.js → pushed-policy-DftSiyD3.js} +1 -1
- package/dist/react/index.d.ts +6 -6
- package/dist/react/index.js +3 -3
- package/dist/react/provider-client.d.ts +1 -1
- package/dist/react/provider-client.js +1 -1
- package/dist/react-native/index.d.ts +28 -14
- package/dist/react-native/index.js +57 -37
- package/dist/{replay-E5X9E1lC.d.ts → replay-BqmXcP7x.d.ts} +1 -1
- package/dist/{request-context-DM6_jY1n.js → request-context-uvaevbBu.js} +1 -1
- package/dist/resend/index.d.ts +4 -4
- package/dist/resend/index.js +2 -2
- package/dist/{resolve-names-CBl4r4_r.js → resolve-names-Dg8560iu.js} +2 -2
- package/dist/{rls-DGBL-jDY.js → rls-CJbWbxXv.js} +19 -13
- package/dist/{rls-pAHGYgTb.js → rls-DJSczevJ.js} +1 -1
- package/dist/{role-builder-CMW4wWzn.js → role-builder-C_2kWB_x.js} +1 -1
- package/dist/rpc-D7cDHIVE.d.ts +22 -0
- package/dist/{rpc-KwX_Jcxz.js → rpc-m5hPklf-.js} +16 -6
- package/dist/run-4m-TyVTD.js +1 -0
- package/dist/{run-B7lv3NuK.js → run-BigMDvGR.js} +3 -3
- package/dist/{run-ticket-DPaD27_r.d.ts → run-ticket-DRA3POCY.d.ts} +2 -2
- package/dist/{saas-B8H1MsQ3.js → saas-BHeoBqbW.js} +4 -4
- package/dist/{scan-0r3OZqqK.js → scan-BKLwCSVV.js} +1 -1
- package/dist/{schema-CuX70xgH.js → schema-BlnU_TzE.js} +4 -0
- package/dist/{schema-B_9tXrbG.js → schema-CLuBlCCr.js} +1 -1
- package/dist/scim/index.d.ts +1 -1
- package/dist/server/index.d.ts +10 -10
- package/dist/server/index.js +5 -5
- package/dist/{server-types-3OnXjZ2D.d.ts → server-types-CwpJe664.d.ts} +31 -13
- package/dist/{sink-ogbVkyeo.d.ts → sink-7Lrch8dn.d.ts} +2 -2
- package/dist/{skills-B4MPRxQd.js → skills-CyD_3eoi.js} +1 -1
- package/dist/{skills-C9sTD70r.js → skills-D42EyC8G.js} +1 -1
- package/dist/{snapshot-DN_8J27z.js → snapshot-DHPih65J.js} +2 -1
- package/dist/{snapshot-cache-B4YvlGG_.d.ts → snapshot-cache-B9weL8NE.d.ts} +1 -1
- package/dist/solid/index.d.ts +5 -5
- package/dist/solid/index.js +3 -2
- package/dist/solid-start/index.d.ts +4 -4
- package/dist/solid-start/index.js +3 -3
- package/dist/{sources-xdQShLDU.d.ts → sources-4d3fl7cq.d.ts} +1 -1
- package/dist/{src-Brzq_0in.js → src-HDDf9Eum.js} +28 -13
- package/dist/ssf/index.d.ts +3 -3
- package/dist/ssf/index.js +2 -2
- package/dist/{standard-webhooks-BfPaZ6T1.d.ts → standard-webhooks-BGi8pUwo.d.ts} +2 -2
- package/dist/{store-DmVqy74I.js → store-CSOsXd5s.js} +8 -6
- package/dist/{store-DYeB-_U3.d.ts → store-CjJaZI_g.d.ts} +31 -4
- package/dist/{store-options--zWn48PK.js → store-options-CDvoX52-.js} +31 -8
- package/dist/{stores-EPul_8MN.d.ts → stores-Cam6GGAV.d.ts} +5 -5
- package/dist/{stores-BYFopOm1.js → stores-PpYVQ5yF.js} +1 -1
- package/dist/{stream-CDvF0sJm.js → stream-DQ3rbO3J.js} +1 -1
- package/dist/supabase/client.d.ts +1 -1
- package/dist/supabase/client.js +32 -4
- package/dist/supabase/index.d.ts +10 -5
- package/dist/supabase/index.js +1 -1
- package/dist/supabase/middleware.d.ts +5 -5
- package/dist/supabase/middleware.js +5 -5
- package/dist/{supabase-BiViJpQ4.js → supabase-CVZuytCC.js} +2 -2
- package/dist/{supabase-CogTyJH2.js → supabase-DBuZK2pP.js} +2 -2
- package/dist/supabase-hook-2M-EpoRp.js +1 -0
- package/dist/{supabase-hook-DX38Hj8h.js → supabase-hook-Btk56XD6.js} +151 -55
- package/dist/{supautils-BGf6zRvM.js → supautils-lwXmXPP_.js} +7 -7
- package/dist/svelte/index.d.ts +5 -5
- package/dist/svelte/index.js +3 -3
- package/dist/svelte/runtime.d.ts +3 -3
- package/dist/svelte/runtime.js +1 -1
- package/dist/svelte/source.d.ts +5 -5
- package/dist/svelte/source.js +2 -2
- package/dist/sveltekit/index.d.ts +4 -4
- package/dist/sveltekit/index.js +2 -2
- package/dist/{tables-BfOk0ymL.js → tables-B72q9UFD.js} +1 -1
- package/dist/tanstack-start/index.d.ts +4 -4
- package/dist/tanstack-start/index.js +2 -2
- package/dist/terminal/index.d.ts +5 -5
- package/dist/terminal/index.js +4 -4
- package/dist/testing/core.d.ts +1 -1
- package/dist/testing/core.js +1 -1
- package/dist/testing/fixtures/index.d.ts +1 -1
- package/dist/testing/fixtures/index.js +1 -1
- package/dist/testing/index.d.ts +23 -23
- package/dist/testing/index.js +22 -22
- package/dist/testing/saas/index.d.ts +3 -3
- package/dist/testing/saas/index.js +2 -2
- package/dist/testing/saas/permissions.js +1 -1
- package/dist/trpc/index.d.ts +15 -8
- package/dist/trpc/index.js +23 -19
- package/dist/{type-helpers-i1EJ3Eb1.d.ts → type-helpers-CDxxNswo.d.ts} +1 -1
- package/dist/{types-CqcsNCaN.d.ts → types--HfnkawU.d.ts} +13 -1
- package/dist/{types-NYoj8JBm.d.ts → types-7Vlz1Wi2.d.ts} +1 -0
- package/dist/{types-B8qUkGja.d.ts → types-BVn1w_0o.d.ts} +2 -2
- package/dist/{types-DmbfLu2p.d.ts → types-BlYPxJDR.d.ts} +9 -4
- package/dist/{types-D19MK4t-.d.ts → types-Bwdumeos.d.ts} +3 -3
- package/dist/{types-3Y8UpFkF.d.ts → types-BwuNGQRm.d.ts} +68 -4
- package/dist/{types-D-JO7lh8.d.ts → types-CChFKY10.d.ts} +5 -5
- package/dist/{types-CDVXR6YD.d.ts → types-Do4yihST.d.ts} +1 -1
- package/dist/{types-CCEeSCMB.d.ts → types-Do8qBcRO.d.ts} +3 -3
- package/dist/{types-o1vu6Ks3.d.ts → types-OLSfBLa5.d.ts} +4 -4
- package/dist/{types-DGf_cpKF.d.ts → types-g0Vk9k2c.d.ts} +2 -2
- package/dist/{types-Ck1KOfug.d.ts → types-oaqeYKQu.d.ts} +2 -2
- package/dist/unplugin/index.d.ts +1 -1
- package/dist/unplugin/index.js +1 -1
- package/dist/{usage-DYtRVkcN.js → usage-BLhhEPcZ.js} +1 -1
- package/dist/{usage-DC0UKe6C.js → usage-C-wta3rx.js} +4 -4
- package/dist/usage-Csc_ZRd0.js +1 -0
- package/dist/{validation-error-Dx8PipbO.d.ts → validation-error-AhCHeeff.d.ts} +1 -1
- package/dist/{verify-Bpj0hauG.js → verify-CaaZlnP5.js} +78 -57
- package/dist/{version-cache-DzNKWiI6.d.ts → version-cache-Ddvrfn1R.d.ts} +1 -1
- package/dist/vue/index.d.ts +5 -5
- package/dist/vue/index.js +2 -2
- package/dist/{waiter-NK_UuZbb.d.ts → waiter-CROiWRIP.d.ts} +2 -2
- package/dist/watch-CS69ftMP.js +1 -0
- package/dist/{watch-CBHADqBH.js → watch-Dz2LNM1R.js} +2 -2
- package/dist/webmcp/index.d.ts +1 -1
- package/dist/{where-scope-BKrqUDVk.js → where-scope-BAyOsPQW.js} +1 -1
- package/dist/{who-can-KhVWMxtf.js → who-can-jPfTABf-.js} +1 -1
- package/dist/workflow/index.d.ts +3 -3
- package/dist/workflow/index.js +2 -2
- package/dist/workflow-sdk/index.d.ts +4 -4
- package/dist/{wrap-BHGA-SMM.d.ts → wrap-C-4o-Dpy.d.ts} +2 -2
- package/package.json +1 -1
- package/schemas/catalog-v1.json +8 -0
- package/skills/permdock-agents/references/runtimes.md +2 -2
- package/skills/permdock-wire/references/adapters.md +1 -1
- package/dist/catalog-Caqhbdix.js +0 -1
- package/dist/collect-KCtOigxx.js +0 -1
- package/dist/powersync-xNRlC4jN.js +0 -1
- package/dist/pull-UBjDnf4b.js +0 -1
- package/dist/run-UPbacxPg.js +0 -1
- package/dist/stream-W2RuUYly.d.ts +0 -13
- package/dist/supabase-hook-BN46IrVI.js +0 -1
- package/dist/usage-Cl5eb-e1.js +0 -1
- package/dist/watch-OYwAPCzx.js +0 -1
package/dist/a2a/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { D as Policy, dr as AuthorizationDetail, yr as Principal } from "../policy-types-Ky7P23CP.js";
|
|
2
2
|
import { u as Permission } from "../permission-types-CAY-GU7e.js";
|
|
3
|
-
import { m as ApprovalStore } from "../types
|
|
4
|
-
import { a as ProblemDetails } from "../errors-
|
|
5
|
-
import { t as InstanceOptions } from "../instance-options-
|
|
3
|
+
import { m as ApprovalStore } from "../types--HfnkawU.js";
|
|
4
|
+
import { a as ProblemDetails } from "../errors-POWcCXy7.js";
|
|
5
|
+
import { t as InstanceOptions } from "../instance-options-D6hyIKJF.js";
|
|
6
6
|
//#region src/a2a/types.d.ts
|
|
7
7
|
type A2aAuth = {
|
|
8
8
|
readonly clientId?: string;
|
package/dist/a2a/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { t as compact } from "../compact-CAf557ZB.js";
|
|
2
2
|
import { n as freezeDeep } from "../freeze-jjan0lCv.js";
|
|
3
3
|
import { o as statusProblem } from "../problem-details-CLDgX1KV.js";
|
|
4
|
-
import { n as PermDockDeniedError, t as PermDockApprovalRequiredError } from "../errors-
|
|
4
|
+
import { n as PermDockDeniedError, t as PermDockApprovalRequiredError } from "../errors-ynga1EQy.js";
|
|
5
5
|
import { t as canonicalJson } from "../canonical-json-DwilZ1iB.js";
|
|
6
6
|
import { t as bytesToBase64Url } from "../sha256-C-4WXKIu.js";
|
|
7
7
|
import { n as resourceRef } from "../resource-ref-CaS9yVPi.js";
|
|
8
|
-
import { i as challengeScope, l as withApp, o as hasScope, s as scopesReaching } from "../permdock-
|
|
9
|
-
import { p as wwwAuthenticate, r as bearerChallenge } from "../problem-
|
|
10
|
-
import { r as instanceOptions } from "../build-instance-
|
|
11
|
-
import { n as createAgentKernel } from "../kernel-
|
|
12
|
-
import {
|
|
8
|
+
import { i as challengeScope, l as withApp, o as hasScope, s as scopesReaching } from "../permdock-DeOfonuG.js";
|
|
9
|
+
import { p as wwwAuthenticate, r as bearerChallenge } from "../problem-BWP1l86g.js";
|
|
10
|
+
import { r as instanceOptions } from "../build-instance-DrIbZVnm.js";
|
|
11
|
+
import { n as createAgentKernel } from "../kernel-B2UCK36Z.js";
|
|
12
|
+
import { n as delegationFrom } from "../delegation-input-DcXhiMkf.js";
|
|
13
13
|
//#region src/a2a/create.ts
|
|
14
14
|
function firstScheme(options) {
|
|
15
15
|
return Object.keys(options.securitySchemes)[0];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as listSourceFiles } from "./files-BSjrtIHw.js";
|
|
2
|
-
import { t as DOCS_BASE } from "./manifest-
|
|
2
|
+
import { t as DOCS_BASE } from "./manifest-CDhdXgf6.js";
|
|
3
3
|
import { readFileSync } from "node:fs";
|
|
4
4
|
import { relative } from "node:path";
|
|
5
5
|
//#region src/cli/adoption-scan.ts
|
package/dist/agent/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as DeniedTextEvent, t as DeniedText } from "../denied-text-
|
|
2
|
-
import { a as createPermDock, c as ModelMap, d as StepUp, i as OperationVerdict, l as ToolBinding, n as AgentPermDockOptions, o as AgentAdapterOptions, r as GatewayOptions, s as DecideToolOptions, t as AgentPermDock, u as ToolMap } from "../create-
|
|
1
|
+
import { n as DeniedTextEvent, t as DeniedText } from "../denied-text-CF-2h8Vz.js";
|
|
2
|
+
import { a as createPermDock, c as ModelMap, d as StepUp, i as OperationVerdict, l as ToolBinding, n as AgentPermDockOptions, o as AgentAdapterOptions, r as GatewayOptions, s as DecideToolOptions, t as AgentPermDock, u as ToolMap } from "../create-0B_bjJc-.js";
|
|
3
3
|
export { type AgentAdapterOptions, type AgentPermDock, type AgentPermDockOptions, type DecideToolOptions, type DeniedText, type DeniedTextEvent, type GatewayOptions, type ModelMap, type OperationVerdict, type StepUp, type ToolBinding, type ToolMap, createPermDock };
|
package/dist/agent/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as createPermDock } from "../create-
|
|
1
|
+
export { n as createPermDock } from "../create-CAZyXZFC.js";
|
package/dist/ai-sdk/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { D as Policy, N as PolicyVocabulary, yr as Principal } from "../policy-types-Ky7P23CP.js";
|
|
2
2
|
import { u as Permission } from "../permission-types-CAY-GU7e.js";
|
|
3
|
-
import { n as DeniedTextEvent, t as DeniedText } from "../denied-text-
|
|
4
|
-
import { d as StepUp, o as AgentAdapterOptions, t as AgentPermDock } from "../create-
|
|
3
|
+
import { n as DeniedTextEvent, t as DeniedText } from "../denied-text-CF-2h8Vz.js";
|
|
4
|
+
import { d as StepUp, o as AgentAdapterOptions, t as AgentPermDock } from "../create-0B_bjJc-.js";
|
|
5
5
|
//#region src/ai-sdk/create.d.ts
|
|
6
6
|
type AiSdkContext = {
|
|
7
7
|
readonly runtimeContext?: unknown;
|
package/dist/ai-sdk/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as compact } from "../compact-CAf557ZB.js";
|
|
2
|
-
import { n as PermDockDeniedError, t as PermDockApprovalRequiredError } from "../errors-
|
|
3
|
-
import { l as withApp } from "../permdock-
|
|
4
|
-
import { r as stepUpText, t as approvalTokenOf } from "../kernel-
|
|
5
|
-
import { t as agentRuntime } from "../create-
|
|
2
|
+
import { n as PermDockDeniedError, t as PermDockApprovalRequiredError } from "../errors-ynga1EQy.js";
|
|
3
|
+
import { l as withApp } from "../permdock-DeOfonuG.js";
|
|
4
|
+
import { r as stepUpText, t as approvalTokenOf } from "../kernel-B2UCK36Z.js";
|
|
5
|
+
import { t as agentRuntime } from "../create-CAZyXZFC.js";
|
|
6
6
|
//#region src/ai-sdk/create.ts
|
|
7
7
|
const APPROVAL_STATUSES = /* @__PURE__ */ new Set([
|
|
8
8
|
"approved",
|
|
@@ -55,21 +55,24 @@ function normalizeApproval(approval, permission) {
|
|
|
55
55
|
if (approval.ttl !== void 0) assertDuration(approval.ttl, `approval.ttl on '${label}'`);
|
|
56
56
|
const escalation = normalizeEscalation(approval.escalation, label);
|
|
57
57
|
const mode = approvalMode(approval.mode, label);
|
|
58
|
+
const fallback = approvalFallback(approval.fallback, label);
|
|
58
59
|
const combine = approval.combine ?? "any";
|
|
59
60
|
if (combine !== "any") return compact({
|
|
60
61
|
combine,
|
|
61
62
|
stages: normalizeStages(approval, combine, label),
|
|
62
63
|
mode,
|
|
64
|
+
fallback,
|
|
63
65
|
staleOn: approval.staleOn,
|
|
64
66
|
ttl: approval.ttl,
|
|
65
67
|
escalation
|
|
66
68
|
});
|
|
67
69
|
if (approval.stages !== void 0) throw new Error(`PermDock: approval.stages on '${label}' needs combine: 'all' or 'sequential'`);
|
|
68
70
|
const by = approval.by === void 0 ? void 0 : asApprover(approval.by);
|
|
69
|
-
if (by === void 0 && mode === void 0 && approval.staleOn === void 0 && approval.quorum === void 0 && approval.ttl === void 0 && escalation === void 0) return "human";
|
|
71
|
+
if (by === void 0 && mode === void 0 && fallback === void 0 && approval.staleOn === void 0 && approval.quorum === void 0 && approval.ttl === void 0 && escalation === void 0) return "human";
|
|
70
72
|
return compact({
|
|
71
73
|
by: by ?? authenticated(),
|
|
72
74
|
mode,
|
|
75
|
+
fallback,
|
|
73
76
|
staleOn: approval.staleOn,
|
|
74
77
|
quorum: approval.quorum,
|
|
75
78
|
ttl: approval.ttl,
|
|
@@ -107,6 +110,10 @@ function approvalMode(mode, label) {
|
|
|
107
110
|
if (mode !== "confirm") throw new Error(`PermDock: approval.mode on '${label}' must be 'confirm' or 'authorize', got '${String(mode)}'`);
|
|
108
111
|
return mode;
|
|
109
112
|
}
|
|
113
|
+
function approvalFallback(fallback, label) {
|
|
114
|
+
if (fallback !== void 0 && fallback !== "confirm") throw new Error(`PermDock: approval.fallback on '${label}' must be 'confirm', got '${String(fallback)}'`);
|
|
115
|
+
return fallback;
|
|
116
|
+
}
|
|
110
117
|
function normalizeStages(approval, combine, label) {
|
|
111
118
|
if (combine !== "all" && combine !== "sequential") throw new Error(`PermDock: approval.combine on '${label}' must be 'any', 'all' or 'sequential', got '${combine}'`);
|
|
112
119
|
if (approval.by !== void 0 || approval.quorum !== void 0) throw new Error(`PermDock: approval on '${label}' sets combine '${combine}': put by and quorum on each stage`);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { D as Policy, Er as Condition, Sn as Scope, _ as Grant, o as ApprovalOption, sn as AuthEvent, xr as Subject } from "./policy-types-Ky7P23CP.js";
|
|
2
2
|
import { i as OperationEffect, s as OperationMeta, u as OperationRisk } from "./operations-Ci_rT6Uo.js";
|
|
3
3
|
//#region src/core/approval-policies.d.ts
|
|
4
4
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { s as OperationMeta, t as Operation } from "./operations-Ci_rT6Uo.js";
|
|
2
|
-
import { u as ApprovalRequest } from "./types
|
|
2
|
+
import { u as ApprovalRequest } from "./types--HfnkawU.js";
|
|
3
3
|
//#region src/delivery/approval-prompt.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* What an email or chat prompt shows an approver, wire format v1. It carries no
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as DEFAULT_APPROVAL_TTL, a as ApprovalDelegationSource, b as escalationOpenAt, c as ApprovalListQuery, d as ApprovalResumeFailureCause, f as ApprovalSignature, g as ApprovalVerdict, h as ApprovalSubjectSummary, i as ApprovalDelegation, l as ApprovalPage, m as ApprovalStore, n as ApprovalApprovers, o as ApprovalInspectResult, p as ApprovalStatus, r as ApprovalCancelMeta, s as ApprovalListFilter, t as APPROVAL_HEADER, u as ApprovalRequest, v as approvalQuorum, y as approverRelationKey } from "../types
|
|
1
|
+
import { _ as DEFAULT_APPROVAL_TTL, a as ApprovalDelegationSource, b as escalationOpenAt, c as ApprovalListQuery, d as ApprovalResumeFailureCause, f as ApprovalSignature, g as ApprovalVerdict, h as ApprovalSubjectSummary, i as ApprovalDelegation, l as ApprovalPage, m as ApprovalStore, n as ApprovalApprovers, o as ApprovalInspectResult, p as ApprovalStatus, r as ApprovalCancelMeta, s as ApprovalListFilter, t as APPROVAL_HEADER, u as ApprovalRequest, v as approvalQuorum, y as approverRelationKey } from "../types--HfnkawU.js";
|
|
2
2
|
import { n as ApprovalErrorCode, r as isApprovalError, t as ApprovalError } from "../errors-CHwoRRpB.js";
|
|
3
|
-
import { a as AccessReviewItemQuery, c as AccessReviewStore, i as AccessReviewItemPage, n as AccessReviewDecision, o as AccessReviewItemStatus, r as AccessReviewItem, s as AccessReviewStatus, t as AccessReview } from "../types-
|
|
4
|
-
import { $ as
|
|
3
|
+
import { a as AccessReviewItemQuery, c as AccessReviewStore, i as AccessReviewItemPage, n as AccessReviewDecision, o as AccessReviewItemStatus, r as AccessReviewItem, s as AccessReviewStatus, t as AccessReview } from "../types-Do4yihST.js";
|
|
4
|
+
import { $ as pageAccessReviewItems, A as SignApprovalOptions, B as IdempotentResponse, C as ApproverRelationsOptions, D as approvalView, E as approvalEntityTag, F as ApprovalsHandlerOptions, G as ApproverDirectory, H as idempotencyRecordKey, I as approvalsHandler, J as matchDelegation, K as ApprovalDelegationMatch, L as IdempotencyRecord, M as signApproval, N as APPROVAL_REQUEST_SCHEMA, O as ApprovalSignatureClaims, P as parseApprovalRequest, Q as memoryAccessReviewStore, R as IdempotencyStore, S as vouchApproval, T as ApprovalView, U as matchesIdempotencyRecord, V as idempotencyRecord, W as memoryIdempotencyStore, X as parseApprovalDelegation, Y as memoryApprovalDelegationSource, Z as MemoryAccessReviewStore, _ as resolveApproval, a as approverPermissions, at as AccessReviewErrorCode, b as storedApprovalToken, c as decodeApprovalCursor, ct as accessReviewerEligible, d as pageApprovals, dt as accessReviewsHandler, et as AccessReviewHolder, f as cancelApprovals, g as requestApproval, h as readApprovalHeader, i as memoryApprovalStore, it as AccessReviewError, j as approvalSignatureClaims, k as ApprovalSignatureEntry, l as encodeApprovalCursor, lt as decideAccessReviewItem, m as inspectApproval, n as applyApprovalVerdict, nt as StartAccessReviewInput, o as ApprovalCursorPosition, ot as isAccessReviewError, p as consumeApproval, q as MatchDelegationOptions, r as assertApprover, rt as startAccessReview, s as approvalPageSize, st as AccessReviewVerdict, t as MemoryApprovalStore, tt as AccessReviewOptions, u as listAllApprovals, ut as AccessReviewsHandlerOptions, v as resumeDecision, w as approverRelations, x as summarizeSubject, y as resumeFromHeader, z as IdempotentCall } from "../index-DZnpRB0q.js";
|
|
5
5
|
import { t as approvalFingerprint } from "../token-D6pWn8Uj.js";
|
|
6
|
-
export { APPROVAL_HEADER, APPROVAL_REQUEST_SCHEMA, type AccessReview, type AccessReviewDecision, AccessReviewError, type AccessReviewErrorCode, type AccessReviewHolder, type AccessReviewItem, type AccessReviewItemPage, type AccessReviewItemQuery, type AccessReviewItemStatus, type AccessReviewOptions, type AccessReviewStatus, type AccessReviewStore, type AccessReviewVerdict, type AccessReviewsHandlerOptions, type ApprovalApprovers, type ApprovalCancelMeta, type ApprovalCursorPosition, type ApprovalDelegation, type ApprovalDelegationMatch, type ApprovalDelegationSource, ApprovalError, type ApprovalErrorCode, type ApprovalInspectResult, type ApprovalListFilter, type ApprovalListQuery, type ApprovalPage, type ApprovalRequest, type ApprovalResumeFailureCause, type ApprovalSignature, type ApprovalSignatureClaims, type ApprovalSignatureEntry, type ApprovalStatus, type ApprovalStore, type ApprovalSubjectSummary, type ApprovalVerdict, type ApprovalView, type ApprovalsHandlerOptions, type ApproverRelationsOptions, DEFAULT_APPROVAL_TTL, type IdempotencyRecord, type IdempotencyStore, type IdempotentCall, type IdempotentResponse, type MatchDelegationOptions, type MemoryAccessReviewStore, type MemoryApprovalStore, type SignApprovalOptions, type StartAccessReviewInput, accessReviewerEligible, accessReviewsHandler, applyApprovalVerdict, approvalEntityTag, approvalFingerprint, approvalPageSize, approvalQuorum, approvalSignatureClaims, approvalView, approvalsHandler, approverPermissions, approverRelationKey, approverRelations, assertApprover, cancelApprovals, consumeApproval, decideAccessReviewItem, decodeApprovalCursor, encodeApprovalCursor, escalationOpenAt, idempotencyRecord, idempotencyRecordKey, inspectApproval, isAccessReviewError, isApprovalError, listAllApprovals, matchDelegation, matchesIdempotencyRecord, memoryAccessReviewStore, memoryApprovalDelegationSource, memoryApprovalStore, memoryIdempotencyStore, pageAccessReviewItems, pageApprovals, parseApprovalDelegation, parseApprovalRequest, readApprovalHeader, requestApproval, resolveApproval, resumeDecision, resumeFromHeader, signApproval, startAccessReview, storedApprovalToken, summarizeSubject, vouchApproval };
|
|
6
|
+
export { APPROVAL_HEADER, APPROVAL_REQUEST_SCHEMA, type AccessReview, type AccessReviewDecision, AccessReviewError, type AccessReviewErrorCode, type AccessReviewHolder, type AccessReviewItem, type AccessReviewItemPage, type AccessReviewItemQuery, type AccessReviewItemStatus, type AccessReviewOptions, type AccessReviewStatus, type AccessReviewStore, type AccessReviewVerdict, type AccessReviewsHandlerOptions, type ApprovalApprovers, type ApprovalCancelMeta, type ApprovalCursorPosition, type ApprovalDelegation, type ApprovalDelegationMatch, type ApprovalDelegationSource, ApprovalError, type ApprovalErrorCode, type ApprovalInspectResult, type ApprovalListFilter, type ApprovalListQuery, type ApprovalPage, type ApprovalRequest, type ApprovalResumeFailureCause, type ApprovalSignature, type ApprovalSignatureClaims, type ApprovalSignatureEntry, type ApprovalStatus, type ApprovalStore, type ApprovalSubjectSummary, type ApprovalVerdict, type ApprovalView, type ApprovalsHandlerOptions, type ApproverDirectory, type ApproverRelationsOptions, DEFAULT_APPROVAL_TTL, type IdempotencyRecord, type IdempotencyStore, type IdempotentCall, type IdempotentResponse, type MatchDelegationOptions, type MemoryAccessReviewStore, type MemoryApprovalStore, type SignApprovalOptions, type StartAccessReviewInput, accessReviewerEligible, accessReviewsHandler, applyApprovalVerdict, approvalEntityTag, approvalFingerprint, approvalPageSize, approvalQuorum, approvalSignatureClaims, approvalView, approvalsHandler, approverPermissions, approverRelationKey, approverRelations, assertApprover, cancelApprovals, consumeApproval, decideAccessReviewItem, decodeApprovalCursor, encodeApprovalCursor, escalationOpenAt, idempotencyRecord, idempotencyRecordKey, inspectApproval, isAccessReviewError, isApprovalError, listAllApprovals, matchDelegation, matchesIdempotencyRecord, memoryAccessReviewStore, memoryApprovalDelegationSource, memoryApprovalStore, memoryIdempotencyStore, pageAccessReviewItems, pageApprovals, parseApprovalDelegation, parseApprovalRequest, readApprovalHeader, requestApproval, resolveApproval, resumeDecision, resumeFromHeader, signApproval, startAccessReview, storedApprovalToken, summarizeSubject, vouchApproval };
|
package/dist/approvals/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as approvalFingerprint } from "../token-DaMnIU9O.js";
|
|
2
2
|
import { a as escalationOpenAt, c as isApprovalError, i as approverRelationKey, n as DEFAULT_APPROVAL_TTL, r as approvalQuorum, s as ApprovalError, t as APPROVAL_HEADER } from "../types-CcUXciSj.js";
|
|
3
|
-
import { c as decodeApprovalCursor, d as pageApprovals, i as memoryApprovalStore, l as encodeApprovalCursor, n as assertApprover, s as approvalPageSize, t as applyApprovalVerdict, u as listAllApprovals } from "../store-
|
|
4
|
-
import { a as requestApproval, c as resumeFromHeader, d as vouchApproval,
|
|
3
|
+
import { c as decodeApprovalCursor, d as pageApprovals, i as memoryApprovalStore, l as encodeApprovalCursor, n as assertApprover, s as approvalPageSize, t as applyApprovalVerdict, u as listAllApprovals } from "../store-CSOsXd5s.js";
|
|
4
|
+
import { a as requestApproval, c as resumeFromHeader, d as vouchApproval, h as approverRelations, i as readApprovalHeader, l as storedApprovalToken, n as consumeApproval, o as resolveApproval, p as approverPermissions, r as inspectApproval, s as resumeDecision, t as cancelApprovals, u as summarizeSubject } from "../helpers-D-MXwkOF.js";
|
|
5
5
|
import { n as isAccessReviewError, t as AccessReviewError } from "../errors-BDUwg2qC.js";
|
|
6
|
-
import { _ as accessReviewerEligible, a as idempotencyRecordKey, c as approvalEntityTag, d as memoryApprovalDelegationSource, f as parseApprovalDelegation, g as accessReviewsHandler, h as startAccessReview, i as idempotencyRecord, l as approvalView, m as pageAccessReviewItems, n as approvalSignatureClaims, o as matchesIdempotencyRecord, p as memoryAccessReviewStore, r as signApproval, s as memoryIdempotencyStore, t as approvalsHandler, u as matchDelegation, v as decideAccessReviewItem } from "../approvals-
|
|
6
|
+
import { _ as accessReviewerEligible, a as idempotencyRecordKey, c as approvalEntityTag, d as memoryApprovalDelegationSource, f as parseApprovalDelegation, g as accessReviewsHandler, h as startAccessReview, i as idempotencyRecord, l as approvalView, m as pageAccessReviewItems, n as approvalSignatureClaims, o as matchesIdempotencyRecord, p as memoryAccessReviewStore, r as signApproval, s as memoryIdempotencyStore, t as approvalsHandler, u as matchDelegation, v as decideAccessReviewItem } from "../approvals-CuXILe52.js";
|
|
7
7
|
import { t as APPROVAL_REQUEST_SCHEMA } from "../request-schema-CMP8Cmxd.js";
|
|
8
8
|
import { t as parseApprovalRequest } from "../parse-request-DOBVaeiQ.js";
|
|
9
9
|
export { APPROVAL_HEADER, APPROVAL_REQUEST_SCHEMA, AccessReviewError, ApprovalError, DEFAULT_APPROVAL_TTL, accessReviewerEligible, accessReviewsHandler, applyApprovalVerdict, approvalEntityTag, approvalFingerprint, approvalPageSize, approvalQuorum, approvalSignatureClaims, approvalView, approvalsHandler, approverPermissions, approverRelationKey, approverRelations, assertApprover, cancelApprovals, consumeApproval, decideAccessReviewItem, decodeApprovalCursor, encodeApprovalCursor, escalationOpenAt, idempotencyRecord, idempotencyRecordKey, inspectApproval, isAccessReviewError, isApprovalError, listAllApprovals, matchDelegation, matchesIdempotencyRecord, memoryAccessReviewStore, memoryApprovalDelegationSource, memoryApprovalStore, memoryIdempotencyStore, pageAccessReviewItems, pageApprovals, parseApprovalDelegation, parseApprovalRequest, readApprovalHeader, requestApproval, resolveApproval, resumeDecision, resumeFromHeader, signApproval, startAccessReview, storedApprovalToken, summarizeSubject, vouchApproval };
|
|
@@ -9,13 +9,13 @@ import { r as sha256Digest } from "./sha256-C-4WXKIu.js";
|
|
|
9
9
|
import { o as flattenGrantee } from "./grantee-Dke-9rd1.js";
|
|
10
10
|
import { i as rootMembershipId } from "./subject-C7RddW0G.js";
|
|
11
11
|
import { c as isApprovalError, s as ApprovalError } from "./types-CcUXciSj.js";
|
|
12
|
-
import { a as belongsToTenant, c as decodeApprovalCursor, n as assertApprover, o as membershipTenants, r as matchesApprovers, s as approvalPageSize, u as listAllApprovals } from "./store-
|
|
12
|
+
import { a as belongsToTenant, c as decodeApprovalCursor, n as assertApprover, o as membershipTenants, r as matchesApprovers, s as approvalPageSize, u as listAllApprovals } from "./store-CSOsXd5s.js";
|
|
13
13
|
import { n as readBodyText } from "./body-text-DQhcmqdY.js";
|
|
14
14
|
import { r as hasCredentials } from "./http-DKLXrFGk.js";
|
|
15
|
-
import { d as unauthenticatedProblem, f as validationProblem, l as problemResponse, o as methodNotAllowed } from "./problem-
|
|
16
|
-
import { f as
|
|
15
|
+
import { d as unauthenticatedProblem, f as validationProblem, l as problemResponse, o as methodNotAllowed } from "./problem-BWP1l86g.js";
|
|
16
|
+
import { f as countOtherApprovers, h as approverRelations, m as heldPermissions, p as approverPermissions } from "./helpers-D-MXwkOF.js";
|
|
17
17
|
import { n as isAccessReviewError, t as AccessReviewError } from "./errors-BDUwg2qC.js";
|
|
18
|
-
import { t as bodyTooLarge } from "./body-
|
|
18
|
+
import { t as bodyTooLarge } from "./body-C9JbIoqb.js";
|
|
19
19
|
//#region src/approvals/access-reviews/decide.ts
|
|
20
20
|
/**
|
|
21
21
|
* Whether `by` is named as a reviewer. A link, a feed or a contact is never a
|
|
@@ -766,10 +766,12 @@ async function factsFor(request, subject, options) {
|
|
|
766
766
|
async function actingApprover(request, subject, requireDistinct, options) {
|
|
767
767
|
const facts = await factsFor(request, subject, options);
|
|
768
768
|
try {
|
|
769
|
-
|
|
769
|
+
const otherApprovers = await countOtherApprovers(request, subject, options.approverDirectory);
|
|
770
|
+
assertApprover(request, subject, requireDistinct, void 0, facts.relations, facts.permissions, otherApprovers);
|
|
770
771
|
return {
|
|
771
772
|
kind: "self",
|
|
772
|
-
...facts
|
|
773
|
+
...facts,
|
|
774
|
+
otherApprovers
|
|
773
775
|
};
|
|
774
776
|
} catch (error) {
|
|
775
777
|
if (!isApprovalError(error) || error.code !== "approver-not-eligible") throw error;
|
|
@@ -929,6 +931,7 @@ function approvalsHandler(store, options) {
|
|
|
929
931
|
note: read.note,
|
|
930
932
|
relations: acting.kind === "self" ? acting.relations : void 0,
|
|
931
933
|
permissions: acting.kind === "self" ? acting.permissions : void 0,
|
|
934
|
+
otherApprovers: acting.kind === "self" ? acting.otherApprovers : void 0,
|
|
932
935
|
onBehalfOf: acting.kind === "delegated" ? {
|
|
933
936
|
subject: acting.delegator,
|
|
934
937
|
delegation: acting.delegation,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _ as arazzoFindings } from "./src-
|
|
1
|
+
import { _ as arazzoFindings } from "./src-HDDf9Eum.js";
|
|
2
2
|
import { c as missingInput } from "./errors-BhRkoNS7.js";
|
|
3
3
|
import { i as readJsonFile } from "./files-BSjrtIHw.js";
|
|
4
4
|
import { t as ARAZZO_REPORT_SCHEMA } from "./version-DMQ0dnN5.js";
|
|
5
5
|
import { a as loadModule, s as pickNamed, t as asPermissionTree } from "./load-BaEamml-.js";
|
|
6
|
-
import { t as DOCS_BASE } from "./manifest-
|
|
6
|
+
import { t as DOCS_BASE } from "./manifest-CDhdXgf6.js";
|
|
7
7
|
import { existsSync } from "node:fs";
|
|
8
8
|
import { resolve } from "node:path";
|
|
9
9
|
//#region src/cli/arazzo.ts
|
|
@@ -21,7 +21,7 @@ const check = defineLeaf({
|
|
|
21
21
|
...permissionsFlag
|
|
22
22
|
},
|
|
23
23
|
async run(ctx, { flags }) {
|
|
24
|
-
return (await import("./arazzo
|
|
24
|
+
return (await import("./arazzo-4vfaXj0U.js")).runArazzo({
|
|
25
25
|
cwd: ctx.cwd,
|
|
26
26
|
config: ctx.config,
|
|
27
27
|
doc: given(flags.doc),
|
package/dist/astro/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { D as Policy, N as PolicyVocabulary, en as Snapshot, yr as Principal } from "../policy-types-Ky7P23CP.js";
|
|
2
2
|
import { u as Permission } from "../permission-types-CAY-GU7e.js";
|
|
3
3
|
import { a as OperationInput, t as Operation } from "../operations-Ci_rT6Uo.js";
|
|
4
|
-
import { a as PermDock } from "../permdock-
|
|
5
|
-
import { D as ConnectionOptions, T as Connection, f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, u as SnapshotQuery, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types-
|
|
6
|
-
import { a as ProtectTarget, i as PermDockHandlers, n as FetchAdapterOptions, t as ContextReader } from "../fetch-adapter-
|
|
4
|
+
import { a as PermDock } from "../permdock-B45vPQb4.js";
|
|
5
|
+
import { D as ConnectionOptions, T as Connection, f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, u as SnapshotQuery, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types-CwpJe664.js";
|
|
6
|
+
import { a as ProtectTarget, i as PermDockHandlers, n as FetchAdapterOptions, t as ContextReader } from "../fetch-adapter-Bq4AB3W2.js";
|
|
7
7
|
import { APIContext, MiddlewareHandler } from "astro";
|
|
8
8
|
//#region src/astro/create.d.ts
|
|
9
9
|
type AstroPermDockOptions<TUser = unknown> = FetchAdapterOptions<APIContext, TUser>;
|
package/dist/astro/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { l as InvalidSignatureError, p as webBotAuthVerifier, u as discoverViaSignatureAgent } from "../evaluations-
|
|
2
|
-
import { n as guardedRoute, r as instanceRoute, t as fetchAdapter } from "../fetch-adapter-
|
|
1
|
+
import { l as InvalidSignatureError, p as webBotAuthVerifier, u as discoverViaSignatureAgent } from "../evaluations-CNMVJVD6.js";
|
|
2
|
+
import { n as guardedRoute, r as instanceRoute, t as fetchAdapter } from "../fetch-adapter-Bm1iZolz.js";
|
|
3
3
|
//#region src/astro/create.ts
|
|
4
4
|
const route = {
|
|
5
5
|
context: (context) => context,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as whoCan } from "./who-can-
|
|
1
|
+
import { t as whoCan } from "./who-can-jPfTABf-.js";
|
|
2
2
|
//#region src/delivery/audience.ts
|
|
3
3
|
async function granted(permdock, ids, permission, row) {
|
|
4
4
|
const unique = [...new Set(ids.filter((id) => typeof id === "string" && id !== ""))];
|
package/dist/authzen/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { m as ApprovalStore } from "../types
|
|
3
|
-
import { a as ProblemDetails } from "../errors-
|
|
4
|
-
import { t as InstanceOptions } from "../instance-options-
|
|
5
|
-
import { a as evaluationsSemantic, n as EvaluationsSemantic, r as evaluateBatch, t as EVALUATIONS_SEMANTICS } from "../evaluations
|
|
1
|
+
import { D as Policy, hr as Delegation, lr as Actor, yr as Principal } from "../policy-types-Ky7P23CP.js";
|
|
2
|
+
import { m as ApprovalStore } from "../types--HfnkawU.js";
|
|
3
|
+
import { a as ProblemDetails } from "../errors-POWcCXy7.js";
|
|
4
|
+
import { t as InstanceOptions } from "../instance-options-D6hyIKJF.js";
|
|
5
|
+
import { a as evaluationsSemantic, n as EvaluationsSemantic, r as evaluateBatch, t as EVALUATIONS_SEMANTICS } from "../evaluations--rkKhMqY.js";
|
|
6
6
|
//#region src/authzen/map.d.ts
|
|
7
7
|
type AuthzenEntity = {
|
|
8
8
|
readonly type?: unknown;
|
package/dist/authzen/index.js
CHANGED
|
@@ -6,9 +6,9 @@ import { t as fromWireDelegation } from "../wire-delegation-Cv3W2eaM.js";
|
|
|
6
6
|
import { n as resourceRef } from "../resource-ref-CaS9yVPi.js";
|
|
7
7
|
import { n as readBodyText, t as MAX_BODY_BYTES } from "../body-text-DQhcmqdY.js";
|
|
8
8
|
import { r as hasCredentials } from "../http-DKLXrFGk.js";
|
|
9
|
-
import { d as unauthenticatedProblem, l as problemResponse, o as methodNotAllowed } from "../problem-
|
|
10
|
-
import { n as resolveOrNull, t as buildInstance } from "../build-instance-
|
|
11
|
-
import { a as evaluationReasons, c as withRequestId, g as wireResourceId, h as permissionLookup, i as evaluateBatch, m as itemResourceData, n as applyApprovalResume, r as authzenMetadata, s as evaluationsSemantic, t as EVALUATIONS_SEMANTICS } from "../evaluations-
|
|
9
|
+
import { d as unauthenticatedProblem, l as problemResponse, o as methodNotAllowed } from "../problem-BWP1l86g.js";
|
|
10
|
+
import { n as resolveOrNull, t as buildInstance } from "../build-instance-DrIbZVnm.js";
|
|
11
|
+
import { a as evaluationReasons, c as withRequestId, g as wireResourceId, h as permissionLookup, i as evaluateBatch, m as itemResourceData, n as applyApprovalResume, r as authzenMetadata, s as evaluationsSemantic, t as EVALUATIONS_SEMANTICS } from "../evaluations-CNMVJVD6.js";
|
|
12
12
|
//#region src/authzen/map.ts
|
|
13
13
|
const UNKNOWN = {
|
|
14
14
|
outcome: "denied",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Kt as InstanceHandle, Xn as Denial, qt as Instant } from "./policy-types-Ky7P23CP.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
4
|
//#region src/core/automation.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { F as RoleBinding, X as DecisionSink, q as CustomRoleSource, xr as Subject, yr as Principal } from "../policy-types-Ky7P23CP.js";
|
|
2
2
|
import { f as PermissionTree } from "../permission-types-CAY-GU7e.js";
|
|
3
3
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
4
4
|
//#region src/better-auth/types.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as isReadonlyArray, r as isRecord, t as compact } from "../compact-CAf557ZB.js";
|
|
2
2
|
import { n as freezeDeep } from "../freeze-jjan0lCv.js";
|
|
3
|
-
import { n as role, r as allow } from "../role-builder-
|
|
3
|
+
import { n as role, r as allow } from "../role-builder-C_2kWB_x.js";
|
|
4
4
|
import { c as listPermissions } from "../permission-registry-B8tYxPIt.js";
|
|
5
5
|
import { r as validateRecord } from "../thenable-BNSM1U2R.js";
|
|
6
6
|
import { i as rootMembershipId, t as anonymousSubject } from "../subject-C7RddW0G.js";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $n as DeniedDecision, D as Policy, Dn as ApproverInput, G as CredentialVerifier, N as PolicyVocabulary, Q as Intent, Tt as SupportSession, it as MembershipSource, jt as ApiKeyPrincipal, qt as Instant, sn as AuthEvent, xr as Subject, yr as Principal } from "../policy-types-Ky7P23CP.js";
|
|
2
2
|
import { f as PermissionTree, u as Permission } from "../permission-types-CAY-GU7e.js";
|
|
3
3
|
import { i as OperationEffect } from "../operations-Ci_rT6Uo.js";
|
|
4
|
-
import { i as ApprovalPolicySource } from "../approval-policies-
|
|
5
|
-
import { A as PermissionState, _ as PrincipalSource, a as PermDock, h as PrincipalIdentity, k as PermissionCheck, o as PermDockOptions, w as InstanceCache } from "../permdock-
|
|
6
|
-
import { m as ApprovalStore } from "../types
|
|
7
|
-
import { t as InstanceOptions } from "../instance-options-
|
|
8
|
-
import { c as AccessReviewStore } from "../types-
|
|
9
|
-
import { i as SupabaseRpcCaller } from "../postgrest-
|
|
10
|
-
import { a as CatalogDocument } from "../types-
|
|
11
|
-
import { n as VersionCache } from "../version-cache-
|
|
12
|
-
import { A as SupabaseSubjectOptions, C as SupabasePrincipal, N as SupabaseSuspension, O as SupabaseSessionLike, s as SqlMembershipSource } from "../sources-
|
|
4
|
+
import { i as ApprovalPolicySource } from "../approval-policies-CYqdqAob.js";
|
|
5
|
+
import { A as PermissionState, _ as PrincipalSource, a as PermDock, h as PrincipalIdentity, k as PermissionCheck, o as PermDockOptions, w as InstanceCache } from "../permdock-B45vPQb4.js";
|
|
6
|
+
import { m as ApprovalStore } from "../types--HfnkawU.js";
|
|
7
|
+
import { t as InstanceOptions } from "../instance-options-D6hyIKJF.js";
|
|
8
|
+
import { c as AccessReviewStore } from "../types-Do4yihST.js";
|
|
9
|
+
import { i as SupabaseRpcCaller } from "../postgrest-pwxeaeOW.js";
|
|
10
|
+
import { a as CatalogDocument } from "../types-7Vlz1Wi2.js";
|
|
11
|
+
import { n as VersionCache } from "../version-cache-Ddvrfn1R.js";
|
|
12
|
+
import { A as SupabaseSubjectOptions, C as SupabasePrincipal, N as SupabaseSuspension, O as SupabaseSessionLike, s as SqlMembershipSource } from "../sources-4d3fl7cq.js";
|
|
13
13
|
import { t as SqlQuery } from "../sql-B80DFdpG.js";
|
|
14
|
-
import { c as LinkPolicy, o as CapabilityPrincipal, t as Capability } from "../capability-
|
|
14
|
+
import { c as LinkPolicy, o as CapabilityPrincipal, t as Capability } from "../capability-Ci2S8Cdu.js";
|
|
15
15
|
import { AccessBucketPolicy, AccessTopicPolicy, AuthorizationHooks, AuthorizationProvider, AuthorizationRequest, Authorizer, BlockTables, CredentialProvider, SupportAuthorize, SupportAuthorizeInput, ToolDecision, ToolRef } from "better-supabase/contract";
|
|
16
16
|
import { EntitlementClaimOptions } from "better-supabase/blocks/entitlements";
|
|
17
17
|
import { AuthSession } from "better-supabase/server";
|
|
@@ -365,8 +365,8 @@ type PermDockForQuery = {
|
|
|
365
365
|
* The third is the version cache better-supabase passes at runtime, which
|
|
366
366
|
* replaces the `versions` option.
|
|
367
367
|
*/
|
|
368
|
-
type PermDockFor = {
|
|
369
|
-
(source: PermDockForInput, query?: PermDockForQuery | string | null, versions?: VersionCache): Promise<PermDock
|
|
368
|
+
type PermDockFor<V extends PolicyVocabulary = PolicyVocabulary> = {
|
|
369
|
+
(source: PermDockForInput, query?: PermDockForQuery | string | null, versions?: VersionCache): Promise<PermDock<V>>;
|
|
370
370
|
/**
|
|
371
371
|
* The instance options every instance of `versions` (default the `versions`
|
|
372
372
|
* option) is built with: the same object on every call, so an adapter that
|
|
@@ -375,8 +375,8 @@ type PermDockFor = {
|
|
|
375
375
|
*/
|
|
376
376
|
readonly sources: (versions?: VersionCache) => InstanceOptions;
|
|
377
377
|
};
|
|
378
|
-
type PermDockForOptions = {
|
|
379
|
-
readonly policy: Policy
|
|
378
|
+
type PermDockForOptions<V extends PolicyVocabulary = PolicyVocabulary> = {
|
|
379
|
+
readonly policy: Policy<unknown, Principal, V>;
|
|
380
380
|
/** How the verified claims map to a subject. */
|
|
381
381
|
readonly subject?: BetterSupabaseSubjectOptions;
|
|
382
382
|
/**
|
|
@@ -384,7 +384,10 @@ type PermDockForOptions = {
|
|
|
384
384
|
* `claimsFirst(source, { onStale: 'reread', versions })`.
|
|
385
385
|
*/
|
|
386
386
|
readonly memberships?: MembershipSource | readonly MembershipSource[];
|
|
387
|
-
/**
|
|
387
|
+
/**
|
|
388
|
+
* The version `claimsFirst` compares with `authz_ver`; default the
|
|
389
|
+
* source's.
|
|
390
|
+
*/
|
|
388
391
|
readonly version?: MembershipSource["version"];
|
|
389
392
|
/** The process-wide version cache (`createNext({ versions })`). */
|
|
390
393
|
readonly versions?: VersionCache;
|
|
@@ -404,7 +407,7 @@ type PermDockForOptions = {
|
|
|
404
407
|
* through `permdockFor.sources()`, to every other adapter's options, so they
|
|
405
408
|
* share one instance per subject and version.
|
|
406
409
|
*/
|
|
407
|
-
export declare function permdockFor(options: PermDockForOptions): PermDockFor
|
|
410
|
+
export declare function permdockFor<V extends PolicyVocabulary = PolicyVocabulary>(options: PermDockForOptions<V>): PermDockFor<V>;
|
|
408
411
|
/**
|
|
409
412
|
* One `{ allowed, outcome, reason? }` per named check for `input`, from one
|
|
410
413
|
* `permdockFor` instance: frozen plain JSON an island returns from `'use cache:
|
|
@@ -10,31 +10,31 @@ import { r as sha256Digest } from "../sha256-C-4WXKIu.js";
|
|
|
10
10
|
import { t as decideSupportSession } from "../support-session-BsmPCbz8.js";
|
|
11
11
|
import { d as scopeList } from "../scopes-BSdYaGHs.js";
|
|
12
12
|
import { o as flattenGrantee } from "../grantee-Dke-9rd1.js";
|
|
13
|
-
import { n as asApprover } from "../approval-normalize-
|
|
13
|
+
import { n as asApprover } from "../approval-normalize-hlfO9BJv.js";
|
|
14
14
|
import { n as isOperationEffect } from "../operations-Bm9HFecz.js";
|
|
15
15
|
import { r as isSubject, t as anonymousSubject } from "../subject-C7RddW0G.js";
|
|
16
|
-
import { I as decisionTenant } from "../evaluate-
|
|
17
|
-
import { _ as claimsFirst } from "../instance-snapshot-
|
|
16
|
+
import { I as decisionTenant } from "../evaluate-CrKkjgXS.js";
|
|
17
|
+
import { _ as claimsFirst } from "../instance-snapshot-DXxcizAb.js";
|
|
18
18
|
import { a as permissionStates } from "../checks-fyDOhcz0.js";
|
|
19
|
-
import { a as delegatedScopeMap, s as scopesReaching } from "../permdock-
|
|
19
|
+
import { a as delegatedScopeMap, s as scopesReaching } from "../permdock-DeOfonuG.js";
|
|
20
20
|
import { s as ApprovalError } from "../types-CcUXciSj.js";
|
|
21
|
-
import { t as applyApprovalVerdict } from "../store-
|
|
21
|
+
import { t as applyApprovalVerdict } from "../store-CSOsXd5s.js";
|
|
22
22
|
import { i as linkPolicyViolation, n as capabilityOf, r as capabilitySubject } from "../capability-zN6T9fxe.js";
|
|
23
23
|
import { r as credentialSubject, s as parseCredential } from "../credential-B3Hj4puZ.js";
|
|
24
|
-
import {
|
|
24
|
+
import { g as managerKeys, s as resumeDecision } from "../helpers-D-MXwkOF.js";
|
|
25
25
|
import { t as AccessReviewError } from "../errors-BDUwg2qC.js";
|
|
26
26
|
import { t as parseApprovalRequest } from "../parse-request-DOBVaeiQ.js";
|
|
27
27
|
import { n as parseApprovalHeader } from "../approval-header-8QV6MU4H.js";
|
|
28
28
|
import { i as snapshotTag } from "../snapshot-cache-B66h7FBK.js";
|
|
29
|
-
import { t as buildInstance } from "../build-instance-
|
|
29
|
+
import { t as buildInstance } from "../build-instance-DrIbZVnm.js";
|
|
30
30
|
import { n as NO_GRANT } from "../decision-CaG5_eNJ.js";
|
|
31
31
|
import { t as policyRowConditionKeys } from "../row-conditions-BAGHOmVq.js";
|
|
32
|
-
import { n as subscribersFor } from "../audience-
|
|
32
|
+
import { n as subscribersFor } from "../audience-GCXRRAeZ.js";
|
|
33
33
|
import { i as qualifySqlTable, l as sqlIdent, s as quoteSqlLiteral } from "../sql-0WjxIp9g.js";
|
|
34
34
|
import { o as junctionMembershipSource } from "../sources-C4vkzZJV.js";
|
|
35
35
|
import { c as subjectFromSupabaseSession, t as callRpc } from "../postgrest-BrjrckDG.js";
|
|
36
36
|
import { n as parseSupabaseManifest, t as hasTokenHook } from "../manifest-BdzBobNK.js";
|
|
37
|
-
import { t as parseCatalog } from "../parse-
|
|
37
|
+
import { t as parseCatalog } from "../parse-CXTT7hBq.js";
|
|
38
38
|
import { n as activeTenantMismatch, t as activeOrganizationFrom } from "../active-tenant-DVee32-T.js";
|
|
39
39
|
import { AsyncResult, dbError } from "better-supabase";
|
|
40
40
|
//#region src/better-supabase/access-reviews.ts
|
|
@@ -1243,7 +1243,7 @@ function isApproverTemplate(input) {
|
|
|
1243
1243
|
return { problems };
|
|
1244
1244
|
}
|
|
1245
1245
|
if (!input.rootTenant) problems.push(`The tenant scope "${input.tenantScope}" is not a root scope, and ${IS_APPROVER} checks holder() approvers at the root scope, so they match nobody.`);
|
|
1246
|
-
const otherwise = current ? `${fn}(null::jsonb, ({tenant})::text, ({requester})::text, split_part({kind}, '.', 1)${passed})` : "false";
|
|
1246
|
+
const otherwise = current ? `${fn}(null::jsonb, ({tenant})::text, ({requester})::text, pg_catalog.split_part({kind}, '.', 1)${passed})` : "false";
|
|
1247
1247
|
return {
|
|
1248
1248
|
template: branches.length === 0 ? otherwise : `case {kind} ${branches.join(" ")} else ${otherwise} end`,
|
|
1249
1249
|
requires: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as isRecord } from "./compact-CAf557ZB.js";
|
|
2
2
|
import "./budget-BBCPDOGP.js";
|
|
3
3
|
import { existsSync, readFileSync, readdirSync, statSync } from "node:fs";
|
|
4
|
-
import { resolve } from "node:path";
|
|
4
|
+
import { dirname, join, resolve } from "node:path";
|
|
5
5
|
//#region src/cli/shared/doctor-files.ts
|
|
6
6
|
const nodeFiles = Object.freeze({
|
|
7
7
|
exists: (path) => existsSync(path),
|
|
@@ -17,6 +17,35 @@ function readJson(files, path) {
|
|
|
17
17
|
return JSON.parse(files.read(path));
|
|
18
18
|
}
|
|
19
19
|
//#endregion
|
|
20
|
+
//#region src/cli/shared/workspace.ts
|
|
21
|
+
/**
|
|
22
|
+
* The directories from `cwd` up to the workspace root: the first one with a
|
|
23
|
+
* `pnpm-workspace.yaml`, a `package.json` that declares `workspaces`, or a
|
|
24
|
+
* `.git`. Skills are often installed once at a monorepo's root.
|
|
25
|
+
*/
|
|
26
|
+
function workspaceDirs(files, cwd) {
|
|
27
|
+
const dirs = [];
|
|
28
|
+
let dir = resolve(cwd);
|
|
29
|
+
for (;;) {
|
|
30
|
+
dirs.push(dir);
|
|
31
|
+
if (isWorkspaceRoot(files, dir)) return dirs;
|
|
32
|
+
const parent = dirname(dir);
|
|
33
|
+
if (parent === dir) return [resolve(cwd)];
|
|
34
|
+
dir = parent;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
function isWorkspaceRoot(files, dir) {
|
|
38
|
+
if (files.exists(join(dir, "pnpm-workspace.yaml")) || files.exists(join(dir, ".git"))) return true;
|
|
39
|
+
const manifest = join(dir, "package.json");
|
|
40
|
+
if (!files.exists(manifest)) return false;
|
|
41
|
+
try {
|
|
42
|
+
const parsed = readJson(files, manifest);
|
|
43
|
+
return parsed !== null && typeof parsed === "object" && Object.hasOwn(parsed, "workspaces");
|
|
44
|
+
} catch {
|
|
45
|
+
return false;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
//#endregion
|
|
20
49
|
//#region src/cli/project/better-supabase.ts
|
|
21
50
|
const CONFIG_FILES = [
|
|
22
51
|
"better-supabase.config.ts",
|
|
@@ -24,10 +53,15 @@ const CONFIG_FILES = [
|
|
|
24
53
|
"better-supabase.config.js",
|
|
25
54
|
"better-supabase.config.mjs"
|
|
26
55
|
];
|
|
27
|
-
/**
|
|
56
|
+
/**
|
|
57
|
+
* The default export of the nearest `better-supabase.config.*`, if it loads.
|
|
58
|
+
* The search starts in `from` (default `cwd`), the directory of
|
|
59
|
+
* `permdock.config.ts`, and goes up to the workspace root, so an app inside a
|
|
60
|
+
* monorepo finds the root's config.
|
|
61
|
+
*/
|
|
28
62
|
async function betterSupabaseConfig(input) {
|
|
29
63
|
const files = filesOf(input);
|
|
30
|
-
const path = CONFIG_FILES.map((name) => resolve(
|
|
64
|
+
const path = workspaceDirs(files, input.from ?? input.cwd).flatMap((dir) => CONFIG_FILES.map((name) => resolve(dir, name))).find((file) => files.exists(file));
|
|
31
65
|
if (path === void 0) return;
|
|
32
66
|
try {
|
|
33
67
|
const { loadModule } = await import("./load-CjnlPxpL.js");
|
|
@@ -85,4 +119,4 @@ function betterSupabaseDefaults(config, betterSupabase) {
|
|
|
85
119
|
};
|
|
86
120
|
}
|
|
87
121
|
//#endregion
|
|
88
|
-
export {
|
|
122
|
+
export { workspaceDirs as a, readJson as c, betterSupabaseTenantClaim as i, betterSupabaseConfig as n, filesOf as o, betterSupabaseDefaults as r, nodeFiles as s, betterSupabaseAuthzVersions as t };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as compact } from "./compact-CAf557ZB.js";
|
|
2
|
-
import { l as withApp } from "./permdock-
|
|
2
|
+
import { l as withApp } from "./permdock-DeOfonuG.js";
|
|
3
3
|
import { t as composeWraps } from "./wrap-C5PWzgkq.js";
|
|
4
|
-
import { r as instanceOptions } from "./build-instance-
|
|
5
|
-
import { f as invalidSignatureResponse } from "./evaluations-
|
|
4
|
+
import { r as instanceOptions } from "./build-instance-DrIbZVnm.js";
|
|
5
|
+
import { f as invalidSignatureResponse } from "./evaluations-CNMVJVD6.js";
|
|
6
6
|
import { n as tenantScope } from "./adapter-context-OHikyRqV.js";
|
|
7
|
-
import { t as createPermDock } from "./create-
|
|
7
|
+
import { t as createPermDock } from "./create-CegYmYHu.js";
|
|
8
8
|
//#region src/server/bind.ts
|
|
9
9
|
/**
|
|
10
10
|
* The server kernel with the subject and actor callbacks reading the context
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { m as ApprovalStore } from "./types
|
|
3
|
-
import { t as InstanceOptions } from "./instance-options-
|
|
1
|
+
import { Q as Intent, xr as Subject } from "./policy-types-Ky7P23CP.js";
|
|
2
|
+
import { m as ApprovalStore } from "./types--HfnkawU.js";
|
|
3
|
+
import { t as InstanceOptions } from "./instance-options-D6hyIKJF.js";
|
|
4
4
|
import { t as RequestContext } from "./request-context-C2_1lchh.js";
|
|
5
|
-
import { n as PermDockWrap } from "./wrap-
|
|
6
|
-
import { o as OtelWrap } from "./types-
|
|
7
|
-
import { r as PdpFactory } from "./types-
|
|
8
|
-
import { S as TenantOption, _ as WebBotAuthVerifier, t as DeniedResponse } from "./server-types-
|
|
5
|
+
import { n as PermDockWrap } from "./wrap-C-4o-Dpy.js";
|
|
6
|
+
import { o as OtelWrap } from "./types-g0Vk9k2c.js";
|
|
7
|
+
import { r as PdpFactory } from "./types-BVn1w_0o.js";
|
|
8
|
+
import { S as TenantOption, _ as WebBotAuthVerifier, t as DeniedResponse } from "./server-types-CwpJe664.js";
|
|
9
9
|
//#region src/server/bind.d.ts
|
|
10
10
|
/**
|
|
11
11
|
* The options of every framework adapter; `TContext` is what its callbacks
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { o as statusProblem } from "./problem-details-CLDgX1KV.js";
|
|
2
2
|
import { t as MAX_BODY_BYTES } from "./body-text-DQhcmqdY.js";
|
|
3
|
-
import { l as problemResponse } from "./problem-
|
|
3
|
+
import { l as problemResponse } from "./problem-BWP1l86g.js";
|
|
4
4
|
//#region src/server/body.ts
|
|
5
5
|
/** The 413 Problem Details for a body over `maxBytes`. */
|
|
6
6
|
function bodyTooLarge(maxBytes = MAX_BODY_BYTES) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _t as TokenSigner, qt as Instant, yr as Principal } from "./policy-types-Ky7P23CP.js";
|
|
2
2
|
import { f as PermissionTree, u as Permission } from "./permission-types-CAY-GU7e.js";
|
|
3
3
|
//#region src/core/capability.d.ts
|
|
4
4
|
/**
|