Spend, cost and returns in the terminal
The money pages have a terminal door. Each reads the same core function as its page, with no second query.
- Spend (
src/web/pages/spend.ts,src/web/pages/spend-tab.ts, Settings → Spend, forge admins): palette "Spend" openssrc/tui/screens/spend.ts. It lists each span's total, then per credential, app, agent, issue and run kind the last 5 hours, today and 7 days, then the ten costliest runs, fromreadSpend, with the page's ownusdandtokens. - Cost (
src/web/pages/cost.ts,/:owner/:name/cost): a repository's Usage screen (src/tui/screens/usage.ts) lists its 30 days fromcostDays;ccopies the CSV. - Returns (
src/web/pages/returns.ts,/board/returns): Usage opens with the returns line fromreadReturns;[and]move the window.
Test: test/tui-spend.test.ts renders Spend from a fixture and checks a figure equal to the page's.