Skip to content

feat: ship a harness for coding agents, with uikit:colors - #1643

Merged
tenphi merged 29 commits into
mainfrom
claude/clever-lovelace-wz2ua2
Nov 16, 2026
Merged

tenphi merged 29 commits into
mainfrom
claude/clever-lovelace-wz2ua2

Conversation

@tenphi

@tenphi tenphi commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Describe changes

UI Kit now ships a harness for coding agents in harness/, inside the npm package, for projects that use harnesspm. It passes on the harnesses of Tasty, Glaze and, when the project installs it, the Tasty lint plugin. It adapts Tasty's and Glaze's with a patch each, and adds a tool built on Glaze's public measuring module. Everything is config: no build step writes harness files.

It pins @tenphi/glaze 3.1.0 and @tenphi/tasty 3.19.1, the releases that ship their harnesses (tenphi/glaze#113, tenphi/tasty#459, tenphi/tasty#462). Neither release changes library code, so styles and the palette resolve exactly as before. @tenphi/eslint-plugin-tasty ^1.19.0 is a new optional peer (tenphi/eslint-plugin-tasty#158).

harnesspm feature What UI Kit does with it
🔁 extends Passes on @tenphi/tasty and @tenphi/glaze: Tasty's styles rule, docs index and tasty:styles; Glaze's colors rule, docs index, glaze-theme skill and glaze:inspect / glaze:color / glaze:contrast. They reach apps that never depend on Tasty or Glaze directly.
🧹 extends an optional peer @tenphi/eslint-plugin-tasty. A project that installs the plugin gets its tasty-lint harness: a rule to lint the styles an agent changes, a page for every tasty/* rule, tasty-lint:check, and a Claude Code hook that lints each file the agent edits. harnesspm 0.2.0+ skips a missing optional peer quietly, so projects without the plugin see nothing.
🩹 patch Two sections. Glaze's "Where colors come from", which would otherwise send an app on UI Kit to make its own Glaze theme. Tasty's "Checking styles", which names UI Kit's setup and the app's own: tasty:styles '<json>' --setup @cube-dev/ui-kit/dist/components/Root.js, plus --setup <file> for each app module that calls configure(); in a monorepo, run it from the package.
📏 Rule uikit:rules/usage One short always-on rule (0.9 KiB): components first and read their page, Form.useController for new forms, Tasty with UI Kit's tokens, colors are #name palette tokens, never raw values.
📚 docs: "../src" The package ships the Storybook pages as they are (src/**/*.docs.mdx) plus the Modern Form guides, and harnesspm indexes them by their # titles: 127 pages, for the installed version. No docs build: prepare-docs.mjs, cleanup-docs.mjs and the prepack / postpack hooks are gone.
🔧 Script uikit:colors Looks up palette color tokens and their aliases by name, with values in light, dark and both high-contrast schemes and contrast against their base, measured by Glaze's public module @tenphi/glaze/harness/measure. With --on <token>, it also measures them on another surface, held to each token's own floor. It lists only colors, while Tasty tokens also cover sizes and presets, hence the name; glaze:color already names Glaze's one-color tool. It was called uikit:tokens in the agent runs below.

How it looks in an app that depends only on @cube-dev/ui-kit

## @tenphi/glaze 3.1.0 (via @cube-dev/ui-kit)
### Glaze colors (glaze:rules/colors)
#### Where colors come from
- In an app on UI Kit, colors are UI Kit palette tokens: follow the UI Kit rule.
- …

## @tenphi/tasty 3.19.1 (via @cube-dev/ui-kit)
### Tasty styles (tasty:rules/usage)
#### Writing styles
- Before you write or review styles, read `ai-agents.md` from the Tasty docs index.
- …
#### Checking styles
- To see the CSS that styles produce with UI Kit's units, presets and states, run `tasty:styles '<json>' --setup @cube-dev/ui-kit/dist/components/Root.js`, plus `--setup <file>` for each module of your app that calls `configure()`. In a monorepo, run it from the package whose styles you check.

