Skip to content

Bump dependencies; tighten tooling, hooks, and fonts - #32

Merged
CS-5 merged 5 commits into
stagingfrom
claude/epic-edison-d71lmt
Nov 8, 2026
Merged

CS-5 merged 5 commits into
stagingfrom
claude/epic-edison-d71lmt

Conversation

@CS-5

@CS-5 CS-5 commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

Summary

Five commits, each one self-contained. Review them one at a time.

1. Bump dependencies, toolchain, and CI actions

Every dependency moves to its latest release that has cleared the repo's 7-day release-age gate.

  • npm: astro 7.4.4, cn 0.5.1, satteri 0.11.6, satori 0.63.2, eslint 10.14, typescript-eslint 8.72.1, knip 6.44.1, wrangler 4.156.0, and the rest.
  • mise: node 26.13.0, pnpm 12.17.0, hk 2.11.0 (the package URLs in hk.pkl follow), agent-browser 0.41.1.
  • CI: jdx/mise-action v5 with mise 2026.10.25, actions/upload-artifact v7.
  • Held back:
    • TypeScript stays on 6.0.3, because @astrojs/check still peers ^5 || ^6.
    • Lighthouse CI stays on 0.15.1, because 0.16.0 is under 7 days old.

2. Claude hooks through mise; toolchain installed in cloud sessions

  • Hooks call mise x -- hk …. Claude Code runs hooks in a plain sh where mise may not be activated, which surfaced as hk: not found.
  • The end-of-turn hook is hk's own hk agent stop-hook, run with HK_PROFILE=slow. The custom calendar, astro and knip steps declare their command effects (CommandSpec) so that --safe accepts them.
  • New SessionStart hook, cloud sessions only (CLAUDE_CODE_REMOTE).
    • It runs mise install --locked and pnpm install, then adds mise's environment to CLAUDE_ENV_FILE.
    • --locked never writes to mise.lock, so it doesn't need the musl download host.
  • pnpm dev sets ASTRO_DEV_BACKGROUND=0. Astro 7 detaches into the background when an agent runs it, and that exit stopped wrangler, which left /api with nothing behind it.

3. Tighten lint and typecheck coverage

  • eslint-plugin-jsx-a11y-x replaces eslint-plugin-jsx-a11y. eslint-plugin-astro loads either, and the fork supports ESLint 10, so the peer override goes. That also removes about 1.2k lockfile lines of polyfills.
  • @eslint/js recommended is added, because no-fallthrough, no-unsafe-finally and the other core rules were unset.
  • perfectionist now sorts named imports, named exports, and export statements. The 7 files it reordered are import-order changes only.
  • The functions/ and tools/ tsconfigs gain the strictest options they were missing: noImplicitReturns, noUnused*, and allowUnreachableCode/allowUnusedLabels set to false.

4. Lint the workflows and config, and harden installs

  • New hk steps:
    • actionlint on the workflows, with actionlint pinned and locked through mise;
    • mise fmt --check on mise.toml.
  • CI runs hk validate --deny-warnings.
  • pnpm sets trustPolicy: no-downgrade. A fully fresh resolution with it on succeeds.
  • CI caches mise's checksum-verified download store instead of the installed tools, which mise would otherwise trust as is.
  • mise's postinstall hook calls hk through mise x.

5. Web fonts through Astro's Fonts API

  • What changes:
    • The local provider declares the same font files at the same weights and unicode ranges.
    • Astro generates the metric-matched Arial fallbacks. Its override percentages are identical to the hand-computed ones they replace.
    • tokens.css, which the wiki and apps share, is unchanged; fonts.css now points the --sc2-font-* tokens at Astro's variables.
  • Two trade-offs:
    • The generated fallbacks name only local("Arial"); the old ones also listed Liberation Sans. Desktop Linux without Arial falls to the system font for glyphs Orbitron or Inter lack. Screenshots show this as a smaller ® in Orbitron headings and a different ≥. Mac and Windows are unchanged.
    • The @font-face CSS, about 3 KB, is now inline in each page instead of in the cached stylesheet.

