Public: anyone can read this; the crew can change it.
The rosters: generate the palette roster from one file per member (child of #14248) #14443
Check · Review · Land · Live done — Landed and live in production.
scout/forge:scout/14434-the-rosters-generate-the-palette-roster → main 7 commits fork
115 files
changed +220
−234
scripts/hollow.ts +16 −5
| @@ -50,6 +50,7 @@ import { posix } from "node:path"; | ||
| 50 | 50 | // 7.x checker (a Go binary), and 7.0 ships no stable JS API to walk an AST. |
| 51 | 51 | import ts from "typescript-api"; |
| 52 | 52 | import { ALLOWED, type Allowed } from "./hollow-allow.ts"; |
| 53 | import { entryNames } from "../src/tui/screens/entry_mark.ts"; | |
| 53 | 54 | |
| 54 | 55 | const ACTIONS = "src/actions/"; |
| 55 | 56 | /** The files something starts, each with who starts it. A new one is added here. */ |
| @@ -400,11 +401,11 @@ export interface Hollow { | ||
| 400 | 401 | * runs reaches what it mentions. A file nothing loads runs nothing, and an |
| 401 | 402 | * `import()` in a function nothing calls loads nothing. |
| 402 | 403 | */ |
| 403 | function running(modules: Modules, entries: readonly string[]): Set<string> { | |
| 404 | function running(modules: Modules, entries: readonly string[], seeds: readonly string[] = []): Set<string> { | |
| 404 | 405 | const reached = new Set<string>(); |
| 405 | 406 | const loaded = new Set<string>(); |
| 406 | 407 | const files = [...entries]; |
| 407 | const ids: string[] = []; | |
| 408 | const ids: string[] = [...seeds]; | |
| 408 | 409 | const follow = (file: string, said: Mentions): void => { |
| 409 | 410 | ids.push(...leadsTo(modules, file, said)); |
| 410 | 411 | files.push(...said.loads); |
| @@ -431,8 +432,8 @@ function running(modules: Modules, entries: readonly string[]): Set<string> { | ||
| 431 | 432 | } |
| 432 | 433 | |
| 433 | 434 | /** Exported functions in `src/actions/` that nothing that runs reaches, as `file#name`. */ |
| 434 | function hollowActions(modules: Modules): Hollow[] { | |
| 435 | const reached = running(modules, ENTRIES); | |
| 435 | function hollowActions(modules: Modules, loaded: readonly string[], seeds: readonly string[]): Hollow[] { | |
| 436 | const reached = running(modules, [...ENTRIES, ...loaded], seeds); | |
| 436 | 437 | const found: Hollow[] = []; |
| 437 | 438 | for (const [file, mod] of modules) { |
| 438 | 439 | if (!file.startsWith(ACTIONS)) continue; |
| @@ -580,7 +581,17 @@ export function hollow(sources: Sources): Hollow[] { | ||
| 580 | 581 | if (++parsed % 64 === 0) Bun.gc(true); |
| 581 | 582 | } |
| 582 | 583 | const edges = graph(modules); |
| 583 | return [...hollowActions(modules), ...orphanScreens(modules, edges)]; | |
| 584 | // The palette lists src/tui/screens/ and loads each file that declares an entry, so they run | |
| 585 | // though nothing imports them by name. | |
| 586 | const loaded: string[] = []; | |
| 587 | const seeds: string[] = []; | |
| 588 | for (const [f, t] of sources) { | |
| 589 | if (!f.startsWith("src/tui/screens/")) continue; | |
| 590 | const names = entryNames(t); | |
| 591 | if (names.length > 0) loaded.push(f); | |
| 592 | for (const n of names) seeds.push(`${f}#${n}`); | |
| 593 | } | |
| 594 | return [...hollowActions(modules, loaded, seeds), ...orphanScreens(modules, edges)]; | |
| 584 | 595 | } |
| 585 | 596 | |
| 586 | 597 | /** |
scripts/unreached.ts +5
| @@ -11,6 +11,7 @@ | ||
| 11 | 11 | |
| 12 | 12 | import { readFileSync } from "node:fs"; |
| 13 | 13 | import { dirname, join, normalize } from "node:path"; |
| 14 | import { entryNames } from "../src/tui/screens/entry_mark.ts"; | |
| 14 | 15 | |
| 15 | 16 | /** Files something starts, by name or by path, so nothing imports them. */ |
| 16 | 17 | export const ENTRIES = [ |
| @@ -62,6 +63,10 @@ export function unreached(root: string): string[] { | ||
| 62 | 63 | [...new Bun.Glob("src/**/*.ts").scanSync({ cwd: root })].filter((f) => !f.endsWith(".d.ts") && !NOT_MODULES.test(f)), |
| 63 | 64 | ); |
| 64 | 65 | const reached = new Set<string>([...ENTRIES.filter((e) => files.has(e)), ...[...files].filter((f) => LISTED_DIRS.test(f))]); |
| 66 | // The palette lists src/tui/screens/ and loads each file that declares an entry (entries.ts), so | |
| 67 | // nothing imports those by name. | |
| 68 | for (const f of files) | |
| 69 | if (f.startsWith("src/tui/screens/") && entryNames(readFileSync(join(root, f), "utf8")).length > 0) reached.add(f); | |
| 65 | 70 | const queue = [...reached, ...SCRIPTS.flatMap((g) => [...new Bun.Glob(g).scanSync({ cwd: root })])]; |
| 66 | 71 | for (let file = queue.pop(); file; file = queue.pop()) { |
| 67 | 72 | const text = readFileSync(join(root, file), "utf8"); |
scripts/unused-exports.ts +4 −1
| @@ -14,6 +14,7 @@ | ||
| 14 | 14 | |
| 15 | 15 | import { readFileSync, writeFileSync } from "node:fs"; |
| 16 | 16 | import { join } from "node:path"; |
| 17 | import { entryNames } from "../src/tui/screens/entry_mark.ts"; | |
| 17 | 18 | |
| 18 | 19 | const DECL = /^export\s+(?:async\s+)?(?:function\*?|const|let|class)\s+([\w$]+)/gm; |
| 19 | 20 | const WORD = /[A-Za-z_$][\w$]*/g; |
| @@ -34,7 +35,9 @@ export function unusedExports(root: string): string[] { | ||
| 34 | 35 | const dead: string[] = []; |
| 35 | 36 | for (const [file, t] of text) { |
| 36 | 37 | if (!file.startsWith("src/")) continue; |
| 37 | for (const m of t.matchAll(DECL)) if ((counts.get(m[1]!) ?? 0) < 2) dead.push(`${file} ${m[1]}`); | |
| 38 | // The palette loads every entry a screen file exports, by listing the directory (entries.ts). | |
| 39 | const entries = new Set(file.startsWith("src/tui/screens/") ? entryNames(t) : []); | |
| 40 | for (const m of t.matchAll(DECL)) if (!entries.has(m[1]!) && (counts.get(m[1]!) ?? 0) < 2) dead.push(`${file} ${m[1]}`); | |
| 38 | 41 | } |
| 39 | 42 | return dead.sort(); |
| 40 | 43 | } |
src/tui/screens/access.ts +1
| @@ -115,6 +115,7 @@ export function accessScreen(f: Session, ctx: Ctx): Screen { | ||
| 115 | 115 | |
| 116 | 116 | /** What outside agents tried, as Settings → Access says it: a site admin's (#1768). */ |
| 117 | 117 | export const entry: PaletteEntry = { |
| 118 | rank: 350, | |
| 118 | 119 | id: "access", |
| 119 | 120 | title: "Access", |
| 120 | 121 | hint: "what outside agents tried", |
src/tui/screens/account_access.ts +1
| @@ -168,6 +168,7 @@ export function accountAccessScreen(f: Session, ctx: Ctx): Screen { | ||
| 168 | 168 | |
| 169 | 169 | /** A forge admin's: reset a person's access and end their sessions, as the account page does. */ |
| 170 | 170 | export const entry: PaletteEntry = { |
| 171 | rank: 510, | |
| 171 | 172 | id: "account-access", |
| 172 | 173 | title: "Account access", |
| 173 | 174 | hint: "search people, reset access, end sessions", |
src/tui/screens/agents.ts +1
| @@ -151,6 +151,7 @@ export function agentsScreen(f: Session, ctx: Ctx): Screen { | ||
| 151 | 151 | |
| 152 | 152 | /** Crew agents, as MCP `agent` has them: an admin who is not an agent. */ |
| 153 | 153 | export const entry: PaletteEntry = { |
| 154 | rank: 690, | |
| 154 | 155 | id: "agents", |
| 155 | 156 | title: "Crew agents", |
| 156 | 157 | hint: "each agent's model, budget and brief", |
src/tui/screens/app_templates.ts +1
| @@ -114,6 +114,7 @@ export function appTemplatesScreen(f: Session, ctx: Ctx): Screen { | ||
| 114 | 114 | |
| 115 | 115 | /** Offered to a forge admin who is not an agent. */ |
| 116 | 116 | export const entry: PaletteEntry = { |
| 117 | rank: 600, | |
| 117 | 118 | id: "app-templates", |
| 118 | 119 | title: "App templates", |
| 119 | 120 | hint: "the repositories New app offers; mark or unmark one", |
src/tui/screens/apps_crew.ts +1
| @@ -89,6 +89,7 @@ export function appsCrewScreen(f: Session, ctx: Ctx): Screen { | ||
| 89 | 89 | |
| 90 | 90 | /** The sentence under each app on /apps, as a list. */ |
| 91 | 91 | export const entry: PaletteEntry = { |
| 92 | rank: 710, | |
| 92 | 93 | id: "apps-crew", |
| 93 | 94 | title: "What the crew is doing", |
| 94 | 95 | hint: "one plain sentence per app: who is on what", |
src/tui/screens/archived.ts +1
| @@ -98,6 +98,7 @@ export function archivedScreen(f: Session, ctx: Ctx): Screen { | ||
| 98 | 98 | |
| 99 | 99 | /** Archived repositories, as /apps?archived=1 has them. */ |
| 100 | 100 | export const entry: PaletteEntry = { |
| 101 | rank: 700, | |
| 101 | 102 | id: "archived", |
| 102 | 103 | title: "Archived repositories", |
| 103 | 104 | hint: "put away, not gone: open one or restore it", |
src/tui/screens/ask_data.ts +1
| @@ -132,6 +132,7 @@ export function askDataScreen(session: Session, ctx: Ctx): Screen { | ||
| 132 | 132 | |
| 133 | 133 | /** The explorer, as the page gates it: a site admin who is a person, never an agent. */ |
| 134 | 134 | export const entry: PaletteEntry = { |
| 135 | rank: 70, | |
| 135 | 136 | id: "ask-data", |
| 136 | 137 | title: "Data explorer", |
| 137 | 138 | hint: "start from a question about the forge's data", |
src/tui/screens/audit.ts +1
| @@ -106,6 +106,7 @@ export function auditScreen(f: Session, ctx: Ctx, audited: readonly Audited[]): | ||
| 106 | 106 | |
| 107 | 107 | /** The audit, as /audit lists it: anyone, a stranger seeing the public apps. */ |
| 108 | 108 | export const entry: PaletteEntry = { |
| 109 | rank: 400, | |
| 109 | 110 | id: "audit", |
| 110 | 111 | title: "Who can do what", |
| 111 | 112 | hint: "each app's doors from its contract.json: yes, own or no", |
src/tui/screens/bets.ts +1
| @@ -186,6 +186,7 @@ export function betsScreen(f: Session, ctx: Ctx): Screen { | ||
| 186 | 186 | |
| 187 | 187 | /** Bets, as the page and the MCP have them: whoever administers a repository. */ |
| 188 | 188 | export const entry: PaletteEntry = { |
| 189 | rank: 880, | |
| 189 | 190 | id: "bets", |
| 190 | 191 | title: "Bets", |
| 191 | 192 | hint: "back, stop and finish a repository's bets", |
src/tui/screens/billing.ts +1
| @@ -123,6 +123,7 @@ export function billingScreen(f: Session, ctx: Ctx): Screen { | ||
| 123 | 123 | |
| 124 | 124 | /** Each forge's plan, and the grant. */ |
| 125 | 125 | export const entry: PaletteEntry = { |
| 126 | rank: 570, | |
| 126 | 127 | id: "billing", |
| 127 | 128 | title: "Billing", |
| 128 | 129 | hint: "each forge's plan, and grant one by hand", |
src/tui/screens/billinglinks.ts +1
| @@ -71,6 +71,7 @@ export function billingLinksScreen(f: Session, ctx: Ctx): Screen { | ||
| 71 | 71 | |
| 72 | 72 | /** Buy links, as /admin/limits has them: an admin who is a person. */ |
| 73 | 73 | export const entry: PaletteEntry = { |
| 74 | rank: 740, | |
| 74 | 75 | id: "billing-links", |
| 75 | 76 | title: "Buy links", |
| 76 | 77 | hint: "where each hosted plan is paid for, shown on the home page", |
src/tui/screens/bills.ts +1
| @@ -62,6 +62,7 @@ export function billsScreen(session: Session, ctx: Ctx): Screen { | ||
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | export const entry: PaletteEntry = { |
| 65 | rank: 10, | |
| 65 | 66 | id: "bills", |
| 66 | 67 | title: "Your forges' bills", |
| 67 | 68 | hint: "this month's cost of each forge you claimed", |
src/tui/screens/boards.ts +1
| @@ -353,6 +353,7 @@ export function boardsScreen(f: Session, ctx: Ctx): Screen { | ||
| 353 | 353 | |
| 354 | 354 | /** The boards, as the page gates them: a site admin who is a person, never an agent (#1817). */ |
| 355 | 355 | export const entry: PaletteEntry = { |
| 356 | rank: 40, | |
| 356 | 357 | id: "boards", |
| 357 | 358 | title: "Boards", |
| 358 | 359 | hint: "the forge's boards and their panels", |
src/tui/screens/bottleneck.ts +1
| @@ -64,6 +64,7 @@ export function bottleneckScreen(session: Session, ctx: Ctx): Screen { | ||
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | export const entry: PaletteEntry = { |
| 67 | rank: 110, | |
| 67 | 68 | id: "bottleneck", |
| 68 | 69 | title: "Where the bottleneck is", |
| 69 | 70 | hint: "what limits the forge, what the host is tuned to, what changed", |
src/tui/screens/bugs.ts +1
| @@ -47,6 +47,7 @@ export function bugsScreen(f: Session, ctx: Ctx): Screen { | ||
| 47 | 47 | |
| 48 | 48 | /** Offered to everyone: what a reader sees is cut inside, as the page cuts it. */ |
| 49 | 49 | export const entry: PaletteEntry = { |
| 50 | rank: 80, | |
| 50 | 51 | id: "bugs", |
| 51 | 52 | title: "Bugs", |
| 52 | 53 | hint: "open bugs and the bug clock", |
src/tui/screens/bulk.ts +1
| @@ -164,6 +164,7 @@ export function bulkScreen(f: Session, ctx: Ctx): Screen { | ||
| 164 | 164 | |
| 165 | 165 | /** Your bulk actions: a person's, never an agent's. */ |
| 166 | 166 | export const entry: PaletteEntry = { |
| 167 | rank: 820, | |
| 167 | 168 | id: "bulk", |
| 168 | 169 | title: "Bulk actions", |
| 169 | 170 | hint: "your last bulk actions; u undoes one inside its day", |
src/tui/screens/captain.ts +1
| @@ -110,6 +110,7 @@ export function captainScreen(f: Session, ctx: Ctx): Screen { | ||
| 110 | 110 | } |
| 111 | 111 | |
| 112 | 112 | export const entry: PaletteEntry = { |
| 113 | rank: 60, | |
| 113 | 114 | id: "captain", |
| 114 | 115 | title: "Captain", |
| 115 | 116 | hint: "what Talk remembers, and the check-ins it posts for you", |
src/tui/screens/childcredit.ts +1
| @@ -47,6 +47,7 @@ export function lendScreen(f: Session, ctx: Ctx, parent: Screen, forges: readonl | ||
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | export const entry: PaletteEntry = { |
| 50 | rank: 1010, | |
| 50 | 51 | id: "lend-credit", |
| 51 | 52 | title: "Lend a child credit", |
| 52 | 53 | hint: "set the dollars a forge you sent may spend on this one's model credential", |
src/tui/screens/claim_link.ts +2
| @@ -64,6 +64,7 @@ export function claimLinkScreen(f: Session, ctx: Ctx): Screen { | ||
| 64 | 64 | |
| 65 | 65 | /** Offered to a person: the door refuses anyone who did not send the forge, and is no admin. */ |
| 66 | 66 | export const entry: PaletteEntry = { |
| 67 | rank: 790, | |
| 67 | 68 | id: "claim-link", |
| 68 | 69 | title: "A fresh claim link for a forge I sent", |
| 69 | 70 | hint: "the old link stops; shown once", |
| @@ -115,6 +116,7 @@ export function recoveryLinkScreen(f: Session, ctx: Ctx): Screen { | ||
| 115 | 116 | |
| 116 | 117 | /** Offered to a person: the door refuses anyone who did not send the forge, and is no admin. */ |
| 117 | 118 | export const recoveryEntry: PaletteEntry = { |
| 119 | rank: 800, | |
| 118 | 120 | id: "recovery-link", |
| 119 | 121 | title: "A recovery link for a forge's owner who lost their passkey", |
| 120 | 122 | hint: "shown once; works once", |
src/tui/screens/claim_start.ts +1
| @@ -66,6 +66,7 @@ export function claimStartScreen(f: Session, ctx: Ctx): Screen { | ||
| 66 | 66 | |
| 67 | 67 | /** A person's, as the claim page is: the link is the proof, the account is theirs. */ |
| 68 | 68 | export const entry: PaletteEntry = { |
| 69 | rank: 780, | |
| 69 | 70 | id: "claim-start", |
| 70 | 71 | title: "Take an agent's work", |
| 71 | 72 | hint: "claim the repositories an agent started, from its one-time link", |
src/tui/screens/cloud.ts +1
| @@ -214,6 +214,7 @@ export function cloudScreen(f: Session, ctx: Ctx): Screen { | ||
| 214 | 214 | |
| 215 | 215 | /** Cloud accounts, as Settings → Cloud accounts has them: a forge admin (#2199). */ |
| 216 | 216 | export const entry: PaletteEntry = { |
| 217 | rank: 860, | |
| 217 | 218 | id: "cloud", |
| 218 | 219 | title: "Cloud accounts", |
| 219 | 220 | hint: "provider tokens, what they are used for, today's calls", |
src/tui/screens/codes.ts +1
| @@ -89,6 +89,7 @@ export function codesScreen(f: Session, ctx: Ctx): Screen { | ||
| 89 | 89 | |
| 90 | 90 | /** Make, list and revoke gift codes. */ |
| 91 | 91 | export const entry: PaletteEntry = { |
| 92 | rank: 590, | |
| 92 | 93 | id: "codes", |
| 93 | 94 | title: "Gift codes", |
| 94 | 95 | hint: "make a code that gives a plan for free, and revoke one", |
src/tui/screens/connections.ts +1
| @@ -162,6 +162,7 @@ export function connectionsScreen(f: Session, ctx: Ctx): Screen { | ||
| 162 | 162 | |
| 163 | 163 | /** Origins: a signed-in person, not an agent. */ |
| 164 | 164 | export const entry: PaletteEntry = { |
| 165 | rank: 890, | |
| 165 | 166 | id: "origins", |
| 166 | 167 | title: "Connected accounts", |
| 167 | 168 | hint: "the hosts your mirrors come from", |
src/tui/screens/controls.ts +1
| @@ -68,6 +68,7 @@ export function controlsScreen(f: Session, ctx: Ctx): Screen { | ||
| 68 | 68 | |
| 69 | 69 | /** Each safeguard, its state, and when it was last checked. */ |
| 70 | 70 | export const entry: PaletteEntry = { |
| 71 | rank: 410, | |
| 71 | 72 | id: "security-controls", |
| 72 | 73 | title: "Security controls", |
| 73 | 74 | hint: "each safeguard, its state, and when it was last checked", |
src/tui/screens/cores.ts +1
| @@ -24,6 +24,7 @@ export function coresScreen(f: Session, ctx: Ctx, line: string | undefined = cor | ||
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | export const entry: PaletteEntry = { |
| 27 | rank: 770, | |
| 27 | 28 | id: "cores", |
| 28 | 29 | title: "Cores", |
| 29 | 30 | hint: "what this forge's cores mean for builds", |
src/tui/screens/crewbudgets.ts +1
| @@ -83,6 +83,7 @@ export function crewBudgetsScreen(f: Session, ctx: Ctx): Screen { | ||
| 83 | 83 | |
| 84 | 84 | /** The crew's spend limits: per run, per day, per month. */ |
| 85 | 85 | export const entry: PaletteEntry = { |
| 86 | rank: 850, | |
| 86 | 87 | id: "crewbudgets", |
| 87 | 88 | title: "Crew budgets", |
| 88 | 89 | hint: "what the crew may spend per run, day and month on your key", |
src/tui/screens/crewhandover.ts +1
| @@ -106,6 +106,7 @@ export function crewHandoverScreen(f: Session, ctx: Ctx): Screen { | ||
| 106 | 106 | |
| 107 | 107 | /** Settings → Crew's hand-overs: issues parked twice, the last restore drill. */ |
| 108 | 108 | export const entry: PaletteEntry = { |
| 109 | rank: 450, | |
| 109 | 110 | id: "crew-handover", |
| 110 | 111 | title: "Crew hand-overs", |
| 111 | 112 | hint: "issues parked twice, and the last restore drill", |
src/tui/screens/crewkey.ts +1
| @@ -61,6 +61,7 @@ export function crewKeyScreen(f: Session, ctx: Ctx): Screen { | ||
| 61 | 61 | |
| 62 | 62 | /** The crew's key: what it runs on, and add yours. */ |
| 63 | 63 | export const entry: PaletteEntry = { |
| 64 | rank: 840, | |
| 64 | 65 | id: "crewkey", |
| 65 | 66 | title: "Crew key", |
| 66 | 67 | hint: "what the crew runs on; add your own model key", |
src/tui/screens/crewsplits.ts +1
| @@ -76,6 +76,7 @@ export function crewSplitsScreen(f: Session, ctx: Ctx): Screen { | ||
| 76 | 76 | |
| 77 | 77 | /** Settings → Crew's scorecard by model and prompt version: an admin (#2682). */ |
| 78 | 78 | export const entry: PaletteEntry = { |
| 79 | rank: 430, | |
| 79 | 80 | id: "crew-scorecard", |
| 80 | 81 | title: "Crew scorecard", |
| 81 | 82 | hint: "agent runs per model and per prompt version", |
src/tui/screens/devices.ts +1
| @@ -177,6 +177,7 @@ export function devicesScreen(f: Session, ctx: Ctx): Screen { | ||
| 177 | 177 | |
| 178 | 178 | /** Offered to a forge admin who is not an agent. */ |
| 179 | 179 | export const entry: PaletteEntry = { |
| 180 | rank: 610, | |
| 180 | 181 | id: "devices", |
| 181 | 182 | title: "Devices", |
| 182 | 183 | hint: "LAN printers: model, state, supplies; declare or remove one", |
src/tui/screens/disks.ts +1
| @@ -64,6 +64,7 @@ function readingScreen(session: Session, ctx: Ctx, machine: string): Screen { | ||
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | export const entry: PaletteEntry = { |
| 67 | rank: 1100, | |
| 67 | 68 | id: "disks", |
| 68 | 69 | title: "Disks", |
| 69 | 70 | hint: "machines' disk readings: 30-day write rate and projected rated-TBW date", |
src/tui/screens/displays.ts +1
| @@ -76,6 +76,7 @@ export function displaysScreen(f: Session, ctx: Ctx, rest: () => Promise<ListedD | ||
| 76 | 76 | |
| 77 | 77 | /** Displays, as /displays lists them: anyone signed in. */ |
| 78 | 78 | export const entry: PaletteEntry = { |
| 79 | rank: 1090, | |
| 79 | 80 | id: "displays", |
| 80 | 81 | title: "Displays", |
| 81 | 82 | hint: "the displays you may read", |
src/tui/screens/domains.ts +1
| @@ -132,6 +132,7 @@ export function domainsScreen(f: Session, ctx: Ctx): Screen { | ||
| 132 | 132 | |
| 133 | 133 | /** Each failure domain and its last drill, as Settings → Backups → Failure domains says it (#1945). */ |
| 134 | 134 | export const entry: PaletteEntry = { |
| 135 | rank: 900, | |
| 135 | 136 | id: "domains", |
| 136 | 137 | title: "Failure domains", |
| 137 | 138 | hint: "failure domains and their last drill", |
src/tui/screens/dotfiles.ts +1
| @@ -62,6 +62,7 @@ export function dotfilesScreen(f: Session, ctx: Ctx): Screen { | ||
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | export const entry: PaletteEntry = { |
| 65 | rank: 1040, | |
| 65 | 66 | id: "dotfiles", |
| 66 | 67 | title: "Your dotfiles", |
| 67 | 68 | hint: "the repository every shell you open copies from", |
src/tui/screens/drift.ts +1
| @@ -76,6 +76,7 @@ export function driftScreen(f: Session, ctx: Ctx): Screen { | ||
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | export const entry: PaletteEntry = { |
| 79 | rank: 50, | |
| 79 | 80 | id: "drift", |
| 80 | 81 | title: "Drifting pulls", |
| 81 | 82 | hint: "open pulls far behind main, and the one action that brings each up to date", |
src/tui/screens/dutybudgets.ts +1
| @@ -73,6 +73,7 @@ export function dutyBudgetScreen(session: Session, ctx: Ctx): Screen { | ||
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | export const entry: PaletteEntry = { |
| 76 | rank: 310, | |
| 76 | 77 | id: "maintenance-budgets", |
| 77 | 78 | title: "Set a maintenance duty's budget", |
| 78 | 79 | hint: "runs per day and dollars per day a duty may use", |
src/tui/screens/dutyswitch.ts +1
| @@ -86,6 +86,7 @@ export function dutySwitchScreen(session: Session, ctx: Ctx): Screen { | ||
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | export const entry: PaletteEntry = { |
| 89 | rank: 300, | |
| 89 | 90 | id: "maintenance-duties", |
| 90 | 91 | title: "Pause, resume or dismiss a maintenance duty", |
| 91 | 92 | hint: "switch a duty off, or on again after it paused itself", |
src/tui/screens/economics.ts +1
| @@ -196,6 +196,7 @@ export function economicsScreen(f: Session, ctx: Ctx): Screen { | ||
| 196 | 196 | |
| 197 | 197 | /** The profit slider and the prices, as /settings/economics has them: an admin who is not an agent (#504, #507). */ |
| 198 | 198 | export const entry: PaletteEntry = { |
| 199 | rank: 550, | |
| 199 | 200 | id: "economics", |
| 200 | 201 | title: "Economics", |
| 201 | 202 | hint: "the profit slider's position, the margin, the owned-node label and the prices; change one", |
src/tui/screens/edgeonly.ts +1
| @@ -53,6 +53,7 @@ export function edgeOnlyScreen(f: Session, ctx: Ctx): Screen { | ||
| 53 | 53 | |
| 54 | 54 | /** Who would be locked out if the platform edge sign-in went off. */ |
| 55 | 55 | export const entry: PaletteEntry = { |
| 56 | rank: 360, | |
| 56 | 57 | id: "edge-only-accounts", |
| 57 | 58 | title: "Edge-only accounts", |
| 58 | 59 | hint: "who would be locked out if the platform edge sign-in went off", |
src/tui/screens/entries.ts +32 −225
| @@ -1,125 +1,28 @@ | ||
| 1 | 1 | /** |
| 2 | 2 | * Palette entries that live beside their screen. A screen module exports an |
| 3 | 3 | * `entry`; this list names them in the order the palette offers them, and |
| 4 | * `forgeCommands` walks it at one position. Screens are imported here, and | |
| 5 | * this module by `forge.ts`, never the reverse. | |
| 4 | * `forgeCommands` walks it at one position. The roster is not written down: | |
| 5 | * it is every `PaletteEntry` a file in this directory declares (see | |
| 6 | * `entry_mark.ts`), read when the module loads, in `rank` order (ties by file | |
| 7 | * name, then export name; an entry that must sit after a command says so in | |
| 8 | * `after`). A new screen adds a file and nothing else. Screens are loaded here, and this module by | |
| 9 | * `forge.ts`, never the reverse. | |
| 6 | 10 | */ |
| 7 | 11 | |
| 8 | 12 | import type { Ctx } from "../app/app.ts"; |
| 9 | 13 | import type { Command } from "../app/palette.ts"; |
| 10 | 14 | import type { Session } from "../session.ts"; |
| 11 | import { entry as access } from "./access.ts"; | |
| 12 | import { entry as accountAccess } from "./account_access.ts"; | |
| 13 | import { entry as agents } from "./agents.ts"; | |
| 14 | import { entry as askData } from "./ask_data.ts"; | |
| 15 | import { entry as archived } from "./archived.ts"; | |
| 16 | import { entry as appsCrew } from "./apps_crew.ts"; | |
| 17 | import { entry as inventory } from "./inventory.ts"; | |
| 18 | import { entry as audit } from "./audit.ts"; | |
| 19 | import { entry as appTemplates } from "./app_templates.ts"; | |
| 20 | import { entry as dotfiles } from "./dotfiles.ts"; | |
| 21 | import { entry as devices } from "./devices.ts"; | |
| 22 | import { entry as bottleneck } from "./bottleneck.ts"; | |
| 23 | import { entry as bets } from "./bets.ts"; | |
| 24 | import { entry as bills } from "./bills.ts"; | |
| 25 | import { entry as payments } from "./payments.ts"; | |
| 26 | import { entry as billing } from "./billing.ts"; | |
| 27 | import { entry as lapsed } from "./lapsed.ts"; | |
| 28 | import { entry as codes } from "./codes.ts"; | |
| 29 | import { entry as boards } from "./boards.ts"; | |
| 30 | import { entry as drift } from "./drift.ts"; | |
| 31 | import { entry as captain } from "./captain.ts"; | |
| 32 | import { entry as bugs } from "./bugs.ts"; | |
| 33 | import { entry as bulk } from "./bulk.ts"; | |
| 34 | import { entry as childCredit } from "./childcredit.ts"; | |
| 35 | import { entry as cloud } from "./cloud.ts"; | |
| 36 | import { entry as connections } from "./connections.ts"; | |
| 37 | import { entry as crewHandover } from "./crewhandover.ts"; | |
| 38 | import { entry as crewSplits } from "./crewsplits.ts"; | |
| 39 | import { entry as knobs } from "./knobs.ts"; | |
| 40 | import { entry as displays } from "./displays.ts"; | |
| 41 | import { entry as disks } from "./disks.ts"; | |
| 42 | import { entry as domains } from "./domains.ts"; | |
| 43 | import { entry as edgeOnly } from "./edgeonly.ts"; | |
| 44 | import { entry as wayBack } from "./wayback.ts"; | |
| 45 | import { entry as traffic } from "./trafficview.ts"; | |
| 46 | import { entry as funnelEntry } from "./funnel.ts"; | |
| 47 | import { entry as featureReview } from "./features.ts"; | |
| 48 | import { entry as feed } from "./feed.ts"; | |
| 49 | import { entry as featureFeed } from "./featurefeed.ts"; | |
| 50 | import { entry as features } from "./featureswitch.ts"; | |
| 51 | import { entry as forgeView } from "./forgeview.ts"; | |
| 52 | import { entry as flowsAll } from "./flowsall.ts"; | |
| 53 | import { entry as front } from "./front.ts"; | |
| 54 | import { entry as frontMilestones } from "./frontms.ts"; | |
| 55 | import { entry as forges } from "./forges.ts"; | |
| 56 | import { entry as forgeReady } from "./forgeready.ts"; | |
| 57 | import { entry as hostReach } from "./hostreach.ts"; | |
| 58 | import { entry as homePins } from "./home_pins.ts"; | |
| 59 | import { entry as claimStart } from "./claim_start.ts"; | |
| 60 | import { entry as claimLink, recoveryEntry as recoveryLink } from "./claim_link.ts"; | |
| 61 | import { entry as invites } from "./invites.ts"; | |
| 62 | import { entry as billingLinks } from "./billinglinks.ts"; | |
| 63 | import { entry as planRow } from "./planrow.ts"; | |
| 64 | import { entry as madeFrom } from "./madefrom.ts"; | |
| 65 | import { entry as cores } from "./cores.ts"; | |
| 66 | import { entry as limits } from "./limits.ts"; | |
| 67 | import { entry as plans } from "./plans.ts"; | |
| 68 | import { entry as economics } from "./economics.ts"; | |
| 69 | import { entry as money } from "./money.ts"; | |
| 70 | import { entry as loopStalls } from "./loopstalls.ts"; | |
| 71 | import { entry as footing } from "./footing.ts"; | |
| 72 | import { entry as maintenanceWeek } from "./maintenanceweek.ts"; | |
| 73 | import { entry as offsite } from "./offsite.ts"; | |
| 74 | import { entry as waiting } from "./waiting.ts"; | |
| 75 | import { entry as offers } from "./offers.ts"; | |
| 76 | import { entry as waitingForMe } from "./waiting_for_me.ts"; | |
| 77 | import { entry as tellUndo } from "./tell_undo.ts"; | |
| 78 | import { entry as slowPagesEntry } from "./slowpages.ts"; | |
| 79 | import { entry as maintenance } from "./maintenance.ts"; | |
| 80 | import { entry as maintainRuns } from "./maintainruns.ts"; | |
| 81 | import { entry as dutyBudgets } from "./dutybudgets.ts"; | |
| 82 | import { entry as stalePulls } from "./stalepulls.ts"; | |
| 83 | import { entry as mergedBranches } from "./mergedbranches.ts"; | |
| 84 | import { entry as previewDirs } from "./previewdirs.ts"; | |
| 85 | import { entry as dutySwitch } from "./dutyswitch.ts"; | |
| 86 | import { entry as mirrorPacksEntry } from "./mirrorpacks.ts"; | |
| 87 | import { entry as packReposEntry } from "./packrepos.ts"; | |
| 88 | import { modelCeilingEntry, modelGrantEntry } from "./model.ts"; | |
| 89 | import { entry as orgGrants } from "./orggrants.ts"; | |
| 90 | import { entry as orgTeams } from "./orgteams.ts"; | |
| 91 | import { entry as newIssue } from "./newissue.ts"; | |
| 92 | import { entry as now } from "./nowlist.ts"; | |
| 93 | import { entry as repos } from "./repolist.ts"; | |
| 94 | import { entry as originAhead } from "./originahead.ts"; | |
| 95 | import { entry as owner } from "./owner.ts"; | |
| 96 | import { entry as people } from "./people.ts"; | |
| 97 | import { entry as pinned } from "./pinned.ts"; | |
| 98 | import { entry as profile } from "./profile.ts"; | |
| 99 | import { entry as quotas } from "./quotas.ts"; | |
| 100 | import { entry as refused } from "./refused.ts"; | |
| 101 | import { entry as requests } from "./requests.ts"; | |
| 102 | import { entry as resilience } from "./resilience.ts"; | |
| 103 | import { entry as recoveryKit } from "./recoverykit.ts"; | |
| 104 | import { entry as scorecard } from "./scorecard.ts"; | |
| 105 | import { entry as weekcard } from "./weekcard.ts"; | |
| 106 | import { entry as scrapes } from "./scrapes.ts"; | |
| 107 | import { entry as trafficScreenEntry } from "./traffic.ts"; | |
| 108 | import { entry as returningEntry } from "./returning.ts"; | |
| 109 | import { entry as securityControls } from "./controls.ts"; | |
| 110 | import { entry as secrets } from "./secrets.ts"; | |
| 111 | import { entry as sentinel } from "./sentinel.ts"; | |
| 112 | import { entry as subscriptions } from "./subscriptions.ts"; | |
| 113 | import { entry as crewKey } from "./crewkey.ts"; | |
| 114 | import { entry as crewBudgets } from "./crewbudgets.ts"; | |
| 115 | import { entry as healthVoice } from "./health_voice.ts"; | |
| 116 | import { entry as system } from "./system.ts"; | |
| 117 | import { entry as teams } from "./teams.ts"; | |
| 118 | import { entry as telemetry } from "./telemetry.ts"; | |
| 119 | import { entry as valves } from "./valves.ts"; | |
| 15 | import { readdirSync, readFileSync } from "node:fs"; | |
| 16 | import { join } from "node:path"; | |
| 17 | import { entryNames } from "./entry_mark.ts"; | |
| 120 | 18 | |
| 121 | 19 | export interface PaletteEntry { |
| 122 | 20 | readonly id: string; |
| 21 | /** | |
| 22 | * Where the palette offers it: lower first, grouped by purpose and spaced | |
| 23 | * by ten so a new entry fits between two. | |
| 24 | */ | |
| 25 | readonly rank: number; | |
| 123 | 26 | readonly title: string; |
| 124 | 27 | readonly hint: string; |
| 125 | 28 | /** |
| @@ -133,120 +36,24 @@ export interface PaletteEntry { | ||
| 133 | 36 | run(session: Session, ctx: Ctx): void; |
| 134 | 37 | } |
| 135 | 38 | |
| 136 | /** In the order the palette offers them; an entry follows the ones it names in `after`. */ | |
| 137 | export const ENTRIES: readonly PaletteEntry[] = [ | |
| 138 | bills, | |
| 139 | payments, | |
| 140 | sentinel, | |
| 141 | boards, | |
| 142 | drift, | |
| 143 | captain, | |
| 144 | askData, | |
| 145 | bugs, | |
| 146 | homePins, | |
| 147 | system, | |
| 148 | bottleneck, | |
| 149 | healthVoice, | |
| 150 | loopStalls, | |
| 151 | footing, | |
| 152 | maintenanceWeek, | |
| 153 | offsite, | |
| 154 | waiting, | |
| 155 | waitingForMe, | |
| 156 | offers, | |
| 157 | tellUndo, | |
| 158 | slowPagesEntry, | |
| 159 | telemetry, | |
| 160 | resilience, | |
| 161 | recoveryKit, | |
| 162 | maintenance, | |
| 163 | stalePulls, | |
| 164 | mergedBranches, | |
| 165 | previewDirs, | |
| 166 | maintainRuns, | |
| 167 | dutySwitch, | |
| 168 | dutyBudgets, | |
| 169 | mirrorPacksEntry, | |
| 170 | packReposEntry, | |
| 171 | valves, | |
| 172 | access, | |
| 173 | edgeOnly, | |
| 174 | wayBack, | |
| 175 | traffic, | |
| 176 | funnelEntry, | |
| 177 | audit, | |
| 178 | securityControls, | |
| 179 | secrets, | |
| 180 | crewSplits, | |
| 181 | knobs, | |
| 182 | crewHandover, | |
| 183 | scorecard, | |
| 184 | weekcard, | |
| 185 | modelGrantEntry, | |
| 186 | modelCeilingEntry, | |
| 187 | people, | |
| 188 | accountAccess, | |
| 189 | quotas, | |
| 190 | limits, | |
| 191 | plans, | |
| 192 | economics, | |
| 193 | money, | |
| 194 | billing, | |
| 195 | lapsed, | |
| 196 | codes, | |
| 197 | appTemplates, | |
| 198 | devices, | |
| 199 | flowsAll, | |
| 200 | scrapes, | |
| 201 | trafficScreenEntry, | |
| 202 | returningEntry, | |
| 203 | teams, | |
| 204 | orgTeams, | |
| 205 | orgGrants, | |
| 206 | agents, | |
| 207 | archived, | |
| 208 | appsCrew, | |
| 209 | inventory, | |
| 210 | invites, | |
| 211 | billingLinks, | |
| 212 | planRow, | |
| 213 | madeFrom, | |
| 214 | cores, | |
| 215 | claimStart, | |
| 216 | claimLink, | |
| 217 | recoveryLink, | |
| 218 | requests, | |
| 219 | bulk, | |
| 220 | subscriptions, | |
| 221 | crewKey, | |
| 222 | crewBudgets, | |
| 223 | cloud, | |
| 224 | pinned, | |
| 225 | bets, | |
| 226 | connections, | |
| 227 | domains, | |
| 228 | feed, | |
| 229 | featureReview, | |
| 230 | featureFeed, | |
| 231 | features, | |
| 232 | front, | |
| 233 | owner, | |
| 234 | forges, | |
| 235 | hostReach, | |
| 236 | refused, | |
| 237 | forgeReady, | |
| 238 | childCredit, | |
| 239 | originAhead, | |
| 240 | profile, | |
| 241 | dotfiles, | |
| 242 | now, | |
| 243 | frontMilestones, | |
| 244 | forgeView, | |
| 245 | repos, | |
| 246 | displays, | |
| 247 | disks, | |
| 248 | newIssue, | |
| 249 | ]; | |
| 39 | /** The entries each screen file in `dir` declares: file name, then export names. */ | |
| 40 | export function entryFiles(dir: string = import.meta.dir): [string, string[]][] { | |
| 41 | return readdirSync(dir) | |
| 42 | .filter((f) => f.endsWith(".ts") && f !== "entries.ts") | |
| 43 | .sort() | |
| 44 | .flatMap((f): [string, string[]][] => { | |
| 45 | const names = entryNames(readFileSync(join(dir, f), "utf8")); | |
| 46 | return names.length > 0 ? [[f, names]] : []; | |
| 47 | }); | |
| 48 | } | |
| 49 | ||
| 50 | /** Every entry the files declare, by rank, then file name, then export name. */ | |
| 51 | export const ENTRIES: readonly PaletteEntry[] = entryFiles() | |
| 52 | .flatMap(([f, names]) => { | |
| 53 | const mod = require(join(import.meta.dir, f)) as Record<string, PaletteEntry>; | |
| 54 | return [...names].sort().map((k) => mod[k]!); | |
| 55 | }) | |
| 56 | .sort((a, b) => a.rank - b.rank); | |
| 250 | 57 | |
| 251 | 58 | /** |
| 252 | 59 | * Put each entry the session is offered into `commands`, after the command it names or at the end. |
src/tui/screens/entry_mark.ts added +12
| @@ -0,0 +1,12 @@ | ||
| 1 | /** | |
| 2 | * How a screen file says it exports a palette entry: a line that starts | |
| 3 | * `export const <name>: PaletteEntry = `. Everything that must agree on what | |
| 4 | * counts as an entry (the roster, the reachability audits) reads it here. | |
| 5 | */ | |
| 6 | ||
| 7 | const DECL = /^export const (\w+): PaletteEntry = /gm; | |
| 8 | ||
| 9 | /** The names of the entries `source` exports, in the order it declares them. */ | |
| 10 | export function entryNames(source: string): string[] { | |
| 11 | return [...source.matchAll(DECL)].map((m) => m[1]!); | |
| 12 | } |
src/tui/screens/featurefeed.ts +1
| @@ -116,6 +116,7 @@ export function featureFeedPicker(f: Session, ctx: Ctx): Screen { | ||
| 116 | 116 | } |
| 117 | 117 | |
| 118 | 118 | export const entry: PaletteEntry = { |
| 119 | rank: 930, | |
| 119 | 120 | id: "feature-feed", |
| 120 | 121 | title: "Feature feeds", |
| 121 | 122 | hint: "the feed items about an absorbed app, as Settings › Features shows them", |
src/tui/screens/features.ts +1
| @@ -74,6 +74,7 @@ export function featuresScreen(f: Session, ctx: Ctx): FeaturesScreen { | ||
| 74 | 74 | |
| 75 | 75 | /** The pending declarations: a site admin's, as the settings page is. */ |
| 76 | 76 | export const entry: PaletteEntry = { |
| 77 | rank: 920, | |
| 77 | 78 | id: "feature-review", |
| 78 | 79 | title: "Menu entries to review", |
| 79 | 80 | hint: "absorbed apps whose declared name or page changed: accept them", |
src/tui/screens/featureswitch.ts +1
| @@ -158,6 +158,7 @@ export function featureSwitchScreen(f: Session, ctx: Ctx): Screen { | ||
| 158 | 158 | |
| 159 | 159 | /** Features, as Settings → Features shows them: a site admin's who is a person. */ |
| 160 | 160 | export const entry: PaletteEntry = { |
| 161 | rank: 940, | |
| 161 | 162 | id: "features", |
| 162 | 163 | title: "Features", |
| 163 | 164 | hint: "apps that declare a feature: absorb one, change its settings", |
src/tui/screens/feed.ts +1
| @@ -304,6 +304,7 @@ export function feedScreen(f: Session, ctx: Ctx): Screen { | ||
| 304 | 304 | |
| 305 | 305 | /** The feed, as the page's `/feed` has it. */ |
| 306 | 306 | export const entry: PaletteEntry = { |
| 307 | rank: 910, | |
| 307 | 308 | id: "feed", |
| 308 | 309 | title: "Feed", |
| 309 | 310 | hint: "what happened, ranked; r replies on a post about an issue or pull, l likes, h who liked, p its permalink, o a run's log", |
src/tui/screens/flowsall.ts +1
| @@ -67,6 +67,7 @@ export function flowsAllScreen(session: Session, ctx: Ctx): Screen { | ||
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | export const entry: PaletteEntry = { |
| 70 | rank: 620, | |
| 70 | 71 | id: "flows-all", |
| 71 | 72 | title: "Flows across the forge", |
| 72 | 73 | hint: "every repository's flow lines, by kind and stale", |
src/tui/screens/footing.ts +1
| @@ -71,6 +71,7 @@ export function footingScreen(session: Session, ctx: Ctx): Screen { | ||
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | export const entry: PaletteEntry = { |
| 74 | rank: 140, | |
| 74 | 75 | id: "footing", |
| 75 | 76 | title: "What the forge stands on", |
| 76 | 77 | hint: "each piece on another machine, in the order it would break the forge", |
src/tui/screens/forgeready.ts +1
| @@ -11,6 +11,7 @@ import { blank, pickerScreen, runAsync } from "./common.ts"; | ||
| 11 | 11 | import type { PaletteEntry } from "./entries.ts"; |
| 12 | 12 | |
| 13 | 13 | export const entry: PaletteEntry = { |
| 14 | rank: 1000, | |
| 14 | 15 | id: "forge-ready", |
| 15 | 16 | title: "Does a forge answer?", |
| 16 | 17 | hint: "ask whether a forge you sent answers yet", |
src/tui/screens/forges.ts +1
| @@ -275,6 +275,7 @@ export function forgesScreen(ctx: Ctx, rows: readonly ClientRow[], session?: Ses | ||
| 275 | 275 | |
| 276 | 276 | /** The forges this one sent, as /forges lists them: an admin's only. */ |
| 277 | 277 | export const entry: PaletteEntry = { |
| 278 | rank: 970, | |
| 278 | 279 | id: "forges", |
| 279 | 280 | title: "Forges you sent", |
| 280 | 281 | hint: "each forge sent, claimed or not, and its apps", |
src/tui/screens/forgeview.ts +1
| @@ -72,6 +72,7 @@ export function forgeViewScreen(f: Session, ctx: Ctx): Screen { | ||
| 72 | 72 | } |
| 73 | 73 | |
| 74 | 74 | export const entry: PaletteEntry = { |
| 75 | rank: 1070, | |
| 75 | 76 | id: "forge-view", |
| 76 | 77 | title: "Forge view", |
| 77 | 78 | hint: "the forge's counts, and Foundry when it is installed", |
src/tui/screens/front.ts +1
| @@ -150,6 +150,7 @@ export function frontScreen(f: Session, ctx: Ctx): Screen { | ||
| 150 | 150 | |
| 151 | 151 | /** The stranger's front page, ranked with its numbers, as MCP `front_page` has it. */ |
| 152 | 152 | export const entry: PaletteEntry = { |
| 153 | rank: 950, | |
| 153 | 154 | id: "front", |
| 154 | 155 | title: "Front page", |
| 155 | 156 | hint: "the apps a first visitor sees, ranked; an admin pins or hides", |
src/tui/screens/frontms.ts +1
| @@ -53,6 +53,7 @@ export function frontMilestonesScreen(f: Session, ctx: Ctx): Screen { | ||
| 53 | 53 | |
| 54 | 54 | /** Offered to a signed-in person, as the home's lines are. */ |
| 55 | 55 | export const entry: PaletteEntry = { |
| 56 | rank: 1060, | |
| 56 | 57 | id: "front-milestones", |
| 57 | 58 | title: "Milestones", |
| 58 | 59 | hint: "the biggest open milestones: how far, what landed this week", |
src/tui/screens/funnel.ts +1
| @@ -46,6 +46,7 @@ export function funnelScreen(f: Session, ctx: Ctx): Screen { | ||
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | export const entry: PaletteEntry = { |
| 49 | rank: 390, | |
| 49 | 50 | id: "from-visit-to-paid", |
| 50 | 51 | title: "From visit to paid", |
| 51 | 52 | hint: "the last 7 days: home visits, plans seen, plan clicks, forges made, paid", |
src/tui/screens/health_voice.ts +1
| @@ -31,6 +31,7 @@ export function healthVoiceScreen(f: Session, ctx: Ctx): Screen { | ||
| 31 | 31 | |
| 32 | 32 | /** The palette entry: offered to every reader, guests too. */ |
| 33 | 33 | export const entry: PaletteEntry = { |
| 34 | rank: 120, | |
| 34 | 35 | id: "health-voice", |
| 35 | 36 | title: "Health — spoken", |
| 36 | 37 | hint: "how the forge is, in two plain sentences", |
src/tui/screens/home_pins.ts +1
| @@ -85,6 +85,7 @@ export function homePinsScreen(f: Session, ctx: Ctx): Screen { | ||
| 85 | 85 | |
| 86 | 86 | /** Home's pinned panels, as the page gates them: a forge admin who is a person. */ |
| 87 | 87 | export const entry: PaletteEntry = { |
| 88 | rank: 90, | |
| 88 | 89 | id: "home-pins", |
| 89 | 90 | title: "Pinned panels", |
| 90 | 91 | hint: "the panels pinned to home: reorder and unpin", |
src/tui/screens/hostreach.ts +1
| @@ -177,6 +177,7 @@ export function hostReachScreen(f: Session, ctx: Ctx): Screen { | ||
| 177 | 177 | |
| 178 | 178 | /** A site admin's only, beside the forges it is about. */ |
| 179 | 179 | export const entry: PaletteEntry = { |
| 180 | rank: 980, | |
| 180 | 181 | id: "host-reach", |
| 181 | 182 | title: "What hosted forges may reach", |
| 182 | 183 | hint: "answer what a hosted forge asked to reach, and take a grant back", |
src/tui/screens/inventory.ts +1
| @@ -88,6 +88,7 @@ export function inventoryScreen(f: Session, ctx: Ctx): Screen { | ||
| 88 | 88 | |
| 89 | 89 | /** What is left on the connected origins, as /migrate/inventory has it. */ |
| 90 | 90 | export const entry: PaletteEntry = { |
| 91 | rank: 720, | |
| 91 | 92 | id: "inventory", |
| 92 | 93 | title: "What is left to bring over", |
| 93 | 94 | hint: "every repository on your connected accounts, what it holds, where its move stands", |
src/tui/screens/invites.ts +1
| @@ -199,6 +199,7 @@ export function invitesScreen(f: Session, ctx: Ctx): Screen { | ||
| 199 | 199 | |
| 200 | 200 | /** Invite links, as /admin/limits has them: an admin who is a person (#2337). */ |
| 201 | 201 | export const entry: PaletteEntry = { |
| 202 | rank: 730, | |
| 202 | 203 | id: "invites", |
| 203 | 204 | title: "Invite links", |
| 204 | 205 | hint: "make a single-use link, see which are open, revoke one", |
src/tui/screens/knobs.ts +1
| @@ -65,6 +65,7 @@ export function knobsScreen(f: Session, ctx: Ctx): Screen { | ||
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | export const entry: PaletteEntry = { |
| 68 | rank: 440, | |
| 68 | 69 | id: "knobs", |
| 69 | 70 | title: "Knobs", |
| 70 | 71 | hint: "speed, weekly budget, polish, autonomy, feedback first", |
src/tui/screens/lapsed.ts +1
| @@ -80,6 +80,7 @@ export function lapsedScreen(f: Session, ctx: Ctx): Screen { | ||
| 80 | 80 | |
| 81 | 81 | /** Forges asleep for want of payment, and the checkout to pay again. */ |
| 82 | 82 | export const entry: PaletteEntry = { |
| 83 | rank: 580, | |
| 83 | 84 | id: "lapsed", |
| 84 | 85 | title: "Lapsed forges", |
| 85 | 86 | hint: "forges asleep until paid, when their data goes, pay again", |
src/tui/screens/limits.ts +1
| @@ -105,6 +105,7 @@ export function limitsScreen(f: Session, ctx: Ctx): Screen { | ||
| 105 | 105 | |
| 106 | 106 | /** The forge's limits, as MCP `limits` has them: an admin who is not an agent (#7268). */ |
| 107 | 107 | export const entry: PaletteEntry = { |
| 108 | rank: 530, | |
| 108 | 109 | id: "limits", |
| 109 | 110 | title: "Limits", |
| 110 | 111 | hint: "what the forge caps, with default and bounds; change one", |
src/tui/screens/loopstalls.ts +1
| @@ -125,6 +125,7 @@ export function stallsScreen(session: Session, ctx: Ctx): Screen { | ||
| 125 | 125 | } |
| 126 | 126 | |
| 127 | 127 | export const entry: PaletteEntry = { |
| 128 | rank: 130, | |
| 128 | 129 | id: "stalls", |
| 129 | 130 | title: "Main-thread stalls", |
| 130 | 131 | hint: "the last hour's stall ms by route", |
src/tui/screens/madefrom.ts +1
| @@ -37,6 +37,7 @@ export function madeFromScreen(f: Session, ctx: Ctx): Screen { | ||
| 37 | 37 | * Offered to a signed-in person, as the settings row is, and only on a forge that has the record. |
| 38 | 38 | */ |
| 39 | 39 | export const entry: PaletteEntry = { |
| 40 | rank: 760, | |
| 40 | 41 | id: "made-from", |
| 41 | 42 | title: "Started from", |
| 42 | 43 | hint: "the template and commit this forge was made from", |
src/tui/screens/maintainruns.ts +1
| @@ -51,6 +51,7 @@ export function maintainRunsScreen(session: Session, ctx: Ctx): Screen { | ||
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | export const entry: PaletteEntry = { |
| 54 | rank: 290, | |
| 54 | 55 | id: "maintenance-runs", |
| 55 | 56 | title: "Maintenance duty runs", |
| 56 | 57 | hint: "what each duty found, did and probed", |
src/tui/screens/maintenance.ts +1
| @@ -158,6 +158,7 @@ export function maintenanceScreen(f: Session, ctx: Ctx): Screen { | ||
| 158 | 158 | |
| 159 | 159 | /** Prepare the forge for a power-off, check the drain, or end it: a site admin's, as /maintenance is. */ |
| 160 | 160 | export const entry: PaletteEntry = { |
| 161 | rank: 250, | |
| 161 | 162 | id: "maintenance", |
| 162 | 163 | title: "Maintenance", |
| 163 | 164 | hint: "prepare the forge for a power-off, check the drain, or end maintenance", |
src/tui/screens/maintenanceweek.ts +1
| @@ -56,6 +56,7 @@ export function weekScreen(session: Session, ctx: Ctx): Screen { | ||
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | export const entry: PaletteEntry = { |
| 59 | rank: 150, | |
| 59 | 60 | id: "maintenanceweek", |
| 60 | 61 | title: "Maintenance, last 7 days", |
| 61 | 62 | hint: "what each maintenance worker found and did this week", |
src/tui/screens/mergedbranches.ts +1
| @@ -73,6 +73,7 @@ export function mergedBranchesScreen(session: Session, ctx: Ctx): Screen { | ||
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | export const entry: PaletteEntry = { |
| 76 | rank: 270, | |
| 76 | 77 | id: "merged-branches", |
| 77 | 78 | title: "Branches of pulls merged over 7 days ago", |
| 78 | 79 | hint: "delete the merged pulls' branches in one receipted step", |
src/tui/screens/mirrorpacks.ts +1
| @@ -62,6 +62,7 @@ export function mirrorPacksScreen(f: Session, ctx: Ctx): Screen { | ||
| 62 | 62 | |
| 63 | 63 | /** Bring the packs' upstreams in as read-only mirrors: a site admin's, as the button on /packs is. */ |
| 64 | 64 | export const entry: PaletteEntry = { |
| 65 | rank: 320, | |
| 65 | 66 | id: "mirror-packs", |
| 66 | 67 | title: "Mirror the packs' upstreams", |
| 67 | 68 | hint: "bring each pack's upstream projects in as read-only repositories", |
src/tui/screens/model.ts +2
| @@ -135,6 +135,7 @@ export function modelCeilingPrompt(f: Session, ctx: Ctx, parent: Screen): Screen | ||
| 135 | 135 | |
| 136 | 136 | /** A capped monthly grant to an account: a forge admin who is a person (#1145). */ |
| 137 | 137 | export const modelGrantEntry: PaletteEntry = { |
| 138 | rank: 480, | |
| 138 | 139 | id: "model-grant", |
| 139 | 140 | title: "Model grant", |
| 140 | 141 | hint: "give an account dollars a month, or take it back", |
| @@ -145,6 +146,7 @@ export const modelGrantEntry: PaletteEntry = { | ||
| 145 | 146 | |
| 146 | 147 | /** An account's dollars a day and a run: a forge admin who is a person (#1145). */ |
| 147 | 148 | export const modelCeilingEntry: PaletteEntry = { |
| 149 | rank: 490, | |
| 148 | 150 | id: "model-ceiling", |
| 149 | 151 | title: "Model ceiling", |
| 150 | 152 | hint: "set an account's dollars a day and a run", |
src/tui/screens/money.ts +1
| @@ -92,6 +92,7 @@ export function moneyScreen(f: Session, ctx: Ctx, repo?: Repo): Screen { | ||
| 92 | 92 | |
| 93 | 93 | /** The board's money line: a site admin who is a person, as `readForgeMoney` holds. */ |
| 94 | 94 | export const entry: PaletteEntry = { |
| 95 | rank: 560, | |
| 95 | 96 | id: "money", |
| 96 | 97 | title: "Money", |
| 97 | 98 | hint: "this month's cost, revenue and gap, and the last 30 days", |
src/tui/screens/newissue.ts +1
| @@ -43,6 +43,7 @@ export function newIssuePickScreen(f: Session, ctx: Ctx): Screen { | ||
| 43 | 43 | |
| 44 | 44 | /** A new issue, as `/new/issue` offers it: anyone signed in. */ |
| 45 | 45 | export const entry: PaletteEntry = { |
| 46 | rank: 1110, | |
| 46 | 47 | id: "new-issue-anywhere", |
| 47 | 48 | title: "New issue", |
| 48 | 49 | hint: "pick a repository", |
src/tui/screens/nowlist.ts +1
| @@ -57,6 +57,7 @@ export function nowScreen(f: Session, ctx: Ctx, first: (typeof NOW_STAGES)[numbe | ||
| 57 | 57 | |
| 58 | 58 | /** The Now line's lists, as /now/:stage has them: a site admin's. */ |
| 59 | 59 | export const entry: PaletteEntry = { |
| 60 | rank: 1050, | |
| 60 | 61 | id: "now", |
| 61 | 62 | title: "Now", |
| 62 | 63 | hint: "what check, review, land and live count, with the rows", |
src/tui/screens/offers.ts +1
| @@ -51,6 +51,7 @@ export function offersScreen(ctx: Ctx, receipts: readonly ForkOfferReceipt[]): S | ||
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | export const entry: PaletteEntry = { |
| 54 | rank: 190, | |
| 54 | 55 | id: "offers-upstream", |
| 55 | 56 | title: "Offers upstream", |
| 56 | 57 | hint: "the receipts of what you offered from your forks", |
src/tui/screens/offsite.ts +1
| @@ -70,6 +70,7 @@ export function offsiteScreen(session: Session, ctx: Ctx): Screen { | ||
| 70 | 70 | } |
| 71 | 71 | |
| 72 | 72 | export const entry: PaletteEntry = { |
| 73 | rank: 160, | |
| 73 | 74 | id: "offsite", |
| 74 | 75 | title: "Off-site backup", |
| 75 | 76 | hint: "where the sealed lane writes, when it last succeeded, and the last restore drill", |
src/tui/screens/orggrants.ts +1
| @@ -132,6 +132,7 @@ export function orgGrantsScreen(f: Session, ctx: Ctx): Screen { | ||
| 132 | 132 | |
| 133 | 133 | /** An organization's default grants, as its page's Subscriptions form has them: a forge admin who administers one. */ |
| 134 | 134 | export const entry: PaletteEntry = { |
| 135 | rank: 680, | |
| 135 | 136 | id: "org-grants", |
| 136 | 137 | title: "org grants", |
| 137 | 138 | hint: "which AI accounts your organization's repositories without a grant of their own use", |
src/tui/screens/orgteams.ts +1
| @@ -278,6 +278,7 @@ export function orgTeamsScreen(f: Session, ctx: Ctx): Screen { | ||
| 278 | 278 | |
| 279 | 279 | /** Organization teams, as /<org>/-/teams has them: anyone signed in who belongs to an organization. */ |
| 280 | 280 | export const entry: PaletteEntry = { |
| 281 | rank: 670, | |
| 281 | 282 | id: "org-teams", |
| 282 | 283 | title: "Organization teams", |
| 283 | 284 | hint: "who is in each team of your organizations", |
src/tui/screens/originahead.ts +1
| @@ -76,6 +76,7 @@ export function originAheadScreen(f: Session, ctx: Ctx): OriginAheadScreen { | ||
| 76 | 76 | |
| 77 | 77 | /** Mirrors behind their origin, as the repository head has them. */ |
| 78 | 78 | export const entry: PaletteEntry = { |
| 79 | rank: 1020, | |
| 79 | 80 | id: "origin-ahead", |
| 80 | 81 | title: "New commits upstream", |
| 81 | 82 | hint: "mirrors whose origin has moved on: take them", |
src/tui/screens/owner.ts +1
| @@ -72,6 +72,7 @@ export function ownerScreen(f: Session, ctx: Ctx): Screen { | ||
| 72 | 72 | |
| 73 | 73 | /** What needs the owner: needs, snapshot store, every failure domain (#1236). */ |
| 74 | 74 | export const entry: PaletteEntry = { |
| 75 | rank: 960, | |
| 75 | 76 | id: "owner", |
| 76 | 77 | title: "Owner's needs", |
| 77 | 78 | hint: "what needs the owner, snapshots, failure domains", |
src/tui/screens/packrepos.ts +1
| @@ -73,6 +73,7 @@ export function packReposScreen(f: Session, ctx: Ctx): Screen { | ||
| 73 | 73 | |
| 74 | 74 | /** The repos /packs lists: a site admin's, as Settings › Packs is. */ |
| 75 | 75 | export const entry: PaletteEntry = { |
| 76 | rank: 330, | |
| 76 | 77 | id: "pack-repos", |
| 77 | 78 | title: "Pack repositories", |
| 78 | 79 | hint: "which repositories /packs lists", |
src/tui/screens/payments.ts +1
| @@ -47,6 +47,7 @@ export function paymentsScreen(session: Session, ctx: Ctx): Screen { | ||
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | export const entry: PaletteEntry = { |
| 50 | rank: 20, | |
| 50 | 51 | id: "payments", |
| 51 | 52 | title: "Payments", |
| 52 | 53 | hint: "what was charged for the forges you claimed", |
src/tui/screens/people.ts +1
| @@ -187,6 +187,7 @@ export function peopleScreen(f: Session, ctx: Ctx): Screen { | ||
| 187 | 187 | |
| 188 | 188 | /** Guests, members and admins, as /settings/people has them (#2301). */ |
| 189 | 189 | export const entry: PaletteEntry = { |
| 190 | rank: 500, | |
| 190 | 191 | id: "people", |
| 191 | 192 | title: "People", |
| 192 | 193 | hint: "who is a guest, a member or an admin; promote or demote", |
src/tui/screens/pinned.ts +1
| @@ -107,6 +107,7 @@ export function pinnedScreen(f: Session, ctx: Ctx): Screen { | ||
| 107 | 107 | |
| 108 | 108 | /** Pinned forges, as the API and the MCP have them: a forge admin (#8697). */ |
| 109 | 109 | export const entry: PaletteEntry = { |
| 110 | rank: 870, | |
| 110 | 111 | id: "pinned", |
| 111 | 112 | title: "Pinned forges", |
| 112 | 113 | hint: "deploy, update and roll back a forge on your cloud", |
src/tui/screens/planrow.ts +1
| @@ -69,6 +69,7 @@ export function planRowScreen(f: Session, ctx: Ctx): Screen { | ||
| 69 | 69 | |
| 70 | 70 | /** The plan line and the portal address: an admin of the forge. */ |
| 71 | 71 | export const entry: PaletteEntry = { |
| 72 | rank: 750, | |
| 72 | 73 | id: "plan-row", |
| 73 | 74 | title: "Plan", |
| 74 | 75 | hint: "this forge's plan, its last backup, and where its owner manages billing", |
src/tui/screens/plans.ts +1
| @@ -113,6 +113,7 @@ export function plansScreen(f: Session, ctx: Ctx): Screen { | ||
| 113 | 113 | |
| 114 | 114 | /** The forge's plans, as /admin/limits has them: an admin who is not an agent. */ |
| 115 | 115 | export const entry: PaletteEntry = { |
| 116 | rank: 540, | |
| 116 | 117 | id: "plans", |
| 117 | 118 | title: "Plans", |
| 118 | 119 | hint: "free, small, medium and large: size, price, crew credit, forges; change one", |
src/tui/screens/previewdirs.ts +1
| @@ -72,6 +72,7 @@ export function previewDirsScreen(session: Session, ctx: Ctx): Screen { | ||
| 72 | 72 | } |
| 73 | 73 | |
| 74 | 74 | export const entry: PaletteEntry = { |
| 75 | rank: 280, | |
| 75 | 76 | id: "preview-dirs", |
| 76 | 77 | title: "Preview data of pulls closed over 7 days ago", |
| 77 | 78 | hint: "remove the old previews' data in one receipted step", |
src/tui/screens/profile.ts +1
| @@ -81,6 +81,7 @@ export function profileScreen(f: Session, ctx: Ctx): Screen { | ||
| 81 | 81 | } |
| 82 | 82 | |
| 83 | 83 | export const entry: PaletteEntry = { |
| 84 | rank: 1030, | |
| 84 | 85 | id: "profile", |
| 85 | 86 | title: "Your profile", |
| 86 | 87 | hint: "display name and email", |
src/tui/screens/quotas.ts +1
| @@ -99,6 +99,7 @@ export function quotasScreen(f: Session, ctx: Ctx): Screen { | ||
| 99 | 99 | |
| 100 | 100 | /** Account quotas, as /admin/limits has them: an admin who is not an agent (#2191). */ |
| 101 | 101 | export const entry: PaletteEntry = { |
| 102 | rank: 520, | |
| 102 | 103 | id: "quotas", |
| 103 | 104 | title: "Account quotas", |
| 104 | 105 | hint: "what one account may own, and who changed it", |
src/tui/screens/recoverykit.ts +1
| @@ -117,6 +117,7 @@ export function recoveryKitScreen(f: Session, ctx: Ctx): Screen { | ||
| 117 | 117 | |
| 118 | 118 | /** The kit's screen: a site admin's, as the Backups page is. */ |
| 119 | 119 | export const entry: PaletteEntry = { |
| 120 | rank: 240, | |
| 120 | 121 | id: "recovery-kit", |
| 121 | 122 | title: "Recovery kit", |
| 122 | 123 | hint: "the bucket's read-only key and the file to keep off this machine", |
src/tui/screens/refused.ts +1
| @@ -45,6 +45,7 @@ export function refusedScreen(session: Session, ctx: Ctx): Screen { | ||
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | export const entry: PaletteEntry = { |
| 48 | rank: 990, | |
| 48 | 49 | id: "refused-asks", |
| 49 | 50 | title: "Refused first asks", |
| 50 | 51 | hint: `the last ${REFUSED_SHOWN} first asks turned away`, |
src/tui/screens/repolist.ts +1
| @@ -43,6 +43,7 @@ export function repoListScreen(f: Session, ctx: Ctx): Screen { | ||
| 43 | 43 | |
| 44 | 44 | /** Your repositories, as /repos lists them: anyone signed in. */ |
| 45 | 45 | export const entry: PaletteEntry = { |
| 46 | rank: 1080, | |
| 46 | 47 | id: "repos", |
| 47 | 48 | title: "Repositories", |
| 48 | 49 | hint: "the repositories you may write", |
src/tui/screens/requests.ts +1
| @@ -75,6 +75,7 @@ export function requestsScreen(f: Session, ctx: Ctx): Screen { | ||
| 75 | 75 | |
| 76 | 76 | /** Who asked for an account and waits: a forge admin who is a person. */ |
| 77 | 77 | export const entry: PaletteEntry = { |
| 78 | rank: 810, | |
| 78 | 79 | id: "requests", |
| 79 | 80 | title: "Waiting", |
| 80 | 81 | hint: "strangers who asked for an account: allow or decline", |
src/tui/screens/resilience.ts +1
| @@ -414,6 +414,7 @@ export function resilienceScreen(f: Session, ctx: Ctx): Screen { | ||
| 414 | 414 | * admin's; a person admin sets or forgets the destination and the mirror here. |
| 415 | 415 | */ |
| 416 | 416 | export const entry: PaletteEntry = { |
| 417 | rank: 230, | |
| 417 | 418 | id: "resilience", |
| 418 | 419 | title: "Resilience", |
| 419 | 420 | hint: "where snapshots go and the mirror; each protection green, red or untested", |
src/tui/screens/returning.ts +1
| @@ -59,6 +59,7 @@ export function returningScreen(f: Session, ctx: Ctx): Screen { | ||
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | export const entry: PaletteEntry = { |
| 62 | rank: 650, | |
| 62 | 63 | id: "returning-visitors", |
| 63 | 64 | title: "Who comes back", |
| 64 | 65 | hint: "new and returning visitors, and the setting that keeps them", |
src/tui/screens/scorecard.ts +1
| @@ -259,6 +259,7 @@ export function scorecardScreen(f: Session, ctx: Ctx): Screen { | ||
| 259 | 259 | |
| 260 | 260 | /** Settings → Crew's scorecard per agent, as the page has it: a forge admin (#2677). */ |
| 261 | 261 | export const entry: PaletteEntry = { |
| 262 | rank: 460, | |
| 262 | 263 | id: "scorecard", |
| 263 | 264 | title: "Crew scorecard per agent", |
| 264 | 265 | hint: "each agent's pulls landed, review rounds, red checks, reverts, time to land", |
src/tui/screens/scrapes.ts +1
| @@ -50,6 +50,7 @@ export function scrapesScreen(f: Session, ctx: Ctx): Screen { | ||
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | export const entry: PaletteEntry = { |
| 53 | rank: 630, | |
| 53 | 54 | id: "scrapes", |
| 54 | 55 | title: "Scrapes", |
| 55 | 56 | hint: "what was read by repository, and groups in a running capture", |
src/tui/screens/secrets.ts +1
| @@ -174,6 +174,7 @@ export function secretsScreen(f: Session, ctx: Ctx): Screen { | ||
| 174 | 174 | |
| 175 | 175 | /** Settings → Secrets, as the page has it: a forge admin; names only, never a value. */ |
| 176 | 176 | export const entry: PaletteEntry = { |
| 177 | rank: 420, | |
| 177 | 178 | id: "secrets", |
| 178 | 179 | title: "Secrets", |
| 179 | 180 | hint: "sealed secrets by name; set or remove one", |
src/tui/screens/sentinel.ts +1
| @@ -5,6 +5,7 @@ import { sentinelSummary } from "../../crew/sentinel.ts"; | ||
| 5 | 5 | |
| 6 | 6 | /** The forge's own faults, as the board's strip shows them: a site admin's. */ |
| 7 | 7 | export const entry: PaletteEntry = { |
| 8 | rank: 30, | |
| 8 | 9 | id: "sentinel", |
| 9 | 10 | title: "Sentinel", |
| 10 | 11 | hint: "the forge's open faults", |
15 more files not shown.
new above
offline