Skip to content
17 linesCodeBlameRaw

Pick any line to see why it is the way it is: the commit, the pull request and issue it came from, and what the agent was thinking.

Plan: Projects, the home of everything about running software1{
2 "files": [],
3 "references": [
4 { "path": "./tsconfig.node.json" },
5 { "path": "./tsconfig.cloudflare.json" }
6 ],
7 "compilerOptions": {
8 "checkJs": true,
9 "verbatimModuleSyntax": true,
10 "skipLibCheck": true,
11 "strict": true,
Money is written one way. A single formatter turns millionths of a dollar into dollars, rounding half up on whole micros rather than on a float, so the same sum reads the same on every page: under a cent reads <$0.01 on a total and exactly nothing is $0.00, while the statement's lines, a session's receipt, the price book and an agent's effort costs carry up to four places where the fraction of a cent is the point; the six formatters that each rounded their own way are gone. This month is the calendar month in UTC from its first day to today everywhere, and billing counts the month's not-yet-closed usage in any range that reaches into the current month, so the top bar's pill, Spend, Home and Usage ask for the same days and get the same figure; Home now reads the usage report the others read instead of adding up statements. Usage's pending sentence says what of that usage the close will charge after the discount and included usage, which the billing API returns as pending_charged_micros. A reconciliation test holds the pill, Spend, Home and Usage to one number for one month. The usage and billing guide says how amounts are written and what this month means.12 "noEmit": true,
13 // Pure modules in app/lib import each other by file (`./money.ts`), the
14 // way the tests do, so node runs them as they are and Vite bundles them.
15 "allowImportingTsExtensions": true
Plan: Projects, the home of everything about running software16 }
17}

This file's history is long; its oldest lines are credited to the oldest commit read.