Skip to content

Add Biome and put your machine first on download - #9

Merged
v0id-user merged 29 commits into
mainfrom
claude/adoring-goldberg-9ylfry
Nov 29, 2026
Merged

v0id-user merged 29 commits into
mainfrom
claude/adoring-goldberg-9ylfry

Conversation

@v0id-user

@v0id-user v0id-user commented Nov 29, 2026 •

Copy link
Copy Markdown
Member

Formatter

  • biome.json and .editorconfig carry hermitbox's settings: two spaces, 80 columns (Biome's default), single quotes, no semicolons, organised imports and the recommended rules. Biome 2.6.9 (MIT OR Apache-2.0) is pinned as a dev dependency and recorded in docs/decisions.md.
  • bun run check starts with biome ci ., and bun run lint runs biome check ..
  • The reformat is in its own commits (Reformat the tree with Biome, then Reformat the tree at 80 columns after the width moved to 80): only biome format and import sorting. The built pages are byte-identical to main's, except that Biome writes the font shorthand as 13px / 16px instead of 13px/16px, which CSS reads the same way.
  • The lint fixes are a separate commit:
    • the download Worker's escape helper, which shadowed the global, is renamed;
    • Cursor's ${userHome} is marked as Cursor's own variable;
    • the unused-import and unused-variable rules are off for .astro files, since Biome reads only their frontmatter and misses the template that uses them.
  • Nine CSS specificity-order warnings remain. They are warnings: reordering those rules could change which one wins.

Toolchain at its newest releases

Each version was checked against its registry on 2026-11-29 and is pinned exactly:

  • Biome 2.6.9; its config is migrated to the preset form.
  • TypeScript 7.0.2, which compiles the site with no errors.
  • Astro 7.4.13.
  • Cloudflare's Workers types 5.20261129.1 and Bun's types 1.4.5.
  • Bun 1.4.5, in packageManager and the Preview job.

Wrangler 4.169.0 and the pinned actions (checkout v7.0.1, setup-bun v2.2.0) were already the newest. docs/decisions.md records each version and licence.

Fixes for what Biome 2.6.9 reports:

  • LICENSE.md stays out of its new Markdown formatting.
  • The [hidden] rule drops !important, since its selector already beats the design system's.
  • One import order is fixed.

CI

The Preview job gated checkout, install and bun run check on the preview token. That secret isn't set, so CI never ran the check. Now only the upload waits for the token, so Biome, the typecheck, the build, its checks and the tests run on every pull request from this repository, in the same job. The check builds before it tests, because the download tests read the built page. This adds about a minute to the job.

/download/ puts your machine first

  • src/lib/machine.ts detects the platform and cpu from navigator.userAgentData.getHighEntropyValues. When that is missing or refused, it falls back to navigator.platform and the user agent.
  • That platform's card moves first and is marked "Your machine", and it shows the download for its cpu.
  • A Mac with no cpu answer shows both dmgs, because Safari reports Apple silicon as Intel.
  • Phones, tablets, ChromeOS and failed detection keep today's order. A browser without JavaScript also sees today's page.
  • Each platform builds a button per cpu, with the alternates hidden until detection picks one. Where a platform has more than one, each button names its architecture.

How it was checked

  • bun run check passes: Biome, tsc, the build and its checks, and 27 tests, including 10 new ones in test/machine.test.ts. Those use real user agents, refused hints, an iPad asking for the desktop site, Android and ChromeOS.
  • actionlint passes on preview.yml.
  • In Chromium, against the built page:
    • Linux puts Linux first, marked.
    • Safari on a Mac puts macOS first with both dmgs; with a manifest that publishes both, each button links its own file.
    • A phone keeps the built order.

Generated by Claude Code

Adds the front page, the desktop download page, /agents/, llms.txt and
llms-full.txt as an Astro static build, served by the hermitbox-site Worker.
Every page carries the agent panel. The design system is vendored unchanged
and pinned by digest.
Copy buttons use their own handler instead of the design system's
bindCopy, which reports success when the clipboard refuses. On a refusal
the full text is shown, selected, to copy by hand.
…ermitbox/site into claude/adoring-goldberg-9ylfry

