Repository navigation
fix(harness): render tasty:styles with the Tasty copy the setups configure - #462
Merged
Merged
Conversation
Apps on Tasty get an always-on style rule, an index of the docs of the installed version (docs/llms.txt), and the tasty:styles tool, which prints the CSS a styles object produces after --setup modules load the app's configure(), and warns about values that stayed unresolved. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7Ed6WF7j8cpXBKzCuV
…igure In a monorepo, or next to a UI library with its own Tasty, a --setup module can configure another copy of @tenphi/tasty than the tool's own. The tool now renders with the copy the setups configure, resolves package paths in --setup from the current folder, warns when the setups configure two copies and names both, and warns about a setup that changes nothing. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7Ed6WF7j8cpXBKzCuV
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7Ed6WF7j8cpXBKzCuV
Contributor
📦 Snapshot releasePublished |
Merged
5 tasks done
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
tasty:stylesalways rendered with its own copy of Tasty. That breaks in two real setups:In both cases a
--setupmodule configures another copy of Tasty, so the CSS lacks part of the config. The agent saw only symptoms ("2cw" … not a Tasty or CSS unit,Recipe "panel" not found) and nothing named the cause.What changes
--setupmodules configure; with no setup, the copy the current package imports--setup @pkg/pathtasty.versiontasty.versionandpath; each setup lists the copy it configuredTokens are left out of the per-copy check, because Tasty shares them between copies through
globalThis.Verification
pnpm typecheck,pnpm lint,pnpm format:check,pnpm knip,pnpm check:harness,pnpm test:node(2,330 tests).src/harness.test.ts, 4 new CLI tests on a temp app with a second copy of Tasty (this build, renamed0.0.0-copy):--setupresolves from the current folder, and both setups merge;--setup Root.js --setup ./src/cloud-setup.mjssilently lost the app's config. On Tasty 3.19.0 the two configs merged as at runtime.Generated by Claude Code