nexus/server
Dominic O'Carroll 5e18ccace7 fix: route heartbeat cost recording through costService
Heartbeat runs recorded costs via direct SQL inserts into costEvents and
agents.spentMonthlyCents, bypassing costService.createEvent(). This skipped:
- companies.spentMonthlyCents update (company budget never incremented)
- Agent auto-pause when budget exceeded (enforcement gap)

Now calls costService(db).createEvent() which handles all three:
insert cost event, update agent spend, update company spend, and
auto-pause agent when budgetMonthlyCents is exceeded.
2026-03-09 14:49:01 +10:00
..
src fix: route heartbeat cost recording through costService 2026-03-09 14:49:01 +10:00
CHANGELOG.md chore: release v0.2.7 2026-03-04 14:51:33 -06:00
package.json Remove legacy OpenClaw adapter and keep gateway-only flow 2026-03-07 18:50:25 -06:00
tsconfig.json feat: integrate Changesets for multi-package npm publishing 2026-03-03 14:46:16 -06:00
vitest.config.ts Add API server with routes, services, and middleware 2026-02-16 13:31:58 -06:00