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

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

scout/forge:scout/14434-the-rosters-generate-the-palette-roster → main 7 commits fork

  • Merged. scout/14434-the-rosters-generate-the-palette-roster was merged into main as e86166d.

Review

Sign in to review this change.
115 files changed +220 −234
scripts/hollow.ts +16 −5
@@ -50,6 +50,7 @@ import { posix } from "node:path";
5050 // 7.x checker (a Go binary), and 7.0 ships no stable JS API to walk an AST.
5151 import ts from "typescript-api";
5252 import { ALLOWED, type Allowed } from "./hollow-allow.ts";
53 import { entryNames } from "../src/tui/screens/entry_mark.ts";
5354
5455 const ACTIONS = "src/actions/";
5556 /** The files something starts, each with who starts it. A new one is added here. */
@@ -400,11 +401,11 @@ export interface Hollow {
400401 * runs reaches what it mentions. A file nothing loads runs nothing, and an
401402 * `import()` in a function nothing calls loads nothing.
402403 */
403 function running(modules: Modules, entries: readonly string[]): Set<string> {
404 function running(modules: Modules, entries: readonly string[], seeds: readonly string[] = []): Set<string> {
404405 const reached = new Set<string>();
405406 const loaded = new Set<string>();
406407 const files = [...entries];
407 const ids: string[] = [];
408 const ids: string[] = [...seeds];
408409 const follow = (file: string, said: Mentions): void => {
409410 ids.push(...leadsTo(modules, file, said));
410411 files.push(...said.loads);
@@ -431,8 +432,8 @@ function running(modules: Modules, entries: readonly string[]): Set<string> {
431432 }
432433
433434 /** 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);
436437 const found: Hollow[] = [];
437438 for (const [file, mod] of modules) {
438439 if (!file.startsWith(ACTIONS)) continue;
@@ -580,7 +581,17 @@ export function hollow(sources: Sources): Hollow[] {
580581 if (++parsed % 64 === 0) Bun.gc(true);
581582 }
582583 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)];
584595 }
585596
586597 /**
scripts/unreached.ts +5
@@ -11,6 +11,7 @@
1111
1212 import { readFileSync } from "node:fs";
1313 import { dirname, join, normalize } from "node:path";
14 import { entryNames } from "../src/tui/screens/entry_mark.ts";
1415
1516 /** Files something starts, by name or by path, so nothing imports them. */
1617 export const ENTRIES = [
@@ -62,6 +63,10 @@ export function unreached(root: string): string[] {
6263 [...new Bun.Glob("src/**/*.ts").scanSync({ cwd: root })].filter((f) => !f.endsWith(".d.ts") && !NOT_MODULES.test(f)),
6364 );
6465 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);
6570 const queue = [...reached, ...SCRIPTS.flatMap((g) => [...new Bun.Glob(g).scanSync({ cwd: root })])];
6671 for (let file = queue.pop(); file; file = queue.pop()) {
6772 const text = readFileSync(join(root, file), "utf8");
scripts/unused-exports.ts +4 −1
@@ -14,6 +14,7 @@
1414
1515 import { readFileSync, writeFileSync } from "node:fs";
1616 import { join } from "node:path";
17 import { entryNames } from "../src/tui/screens/entry_mark.ts";
1718
1819 const DECL = /^export\s+(?:async\s+)?(?:function\*?|const|let|class)\s+([\w$]+)/gm;
1920 const WORD = /[A-Za-z_$][\w$]*/g;
@@ -34,7 +35,9 @@ export function unusedExports(root: string): string[] {
3435 const dead: string[] = [];
3536 for (const [file, t] of text) {
3637 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]}`);
3841 }
3942 return dead.sort();
4043 }
src/tui/screens/access.ts +1
@@ -115,6 +115,7 @@ export function accessScreen(f: Session, ctx: Ctx): Screen {
115115
116116 /** What outside agents tried, as Settings → Access says it: a site admin's (#1768). */
117117 export const entry: PaletteEntry = {
118 rank: 350,
118119 id: "access",
119120 title: "Access",
120121 hint: "what outside agents tried",
src/tui/screens/account_access.ts +1
@@ -168,6 +168,7 @@ export function accountAccessScreen(f: Session, ctx: Ctx): Screen {
168168
169169 /** A forge admin's: reset a person's access and end their sessions, as the account page does. */
170170 export const entry: PaletteEntry = {
171 rank: 510,
171172 id: "account-access",
172173 title: "Account access",
173174 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 {
151151
152152 /** Crew agents, as MCP `agent` has them: an admin who is not an agent. */
153153 export const entry: PaletteEntry = {
154 rank: 690,
154155 id: "agents",
155156 title: "Crew agents",
156157 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 {
114114
115115 /** Offered to a forge admin who is not an agent. */
116116 export const entry: PaletteEntry = {
117 rank: 600,
117118 id: "app-templates",
118119 title: "App templates",
119120 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 {
8989
9090 /** The sentence under each app on /apps, as a list. */
9191 export const entry: PaletteEntry = {
92 rank: 710,
9293 id: "apps-crew",
9394 title: "What the crew is doing",
9495 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 {
9898
9999 /** Archived repositories, as /apps?archived=1 has them. */
100100 export const entry: PaletteEntry = {
101 rank: 700,
101102 id: "archived",
102103 title: "Archived repositories",
103104 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 {
132132
133133 /** The explorer, as the page gates it: a site admin who is a person, never an agent. */
134134 export const entry: PaletteEntry = {
135 rank: 70,
135136 id: "ask-data",
136137 title: "Data explorer",
137138 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[]):
106106
107107 /** The audit, as /audit lists it: anyone, a stranger seeing the public apps. */
108108 export const entry: PaletteEntry = {
109 rank: 400,
109110 id: "audit",
110111 title: "Who can do what",
111112 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 {
186186
187187 /** Bets, as the page and the MCP have them: whoever administers a repository. */
188188 export const entry: PaletteEntry = {
189 rank: 880,
189190 id: "bets",
190191 title: "Bets",
191192 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 {
123123
124124 /** Each forge's plan, and the grant. */
125125 export const entry: PaletteEntry = {
126 rank: 570,
126127 id: "billing",
127128 title: "Billing",
128129 hint: "each forge's plan, and grant one by hand",
src/tui/screens/bills.ts +1
@@ -62,6 +62,7 @@ export function billsScreen(session: Session, ctx: Ctx): Screen {
6262 }
6363
6464 export const entry: PaletteEntry = {
65 rank: 10,
6566 id: "bills",
6667 title: "Your forges' bills",
6768 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 {
353353
354354 /** The boards, as the page gates them: a site admin who is a person, never an agent (#1817). */
355355 export const entry: PaletteEntry = {
356 rank: 40,
356357 id: "boards",
357358 title: "Boards",
358359 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 {
6464 }
6565
6666 export const entry: PaletteEntry = {
67 rank: 110,
6768 id: "bottleneck",
6869 title: "Where the bottleneck is",
6970 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 {
4747
4848 /** Offered to everyone: what a reader sees is cut inside, as the page cuts it. */
4949 export const entry: PaletteEntry = {
50 rank: 80,
5051 id: "bugs",
5152 title: "Bugs",
5253 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 {
164164
165165 /** Your bulk actions: a person's, never an agent's. */
166166 export const entry: PaletteEntry = {
167 rank: 820,
167168 id: "bulk",
168169 title: "Bulk actions",
169170 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 {
110110 }
111111
112112 export const entry: PaletteEntry = {
113 rank: 60,
113114 id: "captain",
114115 title: "Captain",
115116 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
4747 }
4848
4949 export const entry: PaletteEntry = {
50 rank: 1010,
5051 id: "lend-credit",
5152 title: "Lend a child credit",
5253 hint: "set the dollars a forge you sent may spend on this one's model credential",
src/tui/screens/claim_start.ts +1
@@ -66,6 +66,7 @@ export function claimStartScreen(f: Session, ctx: Ctx): Screen {
6666
6767 /** A person's, as the claim page is: the link is the proof, the account is theirs. */
6868 export const entry: PaletteEntry = {
69 rank: 780,
6970 id: "claim-start",
7071 title: "Take an agent's work",
7172 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 {
214214
215215 /** Cloud accounts, as Settings → Cloud accounts has them: a forge admin (#2199). */
216216 export const entry: PaletteEntry = {
217 rank: 860,
217218 id: "cloud",
218219 title: "Cloud accounts",
219220 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 {
8989
9090 /** Make, list and revoke gift codes. */
9191 export const entry: PaletteEntry = {
92 rank: 590,
9293 id: "codes",
9394 title: "Gift codes",
9495 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 {
162162
163163 /** Origins: a signed-in person, not an agent. */
164164 export const entry: PaletteEntry = {
165 rank: 890,
165166 id: "origins",
166167 title: "Connected accounts",
167168 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 {
6868
6969 /** Each safeguard, its state, and when it was last checked. */
7070 export const entry: PaletteEntry = {
71 rank: 410,
7172 id: "security-controls",
7273 title: "Security controls",
7374 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
2424 }
2525
2626 export const entry: PaletteEntry = {
27 rank: 770,
2728 id: "cores",
2829 title: "Cores",
2930 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 {
8383
8484 /** The crew's spend limits: per run, per day, per month. */
8585 export const entry: PaletteEntry = {
86 rank: 850,
8687 id: "crewbudgets",
8788 title: "Crew budgets",
8889 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 {
106106
107107 /** Settings → Crew's hand-overs: issues parked twice, the last restore drill. */
108108 export const entry: PaletteEntry = {
109 rank: 450,
109110 id: "crew-handover",
110111 title: "Crew hand-overs",
111112 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 {
6161
6262 /** The crew's key: what it runs on, and add yours. */
6363 export const entry: PaletteEntry = {
64 rank: 840,
6465 id: "crewkey",
6566 title: "Crew key",
6667 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 {
7676
7777 /** Settings → Crew's scorecard by model and prompt version: an admin (#2682). */
7878 export const entry: PaletteEntry = {
79 rank: 430,
7980 id: "crew-scorecard",
8081 title: "Crew scorecard",
8182 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 {
177177
178178 /** Offered to a forge admin who is not an agent. */
179179 export const entry: PaletteEntry = {
180 rank: 610,
180181 id: "devices",
181182 title: "Devices",
182183 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 {
6464 }
6565
6666 export const entry: PaletteEntry = {
67 rank: 1100,
6768 id: "disks",
6869 title: "Disks",
6970 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
7676
7777 /** Displays, as /displays lists them: anyone signed in. */
7878 export const entry: PaletteEntry = {
79 rank: 1090,
7980 id: "displays",
8081 title: "Displays",
8182 hint: "the displays you may read",
src/tui/screens/domains.ts +1
@@ -132,6 +132,7 @@ export function domainsScreen(f: Session, ctx: Ctx): Screen {
132132
133133 /** Each failure domain and its last drill, as Settings → Backups → Failure domains says it (#1945). */
134134 export const entry: PaletteEntry = {
135 rank: 900,
135136 id: "domains",
136137 title: "Failure domains",
137138 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 {
6262 }
6363
6464 export const entry: PaletteEntry = {
65 rank: 1040,
6566 id: "dotfiles",
6667 title: "Your dotfiles",
6768 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 {
7676 }
7777
7878 export const entry: PaletteEntry = {
79 rank: 50,
7980 id: "drift",
8081 title: "Drifting pulls",
8182 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 {
7373 }
7474
7575 export const entry: PaletteEntry = {
76 rank: 310,
7677 id: "maintenance-budgets",
7778 title: "Set a maintenance duty's budget",
7879 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 {
8686 }
8787
8888 export const entry: PaletteEntry = {
89 rank: 300,
8990 id: "maintenance-duties",
9091 title: "Pause, resume or dismiss a maintenance duty",
9192 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 {
196196
197197 /** The profit slider and the prices, as /settings/economics has them: an admin who is not an agent (#504, #507). */
198198 export const entry: PaletteEntry = {
199 rank: 550,
199200 id: "economics",
200201 title: "Economics",
201202 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 {
5353
5454 /** Who would be locked out if the platform edge sign-in went off. */
5555 export const entry: PaletteEntry = {
56 rank: 360,
5657 id: "edge-only-accounts",
5758 title: "Edge-only accounts",
5859 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 @@
11 /**
22 * Palette entries that live beside their screen. A screen module exports an
33 * `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.
610 */
711
812 import type { Ctx } from "../app/app.ts";
913 import type { Command } from "../app/palette.ts";
1014 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";
12018
12119 export interface PaletteEntry {
12220 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;
12326 readonly title: string;
12427 readonly hint: string;
12528 /**
@@ -133,120 +36,24 @@ export interface PaletteEntry {
13336 run(session: Session, ctx: Ctx): void;
13437 }
13538
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);
25057
25158 /**
25259 * 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 {
116116 }
117117
118118 export const entry: PaletteEntry = {
119 rank: 930,
119120 id: "feature-feed",
120121 title: "Feature feeds",
121122 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 {
7474
7575 /** The pending declarations: a site admin's, as the settings page is. */
7676 export const entry: PaletteEntry = {
77 rank: 920,
7778 id: "feature-review",
7879 title: "Menu entries to review",
7980 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 {
158158
159159 /** Features, as Settings → Features shows them: a site admin's who is a person. */
160160 export const entry: PaletteEntry = {
161 rank: 940,
161162 id: "features",
162163 title: "Features",
163164 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 {
304304
305305 /** The feed, as the page's `/feed` has it. */
306306 export const entry: PaletteEntry = {
307 rank: 910,
307308 id: "feed",
308309 title: "Feed",
309310 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 {
6767 }
6868
6969 export const entry: PaletteEntry = {
70 rank: 620,
7071 id: "flows-all",
7172 title: "Flows across the forge",
7273 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 {
7171 }
7272
7373 export const entry: PaletteEntry = {
74 rank: 140,
7475 id: "footing",
7576 title: "What the forge stands on",
7677 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";
1111 import type { PaletteEntry } from "./entries.ts";
1212
1313 export const entry: PaletteEntry = {
14 rank: 1000,
1415 id: "forge-ready",
1516 title: "Does a forge answer?",
1617 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
275275
276276 /** The forges this one sent, as /forges lists them: an admin's only. */
277277 export const entry: PaletteEntry = {
278 rank: 970,
278279 id: "forges",
279280 title: "Forges you sent",
280281 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 {
7272 }
7373
7474 export const entry: PaletteEntry = {
75 rank: 1070,
7576 id: "forge-view",
7677 title: "Forge view",
7778 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 {
150150
151151 /** The stranger's front page, ranked with its numbers, as MCP `front_page` has it. */
152152 export const entry: PaletteEntry = {
153 rank: 950,
153154 id: "front",
154155 title: "Front page",
155156 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 {
5353
5454 /** Offered to a signed-in person, as the home's lines are. */
5555 export const entry: PaletteEntry = {
56 rank: 1060,
5657 id: "front-milestones",
5758 title: "Milestones",
5859 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 {
4646 }
4747
4848 export const entry: PaletteEntry = {
49 rank: 390,
4950 id: "from-visit-to-paid",
5051 title: "From visit to paid",
5152 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 {
3131
3232 /** The palette entry: offered to every reader, guests too. */
3333 export const entry: PaletteEntry = {
34 rank: 120,
3435 id: "health-voice",
3536 title: "Health — spoken",
3637 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 {
8585
8686 /** Home's pinned panels, as the page gates them: a forge admin who is a person. */
8787 export const entry: PaletteEntry = {
88 rank: 90,
8889 id: "home-pins",
8990 title: "Pinned panels",
9091 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 {
177177
178178 /** A site admin's only, beside the forges it is about. */
179179 export const entry: PaletteEntry = {
180 rank: 980,
180181 id: "host-reach",
181182 title: "What hosted forges may reach",
182183 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 {
8888
8989 /** What is left on the connected origins, as /migrate/inventory has it. */
9090 export const entry: PaletteEntry = {
91 rank: 720,
9192 id: "inventory",
9293 title: "What is left to bring over",
9394 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 {
199199
200200 /** Invite links, as /admin/limits has them: an admin who is a person (#2337). */
201201 export const entry: PaletteEntry = {
202 rank: 730,
202203 id: "invites",
203204 title: "Invite links",
204205 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 {
6565 }
6666
6767 export const entry: PaletteEntry = {
68 rank: 440,
6869 id: "knobs",
6970 title: "Knobs",
7071 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 {
8080
8181 /** Forges asleep for want of payment, and the checkout to pay again. */
8282 export const entry: PaletteEntry = {
83 rank: 580,
8384 id: "lapsed",
8485 title: "Lapsed forges",
8586 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 {
105105
106106 /** The forge's limits, as MCP `limits` has them: an admin who is not an agent (#7268). */
107107 export const entry: PaletteEntry = {
108 rank: 530,
108109 id: "limits",
109110 title: "Limits",
110111 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 {
125125 }
126126
127127 export const entry: PaletteEntry = {
128 rank: 130,
128129 id: "stalls",
129130 title: "Main-thread stalls",
130131 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 {
3737 * Offered to a signed-in person, as the settings row is, and only on a forge that has the record.
3838 */
3939 export const entry: PaletteEntry = {
40 rank: 760,
4041 id: "made-from",
4142 title: "Started from",
4243 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 {
5151 }
5252
5353 export const entry: PaletteEntry = {
54 rank: 290,
5455 id: "maintenance-runs",
5556 title: "Maintenance duty runs",
5657 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 {
158158
159159 /** Prepare the forge for a power-off, check the drain, or end it: a site admin's, as /maintenance is. */
160160 export const entry: PaletteEntry = {
161 rank: 250,
161162 id: "maintenance",
162163 title: "Maintenance",
163164 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 {
5656 }
5757
5858 export const entry: PaletteEntry = {
59 rank: 150,
5960 id: "maintenanceweek",
6061 title: "Maintenance, last 7 days",
6162 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 {
7373 }
7474
7575 export const entry: PaletteEntry = {
76 rank: 270,
7677 id: "merged-branches",
7778 title: "Branches of pulls merged over 7 days ago",
7879 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 {
6262
6363 /** Bring the packs' upstreams in as read-only mirrors: a site admin's, as the button on /packs is. */
6464 export const entry: PaletteEntry = {
65 rank: 320,
6566 id: "mirror-packs",
6667 title: "Mirror the packs' upstreams",
6768 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
135135
136136 /** A capped monthly grant to an account: a forge admin who is a person (#1145). */
137137 export const modelGrantEntry: PaletteEntry = {
138 rank: 480,
138139 id: "model-grant",
139140 title: "Model grant",
140141 hint: "give an account dollars a month, or take it back",
@@ -145,6 +146,7 @@ export const modelGrantEntry: PaletteEntry = {
145146
146147 /** An account's dollars a day and a run: a forge admin who is a person (#1145). */
147148 export const modelCeilingEntry: PaletteEntry = {
149 rank: 490,
148150 id: "model-ceiling",
149151 title: "Model ceiling",
150152 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 {
9292
9393 /** The board's money line: a site admin who is a person, as `readForgeMoney` holds. */
9494 export const entry: PaletteEntry = {
95 rank: 560,
9596 id: "money",
9697 title: "Money",
9798 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 {
4343
4444 /** A new issue, as `/new/issue` offers it: anyone signed in. */
4545 export const entry: PaletteEntry = {
46 rank: 1110,
4647 id: "new-issue-anywhere",
4748 title: "New issue",
4849 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
5757
5858 /** The Now line's lists, as /now/:stage has them: a site admin's. */
5959 export const entry: PaletteEntry = {
60 rank: 1050,
6061 id: "now",
6162 title: "Now",
6263 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
5151 }
5252
5353 export const entry: PaletteEntry = {
54 rank: 190,
5455 id: "offers-upstream",
5556 title: "Offers upstream",
5657 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 {
7070 }
7171
7272 export const entry: PaletteEntry = {
73 rank: 160,
7374 id: "offsite",
7475 title: "Off-site backup",
7576 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 {
132132
133133 /** An organization's default grants, as its page's Subscriptions form has them: a forge admin who administers one. */
134134 export const entry: PaletteEntry = {
135 rank: 680,
135136 id: "org-grants",
136137 title: "org grants",
137138 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 {
278278
279279 /** Organization teams, as /<org>/-/teams has them: anyone signed in who belongs to an organization. */
280280 export const entry: PaletteEntry = {
281 rank: 670,
281282 id: "org-teams",
282283 title: "Organization teams",
283284 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 {
7676
7777 /** Mirrors behind their origin, as the repository head has them. */
7878 export const entry: PaletteEntry = {
79 rank: 1020,
7980 id: "origin-ahead",
8081 title: "New commits upstream",
8182 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 {
7272
7373 /** What needs the owner: needs, snapshot store, every failure domain (#1236). */
7474 export const entry: PaletteEntry = {
75 rank: 960,
7576 id: "owner",
7677 title: "Owner's needs",
7778 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 {
7373
7474 /** The repos /packs lists: a site admin's, as Settings › Packs is. */
7575 export const entry: PaletteEntry = {
76 rank: 330,
7677 id: "pack-repos",
7778 title: "Pack repositories",
7879 hint: "which repositories /packs lists",
src/tui/screens/payments.ts +1
@@ -47,6 +47,7 @@ export function paymentsScreen(session: Session, ctx: Ctx): Screen {
4747 }
4848
4949 export const entry: PaletteEntry = {
50 rank: 20,
5051 id: "payments",
5152 title: "Payments",
5253 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 {
187187
188188 /** Guests, members and admins, as /settings/people has them (#2301). */
189189 export const entry: PaletteEntry = {
190 rank: 500,
190191 id: "people",
191192 title: "People",
192193 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 {
107107
108108 /** Pinned forges, as the API and the MCP have them: a forge admin (#8697). */
109109 export const entry: PaletteEntry = {
110 rank: 870,
110111 id: "pinned",
111112 title: "Pinned forges",
112113 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 {
6969
7070 /** The plan line and the portal address: an admin of the forge. */
7171 export const entry: PaletteEntry = {
72 rank: 750,
7273 id: "plan-row",
7374 title: "Plan",
7475 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 {
113113
114114 /** The forge's plans, as /admin/limits has them: an admin who is not an agent. */
115115 export const entry: PaletteEntry = {
116 rank: 540,
116117 id: "plans",
117118 title: "Plans",
118119 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 {
7272 }
7373
7474 export const entry: PaletteEntry = {
75 rank: 280,
7576 id: "preview-dirs",
7677 title: "Preview data of pulls closed over 7 days ago",
7778 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 {
8181 }
8282
8383 export const entry: PaletteEntry = {
84 rank: 1030,
8485 id: "profile",
8586 title: "Your profile",
8687 hint: "display name and email",
src/tui/screens/quotas.ts +1
@@ -99,6 +99,7 @@ export function quotasScreen(f: Session, ctx: Ctx): Screen {
9999
100100 /** Account quotas, as /admin/limits has them: an admin who is not an agent (#2191). */
101101 export const entry: PaletteEntry = {
102 rank: 520,
102103 id: "quotas",
103104 title: "Account quotas",
104105 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 {
117117
118118 /** The kit's screen: a site admin's, as the Backups page is. */
119119 export const entry: PaletteEntry = {
120 rank: 240,
120121 id: "recovery-kit",
121122 title: "Recovery kit",
122123 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 {
4545 }
4646
4747 export const entry: PaletteEntry = {
48 rank: 990,
4849 id: "refused-asks",
4950 title: "Refused first asks",
5051 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 {
4343
4444 /** Your repositories, as /repos lists them: anyone signed in. */
4545 export const entry: PaletteEntry = {
46 rank: 1080,
4647 id: "repos",
4748 title: "Repositories",
4849 hint: "the repositories you may write",
src/tui/screens/requests.ts +1
@@ -75,6 +75,7 @@ export function requestsScreen(f: Session, ctx: Ctx): Screen {
7575
7676 /** Who asked for an account and waits: a forge admin who is a person. */
7777 export const entry: PaletteEntry = {
78 rank: 810,
7879 id: "requests",
7980 title: "Waiting",
8081 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 {
414414 * admin's; a person admin sets or forgets the destination and the mirror here.
415415 */
416416 export const entry: PaletteEntry = {
417 rank: 230,
417418 id: "resilience",
418419 title: "Resilience",
419420 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 {
5959 }
6060
6161 export const entry: PaletteEntry = {
62 rank: 650,
6263 id: "returning-visitors",
6364 title: "Who comes back",
6465 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 {
259259
260260 /** Settings → Crew's scorecard per agent, as the page has it: a forge admin (#2677). */
261261 export const entry: PaletteEntry = {
262 rank: 460,
262263 id: "scorecard",
263264 title: "Crew scorecard per agent",
264265 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 {
5050 }
5151
5252 export const entry: PaletteEntry = {
53 rank: 630,
5354 id: "scrapes",
5455 title: "Scrapes",
5556 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 {
174174
175175 /** Settings → Secrets, as the page has it: a forge admin; names only, never a value. */
176176 export const entry: PaletteEntry = {
177 rank: 420,
177178 id: "secrets",
178179 title: "Secrets",
179180 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";
55
66 /** The forge's own faults, as the board's strip shows them: a site admin's. */
77 export const entry: PaletteEntry = {
8 rank: 30,
89 id: "sentinel",
910 title: "Sentinel",
1011 hint: "the forge's open faults",

15 more files not shown.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs