Public: anyone can read this; the crew can change it.
/cost shows the last 30 days as one row per day, with a link that downloads the same rows as CSV #13561
Check · Review · Land · Live done — Landed and live in production.
torque/forge:torque/13546-cost-shows-the-last-30-days-as-one-row-p → main 5 commits fork 3 threads · 3 unresolved
7 files
changed +94
−30
docs/features/cost-days.md +3 −2
| @@ -1,10 +1,11 @@ | ||
| 1 | 1 | # Cost by day |
| 2 | 2 | |
| 3 | A repository's owner (anyone `canSeeOwnerFacts` names) reads what the crew spent on it in each of the last 14 days as a table: date, dollars, runs. The page is `/:owner/:name/cost`; the terminal's "Usage of a repository" screen opens with the same rows in the same words. Anyone else gets the page's not-found. | |
| 3 | A repository's owner (anyone `canSeeOwnerFacts` names) reads what the crew spent on it in each of the last 30 days as a table: date, dollars, runs. The page is `/:owner/:name/cost`; the terminal's "Usage of a repository" screen opens with the same rows in the same words. Anyone else gets the page's not-found. | |
| 4 | 4 | |
| 5 | 5 | - **Source**: the usage ledger (`src/core/usage.ts`), one line per ended agent run, read in one grouped query over `usage_repo(repo_id, at)` (`src/core/cost_days.ts`). |
| 6 | 6 | - **Days are UTC.** The column header says so. A run is counted on the day it ended. |
| 7 | 7 | - **Dollars** are the provider's list price, to the cent. |
| 8 | - **A day with no run shows an em dash** (—) for dollars and runs, never `$0.00`. | |
| 8 | - **A day with no run shows `$0.00` and 0 runs.** | |
| 9 | - **CSV**: `/:owner/:name/cost.csv` (the page's "Download CSV" link) answers `text/csv` with `date_utc,usd,runs`, same rows and gate; a cell starting with `= + - @` gets a leading `'` (`costCsv`, `src/data/export_csv.ts`). | |
| 9 | 10 | |
| 10 | 11 | Tests: `test/cost-days.test.ts` (fixtures across a month boundary, the page, the terminal). |
src/core/cost_days.ts +12 −14
| @@ -1,5 +1,5 @@ | ||
| 1 | 1 | /** |
| 2 | * One repository's spend per day for the last 14 days (#13330): the usage | |
| 2 | * One repository's spend per day for the last 30 days (#13330): the usage | |
| 3 | 3 | * ledger (`usage.ts`, one line per ended agent run) summed in one grouped |
| 4 | 4 | * query that walks `usage_repo(repo_id, at)`. The page and the terminal read |
| 5 | 5 | * this module for the rows and the words, so they never disagree. |
| @@ -7,24 +7,23 @@ | ||
| 7 | 7 | * Units, stated once: `usd` is US dollars of the provider's list price, as |
| 8 | 8 | * Claude Code reports it; `runs` is ledger lines; a day is a UTC calendar day |
| 9 | 9 | * (`at` is written by `toISOString()`, so its first ten characters name it). |
| 10 | * A day with no ledger line has `usd` and `runs` null, never zero: nothing | |
| 11 | * ran is not the same as nothing cost. | |
| 10 | * A day with no ledger line has `usd` and `runs` 0 and shows 0.00 (#13546). | |
| 12 | 11 | */ |
| 13 | 12 | |
| 14 | 13 | import type { Database } from "bun:sqlite"; |
| 15 | 14 | |
| 16 | export const COST_DAYS = 14; | |
| 15 | export const COST_DAYS = 30; | |
| 17 | 16 | |
| 18 | 17 | export interface CostDay { |
| 19 | 18 | /** `YYYY-MM-DD`, UTC. */ |
| 20 | 19 | readonly day: string; |
| 21 | readonly usd: number | null; | |
| 22 | readonly runs: number | null; | |
| 20 | readonly usd: number; | |
| 21 | readonly runs: number; | |
| 23 | 22 | } |
| 24 | 23 | |
| 25 | 24 | const DAY_MS = 86_400_000; |
| 26 | 25 | |
| 27 | /** The 14 days ending with the UTC day of `now`, newest first, gaps null. */ | |
| 26 | /** The 30 days ending with the UTC day of `now`, newest first, gaps zero. */ | |
| 28 | 27 | export function costDays(db: Database, repoId: string, now: Date = new Date()): CostDay[] { |
| 29 | 28 | const midnight = Date.parse(`${now.toISOString().slice(0, 10)}T00:00:00.000Z`); |
| 30 | 29 | const from = new Date(midnight - (COST_DAYS - 1) * DAY_MS).toISOString(); |
| @@ -45,19 +44,18 @@ export function costDays(db: Database, repoId: string, now: Date = new Date()): | ||
| 45 | 44 | for (let i = 0; i < COST_DAYS; i++) { |
| 46 | 45 | const day = new Date(midnight - i * DAY_MS).toISOString().slice(0, 10); |
| 47 | 46 | const r = rows.get(day); |
| 48 | out.push({ day, usd: r?.usd ?? null, runs: r?.runs ?? null }); | |
| 47 | out.push({ day, usd: r?.usd ?? 0, runs: r?.runs ?? 0 }); | |
| 49 | 48 | } |
| 50 | 49 | return out; |
| 51 | 50 | } |
| 52 | 51 | |
| 53 | export const EM_DASH = "—"; | |
| 54 | ||
| 55 | /** Dollars to the cent, or an em dash for a day nothing ended. */ | |
| 56 | export const dayUsd = (d: CostDay): string => (d.usd === null ? EM_DASH : `$${d.usd.toFixed(2)}`); | |
| 57 | export const dayRuns = (d: CostDay): string => (d.runs === null ? EM_DASH : String(d.runs)); | |
| 52 | /** Dollars to the cent; a day nothing ended is 0.00. */ | |
| 53 | export const dayAmount = (d: CostDay): string => d.usd.toFixed(2); | |
| 54 | export const dayUsd = (d: CostDay): string => `$${dayAmount(d)}`; | |
| 55 | export const dayRuns = (d: CostDay): string => String(d.runs); | |
| 58 | 56 | |
| 59 | 57 | /** The terminal's line for a day, aligned: `2026-11-15 $3.20 2 runs`. */ |
| 60 | 58 | export function dayLine(d: CostDay): string { |
| 61 | const runs = d.runs === null ? EM_DASH : `${d.runs} ${d.runs === 1 ? "run" : "runs"}`; | |
| 59 | const runs = `${d.runs} ${d.runs === 1 ? "run" : "runs"}`; | |
| 62 | 60 | return `${d.day} ${dayUsd(d).padStart(9)} ${runs}`; |
| 63 | 61 | } |
src/data/export_csv.ts +10
| @@ -5,6 +5,7 @@ | ||
| 5 | 5 | * `source`. |
| 6 | 6 | */ |
| 7 | 7 | import type { App } from "../app.ts"; |
| 8 | import { type CostDay, dayAmount, dayRuns } from "../core/cost_days.ts"; | |
| 8 | 9 | import type { User } from "../core/users.ts"; |
| 9 | 10 | import { toCsv } from "../text/csv_write.ts"; |
| 10 | 11 | import { exportRows } from "./browse.ts"; |
| @@ -29,3 +30,12 @@ export function exportCsv( | ||
| 29 | 30 | if (!found) return { ok: false, error: "not_found" }; |
| 30 | 31 | return { ok: true, csv: toCsv(found.columns, found.rows), rows: found.rows.length, truncated: found.truncated }; |
| 31 | 32 | } |
| 33 | ||
| 34 | /** | |
| 35 | * The cost page's rows as CSV (#13546): date (UTC), dollars to the cent, runs, newest first, | |
| 36 | * the same figures `dayAmount` and `dayRuns` give the page. Text cells go through `toCsv`, so | |
| 37 | * one that starts with = + - @ is neutralised. | |
| 38 | */ | |
| 39 | export function costCsv(days: readonly CostDay[]): string { | |
| 40 | return toCsv(["date_utc", "usd", "runs"], days.map((d) => [d.day, dayAmount(d), dayRuns(d)])); | |
| 41 | } |
src/http/server.ts +2 −1
| @@ -285,7 +285,7 @@ import { spaceJson, spacePage } from "../web/pages/space.ts"; | ||
| 285 | 285 | import { firstSubmit } from "../web/pages/first.ts"; |
| 286 | 286 | import { nextPage, nextSubmit } from "../web/pages/next.ts"; |
| 287 | 287 | import { weekPage, weekSubmit } from "../web/pages/week.ts"; |
| 288 | import { costPage } from "../web/pages/cost.ts"; | |
| 288 | import { costCsvDownload, costPage } from "../web/pages/cost.ts"; | |
| 289 | 289 | import { |
| 290 | 290 | appMilestonesFragment, |
| 291 | 291 | liveMilestonesFragment, |
| @@ -1429,6 +1429,7 @@ export function buildRouter(): Router<Handler> { | ||
| 1429 | 1429 | router.add("POST", "/:owner/:name/next", nextSubmit); |
| 1430 | 1430 | router.add("GET", "/:owner/:name/week", weekPage); |
| 1431 | 1431 | router.add("GET", "/:owner/:name/cost", costPage); |
| 1432 | router.add("GET", "/:owner/:name/cost.csv", costCsvDownload); | |
| 1432 | 1433 | router.add("POST", "/:owner/:name/week", weekSubmit); |
| 1433 | 1434 | router.add("POST", "/:owner/:name/issues/:number/first", firstSubmit); |
| 1434 | 1435 | router.add("GET", "/:owner/:name/flows", flowsPage); |
src/tui/screens/usage.ts +11 −2
| @@ -17,6 +17,7 @@ import { readReturns } from "../../actions/returns.ts"; | ||
| 17 | 17 | import { mayManageFlags } from "../../core/flags.ts"; |
| 18 | 18 | import { ROLES, SURFACES } from "../../core/usage_count.ts"; |
| 19 | 19 | import { COST_DAYS, costDays, dayLine } from "../../core/cost_days.ts"; |
| 20 | import { costCsv } from "../../data/export_csv.ts"; | |
| 20 | 21 | import { usd } from "../../core/money.ts"; |
| 21 | 22 | import { canSeeOwnerFacts, type Repo } from "../../core/repos.ts"; |
| 22 | 23 | import type { Returns } from "../../core/returns.ts"; |
| @@ -89,8 +90,9 @@ export function usageScreen(f: Session, ctx: Ctx, repo?: Repo): Screen { | ||
| 89 | 90 | }; |
| 90 | 91 | let returns = read(); |
| 91 | 92 | // Forge-wide only, read once when the screen opens; readForgeUsage narrows to what this user can |
| 92 | // see. A repository's: the last 14 UTC days, the page's table in the page's words (#13330), owner | |
| 93 | // see. A repository's: the last 30 UTC days, the page's table in the page's words (#13330), owner | |
| 93 | 94 | // facts only. |
| 95 | const spendRows = repo !== undefined && canSeeOwnerFacts(f.db, repo, f.user) ? costDays(f.db, repo.id) : undefined; | |
| 94 | 96 | const spend = |
| 95 | 97 | repo === undefined |
| 96 | 98 | ? f.user !== undefined ? forgeSpendLines(readForgeUsage(f.app, f.user)) : [] |
| @@ -103,10 +105,11 @@ export function usageScreen(f: Session, ctx: Ctx, repo?: Repo): Screen { | ||
| 103 | 105 | binding(["j", "k"], "move cursor", { hidden: rows.length === 0 }), |
| 104 | 106 | binding(["[", "]"], "returns window", { hidden: returns === undefined }), |
| 105 | 107 | binding(["f"], "fleet graph"), |
| 108 | binding(["c"], "copy cost CSV", { hidden: spendRows === undefined }), | |
| 106 | 109 | ], |
| 107 | 110 | render(area, s) { |
| 108 | 111 | const c = ctx.theme.c; |
| 109 | const [spendArea, top, head, list] = split(area, "v", [len(spend.length), len(returns === undefined ? 0 : 1), len(1), fill(1)]); | |
| 112 | const [top, head, spendArea, list] = split(area, "v", [len(returns === undefined ? 0 : 1), len(1), len(spend.length), fill(1)]); | |
| 110 | 113 | spend.forEach((line, i) => s.text(spendArea!.x, spendArea!.y + i, truncate(line, spendArea!.w), style(c.fg, c.bg), spendArea!.x + spendArea!.w)); |
| 111 | 114 | if (returns !== undefined) |
| 112 | 115 | s.text(top!.x, top!.y, truncate(returns, top!.w), style(c.fg, c.bg), top!.x + top!.w); |
| @@ -127,6 +130,12 @@ export function usageScreen(f: Session, ctx: Ctx, repo?: Repo): Screen { | ||
| 127 | 130 | ctx.push(fleetGraphScreen(f, ctx, scope.repo === undefined ? null : [scope.repo])); |
| 128 | 131 | return true; |
| 129 | 132 | } |
| 133 | if (spendRows !== undefined && !e.ctrl && !e.alt && e.key === "c") { | |
| 134 | // The page's CSV download, on the reader's clipboard. | |
| 135 | ctx.copy(costCsv(spendRows)); | |
| 136 | ctx.toast(`${spendRows.length} days of cost sent to your clipboard as CSV.`); | |
| 137 | return true; | |
| 138 | } | |
| 130 | 139 | if (returns !== undefined && !e.ctrl && !e.alt && (e.key === "[" || e.key === "]")) { |
| 131 | 140 | const next = Math.max(0, Math.min(RETURNS_SPANS.length - 1, span + (e.key === "]" ? 1 : -1))); |
| 132 | 141 | if (next === span) return true; |
src/web/pages/cost.ts +20 −1
| @@ -1,15 +1,17 @@ | ||
| 1 | 1 | /** |
| 2 | 2 | * `/:owner/:name/cost` (#13330): what the crew spent on this repository each |
| 3 | * of the last 14 UTC days, date, dollars and runs, from the usage ledger. | |
| 3 | * of the last 30 UTC days, date, dollars and runs, from the usage ledger. | |
| 4 | 4 | * Spend is the owner's own fact (`canSeeOwnerFacts`): anyone else gets the |
| 5 | 5 | * same not-found a missing repository does. Every figure is formatted in |
| 6 | 6 | * `core/cost_days.ts`, the module the terminal reads too. |
| 7 | 7 | */ |
| 8 | 8 | import { COST_DAYS, costDays, dayRuns, dayUsd } from "../../core/cost_days.ts"; |
| 9 | import { costCsv } from "../../data/export_csv.ts"; | |
| 9 | 10 | import { canSeeOwnerFacts } from "../../core/repos.ts"; |
| 10 | 11 | import { notePhase, takeSessionTime, timePhase } from "../../core/route_timing.ts"; |
| 11 | 12 | import type { Ctx } from "../../http/context.ts"; |
| 12 | 13 | import { crumbsFor, loadRepo, notFoundPage, repoHeader, repoPalette } from "../chrome.ts"; |
| 14 | import { securityFloor } from "../../http/respond.ts"; | |
| 13 | 15 | import { html } from "../html.ts"; |
| 14 | 16 | import { page } from "../layout.ts"; |
| 15 | 17 | |
| @@ -23,6 +25,7 @@ export function costPage(ctx: Ctx): Response { | ||
| 23 | 25 | const body = html`${repoHeader(ctx, repo, "issues")} |
| 24 | 26 | <div class="page-head mt"> |
| 25 | 27 | <h1>Cost, last ${String(COST_DAYS)} days</h1> |
outdated
Design principle 5/1: the link sits in page-head beside the h1; confirm it uses the one accent link style and has a muted, plain label (e.g. 'CSV'); 'Download CSV' repeats the |
||
| 28 | <a href="/${repo.ownerName}/${repo.name}/cost.csv" download>CSV</a> | |
| 26 | 29 | </div> |
| 27 | 30 | <div class="table-scroll"> |
| 28 | 31 | <table class="table" aria-label="Spend per day"> |
| @@ -54,3 +57,19 @@ export function costPage(ctx: Ctx): Response { | ||
| 54 | 57 | notePhase(ctx.request, "render", performance.now() - rendering); |
| 55 | 58 | return response; |
| 56 | 59 | } |
| 60 | ||
| 61 | // GET /:owner/:name/cost.csv: the same rows, the same gate, the same numbers. | |
| 62 | export function costCsvDownload(ctx: Ctx): Response { | |
| 63 | const repo = loadRepo(ctx); | |
| 64 | if (!repo || !canSeeOwnerFacts(ctx.app.db, repo, ctx.auth.user)) return notFoundPage(ctx); | |
outdated
High: wrap this Response in |
||
| 65 | const slug = repo.name.replace(/[^A-Za-z0-9._-]/g, "_"); | |
| 66 | return securityFloor( | |
| 67 | new Response(costCsv(costDays(ctx.app.db, repo.id)), { | |
| 68 | headers: { | |
| 69 | "content-type": "text/csv; charset=utf-8", | |
| 70 | "content-disposition": `attachment; filename="cost-${slug}.csv"`, | |
| 71 | "cache-control": "private, no-store", | |
| 72 | }, | |
| 73 | }), | |
| 74 | ); | |
| 75 | } |
test/cost-days.test.ts +36 −10
| @@ -11,6 +11,7 @@ import { createRun } from "../src/core/runs.ts"; | ||
| 11 | 11 | import { createRepo } from "../src/actions/repos.ts"; |
| 12 | 12 | import { createApp, type App as Forge } from "../src/app.ts"; |
| 13 | 13 | import { COST_DAYS, costDays, dayLine } from "../src/core/cost_days.ts"; |
| 14 | import { costCsv } from "../src/data/export_csv.ts"; | |
| 14 | 15 | import type { Repo } from "../src/core/repos.ts"; |
| 15 | 16 | import { recordUsage } from "../src/core/usage.ts"; |
| 16 | 17 | import { createUser, getUserByName } from "../src/core/users.ts"; |
| @@ -69,27 +70,27 @@ describe("cost by day", () => { | ||
| 69 | 70 | await rm(dataDir, { recursive: true, force: true }); |
| 70 | 71 | }); |
| 71 | 72 | |
| 72 | test("14 rows newest first across a month boundary, a gap is an em dash, sums are by UTC day", () => { | |
| 73 | test("30 rows newest first across a month boundary, a gap is 0.00, sums are by UTC day", () => { | |
| 73 | 74 | const now = new Date("2026-03-02T10:00:00.000Z"); |
| 74 | 75 | line(repo, "2026-02-28T23:59:59.999Z", 1.25); // last instant of February |
| 75 | 76 | line(repo, "2026-03-01T00:00:00.000Z", 2); // first instant of March |
| 76 | 77 | line(repo, "2026-03-01T13:00:00.000Z", 0.5); |
| 77 | 78 | line(repo, "2026-03-02T09:00:00.000Z", 0.1); |
| 78 | line(repo, "2026-02-16T12:00:00.000Z", 9); // 14 days back: outside | |
| 79 | line(repo, "2026-02-17T00:00:00.000Z", 3); // the 14th day: inside | |
| 79 | line(repo, "2026-01-31T12:00:00.000Z", 9); // 31 days back: outside | |
| 80 | line(repo, "2026-02-01T00:00:00.000Z", 3); // the 30th day: inside | |
| 80 | 81 | line(other, "2026-03-01T12:00:00.000Z", 99); // another repository's |
| 81 | 82 | const days = costDays(forge.db, repo.id, now); |
| 82 | 83 | expect(days).toHaveLength(COST_DAYS); |
| 83 | 84 | expect(days[0]!.day).toBe("2026-03-02"); |
| 84 | expect(days[13]!.day).toBe("2026-02-17"); | |
| 85 | expect(days[29]!.day).toBe("2026-02-01"); | |
| 85 | 86 | const by = Object.fromEntries(days.map((d) => [d.day, d])); |
| 86 | 87 | expect(by["2026-03-02"]).toEqual({ day: "2026-03-02", usd: 0.1, runs: 1 }); |
| 87 | 88 | expect(by["2026-03-01"]).toEqual({ day: "2026-03-01", usd: 2.5, runs: 2 }); |
| 88 | 89 | expect(by["2026-02-28"]).toEqual({ day: "2026-02-28", usd: 1.25, runs: 1 }); |
| 89 | expect(by["2026-02-27"]).toEqual({ day: "2026-02-27", usd: null, runs: null }); | |
| 90 | expect(by["2026-02-17"]!.usd).toBe(3); | |
| 91 | expect(by["2026-02-16"]).toBeUndefined(); | |
| 92 | expect(dayLine(by["2026-02-27"]!)).toBe("2026-02-27 — —"); | |
| 90 | expect(by["2026-02-27"]).toEqual({ day: "2026-02-27", usd: 0, runs: 0 }); | |
| 91 | expect(by["2026-02-01"]!.usd).toBe(3); | |
| 92 | expect(by["2026-01-31"]).toBeUndefined(); | |
| 93 | expect(dayLine(by["2026-02-27"]!)).toBe("2026-02-27 $0.00 0 runs"); | |
| 93 | 94 | expect(dayLine(by["2026-03-01"]!)).toBe("2026-03-01 $2.50 2 runs"); |
| 94 | 95 | // One grouped query: the plan walks the repo index. |
| 95 | 96 | const plan = forge.db |
| @@ -121,12 +122,33 @@ describe("cost by day", () => { | ||
| 121 | 122 | expect((text.match(/data-day="/g) ?? []).length).toBe(COST_DAYS); |
| 122 | 123 | expect(text).toContain("$4.20"); |
| 123 | 124 | expect(text).toContain("Date (UTC)"); |
| 124 | expect(text).toContain("—"); | |
| 125 | expect(text).not.toContain("$0.00"); | |
| 125 | expect(text).toContain("$0.00"); | |
| 126 | expect(text).toContain('href="/alice/plan/cost.csv"'); | |
| 126 | 127 | expect((await fetch(`${servers.url}/alice/plan/cost`, { headers: { cookie: await signIn("bob") } })).status).toBe(404); |
| 127 | 128 | expect((await fetch(`${servers.url}/alice/plan/cost`)).status).toBe(404); |
| 128 | 129 | }); |
| 129 | 130 | |
| 131 | test("the CSV answers text/csv with the page's numbers; others get not-found", async () => { | |
| 132 | const res = await fetch(`${servers.url}/alice/plan/cost.csv`, { headers: { cookie: await signIn("alice") } }); | |
| 133 | expect(res.status).toBe(200); | |
| 134 | expect(res.headers.get("content-type")).toContain("text/csv"); | |
| 135 | expect(res.headers.get("x-content-type-options")).toBe("nosniff"); | |
| 136 | expect(res.headers.get("referrer-policy")).toBeTruthy(); | |
| 137 | expect(res.headers.get("content-security-policy")).toBeTruthy(); | |
| 138 | expect(res.headers.get("content-disposition")).toBe('attachment; filename="cost-plan.csv"'); | |
| 139 | const lines = (await res.text()).trimEnd().split("\r\n"); | |
| 140 | expect(lines[0]).toBe("date_utc,usd,runs"); | |
| 141 | expect(lines).toHaveLength(COST_DAYS + 1); | |
| 142 | expect(lines[1]).toBe(`${new Date().toISOString().slice(0, 10)},4.20,1`); | |
| 143 | expect(lines[2]!.endsWith(",0.00,0")).toBe(true); | |
| 144 | expect((await fetch(`${servers.url}/alice/plan/cost.csv`, { headers: { cookie: await signIn("bob") } })).status).toBe(404); | |
| 145 | expect((await fetch(`${servers.url}/alice/plan/cost.csv`)).status).toBe(404); | |
| 146 | }); | |
| 147 | ||
| 148 | test("a CSV cell that starts with a formula character is neutralised", () => { | |
| 149 | expect(costCsv([{ day: "=1+1", usd: -1, runs: 2 }])).toBe("date_utc,usd,runs\r\n'=1+1,'-1.00,2\r\n"); | |
| 150 | }); | |
| 151 | ||
| 130 | 152 | test("the terminal's repository usage screen carries the same rows", async () => { |
| 131 | 153 | const terminal = headlessTerminal(140, 40); |
| 132 | 154 | const user = getUserByName(forge.db, "alice")!; |
| @@ -150,7 +172,11 @@ describe("cost by day", () => { | ||
| 150 | 172 | await type("alice/plan"); |
| 151 | 173 | await press("enter"); |
| 152 | 174 | const screen = app.screen.toText(); |
| 175 | expect(screen).toContain("copy cost CSV"); | |
| 176 | await press("c"); | |
| 177 | const toasted = app.screen.toText(); | |
| 153 | 178 | app.stop(); |
| 179 | expect(toasted).toContain(`${COST_DAYS} days of cost sent to your clipboard as CSV`); | |
| 154 | 180 | expect(screen).toContain(`Cost, last ${COST_DAYS} days`); |
| 155 | 181 | expect(screen).toContain("$4.20"); |
| 156 | 182 | expect(screen).toContain(new Date().toISOString().slice(0, 10)); |
new above
offline
Both doors: the terminal shows the 30 rows but has no CSV export path. Add one or state it in the docs.