permdock 0.38.1 → 0.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/a2a/index.js +2 -2
- package/dist/{adoption-scan-CkkOzkXs.js → adoption-scan-Cg4pyRhm.js} +1 -1
- package/dist/agent/index.js +1 -1
- package/dist/ai-sdk/index.js +3 -3
- package/dist/{annotate-dUrBHXWa.js → annotate-DcSH62rl.js} +2 -2
- package/dist/{annotate-doc-BA0betEO.js → annotate-doc-CLU0DxK7.js} +1 -1
- package/dist/app/index.js +1 -1
- package/dist/{approval-chain-BEeExHpb.js → approval-chain-e4HcSs3o.js} +2 -2
- package/dist/{arazzo-BKYLAE5e.js → arazzo-BcSSf6Du.js} +1 -1
- package/dist/{arazzo-n8as0lFp.js → arazzo-C1JA-k9F.js} +3 -3
- package/dist/{ast-CAOxvn9t.js → ast-BhvgF264.js} +1 -1
- package/dist/astro/index.js +1 -1
- package/dist/authzen/index.js +1 -1
- package/dist/better-supabase/index.js +6 -6
- package/dist/{bind-BNYcJ1D9.js → bind-CFwfgfp2.js} +2 -2
- package/dist/{bsb-access-tags-DaGRSYnv.js → bsb-access-tags-DUdAk1Jc.js} +3 -3
- package/dist/{bsb-action-keys-LgveZiHJ.js → bsb-action-keys-CQdOwvrl.js} +4 -4
- package/dist/{budgets-DFnMBpKz.js → budgets-6cfA6Ibw.js} +3 -3
- package/dist/{build-instance-BGpABVbM.js → build-instance-BX5yWZDz.js} +1 -1
- package/dist/{bundle-size-Pgm7BB5m.js → bundle-size-CeLuyWm0.js} +2 -2
- package/dist/bundle-size-DRu3x2lW.js +1 -0
- package/dist/{casbin-BmYeMFeI.js → casbin-BthXLWZo.js} +1 -1
- package/dist/{casbin-BlQqoRlv.js → casbin-DilG0fwi.js} +1 -1
- package/dist/catalog/index.js +2 -2
- package/dist/{catalog-DYC6wfAj.js → catalog-Beg7WzxZ.js} +1 -1
- package/dist/{catalog-SnaPhbZ1.js → catalog-DlVcHvH5.js} +3 -3
- package/dist/catalog-WP3LwPu_.js +1 -0
- package/dist/{catalog-operations-BqSsByIE.js → catalog-operations-DsbLxw1f.js} +1 -1
- package/dist/chat/index.js +1 -1
- package/dist/claims-size-C0kHWqou.js +1 -0
- package/dist/{claims-size-ZiUJBn0r.js → claims-size-Dxm9zWw5.js} +2 -2
- package/dist/claude-agent/index.js +2 -2
- package/dist/cli/bin.js +1 -1
- package/dist/cli/generate/watch-worker.js +2 -2
- package/dist/cli/index.js +3 -3
- package/dist/cli/plugins/app.js +1 -1
- package/dist/cli/plugins/openapi.js +2 -2
- 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-DxDQff7G.js → cloud-0zu4L55w.js} +2 -2
- package/dist/{codemod-DjcAtHr9.js → codemod-CtF7Vk_T.js} +6 -6
- package/dist/{codemod-CX9EGBJw.js → codemod-DaU2mOwl.js} +5 -5
- package/dist/collect-BchFfzIJ.js +1 -0
- package/dist/{collect-Co-w8Eg2.js → collect-BqaPdsk1.js} +4 -4
- package/dist/{collect-CcE8QBtZ.js → collect-CcQDJuYi.js} +2 -2
- package/dist/{compile-BWOrvhGt.js → compile-CeaX5VD-.js} +8 -8
- package/dist/{completion-9B7fZWsn.js → completion-Cyp3kn5b.js} +1 -1
- package/dist/{config-Dan6vcvj.js → config-C1lTq4gJ.js} +3 -3
- package/dist/{config-BgBDv1UW.js → config-CNloPiIn.js} +1 -1
- package/dist/{config-paths-CQvGng3k.js → config-paths-Cg3IXh9T.js} +3 -3
- package/dist/{config-report-oYAr9Opz.js → config-report-i9ujoKAl.js} +4 -4
- package/dist/{context-DntIOpzS.js → context-BKZmdYRf.js} +1 -1
- package/dist/{context-Nr3nknZX.js → context-CzHYMZr9.js} +1 -1
- package/dist/convex/index.js +2 -2
- package/dist/{core-BFR-V5CL.js → core-BEA7805j.js} +3 -3
- package/dist/{create-Dapy8DIK.js → create-DRiggRWE.js} +3 -3
- package/dist/{create-BICq9l-p.js → create-fNkkpOy5.js} +2 -2
- package/dist/{custom-role-rebuild-BwM6hBqt.js → custom-role-rebuild-DzbBD1cq.js} +5 -5
- package/dist/{define-permdock-B0q7Rg9b.js → define-permdock-CGI9pgqL.js} +2 -2
- package/dist/{diff-BebUlh4Z.js → diff-Bv-oDvZq.js} +1 -1
- package/dist/{diff-Sxca4_5q.js → diff-YsQOcb9N.js} +4 -4
- package/dist/{doctor-Dqh8AzIx.js → doctor-BuPSrNmh.js} +60 -47
- package/dist/{doctor-CDSxgnut.js → doctor-Mgbj6UO0.js} +2 -2
- package/dist/{edits-CqU8s2GC.js → edits-Ckbit4uD.js} +1 -1
- package/dist/elysia/index.js +1 -1
- package/dist/evaluator-C4RrXo4y.js +2 -0
- package/dist/{evaluator-eager-BLNVbEAC.js → evaluator-eager-B_4KdPgg.js} +1 -1
- package/dist/eve/index.d.ts +50 -1
- package/dist/eve/index.js +39 -3
- package/dist/{execute-CUGaCy_9.js → execute-D6FFwdwW.js} +5 -5
- package/dist/{explain-CgKGadRa.js → explain-CPYRj0qn.js} +3 -3
- package/dist/{explain-BrvY9cXX.js → explain-CvCujO8Q.js} +2 -2
- package/dist/express/index.js +1 -1
- package/dist/fastify/index.js +1 -1
- package/dist/{fetch-adapter-dmABnF7F.js → fetch-adapter-niRAPzNm.js} +1 -1
- package/dist/{fields-CKX-qjWb.js → fields-DWAwA8vX.js} +3 -3
- package/dist/{fixtures-3aUUP6Nx.js → fixtures-B29C2DGA.js} +1 -1
- package/dist/{from-snapshot-DZ4D2sLa.js → from-snapshot-O341Vdgj.js} +12 -4
- package/dist/{gen-D85_gUOz.js → gen-CZB21YVB.js} +6 -6
- package/dist/{gen-kind-Bi0dtNoV.js → gen-kind-2KPUHSs6.js} +1 -1
- package/dist/gen-tTRu05jZ.js +1 -0
- package/dist/{generate-C8kAhef2.js → generate-DFffYRB7.js} +3 -3
- package/dist/{generate-BnOSZLka.js → generate-DePdrbn_.js} +19 -19
- package/dist/{generate-options-eMjRViev.js → generate-options-Bq5qQ9H7.js} +13 -13
- package/dist/h3/index.js +2 -2
- package/dist/{helper-calls-DN1PJcNY.js → helper-calls-jStpeQ2_.js} +1 -1
- package/dist/hono/index.js +1 -1
- package/dist/{hook-sql-BQcxbOzi.js → hook-sql-Dys1kW5p.js} +13 -13
- package/dist/{import-BLN-HGJG.js → import-BIJM6oAh.js} +1 -1
- package/dist/{import-wBO24zgo.js → import-bTvN77Uj.js} +3 -3
- package/dist/{index-B1hyWi7O.d.ts → index-Cnrz9ChE.d.ts} +3 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -4
- package/dist/{init-B8bPTGMb.js → init-CfDdG_Fj.js} +3 -3
- package/dist/{init-BQnRbzUb.js → init-yo4GJOkM.js} +1 -1
- package/dist/{inspect-functions-GXdyPFwI.js → inspect-functions-Cj7kZDJt.js} +1 -1
- package/dist/{instance-snapshot-D03srwnf.js → instance-snapshot-BJam8gUa.js} +10 -3
- package/dist/{interactive-only-C9NQJXpi.js → interactive-only-ek-Kf0Kq.js} +5 -5
- package/dist/{kernel-yI0nUyuX.js → kernel-UOKCD3tV.js} +3 -3
- package/dist/{keys-QhAlAjXf.js → keys-CBblXqiu.js} +1 -1
- package/dist/{lazy-provider-b8UHGi8P.js → lazy-provider-BPSgEG-A.js} +1 -1
- package/dist/{load-m7jmit3y.js → load-D03A3tZL.js} +1 -1
- package/dist/load-r-TDUcRq.js +1 -0
- package/dist/{login-kQOIJoFN.js → login-2hkrhPGs.js} +3 -3
- package/dist/{login-DnVKv2ib.js → login-CsTj_pBQ.js} +1 -1
- package/dist/{manager-chain-CFkceFls.js → manager-chain-BbrD-s7u.js} +2 -2
- package/dist/{manifest-CMh8sAAH.js → manifest-CZvwWacN.js} +42 -42
- package/dist/mcp/index.js +2 -2
- package/dist/{measure-DJl28Whs.js → measure-BhjWMmvj.js} +5 -5
- package/dist/{memberships-DiCbNRny.js → memberships-DEW0FU2p.js} +1 -1
- package/dist/{memberships-CDiSsFTu.js → memberships-DaKwjhc5.js} +3 -3
- package/dist/{migrate-BXk_rUmb.js → migrate-BBPxqBMF.js} +2 -2
- package/dist/{model-DQQYg8UW.js → model-BfhDMEDf.js} +2 -2
- package/dist/{module-values-D-AiNhBp.js → module-values-BvR7QHTM.js} +2 -2
- package/dist/{names-DwGleRKB.js → names-zCkaCepO.js} +3 -3
- package/dist/nest/index.js +1 -1
- package/dist/next/index.js +3 -3
- package/dist/next/plugin.js +1 -1
- package/dist/node/index.js +1 -1
- package/dist/openai/index.js +3 -3
- package/dist/{openapi-CuyzmD9h.js → openapi-1ZydKQE3.js} +4 -4
- package/dist/{openapi-D7kRYqWu.js → openapi-CufQiEo8.js} +2 -2
- package/dist/{openapi-document-ClyLB0-z.js → openapi-document-oqfHlSZt.js} +1 -1
- package/dist/{optional-CaQWp9HA.js → optional-Dw7to-jw.js} +11 -1
- package/dist/orpc/index.js +2 -2
- package/dist/{output-ONUzppLo.js → output-yUW7fcAk.js} +1 -1
- package/dist/{ownership-CCgncSLb.js → ownership-Bx_s_E8i.js} +7 -7
- package/dist/pdp/index.js +1 -1
- package/dist/{permdock-CbavFN6u.js → permdock-B0aE5Ime.js} +1 -1
- package/dist/{permissions-BPYOb5OB.js → permissions-CF8Ed44S.js} +1 -1
- package/dist/{pipeline-DGFc6y6x.js → pipeline-BTsmCn1p.js} +2 -2
- package/dist/{policy-AWd-ccJJ.js → policy-CXAhfYIt.js} +2 -2
- package/dist/{policy-bundle-rC5_X9hX.js → policy-bundle-BZyCcphj.js} +3 -3
- package/dist/{policy-from-catalog-BohzTN3J.js → policy-from-catalog-hECiBs9M.js} +1 -1
- package/dist/{powersync-DW7seEgS.js → powersync-C6F2F_VP.js} +1 -1
- package/dist/{powersync-C84aHECl.js → powersync-CcXYDuyo.js} +1 -1
- package/dist/{powersync-C1OW6iVd.js → powersync-DVUeHJpL.js} +13 -13
- package/dist/{program-CvarkLMS.js → program-C2fbc9NO.js} +2 -2
- package/dist/{provider-NQwLSlgb.js → provider-BT8hVigf.js} +1 -1
- package/dist/{provider-hQFC3b98.js → provider-DRsBw6My.js} +1 -1
- package/dist/{provider-store-BizF6jyu.js → provider-store-fzaF1R6q.js} +1 -1
- package/dist/{prune-config-DeTUhG2J.js → prune-config-CPvDryuI.js} +10 -10
- package/dist/{pull-C851tQak.js → pull-CEv7O_zQ.js} +1 -1
- package/dist/pull-DeXUmRKY.js +1 -0
- package/dist/{push-Br0Uz5pT.js → push-Dq9qatTg.js} +3 -3
- package/dist/{pushed-policy-dm_hFstN.js → pushed-policy-DXA5KLo6.js} +1 -1
- package/dist/{quote-LNaBdCGA.js → quote-BX3DDoTX.js} +1 -1
- package/dist/{rbac-ByuGspKZ.js → rbac-COexzCC9.js} +5 -5
- package/dist/react/index.js +1 -1
- package/dist/react/lazy.js +1 -1
- package/dist/react/provider-client-lazy.js +1 -1
- package/dist/react/provider-client.js +1 -1
- package/dist/react-native/index.js +1 -1
- package/dist/{rename-BgfR3xB9.js → rename-CoG144pW.js} +9 -9
- package/dist/{report-x9GeUvjx.js → report-B7UuE4dW.js} +1 -1
- package/dist/{report-Dp-ApWVC.js → report-CMncWbQ-.js} +1 -1
- package/dist/{request-context-C9FFFpuH.js → request-context-Bi0Crsd5.js} +1 -1
- package/dist/{resolve-config-Cu_mE2wt.js → resolve-config-LiLfxe8X.js} +1 -1
- package/dist/{resolve-names-DmX503uX.js → resolve-names-ybewcnpW.js} +7 -7
- package/dist/{resolver-C9-dU-SZ.js → resolver-CkK3cvQc.js} +4 -4
- package/dist/{rls-DTN_-HX2.js → rls-C-UfcYPG.js} +5 -5
- package/dist/{rls-JSxuWcf-.js → rls-CTWb0XEV.js} +13 -13
- package/dist/{rls-files-BsJsEeJ_.js → rls-files-DFUG6y5D.js} +1 -1
- package/dist/{roles-BeNEhv7Q.js → roles-MVZd_RrF.js} +1 -1
- package/dist/{rpc-RDBrKR7N.js → rpc-C-kZGWs6.js} +1 -1
- package/dist/{run-BgNlYtQJ.js → run-B9MRT-5k.js} +3 -3
- package/dist/run-me1Fi6eQ.js +1 -0
- package/dist/{saas-CHviJgF2.js → saas-DDz3ivSL.js} +2 -2
- package/dist/{scan-pHPntFbs.js → scan-BoHmvDOe.js} +1 -1
- package/dist/{schema-DJd7Gq_p.js → schema-Bk0R_6ul.js} +1 -1
- package/dist/{schema-tables-Ba9LE_XB.js → schema-tables-CqEHokUT.js} +2 -2
- package/dist/server/index.js +1 -1
- package/dist/{shared-DnVY767H.js → shared-BRLAQqj4.js} +1 -1
- package/dist/{size-Dm3777Ev.js → size-CQkUXcPF.js} +4 -4
- package/dist/{skills-txCdqGns.js → skills-BIGdhR5i.js} +1 -1
- package/dist/{skills-D4ItrS0F.js → skills-DiMXWCQY.js} +1 -1
- package/dist/{snapshot-size-CpdksnSr.js → snapshot-size-1zICkeFb.js} +1 -1
- package/dist/{snapshot-size-I_-fxGry.js → snapshot-size-CFwBMDNC.js} +1 -1
- package/dist/solid/index.js +1 -1
- package/dist/solid-start/index.js +2 -2
- package/dist/{sources-C6Id63F8.js → sources-DNVEyJxb.js} +10 -2
- package/dist/{src-10d_jun2.js → src-DUWw9z1D.js} +2 -2
- package/dist/{stores-jgDndNHa.js → stores-qYmLHVKv.js} +1 -1
- package/dist/{subject-B7p94Y0s.js → subject-CMkc28eP.js} +1 -1
- package/dist/supabase/index.js +3 -3
- package/dist/supabase/middleware.js +3 -3
- package/dist/{supabase-D-kxyoaX.js → supabase-BBEop7q7.js} +2 -2
- package/dist/{supabase-hook-DDxDjlOU.js → supabase-hook-C3q-XEnu.js} +8 -8
- package/dist/supabase-hook-DLnH3_5Z.js +2 -0
- package/dist/{supabase-schemas-D6ezN5Ln.js → supabase-schemas-RPYfnE6O.js} +2 -2
- package/dist/{supabase-CeJAHqZp.js → supabase-zRUmN_PE.js} +3 -3
- package/dist/svelte/index.js +2 -2
- package/dist/svelte/runtime.js +1 -1
- package/dist/svelte/source.js +1 -1
- package/dist/sveltekit/index.js +1 -1
- package/dist/{table-reads-DHB56kFZ.js → table-reads-CegjCVHG.js} +1 -1
- package/dist/{table-reads-Doh_Egx2.js → table-reads-DpncF1F-.js} +3 -3
- package/dist/{tables-E-dIHUN_.js → tables-Dr4BUH9i.js} +12 -8
- package/dist/tanstack-start/index.js +1 -1
- package/dist/{tenant-check-DGfE7Sns.js → tenant-check-C5DAstGo.js} +3 -3
- package/dist/terminal/index.js +2 -2
- package/dist/testing/core.js +1 -1
- package/dist/testing/index.d.ts +1 -1
- package/dist/testing/index.js +7 -7
- package/dist/testing/saas/index.js +2 -2
- package/dist/testing/saas/permissions.js +1 -1
- package/dist/trpc/index.js +2 -2
- package/dist/unplugin/index.js +1 -1
- package/dist/{usage-DymSoYQZ.js → usage-D5Rin-a_.js} +1 -1
- package/dist/usage-D7eCW8yi.js +1 -0
- package/dist/{usage-CX_wmL5W.js → usage-DDr-iwHr.js} +6 -6
- package/dist/{verify-CHlmYg2d.js → verify-Df9u1-v5.js} +13 -13
- package/dist/vue/index.js +1 -1
- package/dist/{warm-BOrs0-_j.js → warm-C6Hn4J-4.js} +1 -1
- package/dist/{watch-BFDMb5N4.js → watch-BuQhtt25.js} +2 -2
- package/dist/{watch-CkL1iuKJ.js → watch-DEPXy-r0.js} +2 -2
- package/dist/watch-wQLoPqC-.js +1 -0
- package/dist/workflow/index.js +1 -1
- package/package.json +3 -3
- package/skills/permdock-agents/references/runtimes.md +1 -1
- package/dist/bundle-size-CGd8wVIu.js +0 -1
- package/dist/catalog-e6QRd1JP.js +0 -1
- package/dist/claims-size-B0OvYh9z.js +0 -1
- package/dist/collect-C2_CKZ09.js +0 -1
- package/dist/evaluator-zpeC7zel.js +0 -2
- package/dist/gen-CNYlckFE.js +0 -1
- package/dist/load-BCABUQZi.js +0 -1
- package/dist/pull-CylkuBGR.js +0 -1
- package/dist/run-C7nX-hkR.js +0 -1
- package/dist/supabase-hook-BTiZ8LTJ.js +0 -2
- package/dist/usage-DcVP-SFj.js +0 -1
- package/dist/watch-5WP3ZCcR.js +0 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { r as isRecord, t as compact } from "./compact-C4LFuqbW.js";
|
|
2
2
|
import { f as nowMillis } from "./time-r0CKBm57.js";
|
|
3
|
-
import { l as appOf, u as withApp } from "./permdock-
|
|
3
|
+
import { l as appOf, u as withApp } from "./permdock-B0aE5Ime.js";
|
|
4
4
|
import { t as anonymousSubject } from "./subject-DkxY-AhF.js";
|
|
5
5
|
import { i as instanceCache, n as memorySubjectCache, r as readSubjectRecord, t as memoryVersionCache } from "./version-cache-l9Zrfvhz.js";
|
|
6
6
|
import { t as readMemberships } from "./read-memberships-DVBitJZG.js";
|
|
7
7
|
import { a as permissionStates } from "./checks-DSm45qH7.js";
|
|
8
8
|
import { t as instanceOptions } from "./instance-options-CLErhA76.js";
|
|
9
|
-
import { n as versionSources } from "./define-permdock-
|
|
10
|
-
import { t as buildInstance } from "./build-instance-
|
|
9
|
+
import { n as versionSources } from "./define-permdock-CGI9pgqL.js";
|
|
10
|
+
import { t as buildInstance } from "./build-instance-BX5yWZDz.js";
|
|
11
11
|
import { n as NO_GRANT } from "./decision-hHv4UZgy.js";
|
|
12
|
-
import { a as hookApiNames } from "./sources-
|
|
12
|
+
import { a as hookApiNames } from "./sources-DNVEyJxb.js";
|
|
13
13
|
import { o as subjectFromSupabase } from "./definition-options-DLBlRrPO.js";
|
|
14
14
|
// src/supabase/postgrest.ts
|
|
15
15
|
function callRpc(client, schema, fn, args) {
|
|
@@ -194,7 +194,7 @@ async function rlsInput(ctx, verb, shape, options) {
|
|
|
194
194
|
};
|
|
195
195
|
}
|
|
196
196
|
async function runRls(input) {
|
|
197
|
-
return (await import("./rls-
|
|
197
|
+
return (await import("./rls-CTWb0XEV.js")).runRls(input);
|
|
198
198
|
}
|
|
199
199
|
({
|
|
200
200
|
...shapeFlags,
|
|
@@ -303,9 +303,9 @@ const report = defineLeaf({
|
|
|
303
303
|
async run(ctx, { flags }) {
|
|
304
304
|
const db = await dbUrl(ctx, flags);
|
|
305
305
|
const [{ runRlsReport }, { pgConnector }, { configuredTableReads }] = await Promise.all([
|
|
306
|
-
import("./report-
|
|
306
|
+
import("./report-CMncWbQ-.js"),
|
|
307
307
|
import("./pg-DtiDogUp.js"),
|
|
308
|
-
import("./table-reads-
|
|
308
|
+
import("./table-reads-CegjCVHG.js")
|
|
309
309
|
]);
|
|
310
310
|
return runRlsReport({
|
|
311
311
|
cwd: ctx.cwd,
|
|
@@ -349,9 +349,9 @@ const measure = defineLeaf({
|
|
|
349
349
|
if (db === void 0) throw missingInput("rls measure", ["--db-url-stdin", "--local"], "the database to run requests against");
|
|
350
350
|
const tenant = given(flags.tenant);
|
|
351
351
|
const [{ runRlsMeasure, DEFAULT_REQUESTS, DEFAULT_TABLES }, { pgConnector }, { positiveInteger }] = await Promise.all([
|
|
352
|
-
import("./measure-
|
|
352
|
+
import("./measure-BhjWMmvj.js"),
|
|
353
353
|
import("./pg-DtiDogUp.js"),
|
|
354
|
-
import("./memberships-
|
|
354
|
+
import("./memberships-DEW0FU2p.js")
|
|
355
355
|
]);
|
|
356
356
|
return runRlsMeasure({
|
|
357
357
|
cwd: ctx.cwd,
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import "./sources-
|
|
1
|
+
import "./sources-DNVEyJxb.js";
|
|
2
2
|
import { a as describeError, f as usageResult, o as exitCodeOfError } from "./errors-DgLOqc6j.js";
|
|
3
3
|
import { n as openPgPool, r as pgConnector, t as connectPgPool } from "./pg-DmS5ITHu.js";
|
|
4
4
|
import { i as taggedAccessPolicies } from "./bsb-access-Bcw6GrQm.js";
|
|
5
|
-
import { n as resolveSchemas, r as schemasRefusal, t as isSupabaseSchemas } from "./supabase-schemas-
|
|
6
|
-
import { o as nonEmptyOr } from "./output-
|
|
5
|
+
import { n as resolveSchemas, r as schemasRefusal, t as isSupabaseSchemas } from "./supabase-schemas-RPYfnE6O.js";
|
|
6
|
+
import { o as nonEmptyOr } from "./output-yUW7fcAk.js";
|
|
7
7
|
import { n as packageManagerOf, t as addLine } from "./peer-D77JpXe-.js";
|
|
8
|
-
import { n as describeExplain, t as runRlsGenerate } from "./generate-
|
|
9
|
-
import { c as INDEX_COLUMNS_SQL, f as readTableIndexFacts, s as COLUMNS_SQL } from "./compile-
|
|
8
|
+
import { n as describeExplain, t as runRlsGenerate } from "./generate-DePdrbn_.js";
|
|
9
|
+
import { c as INDEX_COLUMNS_SQL, f as readTableIndexFacts, s as COLUMNS_SQL } from "./compile-CeaX5VD-.js";
|
|
10
10
|
import { r as escapeSqlIdent } from "./sql-T4GaBh9X.js";
|
|
11
11
|
import { t as beforeFirst } from "./text-D704xHVl.js";
|
|
12
|
-
import { a as conditionShown, i as callsHelper, o as helperCallKeys, t as HELPER_TABLES } from "./helper-calls-
|
|
13
|
-
import { u as isPlatformSchema } from "./report-
|
|
14
|
-
import { c as ACTOR_MAY_WRITE, p as readOnlyActorKinds } from "./fields-
|
|
15
|
-
import { a as verifyResult, i as verifyIgnores, n as runRlsVerify, r as rlsFinding } from "./verify-
|
|
16
|
-
import { r as parseRbacAuthorize } from "./rbac-
|
|
17
|
-
import { n as configuredTableReads } from "./table-reads-
|
|
12
|
+
import { a as conditionShown, i as callsHelper, o as helperCallKeys, t as HELPER_TABLES } from "./helper-calls-jStpeQ2_.js";
|
|
13
|
+
import { u as isPlatformSchema } from "./report-B7UuE4dW.js";
|
|
14
|
+
import { c as ACTOR_MAY_WRITE, p as readOnlyActorKinds } from "./fields-DWAwA8vX.js";
|
|
15
|
+
import { a as verifyResult, i as verifyIgnores, n as runRlsVerify, r as rlsFinding } from "./verify-Df9u1-v5.js";
|
|
16
|
+
import { r as parseRbacAuthorize } from "./rbac-COexzCC9.js";
|
|
17
|
+
import { n as configuredTableReads } from "./table-reads-DpncF1F-.js";
|
|
18
18
|
import { r as isRecord } from "./compact-C4LFuqbW.js";
|
|
19
19
|
import { a as rel, o as sqlFiles } from "./files-DAR51W3J.js";
|
|
20
20
|
import { t as importFromApp } from "./app-peer-BnMh5lqz.js";
|
|
@@ -913,7 +913,7 @@ async function migrate(input) {
|
|
|
913
913
|
code: 2,
|
|
914
914
|
output: generated.output
|
|
915
915
|
};
|
|
916
|
-
const { migrateTarget, runRlsMigrate } = await import("./migrate-
|
|
916
|
+
const { migrateTarget, runRlsMigrate } = await import("./migrate-BBPxqBMF.js");
|
|
917
917
|
return runRlsMigrate({
|
|
918
918
|
cwd: input.cwd,
|
|
919
919
|
sql: input.sql,
|
|
@@ -1074,7 +1074,7 @@ async function runRls(input) {
|
|
|
1074
1074
|
});
|
|
1075
1075
|
}
|
|
1076
1076
|
case "import": {
|
|
1077
|
-
const { runRlsImport } = await import("./import-
|
|
1077
|
+
const { runRlsImport } = await import("./import-bTvN77Uj.js");
|
|
1078
1078
|
return runRlsImport({
|
|
1079
1079
|
cwd: input.cwd,
|
|
1080
1080
|
config: input.config,
|
|
@@ -3,7 +3,7 @@ import { i as dateAt } from "./time-r0CKBm57.js";
|
|
|
3
3
|
import { n as CliError } from "./errors-DgLOqc6j.js";
|
|
4
4
|
import { m as seedsMigration, p as seedDeltaNote } from "./output-files-8lfALMSU.js";
|
|
5
5
|
import { a as fixturesPresent, i as defaultsSeedSql, o as fixturesSeedSql, r as FIXTURES_PATH, t as DEFAULTS_MARKER } from "./seed-sql-CjF7u0aX.js";
|
|
6
|
-
import { t as runRlsGenerate } from "./generate-
|
|
6
|
+
import { t as runRlsGenerate } from "./generate-DePdrbn_.js";
|
|
7
7
|
import { a as quietIo, r as noted } from "./plugin-MQVfUBUS.js";
|
|
8
8
|
// src/cli/generate/plugins/rls-options.ts
|
|
9
9
|
function seedMode(seeds) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as defineLeaf } from "./command-9GAzSI7E.js";
|
|
2
2
|
import { f as usageResult } from "./errors-DgLOqc6j.js";
|
|
3
3
|
import { f as policyFlag, l as given } from "./flags-DQzNPxg1.js";
|
|
4
|
-
import { c as requirePolicy } from "./load-
|
|
4
|
+
import { c as requirePolicy } from "./load-D03A3tZL.js";
|
|
5
5
|
// src/cli/commands/roles.ts
|
|
6
6
|
const rolesGrants = defineLeaf({
|
|
7
7
|
flags: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as compact } from "./compact-C4LFuqbW.js";
|
|
2
|
-
import { t as adapterKernel } from "./bind-
|
|
2
|
+
import { t as adapterKernel } from "./bind-CFwfgfp2.js";
|
|
3
3
|
import { n as tenantScope } from "./adapter-context-lHq_i_77.js";
|
|
4
4
|
import { s as requestFromContext } from "./http-C9jDw_bZ.js";
|
|
5
5
|
import { r as guardIterable } from "./stream-DdF94h7T.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { i as dateAt } from "./time-r0CKBm57.js";
|
|
2
|
-
import { a as readConfig, l as withPluginOutputs, s as resolveCwd } from "./config-
|
|
2
|
+
import { a as readConfig, l as withPluginOutputs, s as resolveCwd } from "./config-C1lTq4gJ.js";
|
|
3
3
|
import { t as beforeFirst } from "./text-D704xHVl.js";
|
|
4
4
|
import { a as describeError, n as CliError, r as cliFailure, s as failureOf, u as kindOfCode } from "./errors-DgLOqc6j.js";
|
|
5
5
|
import { a as suggestion, i as parseLeaf, o as GLOBAL_FLAGS, r as parseFlags } from "./args-BSpXxMnb.js";
|
|
6
|
-
import { a as githubAnnotations, c as sarifLog, d as consentReasons, f as quote, i as findingsDocument, l as confirmationRequired, n as errorDocument, p as replayArgv, s as resultDocument, t as dataOf, u as consentDigest } from "./output-
|
|
6
|
+
import { a as githubAnnotations, c as sarifLog, d as consentReasons, f as quote, i as findingsDocument, l as confirmationRequired, n as errorDocument, p as replayArgv, s as resultDocument, t as dataOf, u as consentDigest } from "./output-yUW7fcAk.js";
|
|
7
7
|
import { r as progressReporter, t as redact } from "./credentials-6ZWbJ-Re.js";
|
|
8
|
-
import { a as resolve, i as leaves, n as ROOT, r as SECTIONS, t as DOCS_BASE } from "./manifest-
|
|
8
|
+
import { a as resolve, i as leaves, n as ROOT, r as SECTIONS, t as DOCS_BASE } from "./manifest-CZvwWacN.js";
|
|
9
9
|
import { t as createStyle } from "./style-CQDaLJtP.js";
|
|
10
10
|
import { s as cliVersion } from "./version-D-jWyJb9.js";
|
|
11
11
|
import { n as isPermDockPlugin } from "./plugin-MQVfUBUS.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as run } from "./run-B9MRT-5k.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as saasPlans, i as saasPermissions, o as saasRoles } from "./permissions-
|
|
1
|
+
import { a as saasPlans, i as saasPermissions, o as saasRoles } from "./permissions-CF8Ed44S.js";
|
|
2
2
|
import { a as deny, n as role, r as allow } from "./role-builder-BksM3Q9O.js";
|
|
3
3
|
import { l as relation, n as anyone } from "./grantee-BSCdpIF3.js";
|
|
4
4
|
import { r as definePolicy } from "./policy-CZBJDcTx.js";
|
|
5
5
|
import { i as principal } from "./refs-Cix9Zjis.js";
|
|
6
|
-
import { A as memoryCustomRoleSource, w as memoryRelationSource } from "./src-
|
|
6
|
+
import { A as memoryCustomRoleSource, w as memoryRelationSource } from "./src-DUWw9z1D.js";
|
|
7
7
|
import { s as quoteSqlLiteral } from "./sql-T4GaBh9X.js";
|
|
8
8
|
import { r as isRecord } from "./compact-C4LFuqbW.js";
|
|
9
9
|
import { h as secondsAt } from "./time-r0CKBm57.js";
|
|
@@ -16,7 +16,7 @@ const scan = defineLeaf({
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
async run(ctx, { flags }) {
|
|
19
|
-
const { runAdoptionScan } = await import("./adoption-scan-
|
|
19
|
+
const { runAdoptionScan } = await import("./adoption-scan-Cg4pyRhm.js");
|
|
20
20
|
return runAdoptionScan({
|
|
21
21
|
cwd: ctx.cwd,
|
|
22
22
|
srcPath: flags.src.length > 0 ? flags.src : ctx.config.collect?.srcPath ?? ["src"],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as require__2020 } from "./2020-DBXhfpuK.js";
|
|
2
2
|
import { r as isRecord } from "./compact-C4LFuqbW.js";
|
|
3
3
|
import { t as DRAFT_PINS } from "./pins-CXXkVEiD.js";
|
|
4
|
-
import { o as nonEmptyOr } from "./output-
|
|
4
|
+
import { o as nonEmptyOr } from "./output-yUW7fcAk.js";
|
|
5
5
|
import { l as packageRoot } from "./version-D-jWyJb9.js";
|
|
6
6
|
import { readFileSync } from "node:fs";
|
|
7
7
|
import { join } from "node:path";
|
|
@@ -158,10 +158,10 @@ function restatedSchemaDefaults(config, policy, tables) {
|
|
|
158
158
|
return paths;
|
|
159
159
|
}
|
|
160
160
|
/** `config` with the `rls.tables` and `rls.scopeTypes` the schema files imply. */
|
|
161
|
-
async function withSchemaDefaults(cwd, config, policy) {
|
|
161
|
+
async function withSchemaDefaults(cwd, config, policy, known) {
|
|
162
162
|
const rls = config.rls;
|
|
163
163
|
if (rls === void 0) return config;
|
|
164
|
-
const tables = await schemaTables(cwd);
|
|
164
|
+
const tables = await (known ?? schemaTables(cwd));
|
|
165
165
|
if (tables.size === 0) return config;
|
|
166
166
|
const defaults = schemaDefaults(config, policy, tables);
|
|
167
167
|
const addTables = Object.keys(defaults.tables).length > 0;
|
package/dist/server/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { n as PermDockDeniedError, r as PermDockRevokedError, t as PermDockAppro
|
|
|
3
3
|
import { t as memoryRevocationFeed } from "../revocations-3jyzniOz.js";
|
|
4
4
|
import { n as tenantScope } from "../adapter-context-lHq_i_77.js";
|
|
5
5
|
import { c as problemFromDecision, f as validationProblem, l as problemResponse, p as wwwAuthenticate } from "../problem-BZB7zPC7.js";
|
|
6
|
-
import { t as createPermDock } from "../create-
|
|
6
|
+
import { t as createPermDock } from "../create-DRiggRWE.js";
|
|
7
7
|
import { f as InvalidSignatureError, g as webBotAuthVerifier, h as invalidSignatureResponse, m as invalidSignatureProblem, o as evaluationsHandler, p as discoverViaSignatureAgent } from "../evaluations-DPEAu_jM.js";
|
|
8
8
|
import { a as memoryCredentialStore, c as subjectFromApiKey, i as hashApiKey, n as generateApiKey, o as parseApiKey, r as generateFeedKey, s as parseFeedKey, t as apiKeyVerifier } from "../credentials-B-hsgB4W.js";
|
|
9
9
|
import { t as problemFromError } from "../map-error-DYQbf-3Q.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as defineLeaf } from "./command-9GAzSI7E.js";
|
|
2
2
|
import { f as usageResult } from "./errors-DgLOqc6j.js";
|
|
3
3
|
import { f as policyFlag, l as given } from "./flags-DQzNPxg1.js";
|
|
4
|
-
import { c as requirePolicy } from "./load-
|
|
4
|
+
import { c as requirePolicy } from "./load-D03A3tZL.js";
|
|
5
5
|
// src/cli/commands/size.ts
|
|
6
6
|
function count(value, fallback) {
|
|
7
7
|
if (value === void 0 || value === "") return fallback;
|
|
@@ -38,7 +38,7 @@ const snapshotSize = defineLeaf({
|
|
|
38
38
|
},
|
|
39
39
|
async run(ctx, { flags }) {
|
|
40
40
|
try {
|
|
41
|
-
const { runSnapshotSize, SNAPSHOT_BUDGET_BYTES } = await import("./snapshot-size-
|
|
41
|
+
const { runSnapshotSize, SNAPSHOT_BUDGET_BYTES } = await import("./snapshot-size-CFwBMDNC.js");
|
|
42
42
|
const path = given(flags.policy) ?? ctx.config.policy;
|
|
43
43
|
return runSnapshotSize({
|
|
44
44
|
policy: await requirePolicy(ctx.cwd, path, "set policy in permdock.config.ts or pass --policy"),
|
|
@@ -79,7 +79,7 @@ const claimsSize = defineLeaf({
|
|
|
79
79
|
},
|
|
80
80
|
async run(ctx, { flags }) {
|
|
81
81
|
try {
|
|
82
|
-
const { runClaimsSize } = await import("./claims-size-
|
|
82
|
+
const { runClaimsSize } = await import("./claims-size-C0kHWqou.js");
|
|
83
83
|
return runClaimsSize({
|
|
84
84
|
memberships: count(flags.memberships, 11),
|
|
85
85
|
roles: count(flags.roles, 1),
|
|
@@ -103,7 +103,7 @@ const bundleSize = defineLeaf({
|
|
|
103
103
|
},
|
|
104
104
|
async run(ctx, { flags }) {
|
|
105
105
|
try {
|
|
106
|
-
const { runBundleSize } = await import("./bundle-size-
|
|
106
|
+
const { runBundleSize } = await import("./bundle-size-DRu3x2lW.js");
|
|
107
107
|
const path = given(flags.policy) ?? ctx.config.policy;
|
|
108
108
|
return runBundleSize({
|
|
109
109
|
policy: await requirePolicy(ctx.cwd, path, "set policy in permdock.config.ts or pass --policy"),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as defineLeaf } from "./command-9GAzSI7E.js";
|
|
2
2
|
import { t as checkFlag } from "./flags-DQzNPxg1.js";
|
|
3
3
|
import { r as pick, t as CANCELLED } from "./prompt-CPlJn_4-.js";
|
|
4
|
-
import { n as detectedAgents, r as runSkills, t as SKILL_AGENTS } from "./skills-
|
|
4
|
+
import { n as detectedAgents, r as runSkills, t as SKILL_AGENTS } from "./skills-DiMXWCQY.js";
|
|
5
5
|
// src/cli/commands/skills.ts
|
|
6
6
|
const forFlag = { for: {
|
|
7
7
|
type: "string",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as byCodePoint } from "./compare-dfHDj8kT.js";
|
|
2
2
|
import { t as didYouMean } from "./args-BSpXxMnb.js";
|
|
3
|
-
import { o as nonEmptyOr } from "./output-
|
|
3
|
+
import { o as nonEmptyOr } from "./output-yUW7fcAk.js";
|
|
4
4
|
import { i as readJsonFile, s as writeFileEnsuringDir } from "./files-DAR51W3J.js";
|
|
5
5
|
import { l as packageRoot } from "./version-D-jWyJb9.js";
|
|
6
6
|
import { cpSync, existsSync, lstatSync, readFileSync, readdirSync, readlinkSync, realpathSync } from "node:fs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { d as scopeList } from "./scopes-B-KX9EI8.js";
|
|
2
|
-
import { d as snapshotFor } from "./src-
|
|
2
|
+
import { d as snapshotFor } from "./src-DUWw9z1D.js";
|
|
3
3
|
import { gzipSync } from "node:zlib";
|
|
4
4
|
// src/cli/snapshot-size.ts
|
|
5
5
|
/** The default budget of the PD112 doctor rule, in bytes of JSON. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as SNAPSHOT_BUDGET_BYTES, i as runSnapshotSize } from "./snapshot-size-
|
|
1
|
+
export { t as SNAPSHOT_BUDGET_BYTES, i as runSnapshotSize } from "./snapshot-size-1zICkeFb.js";
|
package/dist/solid/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { n as actionRunner, r as approvalHeaders, t as actionApproval } from "..
|
|
|
4
4
|
import { a as eventSourceRefresh, i as broadcastChannelRefresh, l as isPromiseLike, o as focusRefresh, r as authzChangeRefresh, s as visibilityRefresh } from "../store-options-DgOuhUSn.js";
|
|
5
5
|
import { a as gateView, c as protectedView, d as slotContent, f as subjectView, i as filterResult, l as rolesView, n as assignablePermissionsView, o as livePermDock, p as tenantView, r as describeWith, s as permissionSet, t as approvalHandle, u as scopedTenant } from "../views-Dpr1uB16.js";
|
|
6
6
|
import { n as boundaryFallback, t as boundaryDigest } from "../boundary--5Swp7sN.js";
|
|
7
|
-
import { n as switchTenant, t as providerStore } from "../provider-store-
|
|
7
|
+
import { n as switchTenant, t as providerStore } from "../provider-store-fzaF1R6q.js";
|
|
8
8
|
import { t as compact } from "../compact-C4LFuqbW.js";
|
|
9
9
|
import { ErrorBoundary, createComponent, createComputed, createContext, createMemo, createSignal, getOwner, on, onCleanup, useContext } from "solid-js";
|
|
10
10
|
// src/solid/context.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { f as InvalidSignatureError, g as webBotAuthVerifier, p as discoverViaSignatureAgent } from "../evaluations-DPEAu_jM.js";
|
|
2
|
-
import { i as decorate } from "../bind-
|
|
3
|
-
import { n as guardedRoute, t as fetchAdapter } from "../fetch-adapter-
|
|
2
|
+
import { i as decorate } from "../bind-CFwfgfp2.js";
|
|
3
|
+
import { n as guardedRoute, t as fetchAdapter } from "../fetch-adapter-niRAPzNm.js";
|
|
4
4
|
// src/solid-start/create.ts
|
|
5
5
|
/**
|
|
6
6
|
* `event.locals`. Its type, `App.RequestEventLocals`, is declared by
|
|
@@ -20,8 +20,16 @@ const literal$1 = quoteSqlLiteral;
|
|
|
20
20
|
function col(name) {
|
|
21
21
|
return `m.${ident$1(name)}`;
|
|
22
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* Whether the row for `id` in `row.table` is active. `id` is converted to the
|
|
25
|
+
* key column's own type, so the lookup uses the table's key: casting the column
|
|
26
|
+
* to text instead hides it from its index and reads the whole table once per
|
|
27
|
+
* membership row. A null `id` matches no row and fails closed.
|
|
28
|
+
*/
|
|
23
29
|
function activeRow(row, id) {
|
|
24
|
-
const
|
|
30
|
+
const table = quoteQualifiedTable(row.table);
|
|
31
|
+
const key = ident$1(row.id);
|
|
32
|
+
const parts = [`s.${key} = ${`(pg_catalog.jsonb_populate_record(null::${table}, pg_catalog.jsonb_build_object(${literal$1(row.id)}, ${id}))).${key}`}`];
|
|
25
33
|
if (row.disabledAt !== void 0) parts.push(`s.${ident$1(row.disabledAt)} is null`);
|
|
26
34
|
if (row.status !== void 0) {
|
|
27
35
|
const values = row.active ?? [];
|
|
@@ -29,7 +37,7 @@ function activeRow(row, id) {
|
|
|
29
37
|
parts.push(`s.${ident$1(row.status)}::text = any(array[${values.map(literal$1).join(", ")}]::text[])`);
|
|
30
38
|
}
|
|
31
39
|
if (row.disabledAt === void 0 && row.status === void 0) throw new TypeError("PermDock: a suspension table needs disabledAt or status");
|
|
32
|
-
return `exists (select 1 from ${
|
|
40
|
+
return `exists (select 1 from ${table} s where ${parts.join(" and ")})`;
|
|
33
41
|
}
|
|
34
42
|
/**
|
|
35
43
|
* The suspendable instances on the row's chain whose scope keeps permissions:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { d as assertSqlFunctionArg, f as assertSqlFunctionName, l as normalizeWhere, p as assertSqlFunctionSet, u as assertPortableTwin } from "./role-builder-BksM3Q9O.js";
|
|
2
2
|
import { n as freezeDeep } from "./freeze-DGfJq_j2.js";
|
|
3
|
-
import { _ as sameList, d as PROBE, f as canonOf, g as probeSnapshot, h as probeGroup, m as compactWithBundle, r as resolveSubject } from "./permdock-
|
|
3
|
+
import { _ as sameList, d as PROBE, f as canonOf, g as probeSnapshot, h as probeGroup, m as compactWithBundle, r as resolveSubject } from "./permdock-B0aE5Ime.js";
|
|
4
4
|
import { n as PermDockDeniedError } from "./errors-DOSkVeTC.js";
|
|
5
5
|
import { c as evaluateCondition } from "./delegation-0DVVomzu.js";
|
|
6
6
|
import { a as normalizeApproval, r as assertApprovalRelations } from "./approval-normalize-C6je8vWN.js";
|
|
@@ -13,7 +13,7 @@ import { c as listPermissions, i as getRegistry, n as findPermission } from "./p
|
|
|
13
13
|
import { n as isThenable } from "./thenable-BxMy2v8w.js";
|
|
14
14
|
import { a as durationOf, g as secondsOf, p as nowSeconds } from "./time-r0CKBm57.js";
|
|
15
15
|
import { D as tenantCustomRoles, E as roleAllowKeys, O as validateCustomRole, T as resolveCustomRole, b as isGlobalCustomRole, d as customGrantsFor, g as customRoleScope, h as customRoleOf, p as customRoleId, u as ceilingGrants, x as isSharedCustomRole } from "./evaluate-DNz6wMYv.js";
|
|
16
|
-
import { a as heldLevels, f as bindingOf, h as usesAssigns, i as assignableIn, m as roleMeta, n as snapshotScopes, o as collectSnapshotGrants, p as rankRoles, r as assignableCandidates, t as snapshotOf } from "./instance-snapshot-
|
|
16
|
+
import { a as heldLevels, f as bindingOf, h as usesAssigns, i as assignableIn, m as roleMeta, n as snapshotScopes, o as collectSnapshotGrants, p as rankRoles, r as assignableCandidates, t as snapshotOf } from "./instance-snapshot-BJam8gUa.js";
|
|
17
17
|
import { r as ownGet } from "./paths-CeS_gpHf.js";
|
|
18
18
|
import { n as relationId } from "./relations-CIgB5KPJ.js";
|
|
19
19
|
import { c as isEdgeRelation, m as restrictedStops, o as groupEntries, s as isComputedRelation, u as isPrincipalRelation } from "./resource-relations-Ck5sjYQR.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as actionRunner, t as actionApproval } from "./protected-action-DiXulRVj.js";
|
|
2
2
|
import { a as gateView, f as subjectView, i as filterResult, l as rolesView, n as assignablePermissionsView, o as livePermDock, p as tenantView, r as describeWith, s as permissionSet, t as approvalHandle } from "./views-Dpr1uB16.js";
|
|
3
|
-
import { n as getUi, r as providePermDock, t as getStore } from "./context-
|
|
3
|
+
import { n as getUi, r as providePermDock, t as getStore } from "./context-CzHYMZr9.js";
|
|
4
4
|
import { derived, readable, toStore, writable } from "svelte/store";
|
|
5
5
|
// src/svelte/stores.ts
|
|
6
6
|
function fromStore(store, compute) {
|
|
@@ -4,7 +4,7 @@ import { t as byScope } from "./compile-BUKXrueE.js";
|
|
|
4
4
|
import { r as isRecord } from "./compact-C4LFuqbW.js";
|
|
5
5
|
import { n as isForbiddenKey } from "./paths-CeS_gpHf.js";
|
|
6
6
|
import { t as SQL_IDENT } from "./sql-T4GaBh9X.js";
|
|
7
|
-
import { a as quoteIdent, i as qualified, o as quoteLiteral } from "./quote-
|
|
7
|
+
import { a as quoteIdent, i as qualified, o as quoteLiteral } from "./quote-BX3DDoTX.js";
|
|
8
8
|
// src/cli/sql/columns.ts
|
|
9
9
|
/**
|
|
10
10
|
* The Postgres type a JSON Schema property compares as; `undefined` for text or
|
package/dist/supabase/index.js
CHANGED
|
@@ -2,9 +2,9 @@ import { r as readSubjectRecord } from "../version-cache-l9Zrfvhz.js";
|
|
|
2
2
|
import { n as compactMemberships, r as expandMemberships } from "../read-memberships-DVBitJZG.js";
|
|
3
3
|
import { n as AUTHZ_TOPIC, r as authzUserTopic, t as AUTHZ_EVENT } from "../authz-topic-D8x24Jv-.js";
|
|
4
4
|
import { n as supabaseMembershipsBudget, r as supabaseTenantClaim } from "../budget-BH81q2cj.js";
|
|
5
|
-
import { a as tableApprovalPolicySource, c as exchangeCapability, i as tableApprovalDelegationSource, n as authorizeSql, o as supabaseApprovalStore, r as supabaseRls, s as supabaseClaims, t as definePermDock } from "../supabase-
|
|
6
|
-
import { c as tableMembershipSource, i as authzVersion, o as junctionMembershipSource, s as supabasePostgresQuery, t as AUTHZ_VERSION_TABLE } from "../sources-
|
|
7
|
-
import { r as subjectFromSupabaseClient, s as postgrestSources } from "../resolver-
|
|
5
|
+
import { a as tableApprovalPolicySource, c as exchangeCapability, i as tableApprovalDelegationSource, n as authorizeSql, o as supabaseApprovalStore, r as supabaseRls, s as supabaseClaims, t as definePermDock } from "../supabase-zRUmN_PE.js";
|
|
6
|
+
import { c as tableMembershipSource, i as authzVersion, o as junctionMembershipSource, s as supabasePostgresQuery, t as AUTHZ_VERSION_TABLE } from "../sources-DNVEyJxb.js";
|
|
7
|
+
import { r as subjectFromSupabaseClient, s as postgrestSources } from "../resolver-CkK3cvQc.js";
|
|
8
8
|
import { a as delegationOf, i as actorOf, o as subjectFromSupabase, s as subjectFromSupabaseSession } from "../definition-options-DLBlRrPO.js";
|
|
9
9
|
import { n as parseSupabaseManifest, t as hasTokenHook } from "../manifest-teSfgeqF.js";
|
|
10
10
|
export { AUTHZ_EVENT, AUTHZ_TOPIC, AUTHZ_VERSION_TABLE, actorOf, authorizeSql, authzUserTopic, authzVersion, compactMemberships, definePermDock, delegationOf, exchangeCapability, expandMemberships, hasTokenHook, junctionMembershipSource, parseSupabaseManifest, postgrestSources, readSubjectRecord, subjectFromSupabase, subjectFromSupabaseClient, subjectFromSupabaseSession, supabaseApprovalStore, supabaseClaims, supabaseMembershipsBudget, supabasePostgresQuery, supabaseRls, supabaseTenantClaim, tableApprovalDelegationSource, tableApprovalPolicySource, tableMembershipSource };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { u as withApp } from "../permdock-
|
|
1
|
+
import { u as withApp } from "../permdock-B0aE5Ime.js";
|
|
2
2
|
import { t as compact } from "../compact-C4LFuqbW.js";
|
|
3
3
|
import { r as credentialSubject } from "../credential-D9in5keC.js";
|
|
4
4
|
import { t as instanceOptions } from "../instance-options-CLErhA76.js";
|
|
5
5
|
import { t as composeWraps } from "../wrap-CsfsaJhd.js";
|
|
6
|
-
import { n as attached } from "../bind-
|
|
7
|
-
import { t as createPermDock$1 } from "../create-
|
|
6
|
+
import { n as attached } from "../bind-CFwfgfp2.js";
|
|
7
|
+
import { t as createPermDock$1 } from "../create-DRiggRWE.js";
|
|
8
8
|
import { o as methodNotAllowed } from "../problem-BZB7zPC7.js";
|
|
9
9
|
import { n as tenantFromPath$1 } from "../tenant-from-path-AKTSY7uR.js";
|
|
10
10
|
import { n as supabaseOptionsOf, o as subjectFromSupabase, t as SUPABASE_OPTIONS } from "../definition-options-DLBlRrPO.js";
|
|
@@ -20,7 +20,7 @@ const inspect = defineLeaf({
|
|
|
20
20
|
},
|
|
21
21
|
async run(ctx, { flags }) {
|
|
22
22
|
if (flags.functions !== void 0) {
|
|
23
|
-
const { inspectFunctions } = await import("./inspect-functions-
|
|
23
|
+
const { inspectFunctions } = await import("./inspect-functions-Cj7kZDJt.js");
|
|
24
24
|
return inspectFunctions({
|
|
25
25
|
cwd: ctx.cwd,
|
|
26
26
|
config: ctx.config,
|
|
@@ -29,7 +29,7 @@ const inspect = defineLeaf({
|
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
31
|
const out = flags.out === "" ? true : flags.out === "-" ? void 0 : flags.out;
|
|
32
|
-
const { runSupabase } = await import("./supabase-hook-
|
|
32
|
+
const { runSupabase } = await import("./supabase-hook-DLnH3_5Z.js");
|
|
33
33
|
return runSupabase({
|
|
34
34
|
cwd: ctx.cwd,
|
|
35
35
|
config: ctx.config,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { r as isRecord } from "./compact-C4LFuqbW.js";
|
|
2
2
|
import { d as scopeList } from "./scopes-B-KX9EI8.js";
|
|
3
|
-
import "./sources-
|
|
3
|
+
import "./sources-DNVEyJxb.js";
|
|
4
4
|
import { _ as writeOutputFiles, d as pgDeltaPath, g as underSchemaDir, h as serviceRel, r as driftOf, u as partPath } from "./output-files-8lfALMSU.js";
|
|
5
5
|
import { i as readJsonFile, o as sqlFiles, s as writeFileEnsuringDir } from "./files-DAR51W3J.js";
|
|
6
6
|
import { n as formatManifestJson, t as MANIFEST_FILE } from "./manifest-json-DMaBWmcG.js";
|
|
7
|
-
import { c as requirePolicy } from "./load-
|
|
8
|
-
import { a as tryKeyReasons } from "./tenant-check-
|
|
9
|
-
import { n as hookUri } from "./rbac-
|
|
10
|
-
import { a as withTableReads } from "./table-reads-
|
|
11
|
-
import { a as supabaseHookSql, c as asideAuthzReceive, d as declarativeSql, i as supabaseHookManifest, l as configToml, n as hooklessDatabase, o as defaultOut, r as supabaseDatabaseManifest, s as hookMarker, t as grantsLabel } from "./hook-sql-
|
|
7
|
+
import { c as requirePolicy } from "./load-D03A3tZL.js";
|
|
8
|
+
import { a as tryKeyReasons } from "./tenant-check-C5DAstGo.js";
|
|
9
|
+
import { n as hookUri } from "./rbac-COexzCC9.js";
|
|
10
|
+
import { a as withTableReads } from "./table-reads-DpncF1F-.js";
|
|
11
|
+
import { a as supabaseHookSql, c as asideAuthzReceive, d as declarativeSql, i as supabaseHookManifest, l as configToml, n as hooklessDatabase, o as defaultOut, r as supabaseDatabaseManifest, s as hookMarker, t as grantsLabel } from "./hook-sql-Dys1kW5p.js";
|
|
12
12
|
import { r as HOOK_MARKER, s as hookMarkerFields } from "./markers-C-kThnKN.js";
|
|
13
|
-
import { i as withSchemaDefaults } from "./schema-tables-
|
|
14
|
-
import { l as supabaseConfig, n as resolveSchemas, r as schemasRefusal, t as isSupabaseSchemas } from "./supabase-schemas-
|
|
13
|
+
import { i as withSchemaDefaults } from "./schema-tables-CqEHokUT.js";
|
|
14
|
+
import { l as supabaseConfig, n as resolveSchemas, r as schemasRefusal, t as isSupabaseSchemas } from "./supabase-schemas-RPYfnE6O.js";
|
|
15
15
|
import { t as readMemberships } from "./read-memberships-DVBitJZG.js";
|
|
16
16
|
import { r as pgConnector } from "./pg-DmS5ITHu.js";
|
|
17
17
|
import { n as MIGRATION_DIRS } from "./constants-PCJiir_3.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./sources-
|
|
1
|
+
import "./sources-DNVEyJxb.js";
|
|
2
2
|
import { a as describeError } from "./errors-DgLOqc6j.js";
|
|
3
|
-
import { n as hookUri } from "./rbac-
|
|
3
|
+
import { n as hookUri } from "./rbac-COexzCC9.js";
|
|
4
4
|
import { n as supabaseDir, t as supabaseConfigFile } from "./supabase-dir-0lxKbrYu.js";
|
|
5
5
|
import { existsSync, readFileSync } from "node:fs";
|
|
6
6
|
import { join, posix } from "node:path";
|
|
@@ -8,12 +8,12 @@ import { t as CUSTOM_ROLES_VERSION_CLAIM } from "./budget-BH81q2cj.js";
|
|
|
8
8
|
import { s as ApprovalError } from "./types-DFZKovb3.js";
|
|
9
9
|
import { c as decodeApprovalCursor, l as encodeApprovalCursor, s as approvalPageSize, t as applyApprovalVerdict } from "./store-n3yEN7dt.js";
|
|
10
10
|
import { t as canonicalJson } from "./canonical-json-BibZkXtE.js";
|
|
11
|
-
import { a as withMembers, i as ownedCaches, n as getPermissions, o as callRpc, r as subjectFromSupabaseClient, s as postgrestSources, t as createResolver } from "./resolver-
|
|
12
|
-
import { d as keptKeys, l as roleColumn } from "./sources-
|
|
11
|
+
import { a as withMembers, i as ownedCaches, n as getPermissions, o as callRpc, r as subjectFromSupabaseClient, s as postgrestSources, t as createResolver } from "./resolver-CkK3cvQc.js";
|
|
12
|
+
import { d as keptKeys, l as roleColumn } from "./sources-DNVEyJxb.js";
|
|
13
13
|
import { a as quoteQualifiedTable, c as quoteSqlTable, d as sqlTextArray, i as qualifySqlTable, o as quoteSqlIdent, s as quoteSqlLiteral } from "./sql-T4GaBh9X.js";
|
|
14
14
|
import { t as compactMembershipsSql } from "./membership-claim-sql-DGfhIn__.js";
|
|
15
15
|
import { o as subjectFromSupabase, t as SUPABASE_OPTIONS } from "./definition-options-DLBlRrPO.js";
|
|
16
|
-
import { t as definePermDock$1 } from "./define-permdock-
|
|
16
|
+
import { t as definePermDock$1 } from "./define-permdock-CGI9pgqL.js";
|
|
17
17
|
import { r as isSubject } from "./subject-DkxY-AhF.js";
|
|
18
18
|
// src/supabase/capability.ts
|
|
19
19
|
const DEFAULT_TTL = 300;
|
package/dist/svelte/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { n as boundaryFallback, t as boundaryDigest } from "../boundary--5Swp7sN.js";
|
|
2
|
-
import { n as getUi, t as getStore } from "../context-
|
|
2
|
+
import { n as getUi, t as getStore } from "../context-CzHYMZr9.js";
|
|
3
3
|
import { n as viewFor, t as scopedFor } from "../runtime-Cl6xSbEq.js";
|
|
4
4
|
import { d as slotContent } from "../views-Dpr1uB16.js";
|
|
5
5
|
import { n as describe } from "../describe-B7EosIKA.js";
|
|
6
6
|
import { r as requiredPlans } from "../problem-details-EJHcvYCz.js";
|
|
7
7
|
import { r as approvalHeaders } from "../protected-action-DiXulRVj.js";
|
|
8
8
|
import { a as eventSourceRefresh, i as broadcastChannelRefresh, o as focusRefresh, r as authzChangeRefresh, s as visibilityRefresh } from "../store-options-DgOuhUSn.js";
|
|
9
|
-
import { a as gate, c as memberships, d as protectedAction, f as roles, h as tenant, i as filtered, l as permission, m as subject, n as assignable, o as getDescribe, p as setPermDock, r as assignablePermissions, s as getPermDock, t as approval, u as permissions } from "../stores-
|
|
9
|
+
import { a as gate, c as memberships, d as protectedAction, f as roles, h as tenant, i as filtered, l as permission, m as subject, n as assignable, o as getDescribe, p as setPermDock, r as assignablePermissions, s as getPermDock, t as approval, u as permissions } from "../stores-qYmLHVKv.js";
|
|
10
10
|
import "svelte/internal/disclose-version";
|
|
11
11
|
import * as $ from "svelte/internal/client";
|
|
12
12
|
import { onDestroy } from "svelte";
|
package/dist/svelte/runtime.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as boundaryFallback, t as boundaryDigest } from "../boundary--5Swp7sN.js";
|
|
2
2
|
import { d as slotContent } from "../views-Dpr1uB16.js";
|
|
3
|
-
import { n as getUi, t as getStore } from "../context-
|
|
3
|
+
import { n as getUi, t as getStore } from "../context-CzHYMZr9.js";
|
|
4
4
|
import { n as viewFor, t as scopedFor } from "../runtime-Cl6xSbEq.js";
|
|
5
5
|
export { boundaryDigest, boundaryFallback, getStore, getUi, scopedFor, slotContent, viewFor };
|
package/dist/svelte/source.js
CHANGED
|
@@ -2,7 +2,7 @@ import { n as describe } from "../describe-B7EosIKA.js";
|
|
|
2
2
|
import { r as requiredPlans } from "../problem-details-EJHcvYCz.js";
|
|
3
3
|
import { r as approvalHeaders } from "../protected-action-DiXulRVj.js";
|
|
4
4
|
import { a as eventSourceRefresh, i as broadcastChannelRefresh, o as focusRefresh, r as authzChangeRefresh, s as visibilityRefresh } from "../store-options-DgOuhUSn.js";
|
|
5
|
-
import { a as gate, c as memberships, d as protectedAction, f as roles, h as tenant, i as filtered, l as permission, m as subject, n as assignable, o as getDescribe, p as setPermDock, r as assignablePermissions, s as getPermDock, t as approval, u as permissions } from "../stores-
|
|
5
|
+
import { a as gate, c as memberships, d as protectedAction, f as roles, h as tenant, i as filtered, l as permission, m as subject, n as assignable, o as getDescribe, p as setPermDock, r as assignablePermissions, s as getPermDock, t as approval, u as permissions } from "../stores-qYmLHVKv.js";
|
|
6
6
|
import PermissionBoundaryComponent from "./PermissionBoundary.svelte";
|
|
7
7
|
import ProtectedComponent from "./Protected.svelte";
|
|
8
8
|
// src/svelte/source.ts
|
package/dist/sveltekit/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { f as InvalidSignatureError, g as webBotAuthVerifier, p as discoverViaSignatureAgent } from "../evaluations-DPEAu_jM.js";
|
|
2
|
-
import { n as guardedRoute, r as instanceRoute, t as fetchAdapter } from "../fetch-adapter-
|
|
2
|
+
import { n as guardedRoute, r as instanceRoute, t as fetchAdapter } from "../fetch-adapter-niRAPzNm.js";
|
|
3
3
|
// src/sveltekit/create.ts
|
|
4
4
|
const route = {
|
|
5
5
|
context: (event) => event,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as committedManifest, n as configuredTableReads, r as manifestTableReads, i as tableReads, a as withTableReads } from "./table-reads-
|
|
1
|
+
export { t as committedManifest, n as configuredTableReads, r as manifestTableReads, i as tableReads, a as withTableReads } from "./table-reads-DpncF1F-.js";
|
|
@@ -3,11 +3,11 @@ import { d as scopeList } from "./scopes-B-KX9EI8.js";
|
|
|
3
3
|
import { n as parseSupabaseManifest } from "./manifest-teSfgeqF.js";
|
|
4
4
|
import { i as readJsonFile } from "./files-DAR51W3J.js";
|
|
5
5
|
import { t as MANIFEST_FILE } from "./manifest-json-DMaBWmcG.js";
|
|
6
|
-
import { i as loadConfiguredPolicy } from "./load-
|
|
6
|
+
import { i as loadConfiguredPolicy } from "./load-D03A3tZL.js";
|
|
7
7
|
import { a as parseSqlFile, c as readPolicy, d as sqlCalls, f as stringValues, t as SqlSyntaxError } from "./ast-Dnm2TOHN.js";
|
|
8
8
|
import { i as taggedAccessPolicies } from "./bsb-access-Bcw6GrQm.js";
|
|
9
|
-
import { a as droppedPolicy, s as reportFiles, u as isPlatformSchema } from "./report-
|
|
10
|
-
import { a as tryKeyReasons, n as tenantCheck, r as keyReason, t as svals } from "./tenant-check-
|
|
9
|
+
import { a as droppedPolicy, s as reportFiles, u as isPlatformSchema } from "./report-B7UuE4dW.js";
|
|
10
|
+
import { a as tryKeyReasons, n as tenantCheck, r as keyReason, t as svals } from "./tenant-check-C5DAstGo.js";
|
|
11
11
|
import { existsSync, readFileSync } from "node:fs";
|
|
12
12
|
import { join, relative } from "node:path";
|
|
13
13
|
// src/cli/rls/shared-functions.ts
|