cursedauth 0.3.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -42,13 +42,22 @@ logins and nothing else. The provider is a separate service reached over HTTPS a
42
42
  | `cursedauth/mount-gated` | server | mount public routes before the gate, gated ones after |
43
43
  | `cursedauth/content-census` | server | answer "what has this account made here?" by COUNT |
44
44
  | `cursedauth/account-slots` | both | several accounts signed in on one browser |
45
+ | `cursedauth/sso` | both | the grant: its wire shape, its claims, its verification |
46
+ | `cursedauth/constant-time` | both | `constantTimeEqual` — compare two secrets without leaking where they differ |
45
47
  | `cursedauth/auth` | browser | `startSsoSignIn`, `useSsoAutoSignIn`, session hooks |
46
48
  | `cursedauth/account-ui` | browser | the account menu |
47
49
  | `cursedauth/account-slot-client` | browser | slot switching in the page |
50
+ | `cursedauth/testing` | server | the grant→callback→cookie harness, for a consumer's own suite |
48
51
 
49
52
  🔴 The barrel reaches `bun:sqlite`. A browser bundle imports the three browser
50
53
  subpaths and never the root.
51
54
 
55
+ 🔴 **This table is a CHECK, not prose** — `src/publishShape.test.ts` fails if an
56
+ export subpath is missing a row. A subpath nobody can find is a subpath every app
57
+ re-implements: `constant-time` shipped on 2026-09-17 after three apps had each
58
+ copied `constantTime.ts` into their own `src/`, because it was on no subpath at
59
+ all. Add the `exports` entry and the row in the same commit.
60
+
52
61
  ## Where it came from, and what was cut
53
62
 
54
63
  Extracted 2026-09-14 from the previous generation's `satellite-kit`, which was the
@@ -30,6 +30,46 @@
30
30
  * remembered to add a line and silently unstyled in the rest. The machinery is
31
31
  * shared with the directory (`../ui/popover`) so the two cannot drift into
32
32
  * different ideas of dark mode, or dismiss differently, 8px apart.
33
+ *
34
+ * ── 🔴 The trigger draws the NAME. The address is one click in ───────────────
35
+ * Settled 2026-09-15, after the `roms` graduation measured a trigger reading
36
+ * `"PLplayer@cursedalchemy.com▾"` and filed it as a regression against the
37
+ * retired `satellite-kit`. Both halves of the outcome are now pinned by
38
+ * `AccountMenu.test.tsx` rather than by this paragraph:
39
+ *
40
+ * - **The launcher is `name`, falling back to `email` only when there is no
41
+ * name** — and that fallback is {@link accountLabel}, HERE, rather than the
42
+ * `user.displayName || user.email` each of five app headers had written out.
43
+ * An app that passes only `name` can pass `undefined` and still get a label.
44
+ * - **The address lives in the panel head**, under the name, beside the actions
45
+ * it belongs to. It is suppressed when it IS the label, so the fallback case
46
+ * does not draw the same string twice.
47
+ *
48
+ * There is a real argument for the address in the launcher — with multi-account
49
+ * slots, *which* account matters more than who, and two accounts can share a
50
+ * display name. It loses to two measurements. `.sam-launch` is capped at
51
+ * `min(14rem,100%)` in a header row that is the narrowest app's widest fixed
52
+ * row, and an address is materially longer than a name: `apps/roms`'s
53
+ * `__smoke/headerFit.spec.ts` found this control covering the page title by
54
+ * **79px at 320px**, starting at **x=-26**, with zero horizontal page overflow
55
+ * to report it. And the slot question is already answered INSIDE the panel, with
56
+ * more room to answer it in — the `Account N` badge and the "Also signed in
57
+ * here" rows, both of which carry the address per account.
58
+ *
59
+ * ── 🔴 What a consumer's test needs to know ─────────────────────────────────
60
+ * The panel is **not mounted until it is opened** (`{open && createPortal(…)}`),
61
+ * and when it is, it is portaled to `document.body` — outside whatever container
62
+ * the test framework rendered into. So, in a consuming app's test:
63
+ *
64
+ * - Before any click, a whole-page `queryByText(email)` asserts the **trigger**
65
+ * and nothing else. It is `null` whenever a name was passed, which is the
66
+ * assertion five app suites want.
67
+ * - After a click, the address is in `document.body` but not in RTL's
68
+ * container. `screen.*` queries reach it; `within(container)` does not.
69
+ * - Close the menu (or the element) before the test ends. Unmounting the React
70
+ * root takes the portal with it; abandoning an open one leaves the panel in
71
+ * `document.body` for the NEXT file in the same process, which surfaces as
72
+ * "found multiple elements" in a full-suite run only.
33
73
  */
34
74
  import { type ReactNode } from "react";
35
75
  /** The popover's ideal width in px, matching `min(17rem, …)` in {@link STYLES}
@@ -46,11 +86,39 @@ import { type ReactNode } from "react";
46
86
  * a sentence here promising they match. */
47
87
  export declare const PANEL_WIDTH = 272;
