[claude] Add real-time cost ticker for Workshop interactions (#68) #82
Reference in New Issue
Block a user
Delete Branch "claude/issue-68"
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?
Fixes #68
Summary
⚡ ~N satscost ticker in the top-right HUD during active paid interactionscost:updateevents via the EventBus at two points: when the work invoice is issued (estimated) and when work completes (actual final cost)cost:updateafter each session request with the charged satsisFinal=false, updates and auto-hides after 5s onisFinal=trueFiles changed
artifacts/api-server/src/lib/event-bus.ts— newCostEventtype added toBusEventunionartifacts/api-server/src/routes/events.ts—cost:update→cost_updateWS translationartifacts/api-server/src/routes/jobs.ts— publish estimated and actual cost events for paid jobsartifacts/api-server/src/routes/sessions.ts— publish cost event after each charged session requestthe-matrix/js/ui.js—showCostTicker,updateCostTicker,hideCostTickerexportsthe-matrix/js/websocket.js— handlecost_updatemessages