From f8294b4e1d62819a46a34065286897a70b0b8b61 Mon Sep 17 00:00:00 2001 From: Dave Date: Sat, 17 Oct 2026 15:41:20 +0200 Subject: [PATCH] feat(pocketbase): switch on the audit-log hooks Co-Authored-By: Claude Opus 5.5 --- AGENTS.md | 5 ++--- pocketbase/pb_hooks/DEPLOY | 5 +++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 95093ab..5fe9484 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -138,9 +138,8 @@ hook utils — add new auto-updated fields there. Hooks deploy from git: commit changes in `pocketbase/pb_hooks/`, then `npm run pb:hooks:publish` (pushes that folder to Forgejo `David/WFDASH-PBHOOKS`); a VPS cron syncs the files listed in `DEPLOY` into the live PB hooks volume -(see `scripts/pb-hooks/README.md`). **As of 2026-10-17 only `quotes.pb.js` -is deployed — the audit hooks are NOT live yet**, so `audit_log` is empty -until both `audit_log.pb.js` and `audit_log_utils.js` are added to `DEPLOY`. +(see `scripts/pb-hooks/README.md`). The audit hooks went live on 2026-10-17; +`audit_log` has no history from before that date. # Giellie agent (`/giellie`) — tools come from the MCP, policy lives in one file diff --git a/pocketbase/pb_hooks/DEPLOY b/pocketbase/pb_hooks/DEPLOY index 33e1324..2180c78 100644 --- a/pocketbase/pb_hooks/DEPLOY +++ b/pocketbase/pb_hooks/DEPLOY @@ -3,7 +3,8 @@ # is NOT deployed, and a *.js file on the server that is not listed here is # removed on the next sync. See scripts/pb-hooks/README.md. # -# Not deployed yet: audit_log.pb.js + audit_log_utils.js — add BOTH lines -# together when the audit trail is switched on (utils is required by the hook). +# audit_log.pb.js requires audit_log_utils.js — always deploy them together. # Publish: commit, then `npm run pb:hooks:publish`; the VPS syncs within ~2 min. quotes.pb.js +audit_log_utils.js +audit_log.pb.js