## @cube-dev/ui-kit
### UI Kit (uikit:rules/usage)
- Style with Tasty (the `styles` prop and `tasty()`) and UI Kit's tokens, units and presets.
- Colors are UI Kit palette tokens, written `#name`, … Never paste raw `#rrggbb`, `rgb()` or `hsl()` values.
- To find a color token, run `uikit:colors <part of its name>`. …
- Docs: node_modules/.harnesspm/docs/uikit/llms.txt (uikit:docs)

🧹 The lint plugin's harness through UI Kit

Checked end to end on the packed build with harnesspm 0.3.0 and the plugin 1.19.0 from npm:

App Result
On UI Kit, without the plugin sync prints no warning; no tasty-lint section; harnesspm doctor: ✅ ready.
On UI Kit, with the plugin (tasty.config.ts: extends: '@cube-dev/ui-kit') The block gets tasty-lint:rules/usage, its docs index (45 rule pages) and tasty-lint:check. Trusted, .claude/settings.local.json gets the PostToolUse hook. tasty-lint:check src/Card.tsx reports a raw #ff6600 in a file that imports tasty from @cube-dev/ui-kit, through UI Kit's importSources. Fed a Claude Code Write event for that file, the hook exits 2 with the problem and its rule page, in 0.8 s.

The tool and the hook run the plugin through ESLint's API, so they need eslint installed, also in a project that lints with Oxlint. The Usage guide says so.

tasty:styles with UI Kit's and the app's config

Since Tasty 3.19.1 the tool renders with the copy of Tasty the --setup modules configure, and resolves package paths from the current package. In a pnpm monorepo shaped like Cube Cloud (three packages on this build, each with its own configure()):