48
88
  export declare const STYLES = "\n.sam{--sam-panel:#ffffff;--sam-border:#d9dde3;--sam-text:#1a1d21;--sam-muted:#68707c;\n --sam-hover:#f2f4f7;--sam-danger:#b42318;--sam-accent:#4f6ef7;--sam-shadow:0 12px 32px rgba(16,18,22,.16);\n font:14px/1.5 ui-sans-serif,system-ui,-apple-system,sans-serif;color:var(--sam-text)}\n.sam[data-dark=\"true\"]{--sam-panel:#181b21;--sam-border:#2c313a;--sam-text:#e6e9ee;--sam-muted:#8b93a1;\n --sam-hover:#22262e;--sam-danger:#f97066;--sam-accent:#7f97ff;--sam-shadow:0 12px 32px rgba(0,0,0,.5)}\n/* \uD83D\uDD34 `min-width:0` is what makes `.sam-who`'s ellipsis (below) REACHABLE, and\n without it that rule is dead CSS \u2014 measured on live roms, 2026-09-08.\n\n A flex item's `min-width` defaults to `auto`, i.e. its min-content width, and\n `.sam-who` is `white-space:nowrap` \u2014 so the launcher's min-content size is the\n WHOLE name, however long. Flex could not shrink it, the name never truncated,\n and the launcher simply overflowed its slot. Where it overflowed was decided by\n the host header's `justify-content`: roms right-aligns its account controls, so\n the overflow travelled LEFT and painted the account button on top of the app\n title \u2014 79px of overlap at 320px, 39px at 360px, and the button's own avatar\n starting at x=-26, off the side of the screen. `document.scrollWidth` was\n unchanged throughout, which is why nothing anywhere reported it: the row does\n not push the page wide, it collides inside itself.\n\n With these two declarations the ellipsis finally does its job \u2014 the name gives\n up as much width as the row needs and gives up the last of it entirely, leaving\n the avatar and its caret, which is the right phone-shaped answer for an account\n control anyway. Nothing changes at a width that already fit (measured: 430px\n identical before and after), because flex only shrinks an item that has to.\n `max-width:100%` keeps the wrapper from being the new floor now that the\n launcher inside it can shrink.\n\n The header that found it asserts the outcome rather than this mechanism \u2014\n apps/roms/__smoke/headerFit.spec.ts, which measures real boxes in a real\n browser at four phone widths. It is the only kind of check that can see this. */\n.sam-wrap{position:relative;display:inline-block;min-width:0;max-width:100%}\n.sam-launch{display:inline-flex;align-items:center;gap:7px;max-width:min(14rem,100%);height:34px;\n min-width:0;padding:0 8px 0 4px;\n border:1px solid transparent;border-radius:999px;background:transparent;color:inherit;cursor:pointer;\n font:inherit;font-size:13px}\n@media (pointer:coarse){.sam-launch{height:44px}}\n/* The circle. --sam-av is the ONE size knob: the ring, the glyph and the initials all\n derive from it, so the launcher and the panel head cannot drift apart. */\n.sam-av{--sam-av:26px;flex:none;display:inline-flex;align-items:center;justify-content:center;\n width:var(--sam-av);height:var(--sam-av);border-radius:50%;overflow:hidden;\n background:color-mix(in srgb,var(--sam-accent,#4f6ef7) 16%,transparent);\n color:var(--sam-accent,#4f6ef7);font-size:calc(var(--sam-av) * .42);font-weight:650;\n line-height:1;letter-spacing:.02em;user-select:none}\n.sam-av img{width:100%;height:100%;object-fit:cover;display:block}\n.sam-head .sam-av{--sam-av:40px}\n.sam-launch:hover,.sam-launch[aria-expanded=\"true\"]{background:var(--sam-hover);border-color:var(--sam-border)}\n/* `min-width:0` for the same reason as `.sam-launch` above, one level down: this\n is itself a flex item, so its `auto` minimum is the un-wrappable name and the\n ellipsis below it could never fire. All three levels of the chain have to\n allow shrinking or none of them does \u2014 the launcher stops overflowing its\n header while the LABEL goes on overflowing the launcher, which is a collision\n that has merely moved one control to the right. Measured: the first attempt at\n this fix did exactly that, and headerFit.spec.ts is what said so. */\n.sam-who{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n.sam-caret{flex:none;opacity:.6;font-size:10px}\n/* \uD83D\uDD34 `left` and `top` are BOTH set inline by usePopoverPosition, and the panel\n is PORTALED to <body> \u2014 see `anchoredTop`. `fixed` because the panel is no\n longer inside the launcher, and NO default `top`, because a hardcoded\n \"always below\" is what put the fleet launcher's panel off the bottom of the\n screen (E22, 2026-09-09). This menu shares the control, so it shares the fix. */\n.sam-pop{position:fixed;right:auto;z-index:2147482000;width:min(17rem,calc(100vw - 32px));\n background:var(--sam-panel);border:1px solid var(--sam-border);border-radius:12px;box-shadow:var(--sam-shadow);\n padding:6px;display:flex;flex-direction:column;gap:1px}\n.sam-head{display:flex;align-items:center;gap:10px;padding:8px 8px 10px;\n border-bottom:1px solid var(--sam-border);margin-bottom:5px}\n.sam-head-text{min-width:0;flex:1}\n.sam-name{font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n.sam-sub{font-size:11.5px;color:var(--sam-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n/* \uD83D\uDD34 44px, the designer's number for a menu row (2026-08-19). display:flex rather\n than block so the min-height actually centres the label instead of leaving it\n glued to the top of a taller box. */\n.sam-item{display:flex;align-items:center;width:100%;min-height:44px;text-align:left;\n padding:7px 10px;border:0;border-radius:8px;background:transparent;color:inherit;font:inherit;\n font-size:13px;cursor:pointer;text-decoration:none}\n.sam-item:hover{background:var(--sam-hover)}\n.sam-item[data-tone=\"danger\"]{color:var(--sam-danger)}\n.sam-hint{font-size:11px;color:var(--sam-muted);padding:1px 8px 4px}\n.sam-rule{height:1px;background:var(--sam-border);margin:5px 0}\n.sam-label{font-size:10.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;\n color:var(--sam-muted);padding:4px 8px 3px}\n/* One row per other account: a big target that SWITCHES, plus a small one that\n opens a second window. Grid rather than flex so the switch button gets every\n pixel the open button does not, and long addresses ellipsize instead of\n pushing the \u29C9 off the panel. */\n.sam-acct{display:grid;grid-template-columns:1fr auto;align-items:stretch;gap:1px;border-radius:8px}\n.sam-acct:hover{background:var(--sam-hover)}\n.sam-acct .sam-item{display:block;border-radius:8px 0 0 8px;padding-top:6px;padding-bottom:6px}\n.sam-acct-who{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n.sam-acct-sub{display:block;font-size:11px;color:var(--sam-muted);overflow:hidden;\n text-overflow:ellipsis;white-space:nowrap}\n.sam-open{flex:none;width:44px;border:0;border-radius:0 8px 8px 0;background:transparent;\n color:var(--sam-muted);cursor:pointer;font:inherit;font-size:13px}\n.sam-open:hover{background:var(--sam-hover);color:var(--sam-text)}\n.sam-badge{font-size:10px;font-weight:600;color:var(--sam-muted);border:1px solid var(--sam-border);\n border-radius:5px;padding:0 4px;margin-left:6px;vertical-align:1px}\n";