Before merging

  • mise.lock is missing node 26.13.0's linux-*-musl entries. The sandbox could not reach unofficial-builds.nodejs.org. Run this locally and commit the result:
    mise lock -p linux-arm64-musl,linux-x64-musl node

Deferred

  • Upgrading mise.lock to format 4 (mise lock --upgrade) needs CI on mise 2026.11.1 or newer. That release is under 7 days old, so it can land from 2026-11-11.

Verification

  • pnpm check (every step, slow included): passes after each commit.
  • pnpm build, check:meta, check:events: pass. Commits 1–4 leave dist/ byte-identical.
  • Hooks: tested from a bare env -i sh, the way Claude Code runs them.
    • The edit hook fixes files.
    • The Stop hook passes when the tree is clean and blocks with a readable reason when a check fails.
    • SessionStart installs and exports the pinned toolchain, and does nothing outside cloud sessions.
  • pnpm dev with CLAUDECODE=1: astro and wrangler both stay up, and /api requests reach wrangler.
  • Fonts: full-page screenshots of the old and new builds differ only in the fallback glyphs described above.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LCXQj7eMWTgjvNoZTvCaLT

npm: every package to its latest release past the 7-day release-age gate,
except TypeScript, which stays on 6.x while @astrojs/check peers ^5 || ^6.

mise: node 26.13.0, pnpm 12.17.0, hk 2.11.0 (hk.pkl's package URLs follow),
agent-browser 0.41.1.

CI: jdx/mise-action v5 with mise 2026.10.25, actions/upload-artifact v7.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LCXQj7eMWTgjvNoZTvCaLT
…ions

The Claude Code hooks call hk through `mise x`, since hooks run in a plain
`sh` where mise may not be activated. The end-of-turn hook is now hk's own
`hk agent stop-hook` with the slow profile; the custom steps declare their
command effects so `--safe` accepts them. A SessionStart hook, in cloud
sessions only, runs `mise install --locked` and `pnpm install` and exports
mise's environment to later shell commands.

`pnpm dev` sets ASTRO_DEV_BACKGROUND=0: Astro 7 detaches into the
background when an agent runs it, and that exit stopped wrangler.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LCXQj7eMWTgjvNoZTvCaLT
- eslint-plugin-jsx-a11y-x replaces eslint-plugin-jsx-a11y; eslint-plugin-astro
  loads either, and the fork supports ESLint 10, so the peer override goes.
- @eslint/js recommended joins the typed configs: core rules such as
  no-fallthrough and no-unsafe-finally were unset.
- perfectionist sorts named imports and exports, and export statements.
- functions/ and tools/ tsconfigs gain the strictest options they lacked:
  noImplicitReturns, noUnusedLocals, noUnusedParameters,
  allowUnreachableCode and allowUnusedLabels false.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LCXQj7eMWTgjvNoZTvCaLT
- hk runs actionlint on the workflows (actionlint pinned through mise) and
  `mise fmt --check` on mise.toml; CI runs `hk validate --deny-warnings`.
- pnpm rejects a release with weaker provenance than an earlier version
  (`trustPolicy: no-downgrade`).
- CI caches mise's checksum-verified download store instead of the installed
  tools, which mise trusts as is.
- mise's postinstall hook calls hk through `mise x`, so it works where mise is
  not activated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LCXQj7eMWTgjvNoZTvCaLT
The faces come from the same committed files through the local provider,
at the same weights and unicode ranges, and Astro computes the text faces'
metric-matched Arial fallbacks, which replaces the hand-written
`@font-face` blocks and override percentages. The shared tokens keep the
plain family names; the site points them at the variables Astro emits.

The generated fallbacks name only local Arial, so desktop Linux without
Arial falls through to the system font before the swap.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LCXQj7eMWTgjvNoZTvCaLT
@CS-5 CS-5 changed the title Bump dependencies, toolchain, and CI actions Bump dependencies; tighten tooling, hooks, and fonts Nov 8, 2026
@CS-5
CS-5 changed the base branch from main to staging November 8, 2026 17:56
@CS-5
CS-5 merged commit d921597 into staging Nov 8, 2026
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