permdock 0.22.1 → 0.24.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 +4 -4
- package/dist/{adoption-scan-DzX5Gqcg.js → adoption-scan-CNoE5yBA.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 +2 -2
- package/dist/app/index.d.ts +6 -6
- package/dist/app/index.js +4 -4
- package/dist/{approval-normalize-DNLW0zOM.js → approval-normalize-KfhzpD93.js} +1 -1
- package/dist/{approval-policies-UnDSxT__.d.ts → approval-policies-D7moEfTM.d.ts} +1 -1
- package/dist/{approval-prompt-2hTqo6IM.d.ts → approval-prompt-DtfKSH-8.d.ts} +1 -1
- package/dist/approvals/index.d.ts +3 -3
- package/dist/approvals/index.js +3 -3
- package/dist/{approvals-B_sn4Wrn.js → approvals-BfzI8Foe.js} +5 -5
- package/dist/{arazzo-BkjyGVF0.js → arazzo-4rMFOHbu.js} +1 -1
- package/dist/{arazzo-CTx11zFc.js → arazzo-rsYPFgga.js} +2 -2
- package/dist/astro/index.d.ts +4 -4
- package/dist/astro/index.js +2 -2
- package/dist/{audience-5Xx1hdIv.js → audience-N2BqOvES.js} +1 -1
- package/dist/authzen/index.d.ts +5 -5
- package/dist/authzen/index.js +3 -3
- package/dist/{automation-B20_8UoT.d.ts → automation-CrGcfIZn.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 +61 -23
- package/dist/better-supabase/index.js +87 -35
- package/dist/{bind-B4Z0U2Gr.js → bind-Cx10JuJ-.js} +3 -3
- package/dist/{bind-CnOMjazH.d.ts → bind-N5jf6kjk.d.ts} +7 -7
- package/dist/{body-B3ylkmmE.js → body-Cy9S8zhw.js} +1 -1
- package/dist/{build-instance-B0vsViF5.js → build-instance-BDGzsGcn.js} +1 -1
- package/dist/{capability-YkRMUAsF.d.ts → capability-mLbd3KZ0.d.ts} +1 -1
- package/dist/{casbin-BFOuRptJ.js → casbin-CjUT-wqV.js} +1 -1
- package/dist/{casbin-BpS9ABSO.js → casbin-Dg5N0Gfa.js} +1 -1
- package/dist/catalog/index.d.ts +4 -4
- package/dist/catalog/index.js +5 -5
- package/dist/{catalog-Y4CjN8NA.js → catalog-BJu0A15r.js} +2 -2
- package/dist/{catalog-CoyKnU5c.js → catalog-CgA6-DQA.js} +1 -1
- package/dist/catalog-DqYnQz8U.js +1 -0
- package/dist/{catalog-doc-Zi0jRpyH.js → catalog-doc-BoSOQRXT.js} +2 -2
- package/dist/{challenge-B__LcNve.js → challenge-DVw1SrH9.js} +1 -1
- package/dist/chat/index.d.ts +1 -1
- package/dist/chat/index.js +3 -3
- package/dist/chat-sdk/index.d.ts +3 -3
- package/dist/claude-agent/index.d.ts +3 -3
- package/dist/claude-agent/index.js +1 -1
- package/dist/clerk/index.d.ts +2 -2
- package/dist/cli/bin.js +1 -1
- package/dist/cli/index.d.ts +4 -4
- package/dist/cli/index.js +2 -2
- package/dist/cloud/index.d.ts +8 -8
- package/dist/cloud/index.js +2 -2
- package/dist/{cloud-DXcQXWDi.js → cloud-Blw4AaQv.js} +2 -2
- package/dist/{codemod-CxyKuniX.js → codemod-BFFXaS-S.js} +1 -1
- package/dist/{codemod-DJ0WqXWk.js → codemod-ByRUKVp-.js} +2 -2
- package/dist/{collect-ScSG05VJ.js → collect-COqPRz6O.js} +2 -2
- package/dist/collect-CjFczu8a.js +1 -0
- package/dist/{collect-Cr71JA7z.js → collect-D3ToPa6Z.js} +1 -1
- package/dist/compile/index.d.ts +1 -1
- package/dist/{compile-DC-BrhH1.d.ts → compile-DSwZUJmL.d.ts} +2 -2
- package/dist/{completion-BHVvAJ6Q.js → completion-BW53byZN.js} +1 -1
- package/dist/{config-2grt3oll.js → config-B0qti4jI.js} +1 -1
- package/dist/{config-report-Cg5Y5j0h.js → config-report-DgMqeeK6.js} +2 -2
- package/dist/{context-Cem4QafV.js → context-KrAhRY22.js} +2 -2
- package/dist/convex/index.d.ts +4 -4
- package/dist/convex/index.js +1 -1
- package/dist/{core-CUjhfz0W.js → core-DMQsq2Gv.js} +5 -5
- package/dist/{core-D2JNg5jA.d.ts → core-KsoqXWhf.d.ts} +2 -2
- package/dist/{create-BsL5lCWR.js → create-BRr7Gu7N.js} +6 -6
- package/dist/{create-oMCcZV4X.d.ts → create-ChK8bpCK.d.ts} +7 -7
- package/dist/{create-CPDSbK1a.d.ts → create-DGFv7Dje.d.ts} +4 -4
- package/dist/{create-BJ2_8NDO.js → create-bYkJ4-tg.js} +3 -3
- package/dist/{create-B2tdOygC.d.ts → create-goT32QIN.d.ts} +6 -6
- package/dist/{credential-Bap3HClV.js → credential-DrVrRL7z.js} +2 -2
- package/dist/{credentials-BXV0oz56.js → credentials-UwTE2wCW.js} +1 -1
- package/dist/{credentials-DPX140fN.d.ts → credentials-fqa_Xzzh.d.ts} +2 -2
- package/dist/{condition-evaluate-bVVRSdzq.js → delegation-CrdqnesZ.js} +123 -156
- package/dist/delivery/index.d.ts +4 -4
- package/dist/delivery/index.js +1 -1
- package/dist/{denied-text-BXQkWU7d.d.ts → denied-text-BTMxIn5W.d.ts} +1 -1
- package/dist/{describe-DVobr5FX.d.ts → describe-CazEjtOH.d.ts} +1 -1
- package/dist/{diff-Jc_kbDz-.js → diff-BkuW_5dK.js} +1 -1
- package/dist/{diff-BR9JArxz.js → diff-DLcsCeVo.js} +3 -3
- package/dist/{doctor-iIbdUK8F.js → doctor-Jk2Ifezw.js} +2 -2
- package/dist/{doctor-DaRoSPT0.js → doctor-oD08zL1e.js} +37 -19
- package/dist/drizzle/index.d.ts +3 -3
- package/dist/elysia/index.d.ts +4 -4
- package/dist/elysia/index.js +3 -3
- package/dist/{errors-D_JIQJYb.d.ts → errors-CXxQwtbZ.d.ts} +1 -1
- package/dist/{evaluate-B5yZHmts.js → evaluate-_JdlbJ32.js} +11 -8
- package/dist/{evaluations-BzTDWO4m.js → evaluations-Bj5xw0EM.js} +3 -3
- package/dist/{evaluations-DQYfh4Jh.d.ts → evaluations-DcUW5VkX.d.ts} +3 -3
- package/dist/evaluator-BvRk9kiK.js +0 -0
- package/dist/evaluator-eager-DvmrpdZt.js +9 -0
- package/dist/evaluator-mHAoYEkk.js +2 -0
- package/dist/eve/index.d.ts +4 -4
- package/dist/eve/index.js +2 -2
- 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-MoYZ-vF5.js → fetch-adapter-CAA3VJMX.js} +3 -3
- package/dist/{fetch-adapter-DxqsIXSO.d.ts → fetch-adapter-eQ-mdk8n.d.ts} +2 -2
- package/dist/{fields-CVyOk-f1.js → fields-B17OWcPx.js} +1 -1
- package/dist/fields-DlKwZYiy.js +26 -0
- package/dist/from-snapshot-CdGYjHUg.js +153 -0
- package/dist/{gen-Cw8goef4.js → gen-BwcwwLok.js} +3 -3
- package/dist/{gen-DFpWGJWF.js → gen-D4ulqsYR.js} +1 -1
- package/dist/grantee-OG4klcNr.js +110 -0
- package/dist/{grantee-match-8J2y60MF.js → grantee-match-CPQ9zV-H.js} +1 -1
- package/dist/h3/index.d.ts +4 -4
- package/dist/h3/index.js +3 -3
- package/dist/{helpers-DzBIfL1N.js → helpers-CO2hDpBU.js} +1 -1
- package/dist/hono/index.d.ts +4 -4
- package/dist/hono/index.js +3 -3
- package/dist/{hosted-DXq1plaP.d.ts → hosted-BUCpV8-u.d.ts} +1 -1
- package/dist/{hosted-C5I2TSXm.js → hosted-cPDyrlsQ.js} +5 -4
- package/dist/{import-CvXswHDy.js → import-B2jgnNS0.js} +1 -1
- package/dist/{import-DDegvwDI.js → import-BsrnU4BF.js} +1 -1
- package/dist/{index-C-R8lBPb.d.ts → index-BXS29UnX.d.ts} +1 -1
- package/dist/{index-BcS8c_2S.d.ts → index-CvKGALWb.d.ts} +4 -4
- package/dist/{index-BdZpqhJK.d.ts → index-CxA-ygwc.d.ts} +2 -2
- package/dist/{index-Cjfa1Uwr.d.ts → index-DD2FBFdm.d.ts} +10 -8
- package/dist/{index-iIsqXFVu.d.ts → index-DQCBzEhO.d.ts} +4 -4
- package/dist/{index-C_8uxAlv.d.ts → index-DYAJ9JX1.d.ts} +4 -4
- package/dist/index.d.ts +16 -16
- package/dist/index.js +21 -18
- package/dist/{init-D_T_zgFg.js → init-Baq0yYfu.js} +1 -1
- package/dist/{init-Dz552ZPp.js → init-Cik6ITgM.js} +3 -3
- package/dist/{instance-options-C6gEDOts.d.ts → instance-options-BDHB3qBG.d.ts} +1 -1
- package/dist/{instance-snapshot-D_dGTq--.js → instance-snapshot-LPNBG9np.js} +67 -8
- package/dist/jwt/index.d.ts +4 -4
- package/dist/{kernel-NmxiWII2.js → kernel-BY3rVRs2.js} +8 -8
- package/dist/kysely/index.d.ts +3 -3
- package/dist/{login-DIVe6QdP.js → login-CUboKh0f.js} +3 -3
- package/dist/{login-B2usNw0X.js → login-CcBS1xkU.js} +1 -1
- package/dist/{manifest-D44OkoLk.js → manifest-BoCYBbQL.js} +1 -1
- package/dist/{manifest-CbHnl4I_.js → manifest-CIlVL-QT.js} +35 -35
- package/dist/{manifest-schema-DUheHWcp.js → manifest-schema-svAkgqMc.js} +1 -1
- package/dist/{map-error-p4ROJ_26.js → map-error-BCdb2Nrp.js} +2 -2
- package/dist/may-use-D0_wNcgB.js +126 -0
- package/dist/mcp/index.d.ts +8 -8
- package/dist/mcp/index.js +5 -5
- package/dist/membership-filter-CfLdP_F9.js +68 -0
- package/dist/nest/index.d.ts +4 -4
- package/dist/nest/index.js +3 -3
- package/dist/next/index.d.ts +10 -10
- package/dist/next/index.js +6 -6
- 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 +2 -2
- package/dist/openapi/index.d.ts +2 -2
- package/dist/{openapi-5moP9sTG.js → openapi-DglIpD53.js} +2 -2
- package/dist/{openapi-DcvNnLFa.js → openapi-DobvXTF6.js} +2 -2
- package/dist/orpc/index.d.ts +5 -5
- package/dist/orpc/index.js +3 -3
- package/dist/otel/index.d.ts +3 -3
- package/dist/otel/index.js +1 -1
- package/dist/{output-RIUEs3_S.js → output-B81GJ6u6.js} +1 -1
- package/dist/{ownership-adPAsUwY.js → ownership-B7Ea-hUY.js} +3 -3
- package/dist/{parse-local-manifest-BaCqsqwC.d.ts → parse-local-manifest-DzZOzDsK.d.ts} +1 -1
- package/dist/pdp/index.d.ts +3 -3
- package/dist/pdp/index.js +3 -3
- package/dist/{permdock-B5LyNVgn.js → permdock-HfTF99xX.js} +26 -15
- package/dist/{permdock-BaB-KQqn.d.ts → permdock-vD3mwLSm.d.ts} +3 -3
- package/dist/{permissions-COpRGKt7.js → permissions-CGYZqYsY.js} +2 -2
- package/dist/{policy-x8RBKW8d.d.ts → policy-B_cqFLHu.d.ts} +1 -1
- package/dist/{policy-wGzbAPQF.js → policy-BovcTojN.js} +5 -4
- package/dist/{policy-from-catalog-Cy103lsm.js → policy-from-catalog-lKL280I8.js} +7 -7
- package/dist/{policy-types-rNfz7t0M.d.ts → policy-types-CCBrL7me.d.ts} +14 -0
- package/dist/{postgrest-Cn0Res25.d.ts → postgrest-5WOO47Ud.d.ts} +2 -2
- package/dist/{powersync-C5_aFFaU.js → powersync-B6f4l8C1.js} +2 -2
- package/dist/{powersync-BUO5uQve.js → powersync-BUUqJfH2.js} +6 -6
- package/dist/powersync-D12Q6Chj.js +1 -0
- package/dist/prisma/index.d.ts +2 -2
- package/dist/{protected-action-E7Sdt_Dt.js → protected-action-BWvZjjyt.js} +83 -12
- package/dist/{protected-action-C4aj1KjO.d.ts → protected-action-DGuJNiMA.d.ts} +20 -8
- package/dist/provider-B085HEOf.js +12 -0
- package/dist/{provider-store-D4PU1my_.js → provider-store-BLd4UEmg.js} +4 -3
- package/dist/{provider-DKO9KHua.js → provider-with-DobrMx1N.js} +6 -6
- package/dist/{provider-B-1DlOGM.d.ts → provider-yIM04TwN.d.ts} +1 -1
- package/dist/{pull-BkT7tTKb.js → pull-4Yi8zYeU.js} +3 -3
- package/dist/pull-Dr6Bq5Jo.js +1 -0
- package/dist/{push-CEPcWdTJ.js → push-Dv1nfFPr.js} +3 -3
- package/dist/{pushed-policy-P55cJNx5.d.ts → pushed-policy-B2ZSpnRY.d.ts} +1 -1
- package/dist/{pushed-policy-Bi5-il4C.js → pushed-policy-DJoyBZsd.js} +2 -2
- package/dist/react/index.d.ts +7 -7
- package/dist/react/index.js +4 -4
- package/dist/react/lazy.d.ts +12 -0
- package/dist/react/lazy.js +36 -0
- package/dist/react/provider-client.d.ts +1 -1
- package/dist/react/provider-client.js +1 -1
- package/dist/react-native/index.d.ts +8 -8
- package/dist/react-native/index.js +7 -6
- package/dist/{replay-DKhFvt0L.d.ts → replay-CsErjiHt.d.ts} +1 -1
- package/dist/{request-context-5gl_oxO1.js → request-context-B_L4ev8L.js} +2 -2
- package/dist/resend/index.d.ts +4 -4
- package/dist/resend/index.js +2 -2
- package/dist/{resolve-names-bzYlAXRt.js → resolve-names-SGcLjtFc.js} +2 -2
- package/dist/{rls-v6V75yf_.js → rls-Df9NEWD3.js} +1 -1
- package/dist/{rls-DTf8X__h.js → rls-hmwRIS3-.js} +11 -11
- package/dist/{role-builder-boQiUvfo.js → role-builder-BXdhhQcB.js} +5 -3
- package/dist/row-pair-DglMdRFh.js +34 -0
- package/dist/{rpc-BqRiVpbP.d.ts → rpc-D3St8vPO.d.ts} +1 -1
- package/dist/{rpc-Dhi55Whd.js → rpc-DFtputZ1.js} +1 -1
- package/dist/{run-CgSQS9RF.js → run-BXmJIjRA.js} +2 -2
- package/dist/run-DnzrDgU-.js +1 -0
- package/dist/{run-ticket-Dulj4RQk.d.ts → run-ticket-zfABczfh.d.ts} +2 -2
- package/dist/{saas-DABv6vjy.js → saas-DIThcxbn.js} +5 -5
- package/dist/{scan-BY3Pp1PS.js → scan-BrTSlc_5.js} +1 -1
- package/dist/{schema-B_HsJKm2.js → schema-UOeI_LTB.js} +1 -1
- package/dist/scim/index.d.ts +1 -1
- package/dist/server/index.d.ts +11 -11
- package/dist/server/index.js +5 -5
- package/dist/{server-types--_Hann81.d.ts → server-types-CtJSDhOv.d.ts} +8 -8
- package/dist/{sink-Cs6z34AX.d.ts → sink-BskpqwLl.d.ts} +2 -2
- package/dist/{skills-Bj2wk38p.js → skills-BTVeFptV.js} +1 -1
- package/dist/{skills-Clo4qYLn.js → skills-CAgWKbDR.js} +1 -1
- package/dist/{snapshot-C2j96x97.js → snapshot-BcHYtUIg.js} +57 -7
- package/dist/{snapshot-cache-Cc7VNabe.d.ts → snapshot-cache-BnXMcJbK.d.ts} +1 -1
- package/dist/snapshot-empty-BoPBFoB8.js +17 -0
- package/dist/snapshot-evaluate-CwYVSUgO.js +501 -0
- package/dist/snapshot-reads-DOsTYC82.js +66 -0
- package/dist/solid/index.d.ts +5 -5
- package/dist/solid/index.js +2 -2
- package/dist/solid-start/index.d.ts +4 -4
- package/dist/solid-start/index.js +3 -3
- package/dist/{sources-CdYZBVcW.d.ts → sources-DhCtO9G8.d.ts} +1 -1
- package/dist/{src-BG9YJM3Q.js → src-BZKQe1lr.js} +13 -12
- package/dist/ssf/index.d.ts +3 -3
- package/dist/ssf/index.js +2 -2
- package/dist/{standard-webhooks-CJBgfl7y.d.ts → standard-webhooks-kQDkIPj3.d.ts} +2 -2
- package/dist/{store-BpKH-pLm.js → store-DXO0aVgf.js} +2 -2
- package/dist/{store-DSyjHD5-.d.ts → store-core-CDabEiO9.d.ts} +27 -6
- package/dist/{store-options-CXv6BHH6.js → store-options-COLWAd1K.js} +92 -12
- package/dist/{stores-BuqAHjp_.js → stores-DYxx75fk.js} +1 -1
- package/dist/{stores-C6-7TPTV.d.ts → stores-Mw_VAJ3B.d.ts} +5 -5
- package/dist/{subject-cache-d_Z4KAnm.d.ts → subject-cache-DrJGnRiV.d.ts} +1 -1
- package/dist/supabase/index.d.ts +6 -6
- package/dist/supabase/index.js +2 -2
- package/dist/supabase/middleware.d.ts +5 -5
- package/dist/supabase/middleware.js +5 -5
- package/dist/{supabase-DnazO6W4.js → supabase-BDr-fIHp.js} +1 -1
- package/dist/{supabase-CJv6K3iz.js → supabase-Bt8rb-ah.js} +2 -2
- package/dist/{supabase-hook-DLQMugW8.js → supabase-hook-Cb3UZpGC.js} +6 -5
- package/dist/supabase-hook-D1pwHu87.js +1 -0
- package/dist/{supautils-BHKsP7l-.js → supautils-CuR9rPsi.js} +8 -8
- 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-CbEOy2Ma.js → tables-Bl_ozD0k.js} +35 -13
- 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 +3 -3
- package/dist/testing/core.d.ts +1 -1
- package/dist/testing/core.js +1 -1
- package/dist/testing/fixtures/index.d.ts +3 -3
- package/dist/testing/fixtures/index.js +7 -1
- package/dist/testing/index.d.ts +23 -23
- package/dist/testing/index.js +47 -41
- 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 +5 -5
- package/dist/trpc/index.js +3 -3
- package/dist/{type-helpers-iXJEIDe7.d.ts → type-helpers-fQdBvtU0.d.ts} +1 -1
- package/dist/{types-BpxdxaRD.d.ts → types-BSGrzDPi.d.ts} +4 -4
- package/dist/{types-cNZhj0UF.d.ts → types-B_s1oQaF.d.ts} +2 -2
- package/dist/{types-ZfjQB0KC.d.ts → types-CAp7UGiB.d.ts} +1 -1
- package/dist/{types-CD1qmxdx.d.ts → types-CErg7ft6.d.ts} +3 -3
- package/dist/{types-_pi9kxS2.d.ts → types-CXUwgZ3d.d.ts} +2 -2
- package/dist/{types-C_a44wSr.d.ts → types-Cc68_zqR.d.ts} +2 -2
- package/dist/{types-Cq2rvv-C.d.ts → types-CdXM6qPc.d.ts} +2 -2
- package/dist/{types-BSNZMp5b.d.ts → types-ChYCRn7Y.d.ts} +1 -1
- package/dist/{types-CuDXvyIT.d.ts → types-DDlaFDM3.d.ts} +4 -4
- package/dist/{types-NikV1pND.d.ts → types-DM0o1YyJ.d.ts} +4 -4
- package/dist/{types-B9F0EZAF.d.ts → types-DyA4Loy4.d.ts} +3 -3
- package/dist/unplugin/index.d.ts +1 -1
- package/dist/unplugin/index.js +1 -1
- package/dist/{usage-DlOllyPi.js → usage-B6sQwycY.js} +4 -4
- package/dist/{usage-BUUXeKwk.js → usage-CNkKk27O.js} +1 -1
- package/dist/usage-Cem1FOeJ.js +1 -0
- package/dist/{validation-error-DLAYFlkr.d.ts → validation-error-BE8bpmhR.d.ts} +1 -1
- package/dist/{validity-Buc7w8E9.js → validity-IcjQSR7I.js} +1 -26
- package/dist/{verify-CfmvQjVw.js → verify-OtU4yCzg.js} +11 -11
- package/dist/{version-sources-BC3hf2ME.js → version-sources-BZ7V6Z8Z.js} +1 -1
- package/dist/{grantee-Dke-9rd1.js → vocabulary-BuYFWeCU.js} +1 -107
- package/dist/vue/index.d.ts +5 -5
- package/dist/vue/index.js +2 -2
- package/dist/{waiter-cbK1CBhT.d.ts → waiter-LdnPaBJE.d.ts} +2 -2
- package/dist/watch-B8F7Wgdy.js +1 -0
- package/dist/{watch-BigZ260i.js → watch-CR2ZIT_5.js} +1 -1
- package/dist/webmcp/index.d.ts +1 -1
- package/dist/{who-can-CjfMP9a4.js → who-can-DcrHB6ya.js} +2 -2
- 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-B-k2qHJx.d.ts → wrap-CVBPIuEs.d.ts} +2 -2
- package/package.json +8 -4
- package/schemas/supabase-manifest-v1.json +1 -1
- package/skills/permdock-wire/references/adapters.md +2 -0
- package/dist/catalog-C462QC3A.js +0 -1
- package/dist/collect-W9i7REKT.js +0 -1
- package/dist/from-snapshot-oR_N97dM.js +0 -927
- package/dist/powersync-DhspazC8.js +0 -1
- package/dist/pull-COPm1W-l.js +0 -1
- package/dist/run-ItR_bQGz.js +0 -1
- package/dist/supabase-hook-vZADjjfN.js +0 -1
- package/dist/usage-NmH5QXKC.js +0 -1
- package/dist/watch-CHURMgrv.js +0 -1
- package/dist/{connection-QFsv-kbh.js → connection-zoAgwdsD.js} +1 -1
- package/dist/{problem-BWP1l86g.js → problem-CPB8kqk7.js} +1 -1
- package/dist/{wrap-BKU5Arsu.js → wrap-C5PWzgkq.js} +1 -1
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import { r as isRecord, t as compact } from "../compact-CAf557ZB.js";
|
|
2
2
|
import { n as freezeDeep } from "../freeze-jjan0lCv.js";
|
|
3
3
|
import { a as flattenApprovers, i as approverManagerKey, o as holder, r as approverLeaves } from "../approvers-BaNwKYgd.js";
|
|
4
|
-
import { a as permissionStates } from "../checks-fyDOhcz0.js";
|
|
5
|
-
import { t as loadPrincipal } from "../principal-source-C6N60GtM.js";
|
|
6
4
|
import { c as listPermissions, n as findPermission, o as isPermission } from "../permission-registry-B8tYxPIt.js";
|
|
7
|
-
import { o as flattenGrantee } from "../grantee-
|
|
5
|
+
import { o as flattenGrantee } from "../grantee-OG4klcNr.js";
|
|
8
6
|
import { i as dateAt, m as rfc3339, p as nowSeconds, u as isoAt } from "../time-nR1JesoH.js";
|
|
9
7
|
import { r as isId, t as idList } from "../ids-DzhJaCUj.js";
|
|
10
8
|
import { d as scopeList } from "../scopes-gdH__vDZ.js";
|
|
11
9
|
import { t as canonicalJson } from "../canonical-json-DwilZ1iB.js";
|
|
12
10
|
import { r as sha256Digest } from "../sha256-C-4WXKIu.js";
|
|
13
|
-
import { a as delegatedScopeMap, s as scopesReaching } from "../permdock-
|
|
11
|
+
import { a as delegatedScopeMap, s as scopesReaching } from "../permdock-HfTF99xX.js";
|
|
12
|
+
import { t as loadPrincipal } from "../principal-source-C6N60GtM.js";
|
|
14
13
|
import { t as decideSupportSession } from "../support-session-BGeEYDSq.js";
|
|
15
|
-
import { n as asApprover } from "../approval-normalize-
|
|
14
|
+
import { n as asApprover } from "../approval-normalize-KfhzpD93.js";
|
|
16
15
|
import { n as isOperationEffect } from "../operations-Bm9HFecz.js";
|
|
17
16
|
import { r as isSubject, t as anonymousSubject } from "../subject-C7RddW0G.js";
|
|
18
|
-
import { I as decisionTenant } from "../evaluate-
|
|
17
|
+
import { I as decisionTenant } from "../evaluate-_JdlbJ32.js";
|
|
19
18
|
import { n as readSubjectRecord } from "../subject-cache-BT1fGuea.js";
|
|
19
|
+
import { a as permissionStates } from "../checks-fyDOhcz0.js";
|
|
20
20
|
import { n as appOf } from "../app-DIvM65Mv.js";
|
|
21
21
|
import { i as linkPolicyViolation, n as capabilityOf, r as capabilitySubject } from "../capability-CenWwTMR.js";
|
|
22
|
-
import { r as credentialSubject, s as parseCredential } from "../credential-
|
|
22
|
+
import { r as credentialSubject, s as parseCredential } from "../credential-DrVrRL7z.js";
|
|
23
23
|
import { s as ApprovalError } from "../types-CcUXciSj.js";
|
|
24
|
-
import { t as applyApprovalVerdict } from "../store-
|
|
24
|
+
import { t as applyApprovalVerdict } from "../store-DXO0aVgf.js";
|
|
25
25
|
import { t as instanceOptions } from "../instance-options-URVwqpMW.js";
|
|
26
|
-
import { t as versionSources } from "../version-sources-
|
|
27
|
-
import { t as buildInstance } from "../build-instance-
|
|
26
|
+
import { t as versionSources } from "../version-sources-BZ7V6Z8Z.js";
|
|
27
|
+
import { t as buildInstance } from "../build-instance-BDGzsGcn.js";
|
|
28
28
|
import { n as NO_GRANT } from "../decision-CaG5_eNJ.js";
|
|
29
29
|
import { n as parseApprovalHeader } from "../approval-header-8QV6MU4H.js";
|
|
30
|
-
import { h as managerKeys, s as resumeDecision } from "../helpers-
|
|
30
|
+
import { h as managerKeys, s as resumeDecision } from "../helpers-CO2hDpBU.js";
|
|
31
31
|
import { t as AccessReviewError } from "../errors-BDUwg2qC.js";
|
|
32
32
|
import { t as parseApprovalRequest } from "../parse-request-DOBVaeiQ.js";
|
|
33
33
|
import { i as snapshotTag } from "../snapshot-cache-B66h7FBK.js";
|
|
34
34
|
import { t as policyRowConditionKeys } from "../row-conditions-BAGHOmVq.js";
|
|
35
|
-
import { n as subscribersFor } from "../audience-
|
|
35
|
+
import { n as subscribersFor } from "../audience-N2BqOvES.js";
|
|
36
36
|
import { i as qualifySqlTable, l as sqlIdent, s as quoteSqlLiteral } from "../sql-0WjxIp9g.js";
|
|
37
37
|
import { o as junctionMembershipSource } from "../sources-C4vkzZJV.js";
|
|
38
38
|
import { a as callRpc, i as subjectFromSupabaseSession } from "../subject-BqFwS6l3.js";
|
|
39
|
-
import { n as parseSupabaseManifest, t as hasTokenHook } from "../manifest-
|
|
39
|
+
import { n as parseSupabaseManifest, t as hasTokenHook } from "../manifest-BoCYBbQL.js";
|
|
40
40
|
import { t as parseCatalog } from "../parse-CORUNcCo.js";
|
|
41
41
|
import { n as activeTenantMismatch, t as activeOrganizationFrom } from "../active-tenant-DVee32-T.js";
|
|
42
42
|
import { AsyncResult, dbError } from "better-supabase";
|
|
@@ -268,15 +268,18 @@ function blockApprovalStore(approvals, options = {}) {
|
|
|
268
268
|
name: "better-supabase-approvals",
|
|
269
269
|
async create(request) {
|
|
270
270
|
await unwrap(approvals.request({
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
271
|
+
subject: {
|
|
272
|
+
type: request.resource.type,
|
|
273
|
+
id: request.resource.id ?? request.id
|
|
274
|
+
},
|
|
275
|
+
input: compact({
|
|
276
|
+
action: actionOf(request.permission),
|
|
277
|
+
reason: request.detail,
|
|
278
|
+
payload: { permdock: request },
|
|
279
|
+
fingerprint: request.fingerprint,
|
|
280
|
+
tenantless: tenantless && decisionTenant(request.subject, request.membership) === void 0 ? true : void 0
|
|
281
|
+
})
|
|
282
|
+
}), "request");
|
|
280
283
|
},
|
|
281
284
|
async get(token) {
|
|
282
285
|
return (await byToken(token))?.request ?? null;
|
|
@@ -291,7 +294,11 @@ function blockApprovalStore(approvals, options = {}) {
|
|
|
291
294
|
if (found === void 0) throw new ApprovalError("approval-not-found", "approval was not found");
|
|
292
295
|
applyApprovalVerdict(found.request, verdict);
|
|
293
296
|
const by = verdict.by.principal?.id;
|
|
294
|
-
const next = requestOf(await unwrap(decide(
|
|
297
|
+
const next = requestOf(await unwrap(decide(compact({
|
|
298
|
+
id: found.record.id,
|
|
299
|
+
comment: verdict.note,
|
|
300
|
+
decidedBy: by
|
|
301
|
+
})), verdict.status === "approved" ? "approve" : "reject"));
|
|
295
302
|
if (next === null) throw new ApprovalError("approval-not-found", "approval was not found");
|
|
296
303
|
return next;
|
|
297
304
|
},
|
|
@@ -312,7 +319,10 @@ function blockApprovalStore(approvals, options = {}) {
|
|
|
312
319
|
async consume(token) {
|
|
313
320
|
const found = await byToken(token);
|
|
314
321
|
if (found === void 0) return null;
|
|
315
|
-
const consumed = await approvals.consume(
|
|
322
|
+
const consumed = await approvals.consume(compact({
|
|
323
|
+
id: found.record.id,
|
|
324
|
+
fingerprint: found.request.fingerprint
|
|
325
|
+
}));
|
|
316
326
|
return consumed.ok ? requestOf(consumed.data) : null;
|
|
317
327
|
}
|
|
318
328
|
});
|
|
@@ -362,9 +372,10 @@ function stageApprovers(approvers, roleScope) {
|
|
|
362
372
|
};
|
|
363
373
|
}
|
|
364
374
|
function quorumOf(step) {
|
|
365
|
-
if (step.
|
|
375
|
+
if (step.escalateAfter !== void 0) throw new TypeError("PermDock: an approval policy step with escalateAfter is not supported; escalation is decided by the block");
|
|
376
|
+
if (step.all !== true) return step.required;
|
|
366
377
|
const { users = [], permission, role, team, manager } = step.approvers;
|
|
367
|
-
if (users.length === 0 || permission !== void 0 || role !== void 0 || team !== void 0 || manager === true) throw new TypeError("PermDock: an approval policy step with
|
|
378
|
+
if (users.length === 0 || permission !== void 0 || role !== void 0 || team !== void 0 || manager === true) throw new TypeError("PermDock: an approval policy step with `all` needs users and no other approvers, since the block counts other holders when a request is filed");
|
|
368
379
|
return users.length;
|
|
369
380
|
}
|
|
370
381
|
const NUMERIC = /^-?\d+(?:\.\d+)?$/u;
|
|
@@ -1372,6 +1383,11 @@ function isApproverTemplate(input) {
|
|
|
1372
1383
|
//#endregion
|
|
1373
1384
|
//#region src/better-supabase/provider.ts
|
|
1374
1385
|
/**
|
|
1386
|
+
* `subject_for` for the signed-in user, from the hook (`supabase hook
|
|
1387
|
+
* generate`).
|
|
1388
|
+
*/
|
|
1389
|
+
const OWN_SUBJECT = "permdock_subject";
|
|
1390
|
+
/**
|
|
1375
1391
|
* The helper each template calls (with `{scope}` unfilled), its default
|
|
1376
1392
|
* argument types and the role that calls it: `postgres` for the templates
|
|
1377
1393
|
* better-supabase runs inside its own `security definer` functions.
|
|
@@ -1523,6 +1539,7 @@ function membershipOf(source, scope, problems) {
|
|
|
1523
1539
|
userColumn: source.user.column,
|
|
1524
1540
|
scope: "column" in source.scope ? { column: source.scope.column } : { value: scope },
|
|
1525
1541
|
idColumn: source.id.column,
|
|
1542
|
+
...source.disabledAt === void 0 ? {} : { disabledAt: source.disabledAt.column },
|
|
1526
1543
|
...rolesTableOf(source)
|
|
1527
1544
|
};
|
|
1528
1545
|
}
|
|
@@ -1564,6 +1581,30 @@ function disabledRow(row) {
|
|
|
1564
1581
|
}
|
|
1565
1582
|
};
|
|
1566
1583
|
}
|
|
1584
|
+
/**
|
|
1585
|
+
* `rls.roles` as better-supabase's `platformRoles`: the global-roles table with
|
|
1586
|
+
* its roles table, and the assignment helpers that answer without a tenant.
|
|
1587
|
+
*/
|
|
1588
|
+
function platformRolesOf(manifest, schema, scope, assignAny) {
|
|
1589
|
+
const roles = manifest.rls.roles;
|
|
1590
|
+
if (roles === void 0 || isRoleList(roles.role) || !("column" in roles.role)) return;
|
|
1591
|
+
const through = "through" in roles.role ? roles.role.through : void 0;
|
|
1592
|
+
const literal = quoteSqlLiteral(scope);
|
|
1593
|
+
return {
|
|
1594
|
+
table: roles.table,
|
|
1595
|
+
user: roles.user.column,
|
|
1596
|
+
role: roles.role.column,
|
|
1597
|
+
...through === void 0 || through.on !== void 0 ? {} : { through: {
|
|
1598
|
+
table: through.table,
|
|
1599
|
+
id: through.id,
|
|
1600
|
+
column: through.column
|
|
1601
|
+
} },
|
|
1602
|
+
...assignAny ? {
|
|
1603
|
+
canAssign: `${schema}.${ASSIGN_ANY.canAssign.helper}({role}, null::uuid, ${literal}, null::text)`,
|
|
1604
|
+
canAssignFor: `${schema}.${ASSIGN_ANY.canAssignFor.helper}({user}, {role}, null::uuid, ${literal}, null::text)`
|
|
1605
|
+
} : {}
|
|
1606
|
+
};
|
|
1607
|
+
}
|
|
1567
1608
|
function permissionsOf(catalog, scopes) {
|
|
1568
1609
|
return catalog.permissions.map((permission) => {
|
|
1569
1610
|
const granted = /* @__PURE__ */ new Set();
|
|
@@ -1830,8 +1871,14 @@ function authorizationProvider(options) {
|
|
|
1830
1871
|
});
|
|
1831
1872
|
}
|
|
1832
1873
|
const permitted = listed("idsWith", tenantScope) ? permittedTemplate(schema, scopeNames.filter((scope) => listed("idsWith", scope)), tenantScope, catalog) : void 0;
|
|
1874
|
+
const rowTemplates = options.rowHelpers === true ? rowTemplatesOf(schema, manifest, requires, problems) : {};
|
|
1875
|
+
const ownSubject = options.subject === true && helpers.has(OWN_SUBJECT) ? `${schema}.${sqlIdent(OWN_SUBJECT)}()` : void 0;
|
|
1876
|
+
if (ownSubject !== void 0) requires.push({
|
|
1877
|
+
function: `${schema}.${sqlIdent(OWN_SUBJECT)}`,
|
|
1878
|
+
role: "authenticated"
|
|
1879
|
+
});
|
|
1833
1880
|
const functions = {
|
|
1834
|
-
...
|
|
1881
|
+
...rowTemplates,
|
|
1835
1882
|
...optional,
|
|
1836
1883
|
idsWith: `${schema}.${TEMPLATES.idsWith.sql}`,
|
|
1837
1884
|
isPlatform: `${schema}.${TEMPLATES.isPlatform.sql}`,
|
|
@@ -1839,7 +1886,13 @@ function authorizationProvider(options) {
|
|
|
1839
1886
|
...teamIdsOf === void 0 ? {} : { teamIdsOf },
|
|
1840
1887
|
...actorMayWrite === void 0 ? {} : { actorMayWrite },
|
|
1841
1888
|
...isApprover === void 0 ? {} : { isApprover },
|
|
1842
|
-
...permitted === void 0 ? {} : { permitted }
|
|
1889
|
+
...permitted === void 0 ? {} : { permitted },
|
|
1890
|
+
...ownSubject === void 0 ? {} : { subject: ownSubject }
|
|
1891
|
+
};
|
|
1892
|
+
const platformRoles = options.platformRoles === true ? platformRolesOf(manifest, schema, tenantScope, assignAny && listed("canAssign", tenantScope)) : void 0;
|
|
1893
|
+
const extras = {
|
|
1894
|
+
...platformRoles === void 0 ? {} : { platformRoles },
|
|
1895
|
+
...options.personas === void 0 || options.personas.length === 0 ? {} : { personas: options.personas }
|
|
1843
1896
|
};
|
|
1844
1897
|
const operations = catalog === void 0 ? {} : operationsOf(catalog);
|
|
1845
1898
|
const delegated = delegatedScopes(catalog);
|
|
@@ -1869,6 +1922,7 @@ function authorizationProvider(options) {
|
|
|
1869
1922
|
...tenants ? { tenant: disabledRow(tenants) } : {}
|
|
1870
1923
|
} } : {},
|
|
1871
1924
|
...roleSources.length > 0 ? { roleSources } : {},
|
|
1925
|
+
...extras,
|
|
1872
1926
|
...Object.keys(operations).length > 0 ? { operations } : {},
|
|
1873
1927
|
...Object.keys(delegated).length > 0 ? { delegation: { scopes: delegated } } : {},
|
|
1874
1928
|
decidingColumns: manifest.decidingColumns,
|
|
@@ -1959,12 +2013,10 @@ function claimsOf(request) {
|
|
|
1959
2013
|
* used only when it names the claims' user and carries a version.
|
|
1960
2014
|
*/
|
|
1961
2015
|
function seedOf(runtime, claims) {
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
subject
|
|
1967
|
-
} : void 0;
|
|
2016
|
+
const seed = runtime?.seed;
|
|
2017
|
+
if (seed === void 0 || !isRecord(claims)) return;
|
|
2018
|
+
const { userId, version } = seed;
|
|
2019
|
+
return typeof userId === "string" && userId !== "" && userId === claims["sub"] && typeof version === "number" && Number.isSafeInteger(version) && version >= 0 ? seed : void 0;
|
|
1968
2020
|
}
|
|
1969
2021
|
const tenantOf = (request) => {
|
|
1970
2022
|
const { tenant } = request.context;
|
|
@@ -2483,7 +2535,7 @@ async function subjectFromShareLink(token, options) {
|
|
|
2483
2535
|
let row;
|
|
2484
2536
|
let subject;
|
|
2485
2537
|
try {
|
|
2486
|
-
const resolved = await options.shareLinks.resolve(token);
|
|
2538
|
+
const resolved = await options.shareLinks.resolve({ token });
|
|
2487
2539
|
if (!resolved.ok) return deny("source-threw", "resolve-failed");
|
|
2488
2540
|
if (resolved.data === null) return deny("invalid-token", "share-link-unknown");
|
|
2489
2541
|
const parsed = parseRow(resolved.data);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as compact } from "./compact-CAf557ZB.js";
|
|
2
2
|
import { r as withApp } from "./app-DIvM65Mv.js";
|
|
3
|
-
import { t as composeWraps } from "./wrap-
|
|
3
|
+
import { t as composeWraps } from "./wrap-C5PWzgkq.js";
|
|
4
4
|
import { t as instanceOptions } from "./instance-options-URVwqpMW.js";
|
|
5
5
|
import { n as tenantScope } from "./adapter-context-OHikyRqV.js";
|
|
6
|
-
import { t as createPermDock } from "./create-
|
|
7
|
-
import { h as invalidSignatureResponse } from "./evaluations-
|
|
6
|
+
import { t as createPermDock } from "./create-BRr7Gu7N.js";
|
|
7
|
+
import { h as invalidSignatureResponse } from "./evaluations-Bj5xw0EM.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 { Q as Intent, xr as Subject } from "./policy-types-
|
|
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-CCBrL7me.js";
|
|
2
|
+
import { m as ApprovalStore } from "./types-CAp7UGiB.js";
|
|
3
|
+
import { t as InstanceOptions } from "./instance-options-BDHB3qBG.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-CVBPIuEs.js";
|
|
6
|
+
import { o as OtelWrap } from "./types-CXUwgZ3d.js";
|
|
7
|
+
import { r as PdpFactory } from "./types-Cc68_zqR.js";
|
|
8
|
+
import { S as TenantOption, _ as WebBotAuthVerifier, t as DeniedResponse } from "./server-types-CtJSDhOv.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,5 +1,5 @@
|
|
|
1
1
|
import { o as statusProblem } from "./problem-details-CLDgX1KV.js";
|
|
2
|
-
import { l as problemResponse } from "./problem-
|
|
2
|
+
import { l as problemResponse } from "./problem-CPB8kqk7.js";
|
|
3
3
|
import { t as MAX_BODY_BYTES } from "./body-text-DQhcmqdY.js";
|
|
4
4
|
//#region src/server/body.ts
|
|
5
5
|
/** The 413 Problem Details for a body over `maxBytes`. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as compact } from "./compact-CAf557ZB.js";
|
|
2
|
-
import { t as getPermDock } from "./permdock-
|
|
2
|
+
import { t as getPermDock } from "./permdock-HfTF99xX.js";
|
|
3
3
|
import { t as instanceOptions } from "./instance-options-URVwqpMW.js";
|
|
4
4
|
//#region src/core/build-instance.ts
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _t as TokenSigner, qt as Instant, yr as Principal } from "./policy-types-
|
|
1
|
+
import { _t as TokenSigner, qt as Instant, yr as Principal } from "./policy-types-CCBrL7me.js";
|
|
2
2
|
import { E as PermissionTree, w as Permission } from "./vocabulary-DeZvUaTw.js";
|
|
3
3
|
//#region src/core/capability.d.ts
|
|
4
4
|
/**
|
|
@@ -16,7 +16,7 @@ const casbinImport = defineLeaf({
|
|
|
16
16
|
...outFlag
|
|
17
17
|
},
|
|
18
18
|
async run(ctx, { flags }) {
|
|
19
|
-
const { runCasbinImport } = await import("./casbin-
|
|
19
|
+
const { runCasbinImport } = await import("./casbin-Dg5N0Gfa.js");
|
|
20
20
|
return runCasbinImport({
|
|
21
21
|
cwd: ctx.cwd,
|
|
22
22
|
model: given(flags.model),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as nonEmptyOr } from "./output-
|
|
1
|
+
import { a as nonEmptyOr } from "./output-B81GJ6u6.js";
|
|
2
2
|
import { t as applyFiles } from "./files-CfiRtQ-m.js";
|
|
3
3
|
import { n as isIdentifier, t as emitPolicyModule } from "./policy-module-xym9fnSq.js";
|
|
4
4
|
import { existsSync, readFileSync } from "node:fs";
|
package/dist/catalog/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { D as Policy, s as ApprovalRequirement, yr as Principal } from "../policy-types-
|
|
2
|
-
import { c as checkHostedGrant, n as HostedGrantCheck, o as PolicyDocument } from "../hosted-
|
|
1
|
+
import { D as Policy, s as ApprovalRequirement, yr as Principal } from "../policy-types-CCBrL7me.js";
|
|
2
|
+
import { c as checkHostedGrant, n as HostedGrantCheck, o as PolicyDocument } from "../hosted-BUCpV8-u.js";
|
|
3
3
|
import { a as CatalogDocument, c as CatalogOperation, d as CatalogRole, f as CatalogScope, h as CatalogValidity, i as CatalogDelegation, l as CatalogPermission, m as CatalogUsage, n as CatalogApproval, o as CatalogGrant, p as CatalogSupportAccess, r as CatalogBreakGlass, s as CatalogOAuthScope, t as CatalogActivation, u as CatalogResource } from "../types-DAyp592k.js";
|
|
4
|
-
import { a as CatalogFinding, i as CatalogEventData } from "../sink-
|
|
5
|
-
import { a as pushedPolicy, i as parsePushedPolicy, n as PushedGrant, r as PushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-
|
|
4
|
+
import { a as CatalogFinding, i as CatalogEventData } from "../sink-BskpqwLl.js";
|
|
5
|
+
import { a as pushedPolicy, i as parsePushedPolicy, n as PushedGrant, r as PushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-B2ZSpnRY.js";
|
|
6
6
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
7
7
|
//#region src/catalog/drift.d.ts
|
|
8
8
|
/**
|
package/dist/catalog/index.js
CHANGED
|
@@ -2,13 +2,13 @@ import { r as isRecord } from "../compact-CAf557ZB.js";
|
|
|
2
2
|
import { n as freezeDeep } from "../freeze-jjan0lCv.js";
|
|
3
3
|
import { a as getResource, n as findPermission } from "../permission-registry-B8tYxPIt.js";
|
|
4
4
|
import { d as isSelfParented } from "../resource-relations-8-pCScBO.js";
|
|
5
|
-
import {
|
|
6
|
-
import { n as declaredRoleNames } from "../policy-
|
|
7
|
-
import { i as hostedGrantDrops, n as codeApprovals, r as declaredGrantee, t as checkHostedGrant } from "../hosted-
|
|
5
|
+
import { o as listPlans, r as findRole } from "../vocabulary-BuYFWeCU.js";
|
|
6
|
+
import { n as declaredRoleNames } from "../policy-BovcTojN.js";
|
|
7
|
+
import { i as hostedGrantDrops, n as codeApprovals, r as declaredGrantee, t as checkHostedGrant } from "../hosted-cPDyrlsQ.js";
|
|
8
8
|
import { n as rowConditionKeys, t as parseCatalog } from "../parse-CORUNcCo.js";
|
|
9
9
|
import { t as operationFindings } from "../operation-findings-CVwJHEu_.js";
|
|
10
|
-
import { n as resourceSchemaFromJson, t as policyFromCatalog } from "../policy-from-catalog-
|
|
11
|
-
import { n as parsePushedPolicy, r as pushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-
|
|
10
|
+
import { n as resourceSchemaFromJson, t as policyFromCatalog } from "../policy-from-catalog-lKL280I8.js";
|
|
11
|
+
import { n as parsePushedPolicy, r as pushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-DJoyBZsd.js";
|
|
12
12
|
//#region src/catalog/drift.ts
|
|
13
13
|
/**
|
|
14
14
|
* The finding a drop reason becomes; `null` for a reason the catalog did not
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as isRecord } from "./compact-CAf557ZB.js";
|
|
2
2
|
import { r as listSourceFiles, t as defaultSrcPath } from "./files-BSjrtIHw.js";
|
|
3
|
-
import { a as catalogSchemaDocument, n as catalogForCompare, o as formatCatalogJson, r as catalogForDrift, s as formatCatalogMarkdown, t as buildCatalog } from "./catalog-doc-
|
|
3
|
+
import { a as catalogSchemaDocument, n as catalogForCompare, o as formatCatalogJson, r as catalogForDrift, s as formatCatalogMarkdown, t as buildCatalog } from "./catalog-doc-BoSOQRXT.js";
|
|
4
4
|
import { a as loadModule, i as loadConfiguredPolicy, r as leavesOf, s as pickNamed, t as asPermissionTree } from "./load-C4p4VgwR.js";
|
|
5
5
|
import { t as loadConfiguredOperations } from "./catalog-operations-Do1eD-Rt.js";
|
|
6
|
-
import { i as scanSources, r as runCollect } from "./collect-
|
|
6
|
+
import { i as scanSources, r as runCollect } from "./collect-D3ToPa6Z.js";
|
|
7
7
|
import { n as fileSummary, t as applyFiles } from "./files-CfiRtQ-m.js";
|
|
8
8
|
import { existsSync, readFileSync } from "node:fs";
|
|
9
9
|
import { resolve } from "node:path";
|
|
@@ -30,7 +30,7 @@ const catalog = defineLeaf({
|
|
|
30
30
|
...checkFlag
|
|
31
31
|
},
|
|
32
32
|
async run(ctx, { flags }) {
|
|
33
|
-
const { catalogFile, runCatalog } = await import("./catalog-
|
|
33
|
+
const { catalogFile, runCatalog } = await import("./catalog-DqYnQz8U.js");
|
|
34
34
|
const result = await runCatalog({
|
|
35
35
|
cwd: ctx.cwd,
|
|
36
36
|
config: ctx.config,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as catalogFile, n as runCatalog } from "./catalog-BJu0A15r.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as isRecord } from "./compact-CAf557ZB.js";
|
|
2
|
-
import { i as wireValidity } from "./validity-Buc7w8E9.js";
|
|
3
2
|
import { a as getResource, c as listPermissions, h as formerKeys } from "./permission-registry-B8tYxPIt.js";
|
|
4
|
-
import {
|
|
3
|
+
import { r as findRole, s as listRoles } from "./vocabulary-BuYFWeCU.js";
|
|
4
|
+
import { i as wireValidity } from "./validity-IcjQSR7I.js";
|
|
5
5
|
import { t as canonicalJson } from "./canonical-json-DwilZ1iB.js";
|
|
6
6
|
import { t as byCodePoint } from "./compare-DTfyUunF.js";
|
|
7
7
|
import { t as catalogFingerprint } from "./catalog-fingerprint-e6aCWosn.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as isRecord, t as compact } from "./compact-CAf557ZB.js";
|
|
2
2
|
import { n as freezeDeep } from "./freeze-jjan0lCv.js";
|
|
3
3
|
import { i as dateAt, p as nowSeconds } from "./time-nR1JesoH.js";
|
|
4
|
-
import { u as policyDocumentFromClaims } from "./hosted-
|
|
4
|
+
import { u as policyDocumentFromClaims } from "./hosted-cPDyrlsQ.js";
|
|
5
5
|
import { h as toCloudEvent, l as isAbsoluteUri } from "./sink-D9_vh372.js";
|
|
6
6
|
import { n as parseCatalogEventData, t as catalogFingerprint } from "./catalog-fingerprint-e6aCWosn.js";
|
|
7
7
|
import { l as isApprovalErrorCode, s as ApprovalError, t as APPROVAL_HEADER } from "./types-CcUXciSj.js";
|
package/dist/chat/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ChatCommandResult, c as createPermDock, d as SubjectFromChatOptions, f as isChatAuthor, i as ChatCommandContext, l as ChatAuthor, n as ChatActionResult, o as ChatPermDock, p as subjectFromChat, r as ChatCommand, s as ChatPermDockOptions, t as ChatAction, u as ChatPrincipal } from "../create-
|
|
1
|
+
import { a as ChatCommandResult, c as createPermDock, d as SubjectFromChatOptions, f as isChatAuthor, i as ChatCommandContext, l as ChatAuthor, n as ChatActionResult, o as ChatPermDock, p as subjectFromChat, r as ChatCommand, s as ChatPermDockOptions, t as ChatAction, u as ChatPrincipal } from "../create-DGFv7Dje.js";
|
|
2
2
|
export { type ChatAction, type ChatActionResult, type ChatAuthor, type ChatCommand, type ChatCommandContext, type ChatCommandResult, type ChatPermDock, type ChatPermDockOptions, type ChatPrincipal, type SubjectFromChatOptions, createPermDock, isChatAuthor, subjectFromChat };
|
package/dist/chat/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as compact } from "../compact-CAf557ZB.js";
|
|
2
2
|
import { n as freezeDeep } from "../freeze-jjan0lCv.js";
|
|
3
|
-
import { n as loadPrincipalByIdentity } from "../principal-source-C6N60GtM.js";
|
|
4
3
|
import { f as nowMillis } from "../time-nR1JesoH.js";
|
|
5
|
-
import { t as getPermDock } from "../permdock-
|
|
4
|
+
import { t as getPermDock } from "../permdock-HfTF99xX.js";
|
|
5
|
+
import { n as loadPrincipalByIdentity } from "../principal-source-C6N60GtM.js";
|
|
6
6
|
import { r as withApp } from "../app-DIvM65Mv.js";
|
|
7
7
|
import { c as isApprovalError } from "../types-CcUXciSj.js";
|
|
8
|
-
import { a as requestApproval, o as resolveApproval, s as resumeDecision } from "../helpers-
|
|
8
|
+
import { a as requestApproval, o as resolveApproval, s as resumeDecision } from "../helpers-CO2hDpBU.js";
|
|
9
9
|
import { t as approvalPrompt } from "../approval-prompt-B8hQY69x.js";
|
|
10
10
|
//#region src/chat/subject.ts
|
|
11
11
|
function nonEmpty(value) {
|
package/dist/chat-sdk/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as ApprovalUrl, t as ApprovalPrompt } from "../approval-prompt-
|
|
2
|
-
import { l as ChatAuthor, n as ChatActionResult, o as ChatPermDock } from "../create-
|
|
3
|
-
import { n as ChatTransport } from "../types-
|
|
1
|
+
import { n as ApprovalUrl, t as ApprovalPrompt } from "../approval-prompt-DtfKSH-8.js";
|
|
2
|
+
import { l as ChatAuthor, n as ChatActionResult, o as ChatPermDock } from "../create-DGFv7Dje.js";
|
|
3
|
+
import { n as ChatTransport } from "../types-DyA4Loy4.js";
|
|
4
4
|
import { ActionEvent, Author, CardElement } from "chat";
|
|
5
5
|
//#region src/chat-sdk/author.d.ts
|
|
6
6
|
type ChatSdkAuthorOptions = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { D as Policy, N as PolicyVocabulary, yr as Principal } from "../policy-types-
|
|
2
|
-
import { a as PermDock } from "../permdock-
|
|
3
|
-
import { o as AgentAdapterOptions, t as AgentPermDock } from "../create-
|
|
1
|
+
import { D as Policy, N as PolicyVocabulary, yr as Principal } from "../policy-types-CCBrL7me.js";
|
|
2
|
+
import { a as PermDock } from "../permdock-vD3mwLSm.js";
|
|
3
|
+
import { o as AgentAdapterOptions, t as AgentPermDock } from "../create-ChK8bpCK.js";
|
|
4
4
|
//#region src/claude-agent/create.d.ts
|
|
5
5
|
/** Structural `McpServerProvenance` from `@anthropic-ai/claude-agent-sdk`. */
|
|
6
6
|
type ClaudeMcpServer = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as isRecord, t as compact } from "../compact-CAf557ZB.js";
|
|
2
2
|
import { r as withApp } from "../app-DIvM65Mv.js";
|
|
3
|
-
import { t as agentRuntime } from "../create-
|
|
3
|
+
import { t as agentRuntime } from "../create-bYkJ4-tg.js";
|
|
4
4
|
//#region src/claude-agent/create.ts
|
|
5
5
|
const MCP_PREFIX = "mcp__";
|
|
6
6
|
function asInput(input) {
|
package/dist/clerk/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { q as CustomRoleSource, xr as Subject, yr as Principal } from "../policy-types-
|
|
1
|
+
import { q as CustomRoleSource, xr as Subject, yr as Principal } from "../policy-types-CCBrL7me.js";
|
|
2
2
|
import { w as Permission } from "../vocabulary-DeZvUaTw.js";
|
|
3
3
|
import { t as ClaimsMap } from "../claims-map-D1Pb5oRq.js";
|
|
4
|
-
import { s as RemotePdpCache } from "../types-
|
|
4
|
+
import { s as RemotePdpCache } from "../types-Cc68_zqR.js";
|
|
5
5
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
6
6
|
//#region src/clerk/types.d.ts
|
|
7
7
|
type ClerkPrincipal = Principal & {
|
package/dist/cli/bin.js
CHANGED
|
@@ -11,7 +11,7 @@ if (argv.length === 1 && (argv[0] === "--version" || argv[0] === "-v")) {
|
|
|
11
11
|
const [{ isCi }, { trapSignals }, { run }, { streamHasColors }] = await Promise.all([
|
|
12
12
|
import("../env-DJZrPjRi.js"),
|
|
13
13
|
import("../signals-B1vHR3fN.js"),
|
|
14
|
-
import("../run-
|
|
14
|
+
import("../run-DnzrDgU-.js"),
|
|
15
15
|
import("../style-DblOtSga.js")
|
|
16
16
|
]);
|
|
17
17
|
const signals = trapSignals();
|
package/dist/cli/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { D as Policy } from "../policy-types-
|
|
1
|
+
import { D as Policy } from "../policy-types-CCBrL7me.js";
|
|
2
2
|
import { E as PermissionTree } from "../vocabulary-DeZvUaTw.js";
|
|
3
3
|
import { o as OperationMap } from "../operations-BMPx7HyO.js";
|
|
4
4
|
import { a as CatalogDocument, d as CatalogRole, f as CatalogScope, l as CatalogPermission, m as CatalogUsage, n as CatalogApproval, p as CatalogSupportAccess, r as CatalogBreakGlass, t as CatalogActivation, u as CatalogResource } from "../types-DAyp592k.js";
|
|
5
|
-
import { a as pushedPolicy, i as parsePushedPolicy, n as PushedGrant, r as PushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-
|
|
6
|
-
import { _ as RlsSuspension, a as GenKind, c as RlsActiveRow, d as RlsDialect, f as RlsFunctionMapping, g as RlsSuspendedScope, h as RlsSuspendedMembership, i as GenConfig, l as RlsApiKeys, m as RlsMemberships, n as CliIo, o as PermDockConfig, p as RlsMembershipTable, r as CollectConfig, t as CatalogConfig, u as RlsConfig, v as RlsTarget, y as RunResult } from "../types-
|
|
7
|
-
import { o as ResourceNameOf, r as PermissionKeyOf, s as ScopeNameOf, t as ActionNameOf } from "../type-helpers-
|
|
5
|
+
import { a as pushedPolicy, i as parsePushedPolicy, n as PushedGrant, r as PushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-B2ZSpnRY.js";
|
|
6
|
+
import { _ as RlsSuspension, a as GenKind, c as RlsActiveRow, d as RlsDialect, f as RlsFunctionMapping, g as RlsSuspendedScope, h as RlsSuspendedMembership, i as GenConfig, l as RlsApiKeys, m as RlsMemberships, n as CliIo, o as PermDockConfig, p as RlsMembershipTable, r as CollectConfig, t as CatalogConfig, u as RlsConfig, v as RlsTarget, y as RunResult } from "../types-B_s1oQaF.js";
|
|
7
|
+
import { o as ResourceNameOf, r as PermissionKeyOf, s as ScopeNameOf, t as ActionNameOf } from "../type-helpers-fQdBvtU0.js";
|
|
8
8
|
//#region src/cli/catalog-path.d.ts
|
|
9
9
|
/**
|
|
10
10
|
* The absolute path `permdock collect` writes the catalog to: `collect.out`,
|
package/dist/cli/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as catalogPath } from "../catalog-path-CnI0XTFK.js";
|
|
2
2
|
import { t as defineConfig } from "../config-DyNanTjZ.js";
|
|
3
|
-
import { n as parsePushedPolicy, r as pushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-
|
|
3
|
+
import { n as parsePushedPolicy, r as pushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-DJoyBZsd.js";
|
|
4
4
|
import { c as parseGrantsMarker, l as parseHookMarker } from "../markers-BeHZ4x9Q.js";
|
|
5
|
-
import { t as run } from "../run-
|
|
5
|
+
import { t as run } from "../run-BXmJIjRA.js";
|
|
6
6
|
//#region src/cli/token-schemas.ts
|
|
7
7
|
const ID = {
|
|
8
8
|
type: "string",
|
package/dist/cloud/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { _t as TokenSigner, cn as AutomationEvent, dn as DeliveryChannel, fn as DeliveryEvent, gn as MembershipEvent, ln as CredentialEvent, mn as DirectoryEvent, on as AccessEvent, qt as Instant, un as DecisionEvent } from "../policy-types-
|
|
2
|
-
import { m as ApprovalStore } from "../types-
|
|
3
|
-
import { i as CatalogEventData, l as CloudEventType, r as CLOUD_EVENT_TYPES, s as CloudEvent } from "../sink-
|
|
4
|
-
import { c as DeliveryTransport } from "../types-
|
|
5
|
-
import { a as CloudConnectionOptions, c as CloudOptions, i as CloudClient, l as CloudSignerOptions, n as CloudCatalog, o as CloudEndpointOptions, r as CloudCatalogPush, s as CloudEndpoints, t as CloudApproverOptions } from "../types-
|
|
6
|
-
import { n as ApprovalWaiter } from "../waiter-
|
|
7
|
-
import { l as ReplayStore } from "../types-
|
|
8
|
-
import { f as WebhookVerifier, r as WebhookFailureCause$1, s as WebhookJwks } from "../standard-webhooks-
|
|
1
|
+
import { _t as TokenSigner, cn as AutomationEvent, dn as DeliveryChannel, fn as DeliveryEvent, gn as MembershipEvent, ln as CredentialEvent, mn as DirectoryEvent, on as AccessEvent, qt as Instant, un as DecisionEvent } from "../policy-types-CCBrL7me.js";
|
|
2
|
+
import { m as ApprovalStore } from "../types-CAp7UGiB.js";
|
|
3
|
+
import { i as CatalogEventData, l as CloudEventType, r as CLOUD_EVENT_TYPES, s as CloudEvent } from "../sink-BskpqwLl.js";
|
|
4
|
+
import { c as DeliveryTransport } from "../types-DyA4Loy4.js";
|
|
5
|
+
import { a as CloudConnectionOptions, c as CloudOptions, i as CloudClient, l as CloudSignerOptions, n as CloudCatalog, o as CloudEndpointOptions, r as CloudCatalogPush, s as CloudEndpoints, t as CloudApproverOptions } from "../types-DDlaFDM3.js";
|
|
6
|
+
import { n as ApprovalWaiter } from "../waiter-LdnPaBJE.js";
|
|
7
|
+
import { l as ReplayStore } from "../types-CdXM6qPc.js";
|
|
8
|
+
import { f as WebhookVerifier, r as WebhookFailureCause$1, s as WebhookJwks } from "../standard-webhooks-kQDkIPj3.js";
|
|
9
9
|
//#region src/cloud/base-url.d.ts
|
|
10
10
|
/**
|
|
11
11
|
* The one base URL of PermDock Cloud. The platform issuer is this URL; its
|
package/dist/cloud/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { o as statusProblem } from "../problem-details-CLDgX1KV.js";
|
|
|
4
4
|
import { h as secondsAt } from "../time-nR1JesoH.js";
|
|
5
5
|
import { r as CLOUD_EVENT_TYPES } from "../sink-D9_vh372.js";
|
|
6
6
|
import { i as parseCloudEventBatch, r as parseCloudEvent$1 } from "../catalog-fingerprint-e6aCWosn.js";
|
|
7
|
-
import { l as problemResponse } from "../problem-
|
|
7
|
+
import { l as problemResponse } from "../problem-CPB8kqk7.js";
|
|
8
8
|
import { t as timeoutSignal } from "../timeout-D51niuQP.js";
|
|
9
9
|
import { n as readBodyText } from "../body-text-DQhcmqdY.js";
|
|
10
10
|
import { n as webhookVerifier } from "../standard-webhooks-D67a3nzk.js";
|
|
@@ -12,7 +12,7 @@ import { c as stringField, n as discoverAuthorizationServer, r as parseToken } f
|
|
|
12
12
|
import { t as pollingApprovalWaiter } from "../waiter-aBLM63_f.js";
|
|
13
13
|
import { i as isDeliveryTarget } from "../target-qdEAnnhU.js";
|
|
14
14
|
import { t as CLOUD_BASE_URL } from "../base-url-BQbddZO5.js";
|
|
15
|
-
import { a as isCompactJws, i as cloudEndpoints, n as cloud, o as resolveCloudEndpoints, r as cloudConnection, t as bearerChallenge } from "../challenge-
|
|
15
|
+
import { a as isCompactJws, i as cloudEndpoints, n as cloud, o as resolveCloudEndpoints, r as cloudConnection, t as bearerChallenge } from "../challenge-DVw1SrH9.js";
|
|
16
16
|
import { n as randomToken, t as pkce } from "../pkce-CnmmYqUZ.js";
|
|
17
17
|
//#region src/cloud/oauth-error.ts
|
|
18
18
|
/**
|
|
@@ -41,7 +41,7 @@ const push = defineLeaf({
|
|
|
41
41
|
},
|
|
42
42
|
async run(ctx, { flags }) {
|
|
43
43
|
const env = await withStdinSecret(ctx, "key", flags["key-stdin"], "PERMDOCK_CLOUD_KEY");
|
|
44
|
-
return (await import("./push-
|
|
44
|
+
return (await import("./push-Dv1nfFPr.js")).runCloud({
|
|
45
45
|
cwd: ctx.cwd,
|
|
46
46
|
config: ctx.config,
|
|
47
47
|
url: given(flags.url),
|
|
@@ -70,7 +70,7 @@ const pull = defineLeaf({
|
|
|
70
70
|
},
|
|
71
71
|
async run(ctx, { flags }) {
|
|
72
72
|
const env = await withStdinSecret(ctx, "token", flags["token-stdin"], "PERMDOCK_CLOUD_TOKEN");
|
|
73
|
-
return (await import("./pull-
|
|
73
|
+
return (await import("./pull-Dr6Bq5Jo.js")).runCloudPull({
|
|
74
74
|
cwd: ctx.cwd,
|
|
75
75
|
config: ctx.config,
|
|
76
76
|
url: given(flags.url),
|
|
@@ -2,7 +2,7 @@ import { n as CliError } from "./errors-BhRkoNS7.js";
|
|
|
2
2
|
import { a as rel } from "./files-BSjrtIHw.js";
|
|
3
3
|
import { i as visitorKeyTypes, r as parseSync, t as createVisitor } from "./optional-8TKc-0j4.js";
|
|
4
4
|
import { t as beforeFirst } from "./text-BMFRfBqc.js";
|
|
5
|
-
import { n as ROOT } from "./manifest-
|
|
5
|
+
import { n as ROOT } from "./manifest-CIlVL-QT.js";
|
|
6
6
|
import { i as refuseDirty, t as applyFiles } from "./files-CfiRtQ-m.js";
|
|
7
7
|
import { readFileSync, readdirSync, statSync } from "node:fs";
|
|
8
8
|
import { basename, extname, join, resolve } from "node:path";
|
|
@@ -7,7 +7,7 @@ const codemod = defineLeaf({
|
|
|
7
7
|
description: "The release to migrate to (0.5)",
|
|
8
8
|
required: true,
|
|
9
9
|
async complete() {
|
|
10
|
-
return (await import("./codemod-
|
|
10
|
+
return (await import("./codemod-BFFXaS-S.js")).codemodVersions();
|
|
11
11
|
}
|
|
12
12
|
}, {
|
|
13
13
|
name: "paths",
|
|
@@ -22,7 +22,7 @@ const codemod = defineLeaf({
|
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
async run(ctx, { flags, args, rest }) {
|
|
25
|
-
return (await import("./codemod-
|
|
25
|
+
return (await import("./codemod-BFFXaS-S.js")).runCodemod({
|
|
26
26
|
cwd: ctx.cwd,
|
|
27
27
|
version: args["version"],
|
|
28
28
|
paths: rest,
|
|
@@ -29,9 +29,9 @@ const collect = defineLeaf({
|
|
|
29
29
|
};
|
|
30
30
|
if (flags.watch) {
|
|
31
31
|
if (flags.check) throw new CliError("usage", "collect: --watch writes the catalog; drop --check", { code: "invalid_value" });
|
|
32
|
-
return (await import("./watch-
|
|
32
|
+
return (await import("./watch-B8F7Wgdy.js")).watchCollect(ctx, overrides);
|
|
33
33
|
}
|
|
34
|
-
const result = await (await import("./collect-
|
|
34
|
+
const result = await (await import("./collect-CjFczu8a.js")).runCollect({
|
|
35
35
|
cwd: ctx.cwd,
|
|
36
36
|
config: ctx.config,
|
|
37
37
|
collect: overrides,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { r as runCollect } from "./collect-D3ToPa6Z.js";
|