89
+ /**
90
+ * What the launcher draws, and what the panel's first line repeats.
91
+ *
92
+ * 🔴 The fallback is HERE, once, rather than in each app's header. Every
93
+ * consumer had written some spelling of `user.displayName || user.email ||
94
+ * "Account"` at the call site, and a shared component whose label depends on
95
+ * five hand-copied expressions is a shared component in name only — `roms`'s
96
+ * spelling reached for a field its own test fixture did not set, so the header
97
+ * drew the address and nothing could tell that apart from a deliberate choice.
98
+ *
99
+ * Pure and exported so the rule is assertable without a DOM, and so an app that
100
+ * needs the same string elsewhere (a greeting, a page title) gets the same
101
+ * answer instead of a sixth spelling.
102
+ *
103
+ * `"Account"` last because the launcher is never blank: a circle with a caret
104
+ * and no word is a control that does not say what it opens.
105
+ */
106
+ export declare function accountLabel(name?: string | null, email?: string | null): string;
49
107
  export interface AccountMenuProps {
50
- /** What to call the signed-in person — `user.name || user.email`. */
51
- name: string;
108
+ /**
109
+ * What to call the signed-in person — `user.displayName`, as `SatelliteUser`
110
+ * spells it, or `user.name` off the wire.
111
+ *
112
+ * Optional: pass it straight through, undefined and all, and the menu falls
113
+ * back to `email` and then to `"Account"` itself ({@link accountLabel}). A
114
+ * caller that still passes `name={user.displayName || user.email}` gets the
115
+ * identical result — the fallback is idempotent — so this widened rather than
116
+ * broke.
117
+ */
118
+ name?: string;
52
119
  /** Shown under the name in the panel when it adds something the name does
53
- * not already say (i.e. skipped when it IS the name). */
120
+ * not already say (i.e. skipped when it IS the label). Never drawn in the
121
+ * launcher — see the trigger section in this file's header. */
54
122
  email?: string;
55
123
  /**
56
124
  * The accounts origin the SERVER advertises (`session.accountsUrl`).
@@ -1 +1 @@
1
- {"version":3,"file":"AccountMenu.d.ts","sourceRoot":"","sources":["../../src/account/AccountMenu.tsx"],"names":[],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AC,EAAE,MAAM,IAAI,CAAC;IACrB;oEACgE;IAChE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAC;IAC5B,yDAAyD;IACzD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;;;;;OASG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,gFAAgF;AAChF,MAAM,WAAW,cAAc;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACb;AA+BD;;;;;;;;GAQG;AACH,wBAAgB,wBAAwB,IAAI,IAAI,CAE/C;AAkDD,wFAAwF;AACxF,wBAAgB,wBAAwB,IAAI,IAAI,CAE/C;AA0ED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,EAC3B,IAAI,EACJ,KAAK,EACL,WAAW,EACX,QAAQ,EACR,SAAS,EACT,OAAO,EACP,SAAS,EACT,WAAW,EACX,QAAQ,EACR,WAA0B,EAC1B,MAAM,GACN,EAAE,gBAAgB,+BA4RlB;AAOD,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,KAAK,kBAAkB,EAAE,MAAM,uBAAuB,CAAC"}
@@ -31,6 +31,46 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
31
31
  * remembered to add a line and silently unstyled in the rest. The machinery is
32
32
  * shared with the directory (`../ui/popover`) so the two cannot drift into
33
33
  * different ideas of dark mode, or dismiss differently, 8px apart.
34
+ *
35
+ * ── 🔴 The trigger draws the NAME. The address is one click in ───────────────
36
+ * Settled 2026-09-15, after the `roms` graduation measured a trigger reading
37
+ * `"PLplayer@cursedalchemy.com▾"` and filed it as a regression against the
38
+ * retired `satellite-kit`. Both halves of the outcome are now pinned by
39
+ * `AccountMenu.test.tsx` rather than by this paragraph:
40
+ *
41
+ * - **The launcher is `name`, falling back to `email` only when there is no
42
+ * name** — and that fallback is {@link accountLabel}, HERE, rather than the
43
+ * `user.displayName || user.email` each of five app headers had written out.
44
+ * An app that passes only `name` can pass `undefined` and still get a label.
45
+ * - **The address lives in the panel head**, under the name, beside the actions
46
+ * it belongs to. It is suppressed when it IS the label, so the fallback case
47
+ * does not draw the same string twice.
48
+ *
49
+ * There is a real argument for the address in the launcher — with multi-account
50
+ * slots, *which* account matters more than who, and two accounts can share a
51
+ * display name. It loses to two measurements. `.sam-launch` is capped at
52
+ * `min(14rem,100%)` in a header row that is the narrowest app's widest fixed
53
+ * row, and an address is materially longer than a name: `apps/roms`'s
54
+ * `__smoke/headerFit.spec.ts` found this control covering the page title by
55
+ * **79px at 320px**, starting at **x=-26**, with zero horizontal page overflow
56
+ * to report it. And the slot question is already answered INSIDE the panel, with
57
+ * more room to answer it in — the `Account N` badge and the "Also signed in
58
+ * here" rows, both of which carry the address per account.
59
+ *
60
+ * ── 🔴 What a consumer's test needs to know ─────────────────────────────────
61
+ * The panel is **not mounted until it is opened** (`{open && createPortal(…)}`),
62
+ * and when it is, it is portaled to `document.body` — outside whatever container
63
+ * the test framework rendered into. So, in a consuming app's test:
64
+ *
65
+ * - Before any click, a whole-page `queryByText(email)` asserts the **trigger**
66
+ * and nothing else. It is `null` whenever a name was passed, which is the
67
+ * assertion five app suites want.
68
+ * - After a click, the address is in `document.body` but not in RTL's
69
+ * container. `screen.*` queries reach it; `within(container)` does not.
70
+ * - Close the menu (or the element) before the test ends. Unmounting the React
71
+ * root takes the portal with it; abandoning an open one leaves the panel in
72
+ * `document.body` for the NEXT file in the same process, which surfaces as
73
+ * "found multiple elements" in a full-suite run only.
34
74
  */
35
75
  import { lazy, Suspense, useEffect, useState } from "react";
36
76
  import { createPortal } from "react-dom";
@@ -161,6 +201,26 @@ export const STYLES = `
161
201
  .sam-badge{font-size:10px;font-weight:600;color:var(--sam-muted);border:1px solid var(--sam-border);
162
202
  border-radius:5px;padding:0 4px;margin-left:6px;vertical-align:1px}
163
203
  `;
204
+ /**
205
+ * What the launcher draws, and what the panel's first line repeats.
206
+ *
207
+ * 🔴 The fallback is HERE, once, rather than in each app's header. Every
208
+ * consumer had written some spelling of `user.displayName || user.email ||
209
+ * "Account"` at the call site, and a shared component whose label depends on
210
+ * five hand-copied expressions is a shared component in name only — `roms`'s
211
+ * spelling reached for a field its own test fixture did not set, so the header
212
+ * drew the address and nothing could tell that apart from a deliberate choice.
213
+ *
214
+ * Pure and exported so the rule is assertable without a DOM, and so an app that
215
+ * needs the same string elsewhere (a greeting, a page title) gets the same
216
+ * answer instead of a sixth spelling.
217
+ *
218
+ * `"Account"` last because the launcher is never blank: a circle with a caret
219
+ * and no word is a control that does not say what it opens.
220
+ */
221
+ export function accountLabel(name, email) {
222
+ return name?.trim() || email?.trim() || "Account";
223
+ }
164
224
  const SESSION_PATH = "/api/auth/session";
165
225
  /**
166
226
  * The accounts this browser holds, fetched once per menu opening.
@@ -308,6 +368,8 @@ export function AccountMenu({ name, email, accountsUrl, children, onSignOut, onL
308
368
  // The dim behind the panel — shared with the app switcher it sits beside, so the two
309
369
  // cannot end up with different ideas of what "open over the page" looks like.
310
370
  useScrim(open, close, dark);
371
+ /** The one string this menu calls the account, everywhere it names it. */
372
+ const label = accountLabel(name, email);
311
373
  const sso = Boolean(accountsUrl);
312
374
  const browser = useBrowserAccounts(sessionPath, accounts, userId);
313
375
  /**
@@ -340,7 +402,7 @@ export function AccountMenu({ name, email, accountsUrl, children, onSignOut, onL
340
402
  const here = `${globalThis.location?.pathname ?? "/"}${globalThis.location?.search ?? ""}`;
341
403
  globalThis.location?.assign(slotUrl(here, slot));
342
404
  };
343
- return (_jsxs("span", { className: "sam sam-wrap", "data-dark": dark ? "true" : "false", ref: wrapRef, children: [notice ? (_jsx(Suspense, { fallback: null, children: _jsx(AccountNotice, { notice: notice, onDismiss: () => setNotice(null), ...(accountsUrl ? { accountsUrl } : {}), ...(startPath ? { startPath } : {}), signedInAs: name }) })) : null, _jsxs("button", { type: "button", className: "sam-launch", "aria-expanded": open, "aria-haspopup": "true", "aria-label": `Signed in as ${name}`, onClick: toggle, children: [_jsx(AccountAvatar, { name: name, ...(email ? { email } : {}), ...(accountsUrl ? { accountsUrl } : {}), ...(browser.userId ? { userId: browser.userId } : {}) }), _jsx("span", { className: "sam-who", children: name }), _jsx("span", { className: "sam-caret", "aria-hidden": "true", children: "\u25BE" })] }), open &&
405
+ return (_jsxs("span", { className: "sam sam-wrap", "data-dark": dark ? "true" : "false", ref: wrapRef, children: [notice ? (_jsx(Suspense, { fallback: null, children: _jsx(AccountNotice, { notice: notice, onDismiss: () => setNotice(null), ...(accountsUrl ? { accountsUrl } : {}), ...(startPath ? { startPath } : {}), signedInAs: label }) })) : null, _jsxs("button", { type: "button", className: "sam-launch", "aria-expanded": open, "aria-haspopup": "true", "aria-label": `Signed in as ${label}`, onClick: toggle, children: [_jsx(AccountAvatar, { ...(name ? { name } : {}), ...(email ? { email } : {}), ...(accountsUrl ? { accountsUrl } : {}), ...(browser.userId ? { userId: browser.userId } : {}) }), _jsx("span", { className: "sam-who", children: label }), _jsx("span", { className: "sam-caret", "aria-hidden": "true", children: "\u25BE" })] }), open &&
344
406
  typeof document !== "undefined" &&
345
407
  createPortal(
346
408
  // 🔴 PORTALED to <body> for the same reason as the app switcher beside
@@ -352,7 +414,7 @@ export function AccountMenu({ name, email, accountsUrl, children, onSignOut, onL
352
414
  // rule are defined on `.sam`, which is no longer an ancestor.
353
415
  _jsxs("div", { ref: panelRef, className: "sam sam-pop", "data-dark": dark ? "true" : "false", "data-placement": position?.placement ?? "below", role: "menu", style: position
354
416
  ? { left: `${Math.round(position.left)}px`, top: `${Math.round(position.top)}px` }
355
- : { left: 0, top: 0, visibility: "hidden" }, children: [_jsxs("div", { className: "sam-head", children: [_jsx(AccountAvatar, { name: name, ...(email ? { email } : {}), ...(accountsUrl ? { accountsUrl } : {}), ...(browser.userId ? { userId: browser.userId } : {}) }), _jsxs("div", { className: "sam-head-text", children: [_jsxs("div", { className: "sam-name", children: [name, several ? _jsxs("span", { className: "sam-badge", children: ["Account ", browser.slot + 1] }) : null] }), email && email !== name ? _jsx("div", { className: "sam-sub", children: email }) : null] })] }), children?.(close), sso ? (_jsxs(_Fragment, { children: [others.length > 0 ? (_jsxs(_Fragment, { children: [_jsx("div", { className: "sam-rule" }), _jsx("div", { className: "sam-label", children: "Also signed in here" }), others.map((account) => (_jsxs("div", { className: "sam-acct", children: [_jsxs("button", { type: "button", className: "sam-item", onClick: () => switchTo(account.slot), children: [_jsx("span", { className: "sam-acct-who", children: account.name || account.email }), account.name && account.name !== account.email ? (_jsx("span", { className: "sam-acct-sub", children: account.email })) : null] }), _jsx("button", { type: "button", className: "sam-open", title: `Open a new window as ${account.name || account.email}`, "aria-label": `Open a new window as ${account.name || account.email}`, onClick: () => {
417
+ : { left: 0, top: 0, visibility: "hidden" }, children: [_jsxs("div", { className: "sam-head", children: [_jsx(AccountAvatar, { ...(name ? { name } : {}), ...(email ? { email } : {}), ...(accountsUrl ? { accountsUrl } : {}), ...(browser.userId ? { userId: browser.userId } : {}) }), _jsxs("div", { className: "sam-head-text", children: [_jsxs("div", { className: "sam-name", children: [label, several ? _jsxs("span", { className: "sam-badge", children: ["Account ", browser.slot + 1] }) : null] }), email && email !== label ? _jsx("div", { className: "sam-sub", children: email }) : null] })] }), children?.(close), sso ? (_jsxs(_Fragment, { children: [others.length > 0 ? (_jsxs(_Fragment, { children: [_jsx("div", { className: "sam-rule" }), _jsx("div", { className: "sam-label", children: "Also signed in here" }), others.map((account) => (_jsxs("div", { className: "sam-acct", children: [_jsxs("button", { type: "button", className: "sam-item", onClick: () => switchTo(account.slot), children: [_jsx("span", { className: "sam-acct-who", children: account.name || account.email }), account.name && account.name !== account.email ? (_jsx("span", { className: "sam-acct-sub", children: account.email })) : null] }), _jsx("button", { type: "button", className: "sam-open", title: `Open a new window as ${account.name || account.email}`, "aria-label": `Open a new window as ${account.name || account.email}`, onClick: () => {
356
418
  close();
357
419
  globalThis.open?.(accountWindowUrl(account.slot), "_blank", "noopener");
358
420
  }, children: "\u29C9" })] }, account.id))), _jsx("div", { className: "sam-rule" })] })) : null, _jsx("a", { className: "sam-item", href: accountsUrl ?? "#", onClick: close, children: "Manage account" }), _jsx("a", { className: "sam-item", href: `${accountsUrl ?? ""}#/account/picture`, onClick: close, children: "Change your picture" }), browser.slotsFull ? (_jsx("p", { className: "sam-hint", children: "This browser is holding all the accounts it can. Sign one out to add another." })) : (_jsx("button", { type: "button", className: "sam-item", onClick: () => {
@@ -370,7 +432,7 @@ export function AccountMenu({ name, email, accountsUrl, children, onSignOut, onL
370
432
  return;
371
433
  }
372
434
  startSsoSignOut(signOutPath ? { signOutPath } : {});
373
- }, children: several ? `Sign out ${name}` : "Sign out" })) : null, sso && several ? (_jsx("button", { type: "button", className: "sam-item", "data-tone": "danger", onClick: () => {
435
+ }, children: several ? `Sign out ${label}` : "Sign out" })) : null, sso && several ? (_jsx("button", { type: "button", className: "sam-item", "data-tone": "danger", onClick: () => {
374
436
  close();
375
437
  onLeave?.();
376
438
  startSsoSignOut({ allAccounts: true, ...(signOutPath ? { signOutPath } : {}) });
@@ -1 +1 @@
1
- {"version":3,"file":"AccountMenu.js","sourceRoot":"","sources":["../../src/account/AccountMenu.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,OAAO,EAAE,IAAI,EAAkB,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EACN,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EAClB,OAAO,GACP,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,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/dist/auth.d.ts CHANGED
@@ -105,7 +105,28 @@ export declare function createOwnerPasswordAdapter(options?: OwnerPasswordAdapte
105
105
  export declare const MOCK_SESSION_TOKEN = "mock-session-token";
106
106
  export declare const MOCK_ADAPTER_IN_PRODUCTION: string;
107
107
  export interface MockAuthAdapterOptions {
108
- user?: SatelliteUser;
108
+ /**
109
+ * Who the mock is signed in as.
110
+ *
111
+ * 🔴 `name` is accepted as an alias for `displayName`, and it is not sugar —
112
+ * it closes a trap that cost the `roms` graduation a filed regression
113
+ * (2026-09-15). The WIRE calls this field `name` (`/api/auth/session`, and
114
+ * the retired `satellite-kit`'s user), while {@link SatelliteUser} calls it
115
+ * `displayName`; `mapSsoSession` below is where the two meet. So a fixture
116
+ * written from the wire shape — `{ id, name, email }` — is the natural thing
117
+ * to write, and TypeScript accepts it in SILENCE: `displayName` is optional,
118
+ * and excess-property checking does not reach a named const.
119
+ *
120
+ * The name was therefore dropped, `user.displayName` was `undefined`, and
121
+ * every header drawing `displayName || email` drew the **address**. That
122
+ * renders, looks deliberate, and is indistinguishable from a design decision
123
+ * — it was measured in `apps/roms` as a trigger reading
124
+ * `"PLplayer@cursedalchemy.com▾"` and filed against `AccountMenu`, which had
125
+ * been drawing the name it was given all along.
126
+ */
127
+ user?: SatelliteUser & {
128
+ name?: string;
129
+ };
109
130
  /** Start signed out, to exercise the sign-in surface. Defaults to signed in. */
110
131
  initialStatus?: Extract<SatelliteAuthStatus, "authenticated" | "anonymous">;
111
132
  }
