Skip to content

Upgrade Tasty to 3.14.0 and ESLint plugin to 1.12.0 - #175

Merged
tenphi merged 1 commit into
mainfrom
codex/upgrade-tasty-3-14
Oct 26, 2026
Merged

tenphi merged 1 commit into
mainfrom
codex/upgrade-tasty-3-14

Conversation

@tenphi

@tenphi tenphi commented Oct 26, 2026

Copy link
Copy Markdown
Owner

Upgrade Tasty from 3.11.2 to 3.14.0 and its ESLint plugin from 1.8.0 to 1.12.0. Use upstream mergeStyles argument validation instead of the duplicated helper registration, remove an obsolete module-scope lint suppression, and verify that base styles require default states while later arguments remain partial overrides.

Built-in themes need no configuration migration. Document custom-theme changes to color opacity composition, numeric alpha tokens, disabled spacing/size declarations, and working transition: "none" behavior. Include patch Changesets for the docs engine, renderer, and facade.

Validation on the current main baseline:

  • pnpm install --frozen-lockfile
  • pnpm test — builds both documentation apps; all 466 tests pass
  • pnpm lint — zero errors and warnings; changed files pass Prettier
  • pnpm -r run typecheck, pnpm check:types, and pnpm check:boundaries
  • pnpm check:theming and pnpm check:packages
  • pnpm check:browser — all 108 Chromium tests pass
  • pnpm check:install with npm and Yarn, including packed ESLint/oxlint exports and fixes

Local review of 015aca8..b5538b2: no findings. Entropy change: Neutral for runtime and consumer configuration; Slightly Decreased for lint setup because upstream now owns the merge argument signature. No exceptions or follow-ups required.

@tenphi
tenphi merged commit 2ab65d3 into main Oct 26, 2026
12 checks passed
@github-actions github-actions Bot mentioned this pull request Oct 26, 2026
tenphi pushed a commit that referenced this pull request Nov 23, 2026
tenphi/eslint-plugin-tasty#176 (fixing #174 and #175) makes
tasty-lint:check and the edit hook follow a lint config that loads the
plugin through a package in importSources, such as
@tenphi/cookbook/eslint-plugin, and oxlint.config.mjs; without eslint,
the hook now tells the agent once per session that it did not lint the
edit. Cookbook's validation config lists @tenphi/cookbook/styling in
importSources, so sites need no change.

