docs: how to talk to the live PocketBase directly

Records live under /api/collections/<name>/records, and the admin client
authenticates with PB_ADMIN_EMAIL/PB_ADMIN_PASSWORD — the PB_ADMIN_TOKEN
in .env is not always current.
This commit is contained in:
Dave 2026-11-05 01:23:25 +02:00
parent e12a5ccb32
commit 3168b9a906

View file

@ -148,6 +148,14 @@ a VPS cron syncs the files listed in `DEPLOY` into the live PB hooks volume
(see `scripts/pb-hooks/README.md`). The audit hooks went live on 2026-10-17;
`audit_log` has no history from before that date.
Talking to the live PB directly: authenticate as superuser with
`PB_ADMIN_EMAIL`/`PB_ADMIN_PASSWORD` via
`POST /api/collections/_superusers/auth-with-password` — that is what the
server does too (`getAdminPocketBase()`), and the `PB_ADMIN_TOKEN` in `.env`
is not always current (a 401 means re-auth, not a wrong URL). Records live
under `/api/collections/<name>/records`; the path without `/records` returns
the collection definition, not the rows.
# Giellie agent (`/giellie`) — tools come from the MCP, policy lives in one file
The sidebar "Giellie Agent" is a MiniMax chat agent (`src/lib/server/giellie-*.ts`,