@@ -1 +1 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"AA0DA,OAAO,EACN,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,uBAAuB,EACvB,gBAAgB,EAChB,cAAc,EACd,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,oBAAoB,EACpB,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,KAAK,mBAAmB,EACxB,qBAA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vB,IAAI,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,OAAO,CAAC;QAAC,OAAO,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;IACxF,8DAA8D;IAC9D,WAAW,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,wBAAsB,eAAe,CACpC,SAAS,GAAE,OAAO,KAAa,EAC/B,QAAQ,SAAc,GACpB,OAAO,CAAC,cAAc,CAAC,CAIzB;AAED,MAAM,WAAW,yBAA0B,SAAQ,2BAA2B;IAC7E;;;;;;;;;OASG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,GAAE,yBAA8B,GAAG,WAAW,CA4H7F"}
package/dist/auth.js CHANGED
@@ -134,6 +134,14 @@ const MOCK_USER = {
134
134
  export const MOCK_SESSION_TOKEN = "mock-session-token";
135
135
  export const MOCK_ADAPTER_IN_PRODUCTION = "createMockAuthAdapter() was reached in a production build. " +
136
136
  "A satellite that needs auth must not ship the mock — wire the real adapter first.";
137
+ /** Fold the wire's `name` into `displayName`, preferring an explicit `displayName`. */
138
+ function mockUser(given) {
139
+ if (!given)
140
+ return MOCK_USER;
141
+ const { name, ...rest } = given;
142
+ const displayName = rest.displayName ?? name;
143
+ return displayName ? { ...rest, displayName } : rest;
144
+ }
137
145
  /**
138
146
  * Development stand-in: authenticated immediately, no server involved.
139
147
  *
@@ -145,7 +153,7 @@ export const MOCK_ADAPTER_IN_PRODUCTION = "createMockAuthAdapter() was reached i
145
153
  export function createMockAuthAdapter(options = {}) {
146
154
  if (isProductionRuntime())
147
155
  throw new Error(MOCK_ADAPTER_IN_PRODUCTION);
148
- const user = options.user ?? MOCK_USER;
156
+ const user = mockUser(options.user);
149
157
  const startsSignedIn = options.initialStatus !== "anonymous";
150
158
  return {
151
159
  id: "mock",
package/dist/auth.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"auth.js","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"AAAA,wFAAwF;AACxF,EAAE;AACF,uFAAuF;AACvF,yFAAyF;AACzF,wFAAwF;AACxF,eAAe;AACf,EAAE;AACF,yFAAyF;AACzF,uFAAuF;AACvF,EAAE;AACF,8FAA8F;AAC9F,6FAA6F;AAC7F,8FAA8F;AAC9F,yFAAyF;AACzF,4FAA4F;AAC5F,4CAA4C;AAC5C,2FAA2F;AAC3F,qEAAqE;AACrE,wFAAwF;AACxF,2EAA2E;AAC3E,uFAAuF;AACvF,kFAAkF;AAClF,4EAA4E;AAC5E,gEAAgE;AAChE,EAAE;AACF,0FAA0F;AAC1F,iFAAiF;AACjF,EAAE;AACF,kFAAkF;AAClF,sFAAsF;AACtF,2DAA2D;AAC3D,EAAE;AACF,sFAAsF;AACtF,yDAAyD;AACzD,OAAO,EACN,aAAa,EACb,aAAa,EACb,WAAW,EACX,UAAU,EACV,SAAS,EACT,OAAO,EACP,MAAM,EACN,QAAQ,GACR,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EACN,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,oBAAoB,EACpB,gBAAgB,EAChB,cAAc,EACd,eAAe,GACf,MAAM,iBAAiB,CAAC;AAEzB,iEAAiE;AACjE,+EAA+E;AAC/E,gFAAgF;AAChF,OAAO,EACN,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,uBAAuB,EACvB,gBAAgB,EAChB,cAAc,EAGd,oBAAoB,EACpB,gBAAgB,EAChB,cAAc,EACd,eAAe,EAEf,qBAAqB,EACrB,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,GACjB,MAAM,iBAAiB,CAAC;AA0EzB,MAAM,oBAAoB,GAAG,aAAa,CAAuB,IAAI,CAAC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,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC;YAE7E,OAAO,OAAO,CACb,GAAG,EAAE,CAAC,CAAC;gBACN,MAAM,EAAE,cAAc;gBACtB,IAAI;gBACJ,MAAM;gBACN,OAAO;gBACP,UAAU;gBACV,WAAW;gBACX,KAAK,EAAE,GAAG,EAAE,CAAC,IAAI;aACjB,CAAC,EACF,CAAC,cAAc,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,WAAW,CAAC,CAChE,CAAC;QACH,CAAC;KACD,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"auth.js","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"AAAA,wFAAwF;AACxF,EAAE;AACF,uFAAuF;AACvF,yFAAyF;AACzF,wFAAwF;AACxF,eAAe;AACf,EAAE;AACF,yFAAyF;AACzF,uFAAuF;AACvF,EAAE;AACF,8FAA8F;AAC9F,6FAA6F;AAC7F,8FAA8F;AAC9F,yFAAyF;AACzF,4FAA4F;AAC5F,4CAA4C;AAC5C,2FAA2F;AAC3F,qEAAqE;AACrE,wFAAwF;AACxF,2EAA2E;AAC3E,uFAAuF;AACvF,kFAAkF;AAClF,4EAA4E;AAC5E,gEAAgE;AAChE,EAAE;AACF,0FAA0F;AAC1F,iFAAiF;AACjF,EAAE;AACF,kFAAkF;AAClF,sFAAsF;AACtF,2DAA2D;AAC3D,EAAE;AACF,sFAAsF;AACtF,yDAAyD;AACzD,OAAO,EACN,aAAa,EACb,aAAa,EACb,WAAW,EACX,UAAU,EACV,SAAS,EACT,OAAO,EACP,MAAM,EACN,QAAQ,GACR,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EACN,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,oBAAoB,EACpB,gBAAgB,EAChB,cAAc,EACd,eAAe,GACf,MAAM,iBAAiB,CAAC;AAEzB,iEAAiE;AACjE,+EAA+E;A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,IAAI,CAAC;gBAC7B,eAAe,CAAC,EAAE,WAAW,EAAE,GAAG,IAAI,cAAc,EAAE,CAAC,CAAC;gBACxD,MAAM,IAAI,OAAO,CAAQ,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC;YACpC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;YAEX,MAAM,UAAU,GAAG,WAAW,CAAC,KAAK,IAAI,EAAE;gBACzC,qEAAqE;gBACrE,uEAAuE;gBACvE,aAAa,CAAC,OAAO,GAAG,KAAK,CAAC;gBAC9B,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,YAAY,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC;gBACrE,MAAM,IAAI,OAAO,CAAQ,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC;YACpC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;YAEX,wEAAwE;YACxE,sEAAsE;YACtE,oEAAoE;YACpE,2DAA2D;YAC3D,MAAM,cAAc,GAAwB,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC;YAE7E,OAAO,OAAO,CACb,GAAG,EAAE,CAAC,CAAC;gBACN,MAAM,EAAE,cAAc;gBACtB,IAAI;gBACJ,MAAM;gBACN,OAAO;gBACP,UAAU;gBACV,WAAW;gBACX,KAAK,EAAE,GAAG,EAAE,CAAC,IAAI;aACjB,CAAC,EACF,CAAC,cAAc,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,WAAW,CAAC,CAChE,CAAC;QACH,CAAC;KACD,CAAC;AACH,CAAC"}
@@ -21,6 +21,15 @@
21
21
  * runs the longer of the two, and there is no input that makes it exit early. It
22
22
  * also carries no node-builtin dependency, so the contract modules that both a
23
23
  * server and a browser bundle can reach may use it.
24
+ *
25
+ * ## Why it is on its own subpath — `cursedauth/constant-time` (2026-09-17)
26
+ *
27
+ * It sat in this `src/` for a month on no export subpath at all, so no consumer
28
+ * could reach it: `patterns`, `roms` and `vault` each ended up with a
29
+ * byte-identical copy of the file, which is the same three-copies arithmetic the
30
+ * paragraph above was written to stop — one layer out. Its own subpath rather
31
+ * than the root barrel, because the barrel reaches `bun:sqlite` and a caller that
32
+ * wants only this compare must not pull a database driver into its graph.
24
33
  */
25
34
  /**
26
35
  * True when `a` and `b` are the same string, in time that does not depend on
@@ -1 +1 @@
1
- {"version":3,"file":"constantTime.d.ts","sourceRoot":"","sources":["../src/constantTime.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,CAU/D"}
1
+ {"version":3,"file":"constantTime.d.ts","sourceRoot":"","sources":["../src/constantTime.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,CAU/D"}
@@ -21,6 +21,15 @@
21
21
  * runs the longer of the two, and there is no input that makes it exit early. It
22
22
  * also carries no node-builtin dependency, so the contract modules that both a
23
23
  * server and a browser bundle can reach may use it.
24
+ *
25
+ * ## Why it is on its own subpath — `cursedauth/constant-time` (2026-09-17)
26
+ *
27
+ * It sat in this `src/` for a month on no export subpath at all, so no consumer
28
+ * could reach it: `patterns`, `roms` and `vault` each ended up with a
29
+ * byte-identical copy of the file, which is the same three-copies arithmetic the
30
+ * paragraph above was written to stop — one layer out. Its own subpath rather
31
+ * than the root barrel, because the barrel reaches `bun:sqlite` and a caller that
32
+ * wants only this compare must not pull a database driver into its graph.
24
33
  */
25
34
  /**
26
35
  * True when `a` and `b` are the same string, in time that does not depend on
@@ -1 +1 @@
1
- {"version":3,"file":"constantTime.js","sourceRoot":"","sources":["../src/constantTime.ts"],"names":[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CAAC;IACjC,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC;IAC3C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE;QAAE,IAAI,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;IAClE,OAAO,IAAI,KAAK,CAAC,CAAC;AACnB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cursedauth",
3
- "version": "0.3.0",
3
+ "version": "0.5.0",
4
4
  "description": "The app side of fleet SSO — sign in through the accounts service, keep a local snapshot of who signed in, and gate the app on it. Bun + Hono + React, one SQLite file per app.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -71,6 +71,12 @@
71
71
  "source": "./src/ssoTestHarness.ts",
72
72
  "import": "./dist/ssoTestHarness.js"
73
73
  },
74
+ "./constant-time": {
75
+ "types": "./dist/constantTime.d.ts",
76
+ "bun": "./src/constantTime.ts",
77
+ "source": "./src/constantTime.ts",
78
+ "import": "./dist/constantTime.js"
79
+ },
74
80
  "./package.json": "./package.json"
75
81
  },
76
82
  "files": [
@@ -30,6 +30,46 @@
30
30
  * remembered to add a line and silently unstyled in the rest. The machinery is
31
31
  * shared with the directory (`../ui/popover`) so the two cannot drift into
32
32
  * different ideas of dark mode, or dismiss differently, 8px apart.
33
+ *
34
+ * ── 🔴 The trigger draws the NAME. The address is one click in ───────────────
35
+ * Settled 2026-09-15, after the `roms` graduation measured a trigger reading
36
+ * `"PLplayer@cursedalchemy.com▾"` and filed it as a regression against the
37
+ * retired `satellite-kit`. Both halves of the outcome are now pinned by
38
+ * `AccountMenu.test.tsx` rather than by this paragraph:
39
+ *
40
+ * - **The launcher is `name`, falling back to `email` only when there is no
41
+ * name** — and that fallback is {@link accountLabel}, HERE, rather than the
42
+ * `user.displayName || user.email` each of five app headers had written out.
43
+ * An app that passes only `name` can pass `undefined` and still get a label.
44
+ * - **The address lives in the panel head**, under the name, beside the actions
45
+ * it belongs to. It is suppressed when it IS the label, so the fallback case
46
+ * does not draw the same string twice.
47
+ *
48
+ * There is a real argument for the address in the launcher — with multi-account
49
+ * slots, *which* account matters more than who, and two accounts can share a
50
+ * display name. It loses to two measurements. `.sam-launch` is capped at
51
+ * `min(14rem,100%)` in a header row that is the narrowest app's widest fixed
52
+ * row, and an address is materially longer than a name: `apps/roms`'s
53
+ * `__smoke/headerFit.spec.ts` found this control covering the page title by
54
+ * **79px at 320px**, starting at **x=-26**, with zero horizontal page overflow
55
+ * to report it. And the slot question is already answered INSIDE the panel, with
56
+ * more room to answer it in — the `Account N` badge and the "Also signed in
57
+ * here" rows, both of which carry the address per account.
58
+ *
59
+ * ── 🔴 What a consumer's test needs to know ─────────────────────────────────
60
+ * The panel is **not mounted until it is opened** (`{open && createPortal(…)}`),
61
+ * and when it is, it is portaled to `document.body` — outside whatever container
62
+ * the test framework rendered into. So, in a consuming app's test:
63
+ *
64
+ * - Before any click, a whole-page `queryByText(email)` asserts the **trigger**
65
+ * and nothing else. It is `null` whenever a name was passed, which is the
66
+ * assertion five app suites want.
67
+ * - After a click, the address is in `document.body` but not in RTL's
68
+ * container. `screen.*` queries reach it; `within(container)` does not.
69
+ * - Close the menu (or the element) before the test ends. Unmounting the React
70
+ * root takes the portal with it; abandoning an open one leaves the panel in
71
+ * `document.body` for the NEXT file in the same process, which surfaces as
72
+ * "found multiple elements" in a full-suite run only.
33
73
  */
34
74
  import { lazy, type ReactNode, Suspense, useEffect, useState } from "react";
35
75
  import { createPortal } from "react-dom";
@@ -170,11 +210,42 @@ export const STYLES = `
170
210
  border-radius:5px;padding:0 4px;margin-left:6px;vertical-align:1px}
171
211
  `;
172
212
 
213
+ /**
214
+ * What the launcher draws, and what the panel's first line repeats.
215
+ *
216
+ * 🔴 The fallback is HERE, once, rather than in each app's header. Every
217
+ * consumer had written some spelling of `user.displayName || user.email ||
218
+ * "Account"` at the call site, and a shared component whose label depends on
219
+ * five hand-copied expressions is a shared component in name only — `roms`'s
220
+ * spelling reached for a field its own test fixture did not set, so the header
221
+ * drew the address and nothing could tell that apart from a deliberate choice.
222
+ *
223
+ * Pure and exported so the rule is assertable without a DOM, and so an app that
224
+ * needs the same string elsewhere (a greeting, a page title) gets the same
225
+ * answer instead of a sixth spelling.
226
+ *
227
+ * `"Account"` last because the launcher is never blank: a circle with a caret
228
+ * and no word is a control that does not say what it opens.
229
+ */
230
+ export function accountLabel(name?: string | null, email?: string | null): string {
231
+ return name?.trim() || email?.trim() || "Account";
232
+ }
233
+
173
234
  export interface AccountMenuProps {
174
- /** What to call the signed-in person — `user.name || user.email`. */
175
- name: string;
235
+ /**
236
+ * What to call the signed-in person — `user.displayName`, as `SatelliteUser`
237
+ * spells it, or `user.name` off the wire.
238
+ *
239
+ * Optional: pass it straight through, undefined and all, and the menu falls
240
+ * back to `email` and then to `"Account"` itself ({@link accountLabel}). A
241
+ * caller that still passes `name={user.displayName || user.email}` gets the
242
+ * identical result — the fallback is idempotent — so this widened rather than
243
+ * broke.
244
+ */
245
+ name?: string;
176
246
  /** Shown under the name in the panel when it adds something the name does
177
- * not already say (i.e. skipped when it IS the name). */
247
+ * not already say (i.e. skipped when it IS the label). Never drawn in the
248
+ * launcher — see the trigger section in this file's header. */
178
249
  email?: string;
179
250
  /**
180
251
  * The accounts origin the SERVER advertises (`session.accountsUrl`).
@@ -393,7 +464,7 @@ function AccountAvatar({
393
464
  accountsUrl,
394
465
  userId,
395
466
  }: {
396
- name: string;
467
+ name?: string;
397
468
  email?: string;
398
469
  accountsUrl?: string | null;
399
470
  userId?: string;
@@ -448,6 +519,8 @@ export function AccountMenu({
448
519
  // The dim behind the panel — shared with the app switcher it sits beside, so the two
449
520
  // cannot end up with different ideas of what "open over the page" looks like.
450
521
  useScrim(open, close, dark);
522
+ /** The one string this menu calls the account, everywhere it names it. */
523
+ const label = accountLabel(name, email);
451
524
  const sso = Boolean(accountsUrl);
452
525
  const browser = useBrowserAccounts(sessionPath, accounts, userId);
453
526
  /**
@@ -494,7 +567,7 @@ export function AccountMenu({
494
567
  onDismiss={() => setNotice(null)}
495
568
  {...(accountsUrl ? { accountsUrl } : {})}
496
569
  {...(startPath ? { startPath } : {})}
497
- signedInAs={name}
570
+ signedInAs={label}
498
571
  />
499
572
  </Suspense>
500
573
  ) : null}
@@ -513,16 +586,17 @@ export function AccountMenu({
513
586
  // survived, in shared code, in nineteen app headers. The `aria-label`
514
587
  // above already carries the sentence for anyone who needs it, and the
515
588
  // visible name is the label for everyone else.
516
- aria-label={`Signed in as ${name}`}
589
+ aria-label={`Signed in as ${label}`}
517
590
  onClick={toggle}
518
591
  >
519
592
  <AccountAvatar
520
- name={name}
593
+ {...(name ? { name } : {})}
521
594
  {...(email ? { email } : {})}
522
595
  {...(accountsUrl ? { accountsUrl } : {})}
523
596
  {...(browser.userId ? { userId: browser.userId } : {})}
524
597
  />
525
- <span className="sam-who">{name}</span>
598
+ {/* 🔴 `label`, never `email`. The file header has the two measurements. */}
599
+ <span className="sam-who">{label}</span>
526
600
  <span className="sam-caret" aria-hidden="true">
527
601
  ▾
528
602
  </span>
@@ -551,21 +625,24 @@ export function AccountMenu({
551
625
  >
552
626
  <div className="sam-head">
553
627
  <AccountAvatar
554
- name={name}
628
+ {...(name ? { name } : {})}
555
629
  {...(email ? { email } : {})}
556
630
  {...(accountsUrl ? { accountsUrl } : {})}
557
631
  {...(browser.userId ? { userId: browser.userId } : {})}
558
632
  />
559
633
  <div className="sam-head-text">
560
634
  <div className="sam-name">
561
- {name}
635
+ {label}
562
636
  {/* Which of several accounts this tab is. Shown ONLY when there
563
637
  is more than one, because "Account 1" beside a lone name is
564
638
  a number that answers a question nobody asked — and hiding
565
639
  it is what keeps the single-account menu unchanged. */}
566
640
  {several ? <span className="sam-badge">Account {browser.slot + 1}</span> : null}
567
641
  </div>
568
- {email && email !== name ? <div className="sam-sub">{email}</div> : null}
642
+ {/* Against `label`, not against `name`: when the address IS the
643
+ label (no name to fall back from) this would otherwise print
644
+ it twice, one line under itself. */}
645
+ {email && email !== label ? <div className="sam-sub">{email}</div> : null}
569
646
  </div>
570
647
  </div>
571
648
  {children?.(close)}
@@ -684,7 +761,7 @@ export function AccountMenu({
684
761
  startSsoSignOut(signOutPath ? { signOutPath } : {});
685
762
  }}
686
763
  >
687
- {several ? `Sign out ${name}` : "Sign out"}
764
+ {several ? `Sign out ${label}` : "Sign out"}
688
765
  </button>
689
766
  ) : null}
690
767
  {/* The shared-machine exit, and ONLY when there is more than one
package/src/auth.ts CHANGED
@@ -294,11 +294,38 @@ export const MOCK_ADAPTER_IN_PRODUCTION =
294
294
  "A satellite that needs auth must not ship the mock — wire the real adapter first.";
295
295
 
296
296
  export interface MockAuthAdapterOptions {
297
- user?: SatelliteUser;
297
+ /**
298
+ * Who the mock is signed in as.
299
+ *
300
+ * 🔴 `name` is accepted as an alias for `displayName`, and it is not sugar —
301
+ * it closes a trap that cost the `roms` graduation a filed regression
302
+ * (2026-09-15). The WIRE calls this field `name` (`/api/auth/session`, and
303
+ * the retired `satellite-kit`'s user), while {@link SatelliteUser} calls it
304
+ * `displayName`; `mapSsoSession` below is where the two meet. So a fixture
305
+ * written from the wire shape — `{ id, name, email }` — is the natural thing
306
+ * to write, and TypeScript accepts it in SILENCE: `displayName` is optional,
307
+ * and excess-property checking does not reach a named const.
308
+ *
309
+ * The name was therefore dropped, `user.displayName` was `undefined`, and
310
+ * every header drawing `displayName || email` drew the **address**. That
311
+ * renders, looks deliberate, and is indistinguishable from a design decision
312
+ * — it was measured in `apps/roms` as a trigger reading
313
+ * `"PLplayer@cursedalchemy.com▾"` and filed against `AccountMenu`, which had
314
+ * been drawing the name it was given all along.
315
+ */
316
+ user?: SatelliteUser & { name?: string };
298
317
  /** Start signed out, to exercise the sign-in surface. Defaults to signed in. */
299
318
  initialStatus?: Extract<SatelliteAuthStatus, "authenticated" | "anonymous">;
300
319
  }
301
320
 
321
+ /** Fold the wire's `name` into `displayName`, preferring an explicit `displayName`. */
322
+ function mockUser(given: MockAuthAdapterOptions["user"]): SatelliteUser {
323
+ if (!given) return MOCK_USER;
324
+ const { name, ...rest } = given;
325
+ const displayName = rest.displayName ?? name;
326
+ return displayName ? { ...rest, displayName } : rest;
327
+ }
328
+
302
329
  /**
303
330
  * Development stand-in: authenticated immediately, no server involved.
304
331
  *
@@ -310,7 +337,7 @@ export interface MockAuthAdapterOptions {
310
337
  export function createMockAuthAdapter(options: MockAuthAdapterOptions = {}): AuthAdapter {
311
338
  if (isProductionRuntime()) throw new Error(MOCK_ADAPTER_IN_PRODUCTION);
312
339
 
313
- const user = options.user ?? MOCK_USER;
340
+ const user = mockUser(options.user);
314
341
  const startsSignedIn = options.initialStatus !== "anonymous";
315
342
 
316
343
  return {
@@ -21,6 +21,15 @@
21
21
  * runs the longer of the two, and there is no input that makes it exit early. It
22
22
  * also carries no node-builtin dependency, so the contract modules that both a
23
23
  * server and a browser bundle can reach may use it.
24
+ *
25
+ * ## Why it is on its own subpath — `cursedauth/constant-time` (2026-09-17)
26
+ *
27
+ * It sat in this `src/` for a month on no export subpath at all, so no consumer
28
+ * could reach it: `patterns`, `roms` and `vault` each ended up with a
29
+ * byte-identical copy of the file, which is the same three-copies arithmetic the
30
+ * paragraph above was written to stop — one layer out. Its own subpath rather
31
+ * than the root barrel, because the barrel reaches `bun:sqlite` and a caller that
32
+ * wants only this compare must not pull a database driver into its graph.
24
33
  */
25
34
 
26
35
  /**