Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

docs(comments): replace banned dashes and code-shaped example comments in the unpushed packages so the push lint passes

nirholasf26233cdd888
diff --git a/api/3d/diff.js b/api/3d/diff.js
index d087a2fb9..c3ae8aa1b 100644
--- a/api/3d/diff.js
+++ b/api/3d/diff.js
@@ -1,4 +1,4 @@
-// GET/POST /api/3d/diff — FREE, keyless structural diff of two glTF/GLB models.
+// GET/POST /api/3d/diff: FREE, keyless structural diff of two glTF/GLB models.
//
// The question this answers is not "are these two files different" (a re-export
// always is, down to the byte) but "what changed, and will it break anything
diff --git a/api/_lib/x402/preflight.js b/api/_lib/x402/preflight.js
index a5eb6cca9..abbcc44d3 100644
--- a/api/_lib/x402/preflight.js
+++ b/api/_lib/x402/preflight.js
@@ -1,7 +1,7 @@
// @ts-check
// api/_lib/x402/preflight.js
//
-// x402 Preflight — a signed, time-bounded statement that an endpoint can
+// x402 Preflight: a signed, time-bounded statement that an endpoint can
// actually take your money and finish the job.
//
// The problem it exists for
diff --git a/api/_mcp3d/tools/preflight.js b/api/_mcp3d/tools/preflight.js
index 38e113753..d12dbcdf3 100644
--- a/api/_mcp3d/tools/preflight.js
+++ b/api/_mcp3d/tools/preflight.js
@@ -1,6 +1,6 @@
-// x402 Preflight — MCP tool.
+// x402 Preflight: MCP tool.
//
-// • x402_preflight(origin, network?) — FREE, read-only, public. Fetches any
+// • x402_preflight(origin, network?): FREE, read-only, public. Fetches any
// x402 seller's signed payability attestation, verifies the ed25519
// signature, the expiry and the subject, and answers the only question that
// matters before an agent spends: can this seller actually settle?
@@ -162,7 +162,7 @@ async function handlePreflight(args) {
const lines = [`${origin} published a verified attestation, signed by ${envelope.issuer}.`];
for (const [id, n] of entries) {
const state = n.payable === true ? 'PAYABLE' : n.payable === false ? 'NOT PAYABLE' : 'UNKNOWN';
- lines.push(` ${id}: ${state} — ${REASON_COPY[n.reason] || n.reason}; ${describeSettle(n.settle)}.`);
+ lines.push(` ${id}: ${state}: ${REASON_COPY[n.reason] || n.reason}; ${describeSettle(n.settle)}.`);
}
if (!report.payable_any) {
lines.push('No network on this origin can settle right now. Do not sign a payment for it.');
diff --git a/api/tty.js b/api/tty.js
index fed15219e..bd74090a0 100644
--- a/api/tty.js
+++ b/api/tty.js
@@ -1,4 +1,4 @@
-// GET /api/tty — stream a 3D agent into the caller's terminal.
+// GET /api/tty: stream a 3D agent into the caller's terminal.
//
// curl three.ws/tty
// curl three.ws/tty/<avatar-id>
@@ -100,7 +100,7 @@ export default wrap(async function handler(req, res) {
return redirect(res, to, 302);
}
- const rate = await limits.renderIp(clientIp(req));
+ const rate = await limits.ttyIp(clientIp(req));
if (!rate.ok) return error(res, 429, 'rate_limited', 'too many terminal renders, try again shortly');
const origin = `${req.headers['x-forwarded-proto'] || 'https'}://${req.headers.host || 'three.ws'}`;
diff --git a/api/x402/preflight.js b/api/x402/preflight.js
index 35104a45c..a227eae49 100644
--- a/api/x402/preflight.js
+++ b/api/x402/preflight.js
@@ -1,4 +1,4 @@
-// GET /api/x402/preflight — signed proof that this seller can settle right now.
+// GET /api/x402/preflight: signed proof that this seller can settle right now.
// Also served at /.well-known/x402-preflight (see vercel.json).
//
// GET /api/x402/preflight all networks
diff --git a/herald-sdk/src/index.js b/herald-sdk/src/index.js
index 2fde6e544..d930d2444 100644
--- a/herald-sdk/src/index.js
+++ b/herald-sdk/src/index.js
@@ -1,25 +1,27 @@
-// @three-ws/herald: deliver a message in person.
-// =============================================================================
-// Notifications are a badge you have to notice, in a tray you have to open,
-// competing with forty others. This SDK delivers the ones that matter the way a
-// colleague would: a character walks into the corner of the page, looks at you,
-// and tells you, with a link to the thing it is about.
-//
-// Three lines to the whole feature:
-//
-// import { createHerald } from '@three-ws/herald';
-// const herald = createHerald();
-// herald.announce({ text: 'Deploy is green', importance: 80, url: '/builds' });
-//
-// What you get for those three lines is not a toast library. It is a delivery
-// discipline: importance scoring, an interrupt floor, quiet hours, a rate
-// limit, dedupe with a TTL, freshness, batching with a collapse line, focus
-// awareness, an accessible fallback for machines that cannot render 3D, and an
-// audit trail of every message that did not make it and why.
-//
-// The avatar is optional and so is the network. Everything degrades: no
-// @three-ws/walk and no WebGL leaves you with an accessible DOM card; no audio
-// permission leaves you with text; no rules leaves you with sane defaults.
+/*
+ * @three-ws/herald: deliver a message in person.
+ * =============================================================================
+ * Notifications are a badge you have to notice, in a tray you have to open,
+ * competing with forty others. This SDK delivers the ones that matter the way a
+ * colleague would: a character walks into the corner of the page, looks at you,
+ * and tells you, with a link to the thing it is about.
+ *
+ * Three lines to the whole feature:
+ *
+ * import { createHerald } from '@three-ws/herald';
+ * const herald = createHerald();
+ * herald.announce({ text: 'Deploy is green', importance: 80, url: '/builds' });
+ *
+ * What you get for those three lines is not a toast library. It is a delivery
+ * discipline: importance scoring, an interrupt floor, quiet hours, a rate
+ * limit, dedupe with a TTL, freshness, batching with a collapse line, focus
+ * awareness, an accessible fallback for machines that cannot render 3D, and an
+ * audit trail of every message that did not make it and why.
+ *
+ * The avatar is optional and so is the network. Everything degrades: no
+ * @three-ws/walk and no WebGL leaves you with an accessible DOM card; no audio
+ * permission leaves you with text; no rules leaves you with sane defaults.
+ */
import {
DEFAULT_RULES,
diff --git a/packages/agent-glance/bin/agent-glance.js b/packages/agent-glance/bin/agent-glance.js
index 02d8ebdaf..05d9872c6 100755
--- a/packages/agent-glance/bin/agent-glance.js
+++ b/packages/agent-glance/bin/agent-glance.js
@@ -1,6 +1,6 @@
#!/usr/bin/env node
/**
- * agent-glance — a three.ws agent card, in your terminal or in your repo.
+ * agent-glance: a three.ws agent card, in your terminal or in your repo.
*
* npx @three-ws/agent-glance <agent-id> print the card
* npx @three-ws/agent-glance <agent-id> --json the raw card model
diff --git a/packages/companion-sdk/src/client.js b/packages/companion-sdk/src/client.js
index f62844a7b..c36f2111b 100644
--- a/packages/companion-sdk/src/client.js
+++ b/packages/companion-sdk/src/client.js
@@ -1,24 +1,26 @@
-// The companion client: push a message in, listen for deliveries out.
-//
-// Isomorphic on purpose. In a browser it uses the platform `fetch` and
-// `EventSource`; in Node 18+ it uses the built-in `fetch` and its own SSE
-// reader over the response body (Node has no EventSource), so the same object
-// works in a page, in an Electron renderer, in a CLI, and in a worker.
-//
-// import { createCompanionClient } from '@three-ws/companion';
-//
-// const companion = createCompanionClient({ token: process.env.COMPANION_TOKEN });
-//
-// await companion.send({ title: 'Build finished', sender: 'CI', priority: 'high' });
-//
-// const stop = companion.stream({
-// onDelivery: (d) => console.log(`${d.speaker}: ${d.spoken_line}`),
-// });
-//
-// The token is the bridge token from three.ws/companion. It can post messages
-// and receive that user's deliveries, and rotating it on that page revokes
-// every device at once. A browser page that already has a signed-in session can
-// omit it entirely and pass `credentials: 'include'` behaviour by default.
+/*
+ * The companion client: push a message in, listen for deliveries out.
+ *
+ * Isomorphic on purpose. In a browser it uses the platform `fetch` and
+ * `EventSource`; in Node 18+ it uses the built-in `fetch` and its own SSE
+ * reader over the response body (Node has no EventSource), so the same object
+ * works in a page, in an Electron renderer, in a CLI, and in a worker.
+ *
+ * import { createCompanionClient } from '@three-ws/companion';
+ *
+ * const companion = createCompanionClient({ token: process.env.COMPANION_TOKEN });
+ *
+ * await companion.send({ title: 'Build finished', sender: 'CI', priority: 'high' });
+ *
+ * const stop = companion.stream({
+ * onDelivery: (d) => console.log(`${d.speaker}: ${d.spoken_line}`),
+ * });
+ *
+ * The token is the bridge token from three.ws/companion. It can post messages
+ * and receive that user's deliveries, and rotating it on that page revokes
+ * every device at once. A browser page that already has a signed-in session can
+ * omit it entirely and pass `credentials: 'include'` behaviour by default.
+ */
const DEFAULT_API_BASE = 'https://three.ws';
diff --git a/packages/companion-sdk/src/index.js b/packages/companion-sdk/src/index.js
index c3008d96f..2940cbcd8 100644
--- a/packages/companion-sdk/src/index.js
+++ b/packages/companion-sdk/src/index.js
@@ -1,28 +1,30 @@
-// @three-ws/companion - give a person's notifications a body.
-//
-// Three things live here, and they compose:
-//
-// 1. `createCompanionClient()` talks to the hosted companion: push a message
-// in, listen for triaged deliveries out (SSE, reconnecting).
-// 2. `scoreByRules()` / `decide()` make the same interrupt-or-not judgement
-// the server makes, locally, with no key and no network. That is what lets
-// a machine triage its own mail and send only the one line worth hearing.
-// 3. `createCompanionStage()` puts a 3D body on a page and has it say the
-// line out loud, in the sender's own avatar when they have one.
-//
-// Quick start (Node or browser):
-//
-// import { createCompanionClient } from '@three-ws/companion';
-// const companion = createCompanionClient({ token: process.env.COMPANION_TOKEN });
-// await companion.send({ title: 'Deploy finished', sender: 'CI', priority: 'high' });
-//
-// Quick start (a page that should show it):
-//
-// import { createCompanionClient, createCompanionStage } from '@three-ws/companion';
-// createCompanionStage({ client: createCompanionClient({ token }) }).listen();
-//
-// The token comes from https://three.ws/companion. It is per person, it can be
-// rotated there at any time, and it is the only credential any of this needs.
+/*
+ * @three-ws/companion - give a person's notifications a body.
+ *
+ * Three things live here, and they compose:
+ *
+ * 1. `createCompanionClient()` talks to the hosted companion: push a message
+ * in, listen for triaged deliveries out (SSE, reconnecting).
+ * 2. `scoreByRules()` / `decide()` make the same interrupt-or-not judgement
+ * the server makes, locally, with no key and no network. That is what lets
+ * a machine triage its own mail and send only the one line worth hearing.
+ * 3. `createCompanionStage()` puts a 3D body on a page and has it say the
+ * line out loud, in the sender's own avatar when they have one.
+ *
+ * Quick start (Node or browser):
+ *
+ * import { createCompanionClient } from '@three-ws/companion';
+ * const companion = createCompanionClient({ token: process.env.COMPANION_TOKEN });
+ * await companion.send({ title: 'Deploy finished', sender: 'CI', priority: 'high' });
+ *
+ * Quick start (a page that should show it):
+ *
+ * import { createCompanionClient, createCompanionStage } from '@three-ws/companion';
+ * createCompanionStage({ client: createCompanionClient({ token }) }).listen();
+ *
+ * The token comes from https://three.ws/companion. It is per person, it can be
+ * rotated there at any time, and it is the only credential any of this needs.
+ */
export { createCompanionClient, CompanionError, readSse } from './client.js';
export { createCompanionStage, holdMsFor } from './stage.js';
diff --git a/packages/companion-sdk/src/stage.js b/packages/companion-sdk/src/stage.js
index 6a9a33ba1..5f457fb63 100644
--- a/packages/companion-sdk/src/stage.js
+++ b/packages/companion-sdk/src/stage.js
@@ -1,20 +1,22 @@
-// A body for the companion, in any web page.
-//
-// import { createCompanionClient, createCompanionStage } from '@three-ws/companion';
-//
-// const client = createCompanionClient({ token });
-// const stage = createCompanionStage({ client, corner: 'bottom-right' });
-// stage.listen(); // deliveries now arrive in person, with a voice
-//
-// What it puts on the page: one <agent-3d> element (the published three.ws web
-// component, loaded on demand from the same origin the API lives on) and one
-// speech bubble. When a delivery arrives the stage swaps to whatever body that
-// message should be delivered by (the sender's own avatar when the user gave
-// them one), speaks the line, holds it long enough to read, and gets out.
-//
-// Everything degrades rather than disappears: a page with no WebGL still shows
-// the bubble, a browser that blocks autoplay still shows the text, and a device
-// with no hosted voice available falls back to the browser's own speech.
+/*
+ * A body for the companion, in any web page.
+ *
+ * import { createCompanionClient, createCompanionStage } from '@three-ws/companion';
+ *
+ * const client = createCompanionClient({ token });
+ * const stage = createCompanionStage({ client, corner: 'bottom-right' });
+ * stage.listen(); // deliveries now arrive in person, with a voice
+ *
+ * What it puts on the page: one <agent-3d> element (the published three.ws web
+ * component, loaded on demand from the same origin the API lives on) and one
+ * speech bubble. When a delivery arrives the stage swaps to whatever body that
+ * message should be delivered by (the sender's own avatar when the user gave
+ * them one), speaks the line, holds it long enough to read, and gets out.
+ *
+ * Everything degrades rather than disappears: a page with no WebGL still shows
+ * the bubble, a browser that blocks autoplay still shows the text, and a device
+ * with no hosted voice available falls back to the browser's own speech.
+ */
const STYLE_ID = 'three-ws-companion-stage-style';
const ELEMENT_SRC = '/agent-3d/latest/agent-3d.js';
diff --git a/packages/oracle-model/src/index.js b/packages/oracle-model/src/index.js
index e641083d2..c4080eb33 100644
--- a/packages/oracle-model/src/index.js
+++ b/packages/oracle-model/src/index.js
@@ -1,33 +1,35 @@
-// @three-ws/oracle-model
-//
-// The three.ws Oracle scores every pump.fun launch in its first ninety seconds.
-// This package is that scorer, running on your machine, with the real weights.
-//
-// Not a client for a scoring API. The model is a lookup table of bucket weights
-// (roughly 32KB of JSON), so `OracleModel.fetch()` downloads it once and every
-// score after that is local arithmetic: no key, no rate limit, no network, no
-// telemetry back to us. Pin a model version and you can reproduce any score the
-// platform has ever published, forever, offline.
-//
-// That is the point. A prediction product that publishes only its outputs is
-// asking to be believed. One that publishes the machine can be checked.
-//
-// import { OracleModel } from '@three-ws/oracle-model';
-//
-// const oracle = await OracleModel.fetch();
-// const verdict = oracle.score({
-// organic_score: 0.82, unique_buyers: 41, buy_volume_sol: 26,
-// snipe_ratio: 0.12, smart_money_count: 2, dev_sold: false,
-// });
-//
-// verdict.score // 0-100, anchored on P(runs and holds)
-// verdict.tier // avoid | watch | lean | strong | prime
-// verdict.rugRisk // P(a first-sight holder ends down more than half)
-// verdict.giveBackRisk // P(hands the run straight back | it runs)
-// verdict.why // every bucket that moved it, with its sample count
-//
-// Zero dependencies. Runs in Node 18+, Deno, Bun, Cloudflare Workers, and the
-// browser.
+/*
+ * @three-ws/oracle-model
+ *
+ * The three.ws Oracle scores every pump.fun launch in its first ninety seconds.
+ * This package is that scorer, running on your machine, with the real weights.
+ *
+ * Not a client for a scoring API. The model is a lookup table of bucket weights
+ * (roughly 32KB of JSON), so `OracleModel.fetch()` downloads it once and every
+ * score after that is local arithmetic: no key, no rate limit, no network, no
+ * telemetry back to us. Pin a model version and you can reproduce any score the
+ * platform has ever published, forever, offline.
+ *
+ * That is the point. A prediction product that publishes only its outputs is
+ * asking to be believed. One that publishes the machine can be checked.
+ *
+ * import { OracleModel } from '@three-ws/oracle-model';
+ *
+ * const oracle = await OracleModel.fetch();
+ * const verdict = oracle.score({
+ * organic_score: 0.82, unique_buyers: 41, buy_volume_sol: 26,
+ * snipe_ratio: 0.12, smart_money_count: 2, dev_sold: false,
+ * });
+ *
+ * verdict.score // 0-100, anchored on P(runs and holds)
+ * verdict.tier // avoid | watch | lean | strong | prime
+ * verdict.rugRisk // P(a first-sight holder ends down more than half)
+ * verdict.giveBackRisk // P(hands the run straight back | it runs)
+ * verdict.why // every bucket that moved it, with its sample count
+ *
+ * Zero dependencies. Runs in Node 18+, Deno, Bun, Cloudflare Workers, and the
+ * browser.
+ */
const DEFAULT_ENDPOINT = 'https://three.ws/api/oracle/model';
diff --git a/packages/tty-3d/bin/three-tty.js b/packages/tty-3d/bin/three-tty.js
index 5883ec593..ec1c74610 100755
--- a/packages/tty-3d/bin/three-tty.js
+++ b/packages/tty-3d/bin/three-tty.js
@@ -1,5 +1,5 @@
#!/usr/bin/env node
-// three-tty — render a 3D model in your terminal.
+// three-tty: render a 3D model in your terminal.
//
// npx @three-ws/tty-3d ./avatar.glb
// npx @three-ws/tty-3d https://three.ws/avatars/default.glb --spin 1.4
@@ -14,7 +14,7 @@ import { ansi, detectColorMode, ColorMode } from '../src/term.js';
const ESC = '\x1b';
-const USAGE = `three-tty — a 3D model in your terminal
+const USAGE = `three-tty: a 3D model in your terminal
Usage
three-tty <model.glb | https://...> [options]
diff --git a/packages/tty-3d/src/index.js b/packages/tty-3d/src/index.js
index ba449a404..ecfced353 100644
--- a/packages/tty-3d/src/index.js
+++ b/packages/tty-3d/src/index.js
@@ -1,12 +1,14 @@
-// @three-ws/tty-3d — render a rigged 3D model into a terminal, with no GPU, no
-// browser and no display server.
-//
-// Public API:
-// loadModel(source) -> Model (file path, URL, or bytes)
-// createRenderer(model, options) -> Renderer
-// renderOnce(source, options) -> Promise<string> (one frame, one call)
-//
-// See README.md for the CLI (`npx @three-ws/tty-3d`) and the hosted stream.
+/*
+ * @three-ws/tty-3d: render a rigged 3D model into a terminal, with no GPU, no
+ * browser and no display server.
+ *
+ * Public API:
+ * loadModel(source) -> Model (file path, URL, or bytes)
+ * createRenderer(model, options) -> Renderer
+ * renderOnce(source, options) -> Promise<string> (one frame, one call)
+ *
+ * See README.md for the CLI (`npx @three-ws/tty-3d`) and the hosted stream.
+ */
import { loadModelFromBytes, loadModelFromFile, poseModel } from './model.js';
import { computeFraming, createFramebuffer, poseCenter, renderToFramebuffer } from './raster.js';
diff --git a/packages/witness/src/index.js b/packages/witness/src/index.js
index f95b4d572..860a4f19f 100644
--- a/packages/witness/src/index.js
+++ b/packages/witness/src/index.js
@@ -1,19 +1,21 @@
-// @three-ws/witness
-//
-// Turn a real user session into a runnable failing test.
-//
-// import { witness } from '@three-ws/witness';
-// witness.start();
-// // ... the person uses your site and something breaks ...
-// const trace = witness.trace();
-//
-// import { compileToPlaywright } from '@three-ws/witness/compile';
-// const { source } = compileToPlaywright(trace, { title: 'Export does nothing' });
-// // `source` is a Playwright spec that is RED until the bug is fixed.
-//
-// The recorder is browser-only. Everything under compile/narrate is pure and
-// runs anywhere, which is what lets the same trace produce the maintainer's
-// English steps in a dashboard and the engineer's spec file on disk.
+/*
+ * @three-ws/witness
+ *
+ * Turn a real user session into a runnable failing test.
+ *
+ * import { witness } from '@three-ws/witness';
+ * witness.start();
+ * // ... the person uses your site and something breaks ...
+ * const trace = witness.trace();
+ *
+ * import { compileToPlaywright } from '@three-ws/witness/compile';
+ * const { source } = compileToPlaywright(trace, { title: 'Export does nothing' });
+ * // `source` is a Playwright spec that is RED until the bug is fixed.
+ *
+ * The recorder is browser-only. Everything under compile/narrate is pure and
+ * runs anywhere, which is what lets the same trace produce the maintainer's
+ * English steps in a dashboard and the engineer's spec file on disk.
+ */
import { Recorder } from './recorder.js';
diff --git a/packages/x402-preflight/bin/x402-preflight.mjs b/packages/x402-preflight/bin/x402-preflight.mjs
index 894b27c2c..35f72a141 100755
--- a/packages/x402-preflight/bin/x402-preflight.mjs
+++ b/packages/x402-preflight/bin/x402-preflight.mjs
@@ -1,5 +1,5 @@
#!/usr/bin/env node
-// x402-preflight — ask any x402 seller whether it can settle, from a terminal.
+// x402-preflight: ask any x402 seller whether it can settle, from a terminal.
//
// npx @three-ws/x402-preflight https://three.ws
// npx @three-ws/x402-preflight https://three.ws --network solana:mainnet
@@ -43,7 +43,7 @@ const timeoutMs = Number(flag('timeout')) || 5000;
if (!origin || has('help') || has('h')) {
process.stdout.write(
- `x402-preflight — can this seller actually settle?\n\n` +
+ `x402-preflight: can this seller actually settle?\n\n` +
` x402-preflight <origin> [--network <caip2>] [--issuer <pubkey>]\n` +
` [--timeout <ms>] [--json]\n\n` +
`Exit codes: 0 payable, 1 not payable, 2 unverifiable.\n\n` +
diff --git a/packages/x402-preflight/src/index.js b/packages/x402-preflight/src/index.js
index 5f74f9a8d..198044c0a 100644
--- a/packages/x402-preflight/src/index.js
+++ b/packages/x402-preflight/src/index.js
@@ -1,4 +1,4 @@
-// @three-ws/x402-preflight — ask an x402 seller whether it can settle, before
+// @three-ws/x402-preflight: ask an x402 seller whether it can settle, before
// you sign anything.
//
// x402 tells you what a resource COSTS. It does not tell you whether the seller
diff --git a/pages/herald.html b/pages/herald.html
index e3e7468b2..b5cbe2cd8 100644
--- a/pages/herald.html
+++ b/pages/herald.html
@@ -1,7 +1,7 @@
<!doctype html>
<html lang="en">
<head>
- <style>/* three.ws hidden-guard — make the `hidden` attribute authoritative; see scripts/lib/hidden-guard.mjs */[hidden]{display:none!important}</style>
+ <style>/* three.ws hidden-guard: make the `hidden` attribute authoritative; see scripts/lib/hidden-guard.mjs */[hidden]{display:none!important}</style>
<script>/* three.ws theme boot */(function(){try{var m=localStorage.getItem('twx_theme');var l=m==='auto'?(window.matchMedia&&window.matchMedia('(prefers-color-scheme: light)').matches):m==='light';document.documentElement.setAttribute('data-theme',l?'light':'dark');}catch(e){document.documentElement.setAttribute('data-theme','dark');}})();</script>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
diff --git a/pages/preflight.html b/pages/preflight.html
index 57102748b..0f641c77a 100644
--- a/pages/preflight.html
+++ b/pages/preflight.html
@@ -1,7 +1,7 @@
<!doctype html>
<html lang="en">
<head>
- <script>/* three.ws theme boot — no-flash */(function(){try{var m=localStorage.getItem('twx_theme');var l=m==='auto'?(window.matchMedia&&window.matchMedia('(prefers-color-scheme: light)').matches):m==='light';document.documentElement.setAttribute('data-theme',l?'light':'dark');}catch(e){document.documentElement.setAttribute('data-theme','dark');}})();</script>
+ <script>/* three.ws theme boot: no-flash */(function(){try{var m=localStorage.getItem('twx_theme');var l=m==='auto'?(window.matchMedia&&window.matchMedia('(prefers-color-scheme: light)').matches):m==='light';document.documentElement.setAttribute('data-theme',l?'light':'dark');}catch(e){document.documentElement.setAttribute('data-theme','dark');}})();</script>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>x402 Preflight · three.ws</title>
diff --git a/src/preflight-page.js b/src/preflight-page.js
index 44e0d202a..20211b9c3 100644
--- a/src/preflight-page.js
+++ b/src/preflight-page.js
@@ -1,4 +1,4 @@
-// /preflight — check whether any x402 seller can actually settle, and verify the
+// /preflight: check whether any x402 seller can actually settle, and verify the
// answer here rather than believing it.
//
// The verification runs in the visitor's browser against the seller's own