{"_id":"@agentlaw/sink-supabase","name":"@agentlaw/sink-supabase","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@agentlaw/sink-supabase","version":"0.1.0","description":"Optional Supabase sink for AgentLaw: mirror the hash-chained audit, run a cross-host approval channel, and publish per-environment policy summaries for a governance console.","type":"module","license":"Apache-2.0","engines":{"node":">=22"},"main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"build":"tsc -b","typecheck":"tsc -b","pretest":"tsc -b","test":"node --import tsx --test \"test/**/*.test.ts\""},"dependencies":{"@agentlaw/audit":"0.1.0","@agentlaw/core":"0.1.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"repository":{"type":"git","url":"git+https://github.com/Mounaji-Webs/agentlaw.git","directory":"packages/sink-supabase"},"homepage":"https://agentlaw.dev","bugs":{"url":"https://github.com/Mounaji-Webs/agentlaw/issues"},"keywords":["ai-agents","security","policy","mcp","governance","agentlaw","supabase","audit-log"],"gitHead":"a0e1b6f4b67936c9600daa13f63c1e45f8b9406b","_id":"@agentlaw/sink-supabase@0.1.0","_nodeVersion":"24.18.0","_npmVersion":"11.16.0","dist":{"integrity":"sha512-+6BkZXVtazZrdSiMtpTh7oucUKzy6k0ox/7sw5COaO29Mzab5ErfqqFFGZnI9suvanDfNc+qpBrk7vRpvJHttg==","shasum":"4eb14c09da0c9a5de0a1654970699a7fa2211dee","tarball":"https://registry.npmjs.org/@agentlaw/sink-supabase/-/sink-supabase-0.1.0.tgz","fileCount":7,"unpackedSize":47502,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCYCFpFyANb/eU2RF3hq/I4/FIKmPm48h56Jb81sgs7jAIhAL5FoRFmgVW9EQUmu4KlaLtuBw5jzTUv+XyIs1sUdyAL"}]},"_npmUser":{"name":"lucilo","email":"lucilo@gmail.com"},"directories":{},"maintainers":[{"name":"lucilo","email":"lucilo@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sink-supabase_0.1.0_1785645984428_0.363695666706527"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-02T04:46:24.210Z","0.1.0":"2026-08-02T04:46:24.565Z","modified":"2026-08-02T04:46:24.828Z"},"maintainers":[{"name":"lucilo","email":"lucilo@gmail.com"}],"description":"Optional Supabase sink for AgentLaw: mirror the hash-chained audit, run a cross-host approval channel, and publish per-environment policy summaries for a governance console.","homepage":"https://agentlaw.dev","keywords":["ai-agents","security","policy","mcp","governance","agentlaw","supabase","audit-log"],"repository":{"type":"git","url":"git+https://github.com/Mounaji-Webs/agentlaw.git","directory":"packages/sink-supabase"},"bugs":{"url":"https://github.com/Mounaji-Webs/agentlaw/issues"},"license":"Apache-2.0","readme":"# @agentlaw/sink-supabase\n\nOptional bring-your-own-Supabase sink for [AgentLaw](https://github.com/Mounaji-Webs/agentlaw). Mirrors what an enforcement point does into your own Supabase project so the [governance console](https://github.com/Mounaji-Webs/agentlaw/tree/main/console) and [`@agentlaw/mcp`](https://www.npmjs.com/package/@agentlaw/mcp) can read it:\n\n- one `agentlaw_environments` row per governed environment (policy summary + mode, heartbeat-upserted),\n- the hash-chained audit feed in `agentlaw_audit`,\n- a cross-host approval channel for `approve` decisions.\n\nEnforcement never depends on it: the sink is fire-and-forget and fail-open for delivery (the local audit chain stays the source of truth), while decisions themselves remain fail-closed in the gateway.\n\n## Setup\n\n1. Create a Supabase project and apply `console/db/001_agentlaw.sql` from the repo.\n2. Point the sink (and console) at it:\n\n```sh\nAGENTLAW_SUPABASE_URL=https://<your-project>.supabase.co\nAGENTLAW_SUPABASE_KEY=<service key>\n```\n\nApache-2.0.\n","readmeFilename":"README.md","_rev":"1-cb91f965fc5096c1fbd060786575cf81"}