Remove the --strict workaround from the lint patch, docs/agent-harness.md
and its AGENTS.md record, and say what the hook does without eslint.
These docs describe the plugin's next release; the next commit bumps
@tenphi/eslint-plugin-tasty to it, and PR #210 is not merged before.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Gr8S7G5oPdr674FRgPScx3
tenphi pushed a commit that referenced this pull request Nov 23, 2026
1.21.3 (tenphi/eslint-plugin-tasty#176) fixes #174 and #175:
tasty-lint:check and the edit hook follow a lint config set up through
@tenphi/cookbook/eslint-plugin or oxlint.config.mjs, and the hook tells
the agent once per session when eslint is missing. The previous commit
already dropped the --strict workaround; the harness changeset now says
what the release brings to Cookbook sites.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Gr8S7G5oPdr674FRgPScx3
tenphi added a commit that referenced this pull request Nov 23, 2026
…ts (#210)

* feat: ship an agent harness and split the docs for humans and AI agents

- Ship a harnesspm harness in @tenphi/cookbook. It extends the Tasty,
  Glaze and Tasty lint harnesses, adds a short Cookbook rule and a docs
  index (docs/llms.txt), and patches the upstream rules for a site.
  harness/dev.harnesspm/theme.mjs loads a site's docs.config.ts, so
  tasty:styles --setup and glaze:inspect see its tokens and palette.
- Export createColorTheme() from @tenphi/docs and configureTastyTheme()
  from @tenphi/renderer for that module; both are moved code.
- Use harnesspm in this repository: trust the upstream packages, patch
  their rules and Cookbook's rule for engine work, commit the lock and
  the workspace blocks, check them in CI and at prepack.
- Split the docs into For humans and For AI agents tabs, with new
  For AI agents, Ask your agent and Agent harness pages, and the same
  agent path in the translated pages.
- Generated sites point agents at the new start page and mention
  harnesspm; the upgrade skill syncs it.
- Order the published llms.txt like the sidebar, one section per tab.
- Bump Tasty to 3.19.1 and move the Tasty ESLint plugin to the catalog.

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

* chore: use the released harnesspm, Glaze and Tasty lint fixes

- harnesspm 0.9.2 skips links in code samples (tenphi/harnesspm#55), so the content-sources sample keeps its inline image.
- Glaze 3.1.1 resolves a package path in glaze:inspect (tenphi/glaze#117), so the patches name @tenphi/cookbook/harness/dev.harnesspm/theme.mjs in every layout.
- eslint-plugin-tasty 1.21.1 notes files in which tasty-lint:check found no styles (tenphi/eslint-plugin-tasty#167); the lint patch says so.
- AGENTS.md keeps only the two workarounds whose upstream issues are open.

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

* fix: address review round 1 on the agent harness and llms.txt

- llms.txt builds its sections from the default language's sidebar, as
  pages do, so translations go under Other pages and a URL-prefixed
  default locale keeps its order. Tested with both kinds of site.
- The lint advice works in sites from the project creator: build
  tasty.config.ts with createValidationConfig(docs.theme), so the site's
  palette names are known, and keep style modules in .js or .mjs files on
  TypeScript 7, which typescript-eslint does not support
  (tenphi/eslint-plugin-tasty#171).
- Upgrades with "pin" trust: the skill, the upgrade guide and the agent
  guide say that sync --check fails until a person runs approve.
- The agent guide says what to commit for a site in a folder of a larger
  repository (tenphi/harnesspm#62), and how "pin" trust works.
- The managed block sits at the top of AGENTS.md, as harnesspm status
  asks; AGENTS.md records the two new upstream workarounds.

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

* fix: address review round 2 on llms.txt sections and agent docs

- llms.txt lists each page under the tab that pages select for it, so
  top-level items that overlap a tab no longer claim its pages, and a
  tab's own page leads its section even when its items leave it out.
- One defaultLocaleKey() helper replaces five copies of the
  default-locale fallback.
- Docs: the hand-set-up agent snippet starts at agents.md; migration
  links to "Keep it current" instead of repeating it; the lint hook is
  Claude Code only; Yarn setup commands; tasty:styles does not check
  color or token names (tenphi/tasty#473), also in both Tasty patches;
  publishing.md keeps the llms.txt facts in one paragraph.

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

* fix: address review round 3 on agent docs and repository patches

- agent-harness.md says plainly that -C does not change the folder the
  theme module reads, and that a site using configFile gets the default
  theme; the module's notice says so too.
- The command that finds the installed docs lives only in agents.md;
  customization-rules.md links to it.
- The repository's Glaze patch points to the color-role rule under
  "Behavior layer", and its lint patch names every ignore AGENTS.md
  allows, including the legacy customization hooks.

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

* chore: use harnesspm 0.10.0 and drop the workarounds it fixes

- harnesspm 0.10.0 leaves a built, git-ignored docs folder out of sync
  (tenphi/harnesspm#54), so harnesspm.json no longer excludes
  cookbook:docs and sync no longer warns before a build.
- It replaces skills (tenphi/harnesspm#56): Cookbook's harness replaces
  Glaze's glaze-theme skill with the steps for a site's theme.brand and
  theme.palette, keeping the skill's name. The Glaze patch points at it,
  the repository's patch says it also holds for palette.ts, and a test
  checks that the upstream skill still exists under that name.
- It writes per-machine excludes for a project in a subfolder of a git
  repository (tenphi/harnesspm#62), so the agent guide drops its note
  on which files to commit there.

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

* fix: address review round 5 on the glaze-theme skill and monorepos

- The skill and the Glaze patch preview a brand with glaze:inspect and
  --color accent,focus, which shows what Cookbook derives from it; the
  glaze:color preview did not match any Cookbook role.
- harnesspm counts the replaced skill as Cookbook's file, so the docs say
  that trusting @tenphi/cookbook lets Claude Code run it without asking,
  and that a pinned Cookbook upgrade waits for approve.
- harnesspm applies a package's patches and replacements to every
  workspace that uses the patched package (tenphi/harnesspm#65). The
  facade's patches now keep the generic step and mark the Cookbook steps,
  the skill and the Glaze patch name Glaze's own skill for other Glaze
  code, and the monorepo paragraph and AGENTS.md record the workaround.
- The repository's Glaze patch keeps only the skill's writing steps for
  palette.ts and points to "Checking a theme".
- harnesspm before 0.10 warns on every sync; it does not keep Glaze's
  skill, as the docs said.

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

* fix: address review round 6 on sidebars, the Glaze patch and upgrades

- A navigation tab whose items are all drafts, or empty, no longer shifts
  the sidebar of every later tab: pageSidebar() hides drafts in each
  group and keeps every group in its place, so a tab's sidebarGroup
  index still points at its own group. New navigation test.
- The facade's Glaze patch keeps Glaze's generic guardrails unscoped
  (change the theme, not exported CSS; no hand-written dark or
  high-contrast values; fix every ✗ and warning), marks the Cookbook
  steps, and writes `npx harnesspm why`.
- The upgrade skill asks for approve when `sync --check` names a pinned
  package, Cookbook included: `sync` never lists a package that has no
  tools. It also looks for harnesspm.json at the repository root.

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

* fix: say that the skill's pointer to Glaze's own skill skips palette.ts

In this repository, the replaced glaze-theme skill sends other glaze()
code to Glaze's own skill, which describes palette.ts, while the
repository's Glaze patch says the skill's writing steps hold there. The
patch now says the pointer does not apply to palette.ts, and that only
the Cookbook pages the skill names are in docs/.

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

* fix: name the TypeScript 6 parser and complete the harnesspm#65 record

- The TypeScript 6 route for linting .ts style modules also needs
  @typescript-eslint/parser; the lint patch and the agent guide name it.
- AGENTS.md's harnesspm#65 record lists the repository Glaze patch's note
  on the skill's pointer, so it is dropped together with the pointer.

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

* docs: point deployment at the agent reading facts and record install size

- docs/deployment.md links straight to "Page text for readers and
  agents" for how agents read the published site, instead of the
  rewritten page for people.
- The eslint-plugin-tasty#171 record and the changeset say that npm
  sites on TypeScript 7 get a second nested copy of the lint plugin with
  TypeScript 6 (about 28 MB) under @tenphi/cookbook. The changeset also
  says the upgrade skill runs `sync --check`.

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

* docs: say that lint does not check theme.styles in docs.config.ts

The lint rules never read theme.styles or theme.recipes in
docs.config.ts, and neither cookbook doctor nor the build checks their
values. The facade's lint patch and the agent guide now say so and point
to tasty:styles and glaze:inspect --color for those objects, so an agent
on TypeScript 7 does not ask for TypeScript 6 to lint a file the rules
skip.

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

* docs: name theme.customStyles in the note on what lint skips

theme.customStyles is also a Tasty style object in docs.config.ts that the
lint rules never read and doctor checks only by name, so the lint patch
and the agent guide name it next to theme.styles and theme.recipes.

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

* chore: use the upstream fixes and drop the last three workarounds

- harnesspm 0.10.1 keeps a package's patches in the workspaces that use
  it and keeps the original skill when workspaces disagree
  (tenphi/harnesspm#65). The pointers to Glaze's own skill are gone; the
  Glaze patch and the agent guide now say where a site's agent finds
  Cookbook's skill when harnesspm keeps Glaze's. harnesspm.json gives
  this repository the facade's skill, so sync does not warn.
- Tasty 3.19.2's tasty:styles warns about color and token names the
  theme does not define (tenphi/tasty#473): the caveat in both Tasty
  patches and the agent guide is gone.
- eslint-plugin-tasty 1.21.2 lints TypeScript 7 files and no longer
  pulls in TypeScript 6 (tenphi/eslint-plugin-tasty#171): the .js/.mjs
  advice, the TypeScript 6 route and the install-size note are gone.
- AGENTS.md has no upstream workarounds left; the changesets name the
  new versions.

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

* docs: widen the skill pointer's condition and the lint setup note

- harnesspm keeps Glaze's own glaze-theme skill whenever another
  workspace gets Glaze's harness without Cookbook, also through a
  package such as UI Kit. The Glaze patch and the agent guide say so and
  give `npx harnesspm why glaze:skills/glaze-theme` as the check.
- With eslint-plugin-tasty 1.21.2, the lint tool and hook need only
  tasty.config.ts, so the agent guide no longer sends agents through the
  site's own ESLint setup first.

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

* feat: let tasty:styles know the tokens Cookbook's components define

Tasty 3.19.2's tasty:styles warns about color and token names the loaded
config does not define. Cookbook's components define some documented
names on their own roots, such as #callout-text or $copy-button-size, so
checking a theme.styles override reported correct names as missing.

- @tenphi/renderer lists those names in COMPONENT_TOKENS and exports
  declareComponentTokensForTools(), which adds them to Tasty's global
  styles with neutral values. A test keeps the list equal to the names
  the component style trees define. Builds never call it, so the CSS a
  site ships does not change.
- The harness's theme.mjs calls it after configureTastyTheme(). A test
  runs Tasty's own tasty:styles script: component names stay quiet and
  a typo still warns.
- The Tasty patches, the agent guide, AGENTS.md and the changeset say so.

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

* chore: use Glaze 3.2.0 and package its Markdown docs

Glaze 3.2.0 ships its docs as plain Markdown in harness/docs/ instead
of MDX in docs/. pack-docs now names each package's docs folder, maps
GitHub fallback links back to that folder, and keeps each Glaze page's
link to its live version on the Glaze site instead of turning it into
a link to itself. The customization guide and the changesets say so;
the lint plugin's 1.21.2 bump is already announced by main's changeset.

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

* docs: say that the lint tools need eslint, which Yarn does not install

The agent guide said the lint tool and edit hook need only
tasty.config.ts. They also need the eslint package, a peer of the lint
plugin. npm and pnpm install it with Cookbook; Yarn 4 does not, so in a
Yarn site tasty-lint:check stops and the edit hook lints nothing and
says nothing. The guide and Cookbook's lint patch now tell agents to add
eslint as a dev dependency in a Yarn site. The silent hook is reported
upstream as tenphi/eslint-plugin-tasty#174.

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

* fix: list every component token and document the lint config the tools miss

Round 15 review fixes:
- The COMPONENT_TOKENS test matched only quoted keys, so it missed the
  19 names Mermaid's style tree writes unquoted or with a leading
  underscore ($bg, $_line), and tasty:styles still warned on them. The
  test now matches both forms, the list has all 51 names, and the
  end-to-end test checks $bg and $_line.
- tasty-lint:check and the edit hook find a site's lint config only when
  it names @tenphi/eslint-plugin-tasty, not one set up through
  @tenphi/cookbook/eslint-plugin or oxlint.config.mjs as Custom
  components shows. The lint patch and the agent guide now send agents
  to --strict and the site's lint script; AGENTS.md records the removal
  condition (tenphi/eslint-plugin-tasty#175).
- docs/llms.txt points at Glaze's own docs index, new in Glaze 3.2.0.
- pack-docs no longer maps GitHub fallback links to Glaze's harness/docs,
  which is built at pack time and not in the repository.

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

* fix: keep palette twins reported and name the site's lint command

Round 16 review fixes:
- declareComponentTokensForTools() skips a $name whose #name is a
  built-in palette color. Mermaid's $surface and $border otherwise hid a
  $surface typed for #surface in any override, which renders a
  transparent fill. COMPONENT_TOKENS stays complete; the end-to-end test
  checks that $surface still warns.
- The lint note told agents to run the site's lint script, which neither
  the creator nor Custom components adds. It now names the site's own
  lint command and warns that a bare oxlint skips oxlint.config.mjs.

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

* docs: align the lint notes with what the tools do

Round 17 review fixes:
- The AGENTS.md record of the eslint-plugin-tasty#175 workaround still
  said the notes send agents to "the site's lint script"; round 16
  changed the notes to the site's own lint command.
- The facade lint patch said tasty-lint:check notes each file it found
  no styles in. It notes only the files named on the command line, so
  the patch now says so and asks agents to name the files they changed,
  as the agent guide already did.

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

* docs: give a contrast floor only to palette colors that must be read

Round 18 review fix: Cookbook's always-on Glaze patch said a new palette
role is a Glaze declaration "with base, tone and contrast". Read
literally, a decorative fill gets a floor too, and Glaze then moves it
to a mid-tone that passes every check. The patch now matches the
glaze-theme skill and the theme docs: an absolute tone or a base with a
tone step, and a contrast floor only when the color must be read.

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

* docs: say that a contrast floor needs a base

Round 19 review fix: the reworded Glaze patch offered an absolute tone
or a base as alternatives and then a contrast floor, so an agent could
write a floor without a base, which Glaze rejects ("contrast" without
"base"). A color that must be read now names its base and gets a floor
against it, as the glaze-theme skill says.

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

* docs: drop the lint-config workaround that eslint-plugin-tasty#176 fixes

tenphi/eslint-plugin-tasty#176 (fixing #174 and #175) makes
tasty-lint:check and the edit hook follow a lint config that loads the
plugin through a package in importSources, such as
@tenphi/cookbook/eslint-plugin, and oxlint.config.mjs; without eslint,
the hook now tells the agent once per session that it did not lint the
edit. Cookbook's validation config lists @tenphi/cookbook/styling in
importSources, so sites need no change.

Remove the --strict workaround from the lint patch, docs/agent-harness.md
and its AGENTS.md record, and say what the hook does without eslint.
These docs describe the plugin's next release; the next commit bumps
@tenphi/eslint-plugin-tasty to it, and PR #210 is not merged before.

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

* chore: use eslint-plugin-tasty 1.21.3

1.21.3 (tenphi/eslint-plugin-tasty#176) fixes #174 and #175:
tasty-lint:check and the edit hook follow a lint config set up through
@tenphi/cookbook/eslint-plugin or oxlint.config.mjs, and the hook tells
the agent once per session when eslint is missing. The previous commit
already dropped the --strict workaround; the harness changeset now says
what the release brings to Cookbook sites.

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

---------

Co-authored-by: Claude <[email protected]>
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.

1 participant