Package Its Tasty The CSS uses
console 3.19.1 UI Kit's config (x = var(--gap), @dark, @hc, …) + console's (cw = 12px, @wide)
admin 3.19.1 UI Kit's config + admin's (cw = 10px, an admin-panel recipe)
legacy 3.18.0 its own 3.18.0, with a warning: the setups configure 2 copies of @tenphi/tasty (3.19.1 got Root.js, 3.18.0 got the app's setup), and the app runs both copies too

harnesspm wrote the shared UI Kit, Tasty and Glaze units once, in the root AGENTS.md, as spec 3.6 says.

uikit:colors

$ npx harnesspm run uikit:colors danger accent-text
token                                            light    dark     light HC  dark HC
#danger-accent-text                              #844947  #f69691  #462423   #fccac6
  vs #danger-accent-selected-fill  WCAG ≥ 6/11   ✓ 6.06   ✓ 6.06   ✓ 11.11   ✓ 11.11

--on <token> measures each token on another surface, in every scheme, with Glaze's measurePair on the palette's values there. A token with a floor against its base is held to the same floor, so ✓ means it still meets it on that surface. A token without a floor shows its WCAG ratio and the best level it reaches (— below AA-large). A translucent token or alias is not measured, and a translucent surface is refused.

$ npx harnesspm run uikit:colors danger accent-text --on surface
token                                           light    dark     light HC  dark HC
#danger-accent-text                             #844947  #f69691  #462423   #fccac6
  vs #danger-accent-selected-fill  WCAG ≥ 6/11  ✓ 6.06   ✓ 6.06   ✓ 11.11   ✓ 11.11
  on #surface                      WCAG ≥ 6/11  ✓ 6.94   ✓ 7.52   ✓ 13.66   ✓ 14.40

🤖 Live agent runs

Headless Claude Code, in a fresh app with the packed build, with tasks that never mention harnesspm or the tools:

  • "Create src/components/StatusBadge.tsx: a small pill that shows a status ('ok', 'warning' or 'error') with a matching color, slightly darker on hover…" In 12 turns (65 s) it:
    1. read UI Kit's docs and Usage guide, and built a tasty() component instead of restyling the protected Badge and Tag;
    2. picked palette pairs and checked their contrast with uikit:colors (then uikit:tokens);
    3. read Tasty's dsl.md from Tasty's own index;
    4. checked its CSS with tasty:styles --setup @cube-dev/ui-kit/dist/components/Root.js.
  • The first version: it ran the color lookup for warning first, used only palette tokens, and measured its pair with glaze:contrast in all four schemes.
  • The lint plugin's own runs (feat: ship a harnesspm harness, and a page for every rule tenphi/eslint-plugin-tasty#158): the hook fed a new tasty/* problem back to the agent, which handled it.

Other changes

  • package.json:
    • files adds harness, src/**/*.docs.mdx and the Modern Form guides. It drops the generated docs/components, docs/*.md and docs/llms.txt, and the copies in docs/tasty and docs/glaze. The docs/tasty and docs/glaze symlinks are gone: this repo reads Tasty's and Glaze's docs through harnesspm too (see below).
    • @tenphi/eslint-plugin-tasty: an optional peer ^1.19.0, and the devDependency moves from ^1.14.0 to ^1.19.1. @tenphi/harnesspm ^0.4.2 is a devDependency too, for pnpm check:harness and the repo's own harness. UI Kit's own oxlint run reports the same 533 warnings and no errors as on 1.14.0.
  • The Modern Form guides move from docs/ to src/components/form/Form/, next to ModernForm.docs.mdx, which embeds the guide. Links into scripts/ (never shipped) now point to GitHub.
  • CI planner: a harness kind; the docs-guide kind follows the guides to their new path.
  • Usage guide: the Tasty pages link to GitHub, and the lint section says what the plugin's harness adds. AGENTS.md: the harness section (with the optional peer), the Tasty and Glaze docs sections, and the update-tasty / update-glaze note (npm_config_version=X.Y.Z pnpm run update-glaze). The harness section and the note now live in docs/rules/harness.md and docs/rules/commands.md (see below).
  • Usage → Legacy Aliases: completed with the 21 names it missed.
  • 🧪 Browser specs Tabs/segmented and ToggleGroup/joined: their settle() helper waited on every animation with Promise.all. A transition that a later style change cancels rejects its finished with AbortError: The user aborted a request., which failed "with keyboard focus on the selected segment" twice in CI on this PR, in a spec the PR does not otherwise touch. It also read styles before the replacing transition ended. settle() now waits with Promise.allSettled and checks again until nothing runs, as LayoutPanelTransition already does. Test-only, so no changeset.

🏠 harnesspm in UI Kit's own repo (folded from #1655)

Agents that work on UI Kit now get the harnesses of Tasty, Glaze and the Tasty lint plugin from the installed versions, through harnesspm, as consumers do. UI Kit's own harness/ is the project layer here, so contributors see what consumers see, plus four patches for this repo. This part changes nothing consumers get: it leaves files alone, and prepare does not run on a registry install.

  • Init and trust. harnesspm init, run as a person: prepare is now husky install && harnesspm sync, plus harnesspm.json, harnesspm.lock.json and a root CLAUDE.md with @AGENTS.md. harnesspm.json trusts @tenphi/tasty, @tenphi/glaze and @tenphi/eslint-plugin-tasty (ours), so tasty:styles, glaze:*, tasty-lint:check and the lint-on-edit hook run here. uikit:colors comes from the project layer, which is trusted already.
  • Four repo-only patches in harnesspm/patches/. Each shipped text is right for consumers and misleads only here, where dist/ is missing or stale, UI Kit is the palette, and lint runs on Oxlint:
Rule, section Shipped text In this repo
uikit:rules/usage, Styling Find a color token with uikit:colors It reads dist/. Patched: pnpm probe tokens --filter <part>
glaze:rules/colors, both sections A missing color comes from your own Glaze theme; check it with glaze:inspect Add the color to src/tokens/palette.ts. glaze:inspect can't load it (imports without extensions, and getPalette() builds it), so diff pnpm probe tokens --json in all four schemes and run pnpm test -- src/tokens. glaze:color and glaze:contrast stay.
tasty:rules/usage, Checking styles tasty:styles … --setup @cube-dev/ui-kit/dist/components/Root.js Patched: pnpm probe styles '<json>'
tasty-lint:rules/usage, Exceptions Exceptions as eslint-disable-next-line (Oxlint's form works too) Patched to UI Kit's spelling, // oxlint-disable-next-line tasty/<rule> -- <reason>. Since eslint-plugin-tasty 1.19.1, tasty-lint:check and the edit hook read .oxlintrc.json and honor oxlint-disable comments: on Button.tsx they report what oxlint reports, 0 problems (1.19.0 reported 6).
  • Symlinks replaced. The hand-made docs/tasty and docs/glaze symlinks are gone. AGENTS.md points at the two docs indexes in the managed block, and docs/rules/review.md and probe.md link pages through harnesspm's stable paths (node_modules/.harnesspm/pkgs/@tenphi/…). update-tasty / update-glaze keep the version bump, then run harnesspm sync, because pnpm add runs no prepare.
  • Nested CLAUDE.md files. With a root CLAUDE.md, Claude Code reads only CLAUDE.md files and skips nested AGENTS.md (docs). So each of the five folders with an AGENTS.md gets a CLAUDE.md with @AGENTS.md. Since harnesspm 0.4.0, sync writes these imports itself and sync --check reports a missing one.
  • Prettier. harnesspm 0.4.0 writes the managed block with a blank line inside each marker, so Prettier leaves it as it is. With 0.3.0 it needed a prettier-ignore wrapper, which is gone.
  • CI. Right after pnpm install --frozen-lockfile, the lint job runs pnpm exec harnesspm sync --check. Since harnesspm 0.4.0, the install's sync leaves committed files alone under CI=true, so --check catches a PR that forgot to sync. (With 0.3.0 the install rewrote them first and --check passed anyway, so this PR used a git status --porcelain step until 0.4.0.) The lock no longer records UI Kit's own version, so a release no longer makes it stale. Since harnesspm 0.4.2, the uikit:docs hash covers only the docs pages, so a change to a component or test file under src/ no longer makes the lock stale either; a .docs.mdx change still does. The planner reads harnesspm.json, harnesspm.lock.json and harnesspm/ as repo-notes, and CLAUDE.md files as notes.
  • Agent runs. Headless Claude Code 2.1.323 in the repo, with a Badge task that never mentions harnesspm, docs or tools (more padding, a more readable disabled label, check the CSS):
    1. With acceptEdits only, it made the padding edit and the lint hook fired (no new problem). Then it stopped: pnpm install and pnpm probe need approval here.
    2. With pnpm install, pnpm rebuild esbuild, pnpm probe * and pnpm exec oxlint * allowed (20 tool calls, 87 s), it used pnpm probe tokens (the UI Kit patch) and measured 8 pairs with glaze:contrast (Glaze's rule). It made the edit, with the hook firing again, checked the CSS with pnpm probe render and linted with pnpm exec oxlint (the lint patch): clean. It kept the disabled color, with a measured reason (no palette text token beats #surface on that fill in dark mode, 4.55:1), and proposed changing the fill instead. It never opened a docs index or Tasty's ai-agents.md, and never used the glaze-theme skill, the color lookup or tasty:styles.

Verified in #1655: pnpm lint, pnpm test:types, pnpm check:harness, the planner and harness tests, the full suite, harnesspm sync --check, and harnesspm doctor (✅ ready). The findings for harnesspm and the lint plugin are listed there.

📏 AGENTS.md slimmed for Codex

Codex joins AGENTS.md files only up to project_doc_max_bytes, 32 KiB by default, and cuts off the rest (docs). UI Kit's text alone was 40.9 KiB before this PR, so Codex stopped inside "Tasty and Glaze Documentation" and missed the rest of UI Kit's rules and the whole managed block. Now the sections only some tasks need live in docs/rules/ pages with their text, and AGENTS.md keeps one line per page that says when to read it.

pnpm exec harnesspm status:

Before After
UI Kit's own text 41.2 KiB 21.2 KiB
harnesspm block 5.9 KiB 5.6 KiB
Codex 47.1 KiB of 32 KiB 26.8 KiB of 32 KiB
Claude Code 368 lines 276 lines
Section Size Now in
Commands, all but the everyday nine (storybook, build, test, test:once, probe, fix, and audit-docs, audit-defaults and generate:tasty-config, which a component change must run) 3.8 KiB docs/rules/commands.md
Environment 2.1 KiB docs/rules/commands.md
Harness for Coding Agents 4.1 KiB docs/rules/harness.md
Linear Issues: Done When Cloud Has the Fix 2.6 KiB docs/rules/linear.md
CI: Run What a Change Can Affect, Bundle Size 2.7 KiB docs/rules/ci.md
Styling: Keep Components Customizable 3.4 KiB docs/rules/coding.md. A short summary stays, with the :has(~ X) rule, so the AGENTS.md → Styling comments in ListBox still hold.
Stories: Interaction-Only States, The Snapshot Budget, The Accessibility Baseline 3.2 KiB Removed as duplicates: docs/rules/storybook.md has all three in full, and its line in "Rules" says to read it before you add or change a story.

What stays always-on: what the repo is, Before You Start, the rules index, Entropy, browser support, changesets, imports, React Compiler, the probe and the screen reader, project structure, the everyday commands, Tasty and Glaze docs, stack, i18n, TypeScript & Exports and testing.

  • Links. docs/rules/review.md (3 Styling links → coding.md), the implement skill (5 Linear links, Snapshot Budget, Bundle Size, CI), the create-ticket skill, CONTRIBUTING.md and the PR template now point at the new pages. src/ is untouched.
  • CI planner. docs/rules/ is already repo-notes, so the new pages run only Lint, types & diagnostics.
  • Verified: pnpm lint, pnpm exec prettier --check on the changed Markdown, pnpm check:harness, harnesspm sync --check and harnesspm doctor (✅ ready), the planner and harness tests (63), the full suite (pre-push), and a check that every relative link and anchor in AGENTS.md, CONTRIBUTING.md, docs/rules/ and the two skills resolves.
Checklist
  • Pipeline is passed
  • Tests are added (including unit tests and stories in the storybook)
  • Tests are passed successfully
  • Changeset(s) is(are) added
  • Commit message follows commit guidelines

Other information

Verification

  • Pre-push pnpm test:once: the full suite passes. pnpm test:types and pnpm lint pass.
  • pnpm build, pack (no pack-time script) and pnpm test:package: incl. src/ shipping only doc pages, and Tasty's tasty:styles with the --setup the patch names, on the packed build.
  • src/harness.test.ts checks both patches against the headings of the pinned Tasty and Glaze rules, and that every extends entry is a dependency or an optional peer.
  • End to end: a fresh app, the monorepo above, and the two lint scenarios, on the packed build with harnesspm from npm.
  • On harnesspm 0.4.0 and eslint-plugin-tasty 1.19.1: Prettier passes on AGENTS.md without the wrapper; CI=true pnpm exec harnesspm sync --check and harnesspm doctor pass; tasty-lint:check and pnpm exec oxlint agree on Button.tsx; the planner (55) and harness (8) tests pass.
  • uikit:colors --on: 4 new specs in src/harness.test.ts (the floor carried over and checked against measurePair, a token without a floor, a translucent alias, the table), and package-tests/artifacts.test.tsx runs it from the tarball. After the rename, harnesspm why uikit:scripts/colors names colors.mjs, and the managed block, sync --check and doctor agree.
  • On harnesspm 0.4.1: harnesspm check now also reports docs pages with invalid frontmatter, and all of UI Kit's 127 pages pass it.
  • On harnesspm 0.4.2, from npm: an edit to a test file passes CI=true pnpm exec harnesspm sync --check, and an edit to a .docs.mdx page still fails it. sync rewrote the uikit:docs hash once, and harnesspm's own docs and skills hashes; Glaze's and Tasty's stayed. harnesspm check, harnesspm doctor (✅ ready), the planner and harness tests (67), pnpm lint and the full suite (216 files, 5715 tests) pass.
  • The settle() fix: a Chromium probe on a transition that a later style change replaces shows the old helper rejecting with that exact AbortError and reading a mid-transition color, and the new one resolving after the replacement ends, on the final color. Both specs pass with the compiler on and off, and CI's failing shard (--shard=2/2, compiler off) passes locally. The CI failure itself did not reproduce locally, also under CPU load: it depends on CI's timing. With the fix, all four browser shards passed in CI.

Before merging — the hold for telemetry is over: harnesspm 0.2.0 shipped opt-in telemetry and a rule template for agent reports (tenphi/harnesspm#3), and 0.3.0 added harnesspm doctor (tenphi/harnesspm#5). harnesspm 0.4.0 (tenphi/harnesspm#9) and eslint-plugin-tasty 1.19.1 (tenphi/eslint-plugin-tasty#160) fixed what this PR had worked around, and the PR now uses them. harnesspm 0.4.1 (tenphi/harnesspm#10) makes sync warn instead of fail on a docs page with invalid frontmatter, which matters for a package that ships its Storybook pages as docs. harnesspm 0.4.2 (tenphi/harnesspm#15) hashes a docs unit by its pages only: with 0.4.1, every UI Kit PR that changed a file under src/ would have failed harnesspm sync --check until it re-synced the lock, and parallel PRs would have conflicted on that line.

Notes

  • Trust is per package: uikit:colors needs @cube-dev/ui-kit trusted, tasty:styles needs @tenphi/tasty, Glaze's tools need @tenphi/glaze, and tasty-lint:check and its hook need @tenphi/eslint-plugin-tasty.
  • Pages keep their Storybook links (/docs/<id>--docs); the index lists every page by title.
  • Consumers that read the generated docs/ folder by hand read src/**/*.docs.mdx now. The changeset says so.
  • No Linear issue: an experimental pilot.

Follow-ups

  • Cloud: expose its own yarn probe as a script of a project harness (render and --sr cover what tasty:styles and uikit:colors don't).
  • harnesspm.tenphi.me: its home page quotes this branch's managed block and agent run with the old name uikit:tokens. Update it when UI Kit publishes its harness, as harnesspm's AGENTS.md already asks.
  • ItemTable.stories.tsx (the keyboard-focus story's play) awaits cell animations with Promise.all too, so a cancelled transition can fail that story the same way. Not changed here.

Generated by Claude Code

pnpm passes a --version flag to pnpm add, which prints pnpm's own version and changes nothing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Gr8S7GamurMRrRt4fBQ4Zy
0.0.0-snapshot.388f62a is Glaze 3.0.1 plus harness/ (tenphi/glaze#113): no library change, the palette resolves as before. Replace it with the Glaze release before merging.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Gr8S7GamurMRrRt4fBQ4Zy
harness/ ships in the package for projects that use harnesspm. It extends @tenphi/glaze, so Glaze's colors rule, docs, theme skill and tools reach UI Kit's consumers, and patches the rule's 'Where colors come from' section for apps on UI Kit's palette. It adds one always-on UI Kit rule, the docs index prepare-docs writes at pack time (guides, components and Tasty pages; Glaze's pages come with Glaze's own index), and uikit:tokens, which lists palette tokens by their Tasty names with values in all four schemes and contrast against their base, through Glaze's measuring module.

src/harness.test.ts guards what harnesspm's check would, since harnesspm is not in CI yet. A 'harness' kind in the CI planner runs the specs and the canary for it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Gr8S7GamurMRrRt4fBQ4Zy
uikit:tokens lists the legacy aliases (#dark, #danger-text, …) as rows pointing to the token each stands for, with its values, so an agent reading old code finds the real token instead of making a new color. UI Kit's color guidance moves into its own rule, renamed uikit:rules/usage, and the Glaze patch only replaces Glaze's conflicting section. The docs index lists each page once and groups the root components on their own. A package test runs the tool from the tarball and checks every index link, and the docs say that Glaze's tools need @tenphi/glaze trusted too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Gr8S7GamurMRrRt4fBQ4Zy
The alias rows covered every name getColorTokens() defines by value or reference, so #current-fill, #clear, #pink and the #fixed-* tokens were called legacy and agents were told to replace them. Each row now only shows what the alias resolves to; the rule points to the Usage guide for which aliases are legacy. A literal value follows --format, and the tool and the spec read their source through one sourceFrom() helper, which the tarball test covers with an alias lookup.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Gr8S7GamurMRrRt4fBQ4Zy
The UI Kit rule now points agents to the Usage guide for which aliases
are legacy, so its table lists every one colors.ts defines: the theme
text-soft, hover and desaturated names and the numbered purple ones,
with the purple rows resolving to their own tokens. uikit:tokens
describes the context hook current-fill as showing its default.

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

vercel Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
cube-ui-kit Ready Ready Preview Nov 16, 2026 11:10am UTC

Request Review

@changeset-bot

changeset-bot Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: fd5d31d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@cube-dev/ui-kit Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actions Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

📦 NPM canary release

Deployed canary version 0.0.0-canary-55b897f.

@github-actions

github-actions Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

@github-actions

github-actions Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

🏋️ Size limit report

Name Size Change
All 647.38 KB -0.01% 🔽👏
Tree shaking (just a Button) 163.38 KB · 25.2% of All 0% 🟰

Compared against main at 7fa7e8a — run 43466713316, 2026-11-13T16:50:14Z.

Third-party packages

✅ No third-party package entered or left the bundle, and none grew more than 10 KB past its approved size.


To see which modules changed, download the size-limit-statoscope-report artifact from this run and open report.html.

Both releases ship their harness. Glaze 3.1.0 replaces the canary and
exports its measuring module as @tenphi/glaze/harness/measure.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Gr8S7Ed6WF7j8cpXBKzCuV
- extends @tenphi/tasty too, and patch "Checking styles" in its rule so
  tasty:styles loads UI Kit's config through dist/components/Root.js.
- uikit:tokens imports @tenphi/glaze/harness/measure instead of a path.
- The package no longer ships docs/tasty and docs/glaze; the docs index
  lists UI Kit's pages only, since Tasty and Glaze bring their own.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Gr8S7Ed6WF7j8cpXBKzCuV
The harness's `docs` points at `src/`, and the package ships the Storybook
pages (`src/**/*.docs.mdx`) and the Modern Form guides there, so harnesspm
indexes them as they are. prepare-docs.mjs, cleanup-docs.mjs and the
prepack/postpack hooks are gone, and so are the generated docs/components,
docs/*.md and docs/llms.txt.

The Modern Form guides move next to ModernForm.docs.mdx, which embeds one.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Gr8S7Ed6WF7j8cpXBKzCuV
The patched "Checking styles" section named only UI Kit's Root.js, so an
agent in an app that configures Tasty further (Cube Cloud) would miss the
app's config. It now adds --setup for each app module that calls
configure(), and says to run the tool from the package in a monorepo.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Gr8S7Ed6WF7j8cpXBKzCuV
tasty:styles now renders with the copy of Tasty the --setup modules
configure, resolves package paths from the current package, and warns
when the setups configure two copies.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Gr8S7Ed6WF7j8cpXBKzCuV
Both releases fix what this repo had worked around:

- harnesspm 0.4 writes a managed block Prettier leaves as it is, so the
  prettier-ignore wrapper is gone.
- With `CI=true`, the install's sync no longer rewrites committed files,
  so the lint job runs `harnesspm sync --check` instead of the
  `git status --porcelain` step.
- harnesspm keeps a `CLAUDE.md` import next to every nested `AGENTS.md`
  now; the six existing files stay as they are.
- The lock no longer records UI Kit's own version, so a release no longer
  makes it stale.
- eslint-plugin-tasty 1.19.1 runs `tasty-lint:check` and the edit hook
  with `.oxlintrc.json` and honors `oxlint-disable` comments: on
  Button.tsx it now reports what oxlint reports (0 problems, 6 before).
  The repo patch keeps only UI Kit's exception spelling.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Gr8S7Ed6WF7j8cpXBKzCuV
`uikit:tokens <part> --on <token>` measures each listed token on another
surface, in light, dark and both high-contrast schemes, with Glaze's
`measurePair` on the palette's values in each scheme. A token with a floor
against its own base is held to the same floor and metric there, so ✓ means
it still meets it on that surface; a token without a floor shows its WCAG
ratio and the best WCAG level it reaches. A translucent token or alias is
not measured, and a translucent surface is refused. The row is left out on
the token's own base, which the "vs" row already measures.

`--json` carries the measurements as `on`. The rule mentions `--on`, the
spec covers the floor, a token without one, a translucent alias and the
table, and the packed-build test runs it from the tarball.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Gr8S7Ed6WF7j8cpXBKzCuV
The tool lists only color tokens, while Tasty tokens also cover sizes,
spaces and presets, so the name says what it looks up. It is plural
because `glaze:color` already resolves one standalone color.

- The script is `uikit:colors` (`uikit:scripts/colors`, `colors.mjs`),
  and its description mentions `--on`.
- The rule and the repo patch say "a color token".
- The managed block and the lock follow through `harnesspm sync`.

The tool is unreleased, so nothing else refers to the old name.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Gr8S7Ed6WF7j8cpXBKzCuV
harnesspm 0.4.1 also checks the frontmatter of docs pages in
`harnesspm check`. UI Kit's harness passes it. `harnesspm sync`
updated the lock and the version in the AGENTS.md managed block.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Gr8S7GamurMRrRt4fBQ4Zy
@tenphi tenphi changed the title feat: ship a harness for coding agents, with uikit:tokens feat: ship a harness for coding agents, with uikit:colors Nov 16, 2026
`settle()` awaited every running animation with `Promise.all`. When a
style change cancels a transition and starts another, the cancelled
one's `finished` rejects with "AbortError: The user aborted a
request.", so the spec failed, as it did twice in CI on "with keyboard
focus on the selected segment". It also read styles before the
replacing transition ended.

Now it waits for each running animation with `Promise.allSettled` and
checks again until none runs, as `LayoutPanelTransition` already does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Gr8S7GamurMRrRt4fBQ4Zy
UI Kit's harness indexes `docs: "../src"`, and harnesspm hashes every
file in a docs folder, so the spec fix changed the `uikit:docs` hash.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Gr8S7GamurMRrRt4fBQ4Zy
harnesspm 0.4.2 hashes a docs unit by its llms.txt and its .md and
.mdx pages only (tenphi/harnesspm#15). UI Kit's harness indexes
`docs: "../src"`, so before, every change to a component or test
file made the lock stale and failed `harnesspm sync --check` in CI.

`harnesspm sync` rewrote the `uikit:docs` hash once, and harnesspm's
own docs and skills hashes for the new version.

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

This branch was successfully deployed

2 active deployments
Preview — fd5d31d9 Deployed Nov 16, 2026 by vercel[bot]
Chromatic staging — fd5d31d9 Deployed Nov 16, 2026 by tenphi via Prepare Storybook for review & tests #4411
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