Runtime zap config — ZAP_PCT_DEFAULT + ZAP_MIN_SATS via timmy_config table #49
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Background
ZapService (
artifacts/api-server/src/lib/zap.ts) currently readsZAP_PCT_DEFAULTandZAP_MIN_SATSfrom env vars only, requiring a server restart to change. Thetimmy_configDB table already exists for runtime config.Acceptance Criteria
ZapServicereads zap config fromtimmy_configat call time (falling back to env var defaults)POST /api/admin/zap-configendpoint (admin auth required) accepts{ pct: number, minSats: number }and writes totimmy_configpctin [0, 50],minSatsin [1, 1000]Relevant files
artifacts/api-server/src/lib/zap.tslib/db/src/schema/timmy-config.ts