Commit Graph

3 Commits

Author SHA1 Message Date
3a8a6e98b1 fix(cost): per-model pricing so pi/Paperclip report real spend
The omni provider's models.json entries carried no 'cost' field, so pi's
calculateCost() returned 0 for every run and Paperclip cost events/budgets
all read $0.00 despite real spend.

- scripts/omni-pricing.mjs: pulls authoritative prices (OmniRoute /api/pricing
  for deepseek/*, OpenRouter /api/v1/models for openrouter/*) and injects
  { cost: { input, output, cacheRead, cacheWrite } } USD per 1M tokens.
- Priced: deepseek-v4-flash, deepseek-v4-pro, gemini-3.1-flash-lite, gemini-2.5-flash.
- Must be re-run after every /omni sync, which rewrites models.json wholesale.
2026-09-27 18:37:24 +10:00
b3247fa75c add pre-commit-secret-scan hook (blocks commits containing real credentials; install via core.hooksPath) 2026-08-04 08:45:02 +10:00
021d4cc2d6 falcode: fix spawn error handlers (crash fix) + real oc-notify.sh notifier
- falcode.ts: add child.on('error') handlers so a missing notify binary
  (e.g. /bin/true on NixOS) can no longer take down pi via uncaughtException
- scripts/oc-notify.sh: real notifier (notify-send + ntfy) replacing the no-op
- oc-notify.sh also deployed to ~/.local/state/falcode-zellij/ on all machines
2026-08-04 06:31:26 +10:00