# Conflicts:
#	docs/decisions.md
#	scripts/check-build.ts
#	src/components/AgentPanel.astro
#	src/components/AgentSteps.astro
#	src/layouts/Page.astro
#	src/pages/agents.astro
preview.yml uploads a preview version of hermitbox-site for each pull request from this repository (never a deploy), records its commit for the preview router, and keeps one comment with pr-<n>-site.priv.hbx.sh and <commit>-site.priv.hbx.sh. It does nothing until the CLOUDFLARE_PREVIEW_TOKEN secret exists. preview_urls is on.
The copy-prompt is shorter and on separate lines, the same as the README and the docs. The front page's lead is one sentence, its quickstart is spaced and formatted in TypeScript and Python, and its steps are shorter. llms-full.txt shows the prompt as a text block.
Linux (x86_64 or aarch64) under every install panel; 'or add to your agent' with no ChatGPT button (its /agents/ section says why); the VM example names an image; no shell prompt before TypeScript; the front page's quickstart in matching, commented TypeScript and Python; plainer lines across the front page, /agents/ and /download/; the root note once on /agents/; llms-full.txt without a dated status; the README's stale preview note.
wrangler.toml takes hermitbox.dev and www.hermitbox.dev as custom
domains. The Worker sends www to the same path on the apex with a 301;
test/worker.test.ts covers the redirect and the noindex header.
Without script, an agent target opens its section on
docs.hermitbox.dev/agents/, and each dialog's All agents link goes
there too. The VS Code id becomes vs-code, the docs page's anchor.
The download page and llms-full.txt named hermitbox/hermitbox's
deploy/release-keys.pem as the desktop signing key. Both now read one
set of constants in src/lib/downloads.ts: keys/desktop-release.pem in
hermitbox/desktop, its raw URL, the copy each version carries on
dl.hbx.sh, and the check commands (signature first, then the SHA-512).
A test fails if either surface names the daemon key again.
Headings lose their closing periods and say what the section is:
Isolated by tier, Isolation tiers, Six lifecycle verbs, Run and delete
it. The desktop eyebrow reads Hermitbox Desktop, the host paragraph
is split into shorter sentences, and the prompt in front of the tier
command can no longer be selected and copied.
The page description no longer lists ChatGPT among the clients that
connect through hermitbox mcp. The h1 loses its closing period, each
client is an h3 under Set up by client, and llms-full.txt fences
Cursor's server config as json. Copilot's step names Hermitbox.
The eyebrow reads Hermitbox Desktop and headings lose their closing
periods. Platform names are h2, and the unsigned-builds section is
shorter, with an h3 for macOS, Windows and Linux in place of bold
lead-ins. The Linux line says x86_64 or aarch64, no root, no Docker.
The summary is three shorter sentences, the install line says no root
and no Docker, and llms-full.txt lists desktop files under Linux,
macOS and Windows instead of their lowercase ids.
Footer column labels are h2 in sentence case (Product, Build, For
agents) instead of lowercase h4s after the page's h1, styled as
before. The 404 h1 loses its closing period, and the agent panel's
prompt sign can no longer be selected and copied.
The README links hermitbox/hermitbox and docs.hermitbox.dev, and each
command in its setup block has a sentence above it instead of a
trailing comment. It names the desktop release key in downloads.ts.
Adds biome.json and .editorconfig with hermitbox's settings, Biome 2.4.8 pinned as a dev dependency, and biome ci at the start of bun run check, which the Preview job runs. bun run lint runs biome check. Records Biome in docs/decisions.md.
Only biome format and Biome's import sorting; nothing else changes.
Renames the download worker's escape helper, which shadowed the global. Marks Cursor's own variable in its config string. Turns off the unused-import and unused-variable rules for .astro files, since Biome sees only their frontmatter and not the template that uses them. Uses Biome's folder form for the ignored paths. The CSS specificity-order warnings stay as warnings: reordering the rules could change which one wins.
Checkout, setup, install and bun run check ran only when the preview token was set, and it isn't yet, so CI never ran Biome or the tests. Only the upload waits for the token now. The check builds before it tests, since the download tests read the built page.
src/lib/machine.ts detects the platform and cpu from the client hints (getHighEntropyValues), falling back to navigator.platform and the user agent. The page moves that platform's card first, marks it Your machine and shows the button for its cpu. A Mac with no cpu answer shows both dmgs, since Safari reports Apple silicon as Intel. Phones, tablets, ChromeOS and no answer keep the built order. Each file gains its cpu; each platform builds a button per cpu, the alternates hidden until detection picks them.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-29T03:09:25.606175Z f400785 New commits
🔒 Security Review ✅ Completed 2026-11-29T03:11:21.663003Z f400785 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Biome's default, so code wraps to readable lines rather than filling the width. The other settings stay.
Only biome format; nothing else changes.
Biome 2.6.9 (config migrated: linter preset), TypeScript 7.0.2, Astro 7.4.13, @cloudflare/workers-types 5.20261129.1, @types/bun 1.4.5 and Bun 1.4.5 in packageManager and the Preview job. Wrangler 4.169.0 and the pinned actions are already the newest. Fixes what Biome 2.6.9 reports: the Cursor suppression sits on its line again, the hidden rule drops !important (its selector already wins), Page.astro's imports are sorted, and LICENSE.md stays out of Biome's new Markdown formatting. docs/decisions.md records each version and licence.
@v0id-user
v0id-user merged commit 354b616 into main Nov 29, 2026
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants