permdock 0.35.0 → 0.36.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 +1 -1
- package/dist/a2a/index.js +2 -2
- package/dist/{adoption-scan-oaPsvHSN.js → adoption-scan-FcbJOEo1.js} +1 -1
- package/dist/agent/index.d.ts +1 -1
- package/dist/agent/index.js +1 -1
- package/dist/ai-sdk/index.d.ts +1 -1
- package/dist/ai-sdk/index.js +3 -3
- package/dist/app/index.d.ts +1 -1
- package/dist/app/index.js +1 -1
- package/dist/approvals/index.d.ts +1 -1
- package/dist/{arazzo-B2PszcDL.js → arazzo-BRWgVc8j.js} +1 -1
- package/dist/{arazzo-1oDMApA_.js → arazzo-rYG2UY9k.js} +2 -2
- package/dist/astro/index.d.ts +3 -3
- package/dist/astro/index.js +1 -1
- package/dist/authzen/index.d.ts +3 -3
- package/dist/authzen/index.js +1 -1
- package/dist/better-supabase/index.d.ts +13 -4
- package/dist/better-supabase/index.js +8 -8
- package/dist/{bind-DPptdk31.js → bind-2Cuy29LS.js} +2 -2
- package/dist/{bind-BnrOLyJq.d.ts → bind-Caffleoh.d.ts} +5 -5
- package/dist/{bsb-access-tags-uDuwPUbT.js → bsb-access-tags-Bfmhft2o.js} +1 -1
- package/dist/{bsb-action-keys-BfZAwg-9.js → bsb-action-keys-LgveZiHJ.js} +2 -2
- package/dist/{bsb-actions-BHiyBxQZ.js → bsb-actions-DcDxQ_Ku.js} +3 -3
- package/dist/{budgets-hi-ecgEd.js → budgets-B2hIDaz7.js} +2 -2
- package/dist/{build-instance-DZEWYO-A.js → build-instance-CZg_Bf45.js} +1 -1
- package/dist/{bundle-size-DbXV65Ix.js → bundle-size-BjdmlKWJ.js} +2 -2
- package/dist/bundle-size-BoG9Jm7c.js +1 -0
- package/dist/{casbin-vtIUd-6L.js → casbin-4FACZ5Ez.js} +1 -1
- package/dist/{casbin-DrdS0vLy.js → casbin-Cz8BGXHW.js} +1 -1
- package/dist/{catalog-CBPFyRv7.js → catalog-DYC6wfAj.js} +1 -1
- package/dist/{catalog-BExjL94D.js → catalog-SnaPhbZ1.js} +2 -2
- package/dist/{catalog-doc-D4g3nyFB.js → catalog-doc-BX97oFAn.js} +1 -1
- package/dist/catalog-e6QRd1JP.js +1 -0
- package/dist/chat/index.d.ts +1 -1
- package/dist/chat/index.js +1 -1
- package/dist/chat-sdk/index.d.ts +1 -1
- package/dist/claude-agent/index.d.ts +2 -2
- package/dist/claude-agent/index.js +2 -2
- package/dist/clerk/index.d.ts +1 -1
- package/dist/cli/bin.js +1 -1
- package/dist/cli/generate/watch-worker.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/cli/plugins/app.js +1 -1
- package/dist/cli/plugins/openapi.js +1 -1
- package/dist/cli/plugins/powersync.js +1 -1
- package/dist/cli/plugins/rls.js +1 -1
- package/dist/cli/plugins/schemas.js +1 -1
- package/dist/cli/plugins/supabase-hook.js +1 -1
- package/dist/cli/plugins/supabase.js +2 -2
- package/dist/cli/plugins/ui.js +1 -1
- package/dist/{cloud-BQnIR-SS.js → cloud-BB67klb4.js} +2 -2
- package/dist/{codemod-C0OHCnaj.js → codemod-BPcxGOlq.js} +5 -5
- package/dist/{codemod-rv5XSBNw.js → codemod-Lov9764v.js} +1 -1
- package/dist/collect-C2_CKZ09.js +1 -0
- package/dist/{collect-Ba7ccZ23.js → collect-CcE8QBtZ.js} +2 -2
- package/dist/{collect-CPimbkC5.js → collect-Co-w8Eg2.js} +1 -1
- package/dist/compile/index.d.ts +1 -1
- package/dist/{compile-CoUadQXF.d.ts → compile-CyUn58lf.d.ts} +1 -1
- package/dist/{compile-BRDpja_Y.js → compile-EtZv2wc0.js} +6 -6
- package/dist/{completion-Dgjdte2-.js → completion-5Y8toe1d.js} +1 -1
- package/dist/{config-anQ9E37F.js → config-DfbiV554.js} +1 -1
- package/dist/{config-report-C43BSFHY.js → config-report-Cs6iDebE.js} +2 -2
- package/dist/{context-rioF4fQl.js → context-CFPsmfPl.js} +1 -1
- package/dist/convex/index.d.ts +2 -2
- package/dist/convex/index.js +2 -2
- package/dist/{core-DCMIztx1.d.ts → core-_Lofwt2K.d.ts} +1 -1
- package/dist/{core-DIUrkFNL.js → core-s_TCdJ6G.js} +2 -2
- package/dist/{create-BYL8xCJB.d.ts → create-BfTbYrts.d.ts} +1 -1
- package/dist/{create-T_NqxU31.d.ts → create-D12I1Vkl.d.ts} +4 -4
- package/dist/{create-BMRnaZel.js → create-D6B06lb8.js} +3 -3
- package/dist/{create-iCwrnaFE.d.ts → create-EPbgV-LA.d.ts} +2 -2
- package/dist/{create-BRY0OtFV.js → create-bbjS7tCW.js} +2 -2
- package/dist/{credentials-DzNrCNZY.d.ts → credentials-DtSnydoD.d.ts} +1 -1
- package/dist/{custom-role-rebuild-wzN8pqDk.js → custom-role-rebuild-QFXiMHqJ.js} +1 -1
- package/dist/{define-permdock-CO7YNrOF.js → define-permdock-Dazve5lw.js} +1 -1
- package/dist/{define-permdock-Bhye7WSY.d.ts → define-permdock-ZR0w-Loy.d.ts} +3 -3
- package/dist/delivery/index.d.ts +1 -1
- package/dist/{diff-CkSZF7LO.js → diff-BABnQ-z0.js} +3 -3
- package/dist/{diff-CS8ks9h3.js → diff-C7zKA7ny.js} +1 -1
- package/dist/{doctor-GnMgqGO8.js → doctor-Chio5Col.js} +101 -31
- package/dist/{doctor-sAqU02Fx.js → doctor-Cm1HDI5s.js} +2 -2
- package/dist/drizzle/index.d.ts +2 -2
- package/dist/elysia/index.d.ts +3 -3
- package/dist/elysia/index.js +1 -1
- package/dist/{evaluations-CUkSKioS.d.ts → evaluations-BYoj5ci6.d.ts} +1 -1
- package/dist/eve/index.d.ts +2 -2
- package/dist/eve/index.js +2 -2
- package/dist/{execute-xF5fwAel.js → execute-B_yY9xWV.js} +4 -4
- package/dist/{explain-DISCeeYS.js → explain-Blkq60Ff.js} +2 -2
- package/dist/{explain-D4ipf8IH.js → explain-CKIqxXSe.js} +1 -1
- package/dist/express/index.d.ts +3 -3
- package/dist/express/index.js +1 -1
- package/dist/fastify/index.d.ts +3 -3
- package/dist/fastify/index.js +1 -1
- package/dist/{fetch-adapter-Ds2-fUUi.d.ts → fetch-adapter-CdaSVKrt.d.ts} +2 -2
- package/dist/{fetch-adapter-BXQc4NoV.js → fetch-adapter-DXgza6EM.js} +1 -1
- package/dist/{fields-CwFej4gp.js → fields-CKX-qjWb.js} +1 -1
- package/dist/gen-CYuPbpBZ.js +1 -0
- package/dist/{gen-djPw1RS-.js → gen-DlJK73v7.js} +4 -4
- package/dist/{gen-kind-Vhq_ZIZm.js → gen-kind-C4tERYMw.js} +1 -1
- package/dist/{generate-BcH-uL0z.js → generate-CFqcr3H6.js} +95 -16
- package/dist/{generate-CYHeuPq8.js → generate-CbLA2WW_.js} +3 -3
- package/dist/{generate-options-DDSeUTFU.js → generate-options-BFAvlJKQ.js} +9 -9
- package/dist/h3/index.d.ts +3 -3
- package/dist/h3/index.js +2 -2
- package/dist/{helper-calls-B5MOl99d.js → helper-calls-DN1PJcNY.js} +53 -1
- package/dist/hono/index.d.ts +3 -3
- package/dist/hono/index.js +1 -1
- package/dist/{hook-sql-EksAnz-T.js → hook-sql-CSUFnRn0.js} +283 -13
- package/dist/{import-C45gc74U.js → import-B-17dw3B.js} +1 -1
- package/dist/{import-Bz6IKoMM.js → import-wBO24zgo.js} +1 -1
- package/dist/{index-Cjr8Q-uq.d.ts → index-Bb2sZq1K.d.ts} +8 -7
- package/dist/{index-CWBCzwOp.d.ts → index-CT4VKXU-.d.ts} +1 -1
- package/dist/{index-ktQ7E4qB.d.ts → index-Cfg0ED9K.d.ts} +2 -2
- package/dist/{index-BOJPdIBk.d.ts → index-DY1aJ-K1.d.ts} +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/{init-B6aZxzd7.js → init-Bg0vS1LV.js} +1 -1
- package/dist/{init-CCBVeyW8.js → init-DRbkPclr.js} +3 -3
- package/dist/{inspect-functions-BUACOlgS.js → inspect-functions-DLP72IMA.js} +1 -1
- package/dist/{instance-options-DDERlopm.d.ts → instance-options-D-SLCp4I.d.ts} +1 -1
- package/dist/{interactive-only-Bbq9e61G.js → interactive-only-CylKSukS.js} +1 -1
- package/dist/{kernel-DSnWVZ0O.js → kernel-CzzmzwLg.js} +3 -3
- package/dist/{keys-BWhAnANj.js → keys-C-W0yrql.js} +1 -1
- package/dist/kysely/index.d.ts +2 -2
- package/dist/{lazy-provider-Clt2095H.d.ts → lazy-provider-BSHAIpMK.d.ts} +1 -1
- package/dist/{login-BnE2iUUA.js → login-D6IJk8k1.js} +1 -1
- package/dist/{login-d631Tpa9.js → login-yF-sDNm9.js} +3 -3
- package/dist/{manifest-1w67doim.js → manifest-DkHIGPoY.js} +63 -52
- package/dist/{manifest-schema-N3v2RVL-.js → manifest-schema-CkROwfT9.js} +1 -1
- package/dist/{manifest-CIWOmdlP.js → manifest-teSfgeqF.js} +1 -1
- package/dist/mcp/index.d.ts +3 -3
- package/dist/mcp/index.js +2 -2
- package/dist/{measure-BKsYdwKd.js → measure-_VlSPfSY.js} +2 -2
- package/dist/{memberships-CNoAlsma.js → memberships-CDiSsFTu.js} +1 -1
- package/dist/{memberships-4e6qi8Uv.js → memberships-DiCbNRny.js} +1 -1
- package/dist/{model-BYCtXS_g.js → model-r7X_HXyS.js} +2 -2
- package/dist/{names-DBxKx2bz.js → names-DwGleRKB.js} +3 -3
- package/dist/nest/index.d.ts +3 -3
- package/dist/nest/index.js +1 -1
- package/dist/next/index.d.ts +6 -6
- package/dist/next/index.js +3 -3
- package/dist/next/plugin.js +1 -1
- package/dist/node/index.d.ts +3 -3
- package/dist/node/index.js +1 -1
- package/dist/openai/index.d.ts +2 -2
- package/dist/openai/index.js +3 -3
- package/dist/{openapi-CN2Oq9zN.js → openapi-D156UqcM.js} +100 -5
- package/dist/{openapi-BnKSxOrh.js → openapi-Dcqqja0n.js} +1 -1
- package/dist/{openapi-document-XnGRbWBb.js → openapi-document-CTvHkCXz.js} +1 -1
- package/dist/orpc/index.d.ts +4 -4
- package/dist/orpc/index.js +2 -2
- package/dist/otel/index.d.ts +2 -2
- package/dist/{output-dO4bArCS.js → output-DNbj0_Yi.js} +1 -1
- package/dist/{ownership-CSdLGGfW.js → ownership-BvKT4DBj.js} +3 -3
- package/dist/pdp/index.d.ts +2 -2
- package/dist/pdp/index.js +1 -1
- package/dist/{permdock-DkvkGVF0.d.ts → permdock-CHU1LZGq.d.ts} +5 -3
- package/dist/{permdock-JM9TKevZ.js → permdock-DZmr2kJw.js} +2 -1
- package/dist/{permissions-xPyAmuXi.js → permissions-DUmypTlO.js} +1 -1
- package/dist/{pipeline-BAGSNnct.js → pipeline-BMbLI2Sj.js} +2 -2
- package/dist/{policy-CTn-9VQm.js → policy-DekUQ-6v.js} +1 -1
- package/dist/{policy-bundle-BHd1dqU9.js → policy-bundle-JU4-AFJM.js} +3 -3
- package/dist/{powersync-Jj57J-X8.js → powersync-CpxkK_Lz.js} +1 -1
- package/dist/{powersync-CZkZgVyi.js → powersync-D9ZLDzyv.js} +1 -1
- package/dist/{powersync-DJ7dY-Vf.js → powersync-cG4lxrzQ.js} +8 -8
- package/dist/prisma/index.d.ts +1 -1
- package/dist/{protected-action-gBxeetqY.d.ts → protected-action-Dux5RJbA.d.ts} +3 -3
- package/dist/{provider-Clt2095H.d.ts → provider-BSHAIpMK.d.ts} +1 -1
- package/dist/{provider-BwqzED5h.js → provider-BfKUBNyV.js} +32 -5
- package/dist/{prune-config-Bwz4wNQA.js → prune-config-ByigsAkl.js} +4 -4
- package/dist/{pull-Cj_ngsuu.js → pull-4Cyo0uTS.js} +3 -3
- package/dist/pull-_ic7Md2h.js +1 -0
- package/dist/{push-D5so0ptb.js → push-Br0Uz5pT.js} +2 -2
- package/dist/{rbac-DbyaaNLa.js → rbac-BOVyTCI6.js} +3 -3
- package/dist/react/index.d.ts +4 -4
- package/dist/react/lazy.d.ts +4 -4
- package/dist/react/provider-client-lazy.d.ts +1 -1
- package/dist/react/provider-client.d.ts +1 -1
- package/dist/react-native/index.d.ts +4 -4
- package/dist/{rename-CI6NIF9t.js → rename-Dp47Gs_j.js} +2 -2
- package/dist/{report-DF0zUNut.js → report-Dp-ApWVC.js} +1 -1
- package/dist/{report-XdCm1y_J.js → report-x9GeUvjx.js} +1 -1
- package/dist/{request-context-CqqdiVp4.js → request-context-LvIolknK.js} +1 -1
- package/dist/{resolve-names-CuEhEQyB.js → resolve-names-B_no27Dh.js} +4 -4
- package/dist/{resolver-D2c1CcoZ.js → resolver-CAmmdVAL.js} +22 -11
- package/dist/{rls-DcqSn7b2.js → rls-C816Uuvx.js} +5 -5
- package/dist/{rls-BDtyip5c.js → rls-DB18scnl.js} +13 -12
- package/dist/{rls-files-CRRtjXxG.js → rls-files-Cp-qzl61.js} +1 -1
- package/dist/{row-conditions-DwIJocfQ.js → row-conditions-BjARoFLU.js} +1 -1
- package/dist/{rpc-BYFB37KV.d.ts → rpc-CL8lrV5Y.d.ts} +1 -1
- package/dist/{rpc-BQPa7tLP.js → rpc-CoClxzcc.js} +1 -1
- package/dist/{run-DvbrPkgt.js → run-CJhz8BHw.js} +2 -2
- package/dist/run-PpoUQXDc.js +1 -0
- package/dist/{run-ticket-CRldclc7.d.ts → run-ticket-CCRYQNj0.d.ts} +1 -1
- package/dist/{saas-DSeazNrN.js → saas-iXqf78G8.js} +2 -2
- package/dist/{scan-CmfWbAbz.js → scan-DvM-_F8-.js} +1 -1
- package/dist/{schema-CO3btX_O.js → schema-uTRr3B9f.js} +1 -1
- package/dist/server/index.d.ts +5 -5
- package/dist/server/index.js +1 -1
- package/dist/{server-types-FkdDSB9h.d.ts → server-types-C_Lnc8Ec.d.ts} +5 -5
- package/dist/{size-CY6rK6l9.js → size-BO7J8M3B.js} +2 -2
- package/dist/{skills-C28GUaJC.js → skills-B5exEJf5.js} +1 -1
- package/dist/{skills-CA8GfQxQ.js → skills-DF_3nX9_.js} +1 -1
- package/dist/{snapshot-size-D6ixbYvH.js → snapshot-size-BzamcZrn.js} +1 -1
- package/dist/{snapshot-size-NklqBKcV.js → snapshot-size-CJ53OOen.js} +1 -1
- package/dist/solid/index.d.ts +2 -2
- package/dist/solid-start/index.d.ts +3 -3
- package/dist/solid-start/index.js +2 -2
- package/dist/{src-BXDohWNO.js → src-CYKqpYUM.js} +4 -4
- package/dist/{store-core-aluQ3R1M.d.ts → store-core-D5-cqb6z.d.ts} +1 -1
- package/dist/{stores-hHICuiQl.d.ts → stores-DPUPLu29.d.ts} +3 -3
- package/dist/supabase/index.d.ts +2 -2
- package/dist/supabase/index.js +3 -3
- package/dist/supabase/middleware.d.ts +4 -4
- package/dist/supabase/middleware.js +3 -3
- package/dist/{supabase-DXEcFJGM.js → supabase-Dpy2XE9v.js} +2 -2
- package/dist/{supabase-ByhSqBDB.js → supabase-NpHqrRXC.js} +2 -2
- package/dist/supabase-hook-DaK4Rirh.js +2 -0
- package/dist/{supabase-hook-D-ybV98H.js → supabase-hook-VIpXUHKI.js} +5 -5
- package/dist/{supabase-schemas-CVhpyYB6.js → supabase-schemas-DA28GP4N.js} +1 -1
- package/dist/{supautils-C85NuESf.js → supautils-ym4X20ig.js} +2 -1
- package/dist/svelte/index.d.ts +3 -3
- package/dist/svelte/runtime.d.ts +2 -2
- package/dist/svelte/source.d.ts +3 -3
- package/dist/sveltekit/index.d.ts +3 -3
- package/dist/sveltekit/index.js +1 -1
- package/dist/{table-reads-BcceuV7h.js → table-reads-4KzGXg9f.js} +1 -1
- package/dist/{table-reads-BoF_58yh.js → table-reads-B5kunhny.js} +3 -3
- package/dist/{tables-BTXmioCH.js → tables-BwQvlpS4.js} +10 -5
- package/dist/tanstack-start/index.d.ts +3 -3
- package/dist/tanstack-start/index.js +1 -1
- package/dist/{tenant-check-DNbm8OiV.js → tenant-check-CsJkduIb.js} +3 -3
- package/dist/terminal/index.d.ts +2 -2
- package/dist/terminal/index.js +2 -2
- package/dist/testing/core.d.ts +1 -1
- package/dist/testing/core.js +1 -1
- package/dist/testing/fixtures/index.js +1753 -162
- package/dist/testing/index.d.ts +7 -7
- package/dist/testing/index.js +6 -6
- package/dist/testing/saas/index.d.ts +1 -1
- package/dist/testing/saas/index.js +2 -2
- package/dist/testing/saas/permissions.js +1 -1
- package/dist/trpc/index.d.ts +4 -4
- package/dist/trpc/index.js +2 -2
- package/dist/{types-DRMoZjJm.d.ts → types-B23A72BG.d.ts} +1 -1
- package/dist/{types-D417woMp.d.ts → types-BRaJxlqL.d.ts} +2 -2
- package/dist/{types-CBUYbPwl.d.ts → types-C8sDUhaF.d.ts} +1 -1
- package/dist/{types-dtDg4goh.d.ts → types-CM5GwxiJ.d.ts} +2 -2
- package/dist/{types-BzsplNgO.d.ts → types-iwSmOTcK.d.ts} +2 -2
- package/dist/unplugin/index.js +1 -1
- package/dist/{usage-D5QwWiNp.js → usage-BD_z4pba.js} +1 -1
- package/dist/{usage-BGuSrwiW.js → usage-_9h9jQo8.js} +4 -4
- package/dist/usage-wphGxzPQ.js +1 -0
- package/dist/{verify-GWeopgxU.js → verify-cw6SFoQE.js} +9 -9
- package/dist/vue/index.d.ts +2 -2
- package/dist/{warm-BZ0ZwSmO.js → warm-XyQ-2nUR.js} +1 -1
- package/dist/watch-5WP3ZCcR.js +1 -0
- package/dist/{watch-14vng0pg.js → watch-BFDMb5N4.js} +1 -1
- package/dist/{watch-DuIAsqFR.js → watch-Cvc7eUPk.js} +2 -2
- package/dist/workflow/index.d.ts +1 -1
- package/dist/workflow/index.js +1 -1
- package/dist/workflow-sdk/index.d.ts +2 -2
- package/dist/{wrap-C36-eV-C.d.ts → wrap-B4Ge6LOd.d.ts} +1 -1
- package/package.json +1 -1
- package/schemas/supabase-manifest-v1.json +1 -1
- package/dist/bundle-size-BRFeBvuv.js +0 -1
- package/dist/catalog-sR0m6x2g.js +0 -1
- package/dist/collect-CIdE3FGC.js +0 -1
- package/dist/gen-BPYFr_tZ.js +0 -1
- package/dist/pull-BOC-0kJV.js +0 -1
- package/dist/run-DOP1UKWw.js +0 -1
- package/dist/supabase-hook-C_ViYz3g.js +0 -2
- package/dist/usage-CW6PfRfC.js +0 -1
- package/dist/watch-Be7ja4dL.js +0 -1
|
@@ -8,7 +8,7 @@ const codemod = defineLeaf({
|
|
|
8
8
|
description: "The release to migrate to (0.5), config with --prune, manager-chain, bsb-access-tags or bsb-action-keys",
|
|
9
9
|
required: true,
|
|
10
10
|
async complete() {
|
|
11
|
-
return (await import("./codemod-
|
|
11
|
+
return (await import("./codemod-Lov9764v.js")).codemodVersions();
|
|
12
12
|
}
|
|
13
13
|
}, {
|
|
14
14
|
name: "paths",
|
|
@@ -33,7 +33,7 @@ const codemod = defineLeaf({
|
|
|
33
33
|
async run(ctx, { flags, args, rest }) {
|
|
34
34
|
if (args["version"] === "config") {
|
|
35
35
|
if (!flags.prune) throw new CliError("usage", "codemod config needs --prune", { code: "invalid_value" });
|
|
36
|
-
return (await import("./prune-config-
|
|
36
|
+
return (await import("./prune-config-ByigsAkl.js")).runPruneConfig({
|
|
37
37
|
cwd: ctx.cwd,
|
|
38
38
|
check: flags.check,
|
|
39
39
|
dryRun: flags["dry-run"],
|
|
@@ -41,7 +41,7 @@ const codemod = defineLeaf({
|
|
|
41
41
|
json: ctx.json
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
|
-
if (args["version"] === "bsb-access-tags") return (await import("./bsb-access-tags-
|
|
44
|
+
if (args["version"] === "bsb-access-tags") return (await import("./bsb-access-tags-Bfmhft2o.js")).runAccessTags({
|
|
45
45
|
cwd: ctx.cwd,
|
|
46
46
|
...rest[0] === void 0 ? {} : { schemas: rest[0] },
|
|
47
47
|
dryRun: flags["dry-run"],
|
|
@@ -49,7 +49,7 @@ const codemod = defineLeaf({
|
|
|
49
49
|
force: flags.force,
|
|
50
50
|
json: ctx.json
|
|
51
51
|
});
|
|
52
|
-
if (args["version"] === "bsb-action-keys") return (await import("./bsb-action-keys-
|
|
52
|
+
if (args["version"] === "bsb-action-keys") return (await import("./bsb-action-keys-LgveZiHJ.js")).runActionKeys({
|
|
53
53
|
cwd: ctx.cwd,
|
|
54
54
|
dryRun: flags["dry-run"],
|
|
55
55
|
force: flags.force,
|
|
@@ -62,7 +62,7 @@ const codemod = defineLeaf({
|
|
|
62
62
|
force: flags.force,
|
|
63
63
|
json: ctx.json
|
|
64
64
|
});
|
|
65
|
-
return (await import("./codemod-
|
|
65
|
+
return (await import("./codemod-Lov9764v.js")).runCodemod({
|
|
66
66
|
cwd: ctx.cwd,
|
|
67
67
|
version: args["version"],
|
|
68
68
|
paths: rest,
|
|
@@ -5,7 +5,7 @@ import { t as catalogFingerprint } from "./catalog-fingerprint-DAWZARy6.js";
|
|
|
5
5
|
import { r as isRecord } from "./compact-C4LFuqbW.js";
|
|
6
6
|
import { n as flagSpellings, o as GLOBAL_FLAGS } from "./args-BSpXxMnb.js";
|
|
7
7
|
import { c as generateFlags, f as policyFlag, i as dryRunFlag, r as dbUrlFlags, t as checkFlag } from "./flags-DQzNPxg1.js";
|
|
8
|
-
import { n as ROOT } from "./manifest-
|
|
8
|
+
import { n as ROOT } from "./manifest-DkHIGPoY.js";
|
|
9
9
|
import { n as baselineText, r as parseBaseline } from "./baseline-file-BQoki1O_.js";
|
|
10
10
|
import { r as resolveConfigRoot, t as configProperty } from "./config-paths-CQvGng3k.js";
|
|
11
11
|
import { n as propertyKey, r as removeProperty, t as applyEditsStrict } from "./edits-CqU8s2GC.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { r as runCollect } from "./collect-Co-w8Eg2.js";
|
|
@@ -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-5WP3ZCcR.js")).watchCollect(ctx, overrides);
|
|
33
33
|
}
|
|
34
|
-
const result = await (await import("./collect-
|
|
34
|
+
const result = await (await import("./collect-C2_CKZ09.js")).runCollect({
|
|
35
35
|
cwd: ctx.cwd,
|
|
36
36
|
config: ctx.config,
|
|
37
37
|
collect: overrides,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as catalogForCompare, o as formatCatalogJson, r as catalogForDrift, t as buildCatalog } from "./catalog-doc-
|
|
1
|
+
import { n as catalogForCompare, o as formatCatalogJson, r as catalogForDrift, t as buildCatalog } from "./catalog-doc-BX97oFAn.js";
|
|
2
2
|
import { t as loadConfiguredOperations } from "./catalog-operations-BqSsByIE.js";
|
|
3
3
|
import { t as catalogPath } from "./catalog-path-bG0XxHMu.js";
|
|
4
4
|
import { a as describeError, n as CliError } from "./errors-DgLOqc6j.js";
|
package/dist/compile/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as CompiledWhere, c as compileWhere, i as CompiledSql, l as escapeLike, n as CompiledCompare, o as MembershipTable, r as CompiledExists, s as MembershipsMapping, t as CompileWhereOptions } from "../compile-
|
|
1
|
+
import { a as CompiledWhere, c as compileWhere, i as CompiledSql, l as escapeLike, n as CompiledCompare, o as MembershipTable, r as CompiledExists, s as MembershipsMapping, t as CompileWhereOptions } from "../compile-CyUn58lf.js";
|
|
2
2
|
import { n as GraphSqlPart, r as RelationsMapping, t as GraphSql } from "../graph-sql-Ds3nbevr.js";
|
|
3
3
|
export { type CompileWhereOptions, type CompiledCompare, type CompiledExists, type CompiledSql, type CompiledWhere, type GraphSql, type GraphSqlPart, type MembershipTable, type MembershipsMapping, type RelationsMapping, compileWhere, escapeLike };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as WhereResult } from "./permdock-
|
|
1
|
+
import { p as WhereResult } from "./permdock-CHU1LZGq.js";
|
|
2
2
|
import { P as ResourceNode } from "./vocabulary-DHfKPIC5.js";
|
|
3
3
|
import { Ar as Subject, Fr as Condition, jn as Scope, qt as Instant } from "./policy-types-DuM3k5Ao.js";
|
|
4
4
|
import { r as RelationsMapping, t as GraphSql } from "./graph-sql-Ds3nbevr.js";
|
|
@@ -9,16 +9,16 @@ import { p as scopeField } from "./tenancy-B5Xxt9Sc.js";
|
|
|
9
9
|
import { c as listPermissions, h as formerKeys } from "./permission-registry-DstT40VS.js";
|
|
10
10
|
import { l as isConditionRef, o as hasConditionOp } from "./refs-Cix9Zjis.js";
|
|
11
11
|
import { t as requiresApproval } from "./approval-required-B-R4Yw3J.js";
|
|
12
|
-
import { c as jsonSchemaOf } from "./catalog-doc-
|
|
12
|
+
import { c as jsonSchemaOf } from "./catalog-doc-BX97oFAn.js";
|
|
13
13
|
import { i as configError } from "./errors-DgLOqc6j.js";
|
|
14
|
-
import { A as tokenScopeAllowsCall, L as capabilityAccessSql, S as accessSql, f as requiresSql, z as apiKeyAllowsCall } from "./tables-
|
|
14
|
+
import { A as tokenScopeAllowsCall, L as capabilityAccessSql, S as accessSql, f as requiresSql, z as apiKeyAllowsCall } from "./tables-BwQvlpS4.js";
|
|
15
15
|
import { t as connectPgPool } from "./pg-DmS5ITHu.js";
|
|
16
|
-
import { S as scopeTable } from "./names-
|
|
16
|
+
import { S as scopeTable } from "./names-DwGleRKB.js";
|
|
17
17
|
import { a as quoteIdent, c as quoteTable, o as quoteLiteral } from "./quote-LNaBdCGA.js";
|
|
18
|
-
import { r as interactiveAllowsCall } from "./interactive-only-
|
|
19
|
-
import { _ as validitySql, h as andSql, v as wrapSql } from "./fields-
|
|
18
|
+
import { r as interactiveAllowsCall } from "./interactive-only-CylKSukS.js";
|
|
19
|
+
import { _ as validitySql, h as andSql, v as wrapSql } from "./fields-CKX-qjWb.js";
|
|
20
20
|
import { _ as arrayColumnsOf, d as subjectClaimSql, u as subjectClaimJsonSql, v as columnTypesOf } from "./subject-B7p94Y0s.js";
|
|
21
|
-
import { c as breakGlassKey, f as compileConditionSql, l as collectGrants, m as sqlFunctionNames, p as contextRefs, s as breakGlassHolder } from "./rbac-
|
|
21
|
+
import { c as breakGlassKey, f as compileConditionSql, l as collectGrants, m as sqlFunctionNames, p as contextRefs, s as breakGlassHolder } from "./rbac-BOVyTCI6.js";
|
|
22
22
|
import { createHash } from "node:crypto";
|
|
23
23
|
// src/cli/rls/indexes.ts
|
|
24
24
|
/** Postgres truncates identifiers longer than this, in bytes. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as suggestion, o as GLOBAL_FLAGS } from "./args-BSpXxMnb.js";
|
|
2
2
|
import { t as defineLeaf } from "./command-9GAzSI7E.js";
|
|
3
|
-
import { a as resolve } from "./manifest-
|
|
3
|
+
import { a as resolve } from "./manifest-DkHIGPoY.js";
|
|
4
4
|
import { n as CliError } from "./errors-DgLOqc6j.js";
|
|
5
5
|
// src/cli/core/completion.ts
|
|
6
6
|
const SHELLS = [
|
|
@@ -10,7 +10,7 @@ const config = defineLeaf({
|
|
|
10
10
|
...failOnFlag
|
|
11
11
|
},
|
|
12
12
|
async run(ctx, { flags }) {
|
|
13
|
-
const { runConfig } = await import("./config-report-
|
|
13
|
+
const { runConfig } = await import("./config-report-Cs6iDebE.js");
|
|
14
14
|
return runConfig({
|
|
15
15
|
cwd: ctx.cwd,
|
|
16
16
|
config: ctx.config,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./sources-C6Id63F8.js";
|
|
2
2
|
import { t as catalogPath } from "./catalog-path-bG0XxHMu.js";
|
|
3
|
-
import { n as guessPermissions, t as barrelFile } from "./collect-
|
|
4
|
-
import { t as DOCS_BASE } from "./manifest-
|
|
3
|
+
import { n as guessPermissions, t as barrelFile } from "./collect-Co-w8Eg2.js";
|
|
4
|
+
import { t as DOCS_BASE } from "./manifest-DkHIGPoY.js";
|
|
5
5
|
import { r as CONFIG_REPORT_SCHEMA } from "./version-D-jWyJb9.js";
|
|
6
6
|
import { a as rel, t as defaultSrcPath } from "./files-DAR51W3J.js";
|
|
7
7
|
import { n as restatedDefaults, t as resolveConfig } from "./resolve-config-Cu_mE2wt.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as packageManagerOf } from "./peer-D77JpXe-.js";
|
|
2
|
-
import { c as readSupabaseConfig } from "./supabase-schemas-
|
|
2
|
+
import { c as readSupabaseConfig } from "./supabase-schemas-DA28GP4N.js";
|
|
3
3
|
import { existsSync, readdirSync } from "node:fs";
|
|
4
4
|
import { join, relative } from "node:path";
|
|
5
5
|
// src/cli/generate/context.ts
|
package/dist/convex/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { D as Policy, N as PolicyVocabulary, Or as Principal } from "../policy-types-DuM3k5Ao.js";
|
|
2
2
|
import { a as ProblemDetails, r as PermDockDeniedError } from "../errors-BliKrfmP.js";
|
|
3
|
-
import { t as InstanceOptions } from "../instance-options-
|
|
4
|
-
import { a as PermDock } from "../permdock-
|
|
3
|
+
import { t as InstanceOptions } from "../instance-options-D-SLCp4I.js";
|
|
4
|
+
import { a as PermDock } from "../permdock-CHU1LZGq.js";
|
|
5
5
|
import { w as Permission } from "../vocabulary-DHfKPIC5.js";
|
|
6
6
|
type ConvexContextLike = {
|
|
7
7
|
readonly auth?: {
|
package/dist/convex/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as tenantScope, t as actorFrom } from "../adapter-context-lHq_i_77.js";
|
|
2
2
|
import { n as PermDockValidationError } from "../validation-error-CgDOA6VS.js";
|
|
3
|
-
import { u as withApp } from "../permdock-
|
|
4
|
-
import { n as resolveOrNull, t as buildInstance } from "../build-instance-
|
|
3
|
+
import { u as withApp } from "../permdock-DZmr2kJw.js";
|
|
4
|
+
import { n as resolveOrNull, t as buildInstance } from "../build-instance-CZg_Bf45.js";
|
|
5
5
|
import { t as compact } from "../compact-C4LFuqbW.js";
|
|
6
6
|
import { n as PermDockDeniedError, t as PermDockApprovalRequiredError } from "../errors-DOSkVeTC.js";
|
|
7
7
|
// src/convex/create.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { D as Policy, Dr as Membership, Sr as CustomRole, ir as Decision } from "./policy-types-DuM3k5Ao.js";
|
|
2
|
-
import { o as PermDockOptions, p as WhereResult } from "./permdock-
|
|
2
|
+
import { o as PermDockOptions, p as WhereResult } from "./permdock-CHU1LZGq.js";
|
|
3
3
|
import { w as Permission } from "./vocabulary-DHfKPIC5.js";
|
|
4
4
|
type MatrixOutcome = "granted" | "denied" | "approval-required";
|
|
5
5
|
type MatrixCell = MatrixOutcome | {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as fromSnapshot } from "./from-snapshot-DZ4D2sLa.js";
|
|
2
2
|
import { c as listPermissions } from "./permission-registry-DstT40VS.js";
|
|
3
|
-
import { t as getPermDock } from "./permdock-
|
|
3
|
+
import { t as getPermDock } from "./permdock-DZmr2kJw.js";
|
|
4
4
|
import { C as membershipsClaim } from "./evaluate-DNz6wMYv.js";
|
|
5
5
|
import { d as scopeList } from "./scopes-B-KX9EI8.js";
|
|
6
6
|
import { c as quoteSqlTable, n as defaultSqlCommand, o as quoteSqlIdent, t as SQL_IDENT } from "./sql-T4GaBh9X.js";
|
|
7
|
-
import { A as memoryCustomRoleSource } from "./src-
|
|
7
|
+
import { A as memoryCustomRoleSource } from "./src-CYKqpYUM.js";
|
|
8
8
|
import { n as parseSnapshot } from "./snapshot-Dzi4LR6n.js";
|
|
9
9
|
import "./budget-BH81q2cj.js";
|
|
10
10
|
// src/testing/policy-matrix.ts
|
|
@@ -2,7 +2,7 @@ import { n as ApprovalErrorCode } from "./errors-KngVdJT9.js";
|
|
|
2
2
|
import { m as ApprovalStore, p as ApprovalStatus } from "./types-BGN3coSe.js";
|
|
3
3
|
import { Ar as Subject, D as Policy, N as PolicyVocabulary, Or as Principal, cr as DeniedDecision, rr as ApprovalRequiredDecision, ur as GrantedDecision } from "./policy-types-DuM3k5Ao.js";
|
|
4
4
|
import { t as Operation } from "./operations-DaEoGpMV.js";
|
|
5
|
-
import { a as PermDock, o as PermDockOptions, v as PrincipalSource } from "./permdock-
|
|
5
|
+
import { a as PermDock, o as PermDockOptions, v as PrincipalSource } from "./permdock-CHU1LZGq.js";
|
|
6
6
|
import { t as ApprovalPrompt } from "./approval-prompt-BKxaKtby.js";
|
|
7
7
|
/**
|
|
8
8
|
* The platform user behind a chat message or action. Fill it only from an event
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Ar as Subject, D as Policy, N as PolicyVocabulary, Or as Principal, ir as Decision, wr as Delegation } from "./policy-types-DuM3k5Ao.js";
|
|
2
|
-
import { a as PermDock } from "./permdock-
|
|
2
|
+
import { a as PermDock } from "./permdock-CHU1LZGq.js";
|
|
3
3
|
import { m as ApprovalStore } from "./types-BGN3coSe.js";
|
|
4
|
-
import { t as InstanceOptions } from "./instance-options-
|
|
4
|
+
import { t as InstanceOptions } from "./instance-options-D-SLCp4I.js";
|
|
5
5
|
import { t as Operation } from "./operations-DaEoGpMV.js";
|
|
6
6
|
import { w as Permission } from "./vocabulary-DHfKPIC5.js";
|
|
7
7
|
import { t as RequestContext } from "./request-context-E3-ps-H_.js";
|
|
8
|
-
import { n as PermDockWrap } from "./wrap-
|
|
9
|
-
import { o as OtelWrap } from "./types-
|
|
8
|
+
import { n as PermDockWrap } from "./wrap-B4Ge6LOd.js";
|
|
9
|
+
import { o as OtelWrap } from "./types-B23A72BG.js";
|
|
10
10
|
import { t as DeniedText } from "./denied-text-DgNqDAPH.js";
|
|
11
11
|
/**
|
|
12
12
|
* What the user can do to lift a denial: authenticate again with the `acr` and
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as tenantScope, t as actorFrom } from "./adapter-context-lHq_i_77.js";
|
|
2
|
-
import { n as resolveOrNull } from "./build-instance-
|
|
2
|
+
import { n as resolveOrNull } from "./build-instance-CZg_Bf45.js";
|
|
3
3
|
import { c as listPermissions } from "./permission-registry-DstT40VS.js";
|
|
4
4
|
import { t as compact } from "./compact-C4LFuqbW.js";
|
|
5
5
|
import { t as LOAD_FAILED } from "./decision-hHv4UZgy.js";
|
|
@@ -7,9 +7,9 @@ import { n as freezeDeep } from "./freeze-DGfJq_j2.js";
|
|
|
7
7
|
import { n as problemDetails } from "./problem-details-EJHcvYCz.js";
|
|
8
8
|
import { a as decisionResponse, c as problemFromDecision, d as unauthenticatedProblem, s as notFoundProblem, t as ANONYMOUS } from "./problem-BZB7zPC7.js";
|
|
9
9
|
import { f as InvalidSignatureError, n as applyApprovalResume, o as evaluationsHandler } from "./evaluations-DPEAu_jM.js";
|
|
10
|
-
import { i as challengeScope, u as withApp } from "./permdock-
|
|
10
|
+
import { i as challengeScope, u as withApp } from "./permdock-DZmr2kJw.js";
|
|
11
11
|
import { t as deferredSink } from "./deferred-sink-BZahJ8sO.js";
|
|
12
|
-
import { n as requestContext, t as buildReportingInstance } from "./request-context-
|
|
12
|
+
import { n as requestContext, t as buildReportingInstance } from "./request-context-LvIolknK.js";
|
|
13
13
|
import { n as decideSet, r as permissionList } from "./decide-set-CgNcE6pP.js";
|
|
14
14
|
import { n as resourceRef } from "./resource-ref-BiQtFK-I.js";
|
|
15
15
|
import { r as hasCredentials } from "./http-C9jDw_bZ.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { m as ApprovalStore } from "./types-BGN3coSe.js";
|
|
2
2
|
import { a as AutomationSource } from "./automation-C7WH5XcZ.js";
|
|
3
3
|
import { D as Policy, N as PolicyVocabulary, Or as Principal, _t as TokenSigner, ar as Denial, gn as AuthEvent, ir as Decision, qt as Instant, vt as TokenVerifier } from "./policy-types-DuM3k5Ao.js";
|
|
4
|
-
import { a as PermDock, n as DecideOptions, o as PermDockOptions, v as PrincipalSource } from "./permdock-
|
|
4
|
+
import { a as PermDock, n as DecideOptions, o as PermDockOptions, v as PrincipalSource } from "./permdock-CHU1LZGq.js";
|
|
5
5
|
import { w as Permission } from "./vocabulary-DHfKPIC5.js";
|
|
6
|
-
import { c as RunResource, i as RunBinding, r as RunAutomation } from "./run-ticket-
|
|
6
|
+
import { c as RunResource, i as RunBinding, r as RunAutomation } from "./run-ticket-CCRYQNj0.js";
|
|
7
7
|
import { n as ApprovalWaiter } from "./waiter-DdwtUSzB.js";
|
|
8
8
|
type WorkflowPermDockOptions = PermDockOptions & {
|
|
9
9
|
/** Signs the run tickets `start` mints. */
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { u as withApp } from "./permdock-
|
|
1
|
+
import { u as withApp } from "./permdock-DZmr2kJw.js";
|
|
2
2
|
import { t as compact } from "./compact-C4LFuqbW.js";
|
|
3
3
|
import { c as deniedFor } from "./may-use-ikNCnNgZ.js";
|
|
4
4
|
import { n as freezeDeep } from "./freeze-DGfJq_j2.js";
|
|
5
5
|
import { t as instanceOptions } from "./instance-options-CLErhA76.js";
|
|
6
6
|
import { t as composeWraps } from "./wrap-CsfsaJhd.js";
|
|
7
|
-
import { n as createAgentKernel } from "./kernel-
|
|
7
|
+
import { n as createAgentKernel } from "./kernel-CzzmzwLg.js";
|
|
8
8
|
// src/agent/create.ts
|
|
9
9
|
function modelRow(modelId) {
|
|
10
10
|
return { id: modelId };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ar as Subject, G as CredentialVerifier, Mt as Credential, Pt as CredentialKind, X as DecisionSink, gn as AuthEvent, jt as ApiKeyPrincipal, lt as SettingsSource } from "./policy-types-DuM3k5Ao.js";
|
|
2
2
|
import { E as PermissionTree } from "./vocabulary-DHfKPIC5.js";
|
|
3
|
-
import { v as PrincipalSource } from "./permdock-
|
|
3
|
+
import { v as PrincipalSource } from "./permdock-CHU1LZGq.js";
|
|
4
4
|
/** `on('auth')` causes for an API key that resolves to the anonymous subject. */
|
|
5
5
|
type ApiKeyFailureCause = "malformed" | "unknown-credential" | "invalid-claims" | "expired" | "credential-policy" | "credential-revoked" | "owner-unavailable";
|
|
6
6
|
/** An opaque key split at its last `_`: `pdk_<id>_<secret><checksum>`. */
|
|
@@ -6,7 +6,7 @@ import { t as beforeFirst } from "./text-D704xHVl.js";
|
|
|
6
6
|
import { C as tenantTypeOf } from "./subject-B7p94Y0s.js";
|
|
7
7
|
import { a as quoteIdent, c as quoteTable, i as qualified, o as quoteLiteral, s as quoteQualified } from "./quote-LNaBdCGA.js";
|
|
8
8
|
import { t as CUSTOM_ROLES } from "./shared-DnVY767H.js";
|
|
9
|
-
import { B as rolesTableScope, P as currentKeyExpr } from "./interactive-only-
|
|
9
|
+
import { B as rolesTableScope, P as currentKeyExpr } from "./interactive-only-CylKSukS.js";
|
|
10
10
|
// src/cli/rls/custom-role-rebuild.ts
|
|
11
11
|
const PREFIX = "PermDock CLI";
|
|
12
12
|
/** A column of the roles-table row `r`. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as memoryApprovalStore } from "./store-n3yEN7dt.js";
|
|
2
|
-
import { c as APP, t as getPermDock } from "./permdock-
|
|
2
|
+
import { c as APP, t as getPermDock } from "./permdock-DZmr2kJw.js";
|
|
3
3
|
import { r as isRecord, t as compact } from "./compact-C4LFuqbW.js";
|
|
4
4
|
import { t as instanceOptions } from "./instance-options-CLErhA76.js";
|
|
5
5
|
import { n as memoryLimitStore, t as limits } from "./limits-DpTxX6N4.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { m as ApprovalStore } from "./types-BGN3coSe.js";
|
|
2
|
-
import { r as ApiKeySubjectOptions } from "./credentials-
|
|
2
|
+
import { r as ApiKeySubjectOptions } from "./credentials-DtSnydoD.js";
|
|
3
3
|
import { t as ClaimsMap } from "./claims-map-CLKQWxJG.js";
|
|
4
|
-
import { t as InstanceOptions } from "./instance-options-
|
|
5
|
-
import { a as PermDock, o as PermDockOptions } from "./permdock-
|
|
4
|
+
import { t as InstanceOptions } from "./instance-options-D-SLCp4I.js";
|
|
5
|
+
import { a as PermDock, o as PermDockOptions } from "./permdock-CHU1LZGq.js";
|
|
6
6
|
import { n as SubjectCache, s as VersionCache } from "./subject-cache-Bn4oJY_R.js";
|
|
7
7
|
import { D as Policy, N as PolicyVocabulary, Or as Principal } from "./policy-types-DuM3k5Ao.js";
|
|
8
8
|
/**
|
package/dist/delivery/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Sn as DeliveryFailureCause, bn as DeliveryChannel, wn as EmailCategory } from "../policy-types-DuM3k5Ao.js";
|
|
2
2
|
import { i as approvalUrlFor, n as ApprovalUrl, r as approvalPrompt, t as ApprovalPrompt } from "../approval-prompt-BKxaKtby.js";
|
|
3
3
|
import { _ as TransportOptions, a as DeliveryReport, c as DeliveryTransport, d as EmailTransport, f as EmailUnsubscribe, g as TransportMessages, h as TransportItem, i as DeliveryMessages, l as DeliveryTransports, m as Recipient, n as ChatTransport, o as DeliveryResult, p as OutgoingEmail, r as DeliverOptions, s as DeliveryTarget, t as ChatMessage, u as EmailMessage, v as WebhookMessage, y as WebhookTransport } from "../types-D3GI2B9O.js";
|
|
4
|
-
import { C as audience, S as SubscriberEvent, _ as ParseConnectorResult, a as DeliveryPermDock, b as Audience, c as MemoryDelivery, d as memoryDeliveryTransport, f as CONNECTOR_SCHEMA, g as ConnectorKind, h as ConnectorIssue, i as isDeliveryTarget, l as MemoryDeliveryTransport, m as Connector, n as webhookTransport, o as DeliveryPermDockOptions, p as CONNECTOR_KINDS, r as isAddrSpec, s as createPermDock, t as WebhookTransportOptions, u as MemoryDeliveryTransportOptions, v as SiemDestination, w as subscribersFor, x as AudienceOptions, y as parseConnector } from "../index-
|
|
4
|
+
import { C as audience, S as SubscriberEvent, _ as ParseConnectorResult, a as DeliveryPermDock, b as Audience, c as MemoryDelivery, d as memoryDeliveryTransport, f as CONNECTOR_SCHEMA, g as ConnectorKind, h as ConnectorIssue, i as isDeliveryTarget, l as MemoryDeliveryTransport, m as Connector, n as webhookTransport, o as DeliveryPermDockOptions, p as CONNECTOR_KINDS, r as isAddrSpec, s as createPermDock, t as WebhookTransportOptions, u as MemoryDeliveryTransportOptions, v as SiemDestination, w as subscribersFor, x as AudienceOptions, y as parseConnector } from "../index-CT4VKXU-.js";
|
|
5
5
|
export { type ApprovalPrompt, type ApprovalUrl, type Audience, type AudienceOptions, CONNECTOR_KINDS, CONNECTOR_SCHEMA, type ChatMessage, type ChatTransport, type Connector, type ConnectorIssue, type ConnectorKind, type DeliverOptions, type DeliveryChannel, type DeliveryFailureCause, type DeliveryMessages, type DeliveryPermDock, type DeliveryPermDockOptions, type DeliveryReport, type DeliveryResult, type DeliveryTarget, type DeliveryTransport, type DeliveryTransports, type EmailCategory, type EmailMessage, type EmailTransport, type EmailUnsubscribe, type MemoryDelivery, type MemoryDeliveryTransport, type MemoryDeliveryTransportOptions, type OutgoingEmail, type ParseConnectorResult, type Recipient, type SiemDestination, type SubscriberEvent, type TransportItem, type TransportMessages, type TransportOptions, type WebhookMessage, type WebhookTransport, type WebhookTransportOptions, approvalPrompt, approvalUrlFor, audience, createPermDock, isAddrSpec, isDeliveryTarget, memoryDeliveryTransport, parseConnector, subscribersFor, webhookTransport };
|
|
@@ -3,9 +3,9 @@ import { t as parseCatalog } from "./parse-CUqZ_lLC.js";
|
|
|
3
3
|
import { t as canonicalJson } from "./canonical-json-BibZkXtE.js";
|
|
4
4
|
import { g as secondsOf } from "./time-r0CKBm57.js";
|
|
5
5
|
import { n as findPermission } from "./permission-registry-DstT40VS.js";
|
|
6
|
-
import { t as getPermDock } from "./permdock-
|
|
7
|
-
import { A as memoryCustomRoleSource } from "./src-
|
|
8
|
-
import { t as buildCatalog } from "./catalog-doc-
|
|
6
|
+
import { t as getPermDock } from "./permdock-DZmr2kJw.js";
|
|
7
|
+
import { A as memoryCustomRoleSource } from "./src-CYKqpYUM.js";
|
|
8
|
+
import { t as buildCatalog } from "./catalog-doc-BX97oFAn.js";
|
|
9
9
|
import { f as usageResult, i as configError } from "./errors-DgLOqc6j.js";
|
|
10
10
|
import { n as fixtureSubject, r as loadFixtures, t as fixtureRow } from "./fixtures-3aUUP6Nx.js";
|
|
11
11
|
import { a as loadModule, n as asPolicy, s as pickNamed } from "./load-m7jmit3y.js";
|
|
@@ -21,7 +21,7 @@ const diff = defineLeaf({
|
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
async run(ctx, { flags, args }) {
|
|
24
|
-
return (await import("./diff-
|
|
24
|
+
return (await import("./diff-BABnQ-z0.js")).runDiff({
|
|
25
25
|
cwd: ctx.cwd,
|
|
26
26
|
config: ctx.config,
|
|
27
27
|
sources: [args["before"], args["after"]].filter((value) => value !== void 0),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { c as rootScope, d as scopeList, o as normalizeMemberships, s as resolveScope } from "./scopes-B-KX9EI8.js";
|
|
2
2
|
import { r as supabaseTenantClaim } from "./budget-BH81q2cj.js";
|
|
3
|
-
import { r as runCollect } from "./collect-
|
|
3
|
+
import { r as runCollect } from "./collect-Co-w8Eg2.js";
|
|
4
4
|
import { t as didYouMean } from "./args-BSpXxMnb.js";
|
|
5
|
-
import { t as DOCS_BASE } from "./manifest-
|
|
6
|
-
import { o as nonEmptyOr, r as findingOf } from "./output-
|
|
5
|
+
import { t as DOCS_BASE } from "./manifest-DkHIGPoY.js";
|
|
6
|
+
import { o as nonEmptyOr, r as findingOf } from "./output-DNbj0_Yi.js";
|
|
7
7
|
import { t as createStyle } from "./style-CQDaLJtP.js";
|
|
8
8
|
import { i as DOCTOR_REPORT_SCHEMA } from "./version-D-jWyJb9.js";
|
|
9
9
|
import { a as rel, n as doctorSrcPath, o as sqlFiles$1, r as listSourceFiles } from "./files-DAR51W3J.js";
|
|
@@ -11,34 +11,34 @@ import { r as pgConnector } from "./pg-DmS5ITHu.js";
|
|
|
11
11
|
import { a as describeError, n as CliError } from "./errors-DgLOqc6j.js";
|
|
12
12
|
import { S as restatedFacts, _ as workspaceDirs, b as readJson, d as betterSupabaseAuthzVersions, f as betterSupabaseConfig, g as betterSupabaseTenantClaim, h as betterSupabaseInstalled, m as betterSupabaseDefaults, o as readParsedConfig, p as betterSupabaseConfigPath, t as configFileIn, u as BETTER_SUPABASE_AUTHZ_TOPIC, v as filesOf, x as membershipDisagreements, y as nodeFiles } from "./config-Dan6vcvj.js";
|
|
13
13
|
import { a as loadModule, i as loadConfiguredPolicy, n as asPolicy, s as pickNamed } from "./load-m7jmit3y.js";
|
|
14
|
-
import { i as runSkillsInstall } from "./skills-
|
|
14
|
+
import { i as runSkillsInstall } from "./skills-B5exEJf5.js";
|
|
15
15
|
import { i as withSchemaDefaults, n as schemaDefaults, r as schemaTables } from "./schema-tables-Ba9LE_XB.js";
|
|
16
|
-
import { a as pd074, c as readSupabaseConfig, i as pd045, l as supabaseConfig, n as resolveSchemas, o as pd127, s as pd136, u as supabaseConfigName } from "./supabase-schemas-
|
|
17
|
-
import { f as attrsPlan, i as supabaseHookManifest, n as hooklessDatabase, r as supabaseDatabaseManifest } from "./hook-sql-
|
|
18
|
-
import { i as pd039, t as hookOut } from "./supabase-hook-
|
|
16
|
+
import { a as pd074, c as readSupabaseConfig, i as pd045, l as supabaseConfig, n as resolveSchemas, o as pd127, s as pd136, u as supabaseConfigName } from "./supabase-schemas-DA28GP4N.js";
|
|
17
|
+
import { f as attrsPlan, i as supabaseHookManifest, n as hooklessDatabase, r as supabaseDatabaseManifest } from "./hook-sql-CSUFnRn0.js";
|
|
18
|
+
import { i as pd039, t as hookOut } from "./supabase-hook-VIpXUHKI.js";
|
|
19
19
|
import { t as parseCatalog } from "./parse-CUqZ_lLC.js";
|
|
20
20
|
import { t as catalogPath } from "./catalog-path-bG0XxHMu.js";
|
|
21
|
-
import { n as bsbActions, t as answerOf } from "./bsb-actions-
|
|
21
|
+
import { n as bsbActions, t as answerOf } from "./bsb-actions-DcDxQ_Ku.js";
|
|
22
22
|
import { c as outFiles } from "./output-files-8lfALMSU.js";
|
|
23
|
-
import { a as guardedTables, r as unsatisfiedKinds, t as ownershipRules } from "./ownership-
|
|
23
|
+
import { a as guardedTables, r as unsatisfiedKinds, t as ownershipRules } from "./ownership-BvKT4DBj.js";
|
|
24
24
|
import { n as MIGRATION_DIRS, t as DEFAULT_SENSITIVE_ACTIONS } from "./constants-PCJiir_3.js";
|
|
25
25
|
import { n as membershipColumns, r as tableKey } from "./deciding-columns-DBZsrpdD.js";
|
|
26
26
|
import { a as parseSqlFile, c as readPolicy$1, d as sqlCalls, f as stringValues, h as sqlStatements, l as readRelation, o as parseSqlLenient, p as group, r as functionArgTypes, s as parseSqlStatements, t as SqlSyntaxError } from "./ast-Dnm2TOHN.js";
|
|
27
27
|
import { t as applyFiles } from "./files-DuV7wRim.js";
|
|
28
|
-
import { o as splitIgnored } from "./verify-
|
|
28
|
+
import { o as splitIgnored } from "./verify-cw6SFoQE.js";
|
|
29
29
|
import { a as updatedBaseline, i as readBaseline, n as baselineText, t as applyBaseline } from "./baseline-file-BQoki1O_.js";
|
|
30
|
-
import { n as activeTenantMismatch, t as authorizationProvider } from "./provider-
|
|
30
|
+
import { n as activeTenantMismatch, t as authorizationProvider } from "./provider-BfKUBNyV.js";
|
|
31
31
|
import { r as isRecord } from "./compact-C4LFuqbW.js";
|
|
32
32
|
import "./authz-topic-D8x24Jv-.js";
|
|
33
|
-
import { n as activeSource } from "./memberships-
|
|
34
|
-
import { n as budgetBreaches, r as snapshotProbeOptions, t as breachText } from "./budgets-
|
|
33
|
+
import { n as activeSource } from "./memberships-CDiSsFTu.js";
|
|
34
|
+
import { n as budgetBreaches, r as snapshotProbeOptions, t as breachText } from "./budgets-B2hIDaz7.js";
|
|
35
35
|
import { a as nameOf, i as lineIndex, o as nodes, r as child, u as walk } from "./ast-CAOxvn9t.js";
|
|
36
36
|
import { r as parseSync, t as createVisitor } from "./optional-CaQWp9HA.js";
|
|
37
37
|
import { t as canonicalJson } from "./canonical-json-BibZkXtE.js";
|
|
38
|
-
import { c as jsonSchemaOf, i as catalogOAuthScopes } from "./catalog-doc-
|
|
39
|
-
import { a as pd015, i as pd014, n as ADAPTER_SPECIFIERS, o as runtimeSpecifiers, r as pd001, t as runUsage } from "./usage-
|
|
38
|
+
import { c as jsonSchemaOf, i as catalogOAuthScopes } from "./catalog-doc-BX97oFAn.js";
|
|
39
|
+
import { a as pd015, i as pd014, n as ADAPTER_SPECIFIERS, o as runtimeSpecifiers, r as pd001, t as runUsage } from "./usage-_9h9jQo8.js";
|
|
40
40
|
import { c as listPermissions, h as formerKeys } from "./permission-registry-DstT40VS.js";
|
|
41
|
-
import { t as resolveNames } from "./resolve-names-
|
|
41
|
+
import { t as resolveNames } from "./resolve-names-B_no27Dh.js";
|
|
42
42
|
import "./markers-C-kThnKN.js";
|
|
43
43
|
import { i as qualifySqlTable, s as quoteSqlLiteral } from "./sql-T4GaBh9X.js";
|
|
44
44
|
import { s as parseCredential } from "./credential-D9in5keC.js";
|
|
@@ -51,34 +51,34 @@ import { o as hasConditionOp, u as isSqlFunctionField } from "./refs-Cix9Zjis.js
|
|
|
51
51
|
import { o as flattenGrantee } from "./grantee-BSCdpIF3.js";
|
|
52
52
|
import { u as isPrincipalRelation } from "./resource-relations-Ck5sjYQR.js";
|
|
53
53
|
import { t as operationCoverage } from "./coverage-C3jVYC9Y.js";
|
|
54
|
-
import { a as snapshotSize, r as mostPrivilegedRole, t as SNAPSHOT_BUDGET_BYTES } from "./snapshot-size-
|
|
54
|
+
import { a as snapshotSize, r as mostPrivilegedRole, t as SNAPSHOT_BUDGET_BYTES } from "./snapshot-size-CJ53OOen.js";
|
|
55
55
|
import { a as taggedPolicyId, o as taggedPolicyIds } from "./bsb-access-Bcw6GrQm.js";
|
|
56
56
|
import { t as membershipSourcesOf } from "./sources-BbSUNmFX.js";
|
|
57
|
-
import { a as ownedObjects, i as inReservedDir, o as shownKey, r as generatedByPermdock, s as withoutOwned, t as policyModel } from "./model-
|
|
57
|
+
import { a as ownedObjects, i as inReservedDir, o as shownKey, r as generatedByPermdock, s as withoutOwned, t as policyModel } from "./model-r7X_HXyS.js";
|
|
58
58
|
import { a as pd114, i as pd110, r as pd109 } from "./claims-size-BUhCWS88.js";
|
|
59
59
|
import { t as importFromApp } from "./app-peer-BnMh5lqz.js";
|
|
60
|
-
import { c as rlsReport, o as policiesFor } from "./report-
|
|
60
|
+
import { c as rlsReport, o as policiesFor } from "./report-x9GeUvjx.js";
|
|
61
61
|
import { a as scopeMembershipTable } from "./compile-BUKXrueE.js";
|
|
62
|
-
import { a as powersyncOut, c as streamOf, i as powersyncFiles, n as staleFiles, o as roleSources, r as publicationPath, s as scopeSourcesOf } from "./powersync-
|
|
62
|
+
import { a as powersyncOut, c as streamOf, i as powersyncFiles, n as staleFiles, o as roleSources, r as publicationPath, s as scopeSourcesOf } from "./powersync-cG4lxrzQ.js";
|
|
63
63
|
import { t as parseProgram } from "./program-CvarkLMS.js";
|
|
64
|
-
import { t as FIELD_VIEWS } from "./fields-
|
|
64
|
+
import { t as FIELD_VIEWS } from "./fields-CKX-qjWb.js";
|
|
65
65
|
import { n as restatedDefaults } from "./resolve-config-Cu_mE2wt.js";
|
|
66
|
-
import {
|
|
67
|
-
import { X as policyBundle, et as graphPlan, i as tableNames, r as tableNameOf } from "./tables-
|
|
66
|
+
import { n as policyRowConditionKeys } from "./row-conditions-BjARoFLU.js";
|
|
67
|
+
import { X as policyBundle, et as graphPlan, i as tableNames, r as tableNameOf } from "./tables-BwQvlpS4.js";
|
|
68
68
|
import { n as byKey } from "./compare-8SNJN-9U.js";
|
|
69
|
-
import { a as tableFor, n as commandFor, o as unmappedActions, r as compileGrants, t as INFERRED_VERBS } from "./compile-
|
|
70
|
-
import { p as contextRefs } from "./rbac-
|
|
71
|
-
import {
|
|
72
|
-
import { i as graphSqlName } from "./names-
|
|
69
|
+
import { a as tableFor, n as commandFor, o as unmappedActions, r as compileGrants, t as INFERRED_VERBS } from "./compile-EtZv2wc0.js";
|
|
70
|
+
import { p as contextRefs } from "./rbac-BOVyTCI6.js";
|
|
71
|
+
import { l as rowConditionMessage, r as ROW_CONDITION_FIX, s as helperTablePolicies } from "./helper-calls-DN1PJcNY.js";
|
|
72
|
+
import { i as graphSqlName } from "./names-DwGleRKB.js";
|
|
73
73
|
import { t as CUSTOM_ROLES } from "./shared-DnVY767H.js";
|
|
74
74
|
import { n as isSeeds } from "./seeds-Bs44UDS3.js";
|
|
75
75
|
import { r as FIXTURES_PATH, s as seedPathsLine } from "./seed-sql-CjF7u0aX.js";
|
|
76
|
-
import { i as buildContext, n as isRefusal, o as inheritTargets, t as generateOptions } from "./generate-options-
|
|
76
|
+
import { i as buildContext, n as isRefusal, o as inheritTargets, t as generateOptions } from "./generate-options-BFAvlJKQ.js";
|
|
77
77
|
import { n as propertyKey } from "./edits-CqU8s2GC.js";
|
|
78
78
|
import { n as legacyHelperNames, r as retirePlan, t as legacyHelperCalls } from "./retire-FN4aY6-n.js";
|
|
79
|
-
import { t as supautilsRejections } from "./supautils-
|
|
79
|
+
import { t as supautilsRejections } from "./supautils-ym4X20ig.js";
|
|
80
80
|
import { t as MANIFEST_FILE } from "./manifest-json-DMaBWmcG.js";
|
|
81
|
-
import { r as manifestTableReads, s as sharedFunctionsOf, t as committedManifest } from "./table-reads-
|
|
81
|
+
import { r as manifestTableReads, s as sharedFunctionsOf, t as committedManifest } from "./table-reads-B5kunhny.js";
|
|
82
82
|
import { isDeepStrictEqual } from "node:util";
|
|
83
83
|
import { readFileSync } from "node:fs";
|
|
84
84
|
import { dirname, join, resolve } from "node:path";
|
|
@@ -2572,6 +2572,75 @@ async function pd108(cwd, config, files = nodeFiles) {
|
|
|
2572
2572
|
}];
|
|
2573
2573
|
});
|
|
2574
2574
|
}
|
|
2575
|
+
const QNAME = String.raw`("[^"]+"|[A-Za-z_]\w*)\s*\.\s*("[^"]+"|[A-Za-z_]\w*)`;
|
|
2576
|
+
const CREATE_RELATION = new RegExp(String.raw`^create\s+(?:or\s+replace\s+)?(?:(materialized\s+)?view|(?:unlogged\s+)?table)\s+(?:if\s+not\s+exists\s+)?${QNAME}`, "iu");
|
|
2577
|
+
const MEMO_TRIGGER = new RegExp(String.raw`^create\s+(?:or\s+replace\s+)?trigger\s+"?permdock_memo_generation"?\s[\s\S]*?\bon\s+${QNAME}`, "iu");
|
|
2578
|
+
const MEMO_FUNCTION = new RegExp(String.raw`^create\s+(?:or\s+replace\s+)?function\s+${QNAME}\s*\(`, "iu");
|
|
2579
|
+
const QUALIFIED = new RegExp(String.raw`${QNAME}(\s*\()?`, "gu");
|
|
2580
|
+
const AUTH_READ = /\b(?:from|join)\s+(?:"auth"|auth)\s*\.\s*("[^"]+"|\w+)(?!\s*\()/giu;
|
|
2581
|
+
const TRACED_SCHEMAS = /* @__PURE__ */ new Set([
|
|
2582
|
+
"pg_catalog",
|
|
2583
|
+
"auth",
|
|
2584
|
+
"better_supabase"
|
|
2585
|
+
]);
|
|
2586
|
+
/**
|
|
2587
|
+
* PD139: a memoized PermDock helper reads a relation the memo generation
|
|
2588
|
+
* triggers cannot see. The memo lasts for the statement and only a statement
|
|
2589
|
+
* trigger on a table the body reads ends it early, so a write to a table read
|
|
2590
|
+
* through a view, a function outside the helper schema, or `auth.*`, or to a
|
|
2591
|
+
* table without the trigger, leaves the answer stale until the statement ends.
|
|
2592
|
+
*/
|
|
2593
|
+
function pd139(cwd, config, files = nodeFiles) {
|
|
2594
|
+
const statements = statementsOf(cwd, config, files);
|
|
2595
|
+
const helperSchema = (config.rls?.schema ?? "permdock").toLowerCase();
|
|
2596
|
+
const relations = /* @__PURE__ */ new Map();
|
|
2597
|
+
const triggered = /* @__PURE__ */ new Set();
|
|
2598
|
+
const memoized = /* @__PURE__ */ new Map();
|
|
2599
|
+
for (const statement of statements) {
|
|
2600
|
+
const text = statement.text.trimStart();
|
|
2601
|
+
const relation = CREATE_RELATION.exec(text);
|
|
2602
|
+
if (relation !== null) {
|
|
2603
|
+
const key = `${unquote$1(group(relation, 2))}.${unquote$1(group(relation, 3))}`;
|
|
2604
|
+
relations.set(key, /\bview\b/iu.test(text.slice(0, relation[0].length)) ? "view" : "table");
|
|
2605
|
+
continue;
|
|
2606
|
+
}
|
|
2607
|
+
const trigger = MEMO_TRIGGER.exec(text);
|
|
2608
|
+
if (trigger !== null) {
|
|
2609
|
+
triggered.add(`${unquote$1(group(trigger, 1))}.${unquote$1(group(trigger, 2))}`);
|
|
2610
|
+
continue;
|
|
2611
|
+
}
|
|
2612
|
+
const fn = MEMO_FUNCTION.exec(text);
|
|
2613
|
+
if (fn !== null && text.includes("permdock.m.") && text.includes("v_disc")) memoized.set(`${unquote$1(group(fn, 1))}.${unquote$1(group(fn, 2))}`, statement);
|
|
2614
|
+
}
|
|
2615
|
+
const findings = [];
|
|
2616
|
+
for (const [name, statement] of memoized) {
|
|
2617
|
+
const body = statement.text.slice(statement.text.indexOf("$$"));
|
|
2618
|
+
const reasons = /* @__PURE__ */ new Map();
|
|
2619
|
+
for (const match of body.matchAll(QUALIFIED)) {
|
|
2620
|
+
const schema = unquote$1(group(match, 1));
|
|
2621
|
+
const key = `${schema}.${unquote$1(group(match, 2))}`;
|
|
2622
|
+
if (match[3] !== void 0) {
|
|
2623
|
+
if (schema !== helperSchema && !TRACED_SCHEMAS.has(schema)) reasons.set(key, `calls ${key}(), whose reads no trigger watches`);
|
|
2624
|
+
continue;
|
|
2625
|
+
}
|
|
2626
|
+
const kind = relations.get(key);
|
|
2627
|
+
if (kind === "view") reasons.set(key, `reads the view ${key}, whose tables no trigger watches`);
|
|
2628
|
+
else if (kind === "table" && !triggered.has(key)) reasons.set(key, `reads ${key}, which has no permdock_memo_generation trigger`);
|
|
2629
|
+
}
|
|
2630
|
+
for (const match of body.matchAll(AUTH_READ)) {
|
|
2631
|
+
const key = `auth.${unquote$1(group(match, 1))}`;
|
|
2632
|
+
reasons.set(key, `reads ${key}, which the memo triggers skip`);
|
|
2633
|
+
}
|
|
2634
|
+
for (const [read, reason] of reasons) findings.push({
|
|
2635
|
+
code: "PD139",
|
|
2636
|
+
severity: "warning",
|
|
2637
|
+
target: `${statement.file}:${name}:${read}`,
|
|
2638
|
+
message: `${statement.file}:${String(statement.line)} ${name} keeps its answer for the statement but ${reason}: a write to it earlier in the same statement is not seen until the next one`,
|
|
2639
|
+
fix: "read the table directly in the membership source or condition so permdock generate adds the trigger, add a permdock_memo_generation statement trigger on the tables behind it, or set rls.memo: 'none'"
|
|
2640
|
+
});
|
|
2641
|
+
}
|
|
2642
|
+
return Promise.resolve(findings);
|
|
2643
|
+
}
|
|
2575
2644
|
// src/cli/doctor/policy-count.ts
|
|
2576
2645
|
const COMMANDS = [
|
|
2577
2646
|
"select",
|
|
@@ -5915,7 +5984,8 @@ const DOCTOR_CHECKS = [
|
|
|
5915
5984
|
["PD104", pd104],
|
|
5916
5985
|
["PD106", pd106],
|
|
5917
5986
|
["PD107", pd107],
|
|
5918
|
-
["PD108", pd108]
|
|
5987
|
+
["PD108", pd108],
|
|
5988
|
+
["PD139", pd139]
|
|
5919
5989
|
].map(([code, check]) => ({
|
|
5920
5990
|
code,
|
|
5921
5991
|
groups: [
|
|
@@ -11,7 +11,7 @@ const doctor = defineLeaf({
|
|
|
11
11
|
description: "Check codes or groups to run",
|
|
12
12
|
valueHint: "code",
|
|
13
13
|
async complete() {
|
|
14
|
-
const { DOCTOR_CHECKS } = await import("./doctor-
|
|
14
|
+
const { DOCTOR_CHECKS } = await import("./doctor-Chio5Col.js");
|
|
15
15
|
return [.../* @__PURE__ */ new Set([...DOCTOR_CHECKS.map(({ code }) => code), ...DOCTOR_CHECKS.flatMap(({ groups }) => groups)])];
|
|
16
16
|
}
|
|
17
17
|
},
|
|
@@ -46,7 +46,7 @@ const doctor = defineLeaf({
|
|
|
46
46
|
if (answer === void 0) return CANCELLED;
|
|
47
47
|
fix = answer;
|
|
48
48
|
}
|
|
49
|
-
return (await import("./doctor-
|
|
49
|
+
return (await import("./doctor-Chio5Col.js")).runDoctor({
|
|
50
50
|
cwd: ctx.cwd,
|
|
51
51
|
config: ctx.config,
|
|
52
52
|
only: flags.only,
|
package/dist/drizzle/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Ar as Subject, Fr as Condition, qt as Instant } from "../policy-types-DuM3k5Ao.js";
|
|
2
2
|
import { n as RowCheck, t as WithSubjectOptions } from "../subject-settings-C9F1sU1d.js";
|
|
3
|
-
import { p as WhereResult } from "../permdock-
|
|
4
|
-
import { s as MembershipsMapping } from "../compile-
|
|
3
|
+
import { p as WhereResult } from "../permdock-CHU1LZGq.js";
|
|
4
|
+
import { s as MembershipsMapping } from "../compile-CyUn58lf.js";
|
|
5
5
|
import { r as RelationsMapping } from "../graph-sql-Ds3nbevr.js";
|
|
6
6
|
import { SQL, Table } from "drizzle-orm";
|
|
7
7
|
/**
|
package/dist/elysia/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { D as ConnectionOptions, T as Connection, f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types-
|
|
2
|
-
import { a as PermDock } from "../permdock-
|
|
1
|
+
import { D as ConnectionOptions, T as Connection, f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types-C_Lnc8Ec.js";
|
|
2
|
+
import { a as PermDock } from "../permdock-CHU1LZGq.js";
|
|
3
3
|
import { w as Permission } from "../vocabulary-DHfKPIC5.js";
|
|
4
4
|
import { D as Policy, N as PolicyVocabulary, Or as Principal } from "../policy-types-DuM3k5Ao.js";
|
|
5
5
|
import { n as RevocationFeed } from "../revocations-ku_f2d2y.js";
|
|
6
|
-
import { t as ServerAdapterOptions } from "../bind-
|
|
6
|
+
import { t as ServerAdapterOptions } from "../bind-Caffleoh.js";
|
|
7
7
|
import { Elysia } from "elysia";
|
|
8
8
|
type ElysiaRequestContext = {
|
|
9
9
|
readonly request: Request;
|