Wevir
Open-source agent harness
A local-first, multi-surface agent harness. BYOK for Claude, GPT, Gemini, and local models. One session across desktop, CLI, and mobile. Code and keys stay local, zero telemetry.
- Open source
- macOS · Windows · Linux
- CLI
- Mobile
- Readsrc/cart/total.ts
- SearchtoFixed(
- Editsrc/cart/total.ts+3 −2
- Runpnpm test cart24 passed
Root cause: float accumulation before toFixed(2). Switched to integer-cent arithmetic.
3 export function total(items: Item[]) {4− const sum = items.reduce((s, i) => s + i.price * i.qty, 0)5− return sum.toFixed(2)4+ const cents = items.reduce(5+ (s, i) => s + Math.round(i.price * 100) * i.qty, 0)6+ return (cents / 100).toFixed(2)7 }
Illustrative UI