Repository navigation
Releases
Releases · tenphi/cookbook
Cookbook v0.34.2
Cookbook v0.34.1
Patch Changes
- #214
ffcc0a5Thanks @tenphi! - New sites also get aCLAUDE.mdthat importsAGENTS.md. Claude Code readsAGENTS.mdonly when noCLAUDE.mdexists in its folder or above, so a site created with--sourceinside a repository that has one lost its agent instructions in Claude Code. An existingCLAUDE.mdis kept. - #214
ffcc0a5Thanks @tenphi! - The docs are one guide again, with Guide and Reference tabs, for people and their coding agents alike. Work with a coding agent now holds the prompts of the former Ask your agent page, whose URL redirects there. They are organized by case: each prompt says what you want and the facts only you know, and leaves the commands to your agent. The agent start page, For AI agents, and the packageddocs/llms.txtindex stay where they were. - #216
e5c9694Thanks @tenphi! - A component module beside content outside the site's folder, such asdocs/components/StatusBadge.tsin a site created with--source, can import@tenphi/cookbook/styling. Node resolution from that folder could not reach the site'snode_modules, soastro devandastro buildfailed to resolve the import. Cookbook now resolves its own entries from the site for every importer.
Cookbook v0.34.0
Minor Changes
- #210
9f0a649Thanks @tenphi! - Ship an agent harness for harnesspm in@tenphi/cookbook. A site that sets up harnesspm gives its coding agent a short Cookbook rule, an index of the installed docs (docs/llms.txt, also useful without harnesspm), and the Tasty, Glaze, and Tasty lint harnesses of the versions Cookbook uses. Cookbook adapts their rules: colors come fromtheme.brandandtheme.palette, lint needs atasty.config.tsbuilt withcreateValidationConfig(docs.theme), andharness/dev.harnesspm/theme.mjsloads a site'sdocs.config.ts, sotasty:styles --setupandglaze:inspectsee the site's tokens, units, presets, states, and palette. It also replaces Glaze'sglaze-themeskill with the steps for a site'stheme.palette, which needs harnesspm 0.10.1 or later.@tenphi/cookbooknow depends on@tenphi/tasty,@tenphi/glaze, and@tenphi/eslint-plugin-tastydirectly, at the versions the renderer already installs. The Glaze guides packaged indocs/upstream/glaze/are plain Markdown from Glaze 3.2.0, so their examples read offline too. The Tasty lint plugin 1.21.3 makestasty-lint:checkand the edit hook follow a site's lint config set up through@tenphi/cookbook/eslint-pluginoroxlint.config.mjs, and its edit hook tells the agent wheneslintis missing, as in Yarn sites. The docs now have two parts, For humans and For AI agents, with new For AI agents, Ask your agent, and Agent harness pages. Generated sites point their agents at the new start page and mention harnesspm as an option, and the upgrade skill runsharnesspm syncandsync --checkin sites that use it. - #210
9f0a649Thanks @tenphi! - AddcreateColorTheme(theme)to@tenphi/docs, which returns a site's colors as one Glaze theme, andconfigureTastyTheme(theme)to@tenphi/renderer, which configures Tasty with a site's theme as a Cookbook build does. Agent tools use them to read a site's theme.declareComponentTokensForTools()in@tenphi/renderertells Tasty'stasty:stylestool about the color and token names that Cookbook's components define on their own roots, such as#callout-text, so the tool does not report them as undefined; builds never call it. Update Tasty to 3.19.2, whosetasty:stylestool resolves--setupmodules from the current folder and warns about color and token names the theme does not define, and Glaze to 3.2.0, whoseglaze:inspecttool takes a module inside an installed package. - #210
9f0a649Thanks @tenphi! - Generatedllms.txtfiles follow the default language's sidebar, with pages in sidebar order: a Documentation section for the top-level navigation items, and one section for each navigation tab with items. Each page is listed under the tab that pages show for it, so agents see the same structure as readers. Discoverable pages that the sidebar does not list, such as translations, follow under Other pages.
Patch Changes
- #210
9f0a649Thanks @tenphi! - A navigation tab whose items are all drafts, or empty, no longer shifts the sidebar of every tab after it: each tab's pages show that tab's sidebar again. - #212
0957f7eThanks @tenphi! - Use Tasty ESLint 1.21.2 so Cookbook lint presets support TypeScript 7 and the optional Oxc parser fallback.
Cookbook v0.33.2
Patch Changes
- #207
cefaf4cThanks @tenphi! - Make borders quieter and refresh the page footer controls. Theborderandborder-strongroles now take about one eighth (a0.12factor) of the brand saturation instead of one fifth, so with a vivid brand they stay close to the soft text color instead of reading as tinted lines. The page actions share the pagination cards' fill, gain copy and download icons, and give clearer hover and pressed feedback. The copy control is now labeled Copy as Markdown and briefly shows a check after a successful copy. Pagination hover strengthens the card border, and the Edit page link gains a pencil icon, a rounded focus ring, and a stronger resting color than the surrounding metadata. New customizable sub-elements:PageActions.Active,PageActions.Icon,PageActions.CopyIcon,PageActions.DownloadIcon, andFooter.MetaLinkIcon. - #205
8221028Thanks @tenphi! - Use Tasty 3.18.0 for documentation styling, including state aliases that reference other aliases. - #208
444666eThanks @tenphi! - Update the bundled Tasty ESLint plugin to 1.20.0 for configurable protected inner-style allowances and correct line-height shorthand checks in extension layers. - #203
68305bfThanks @tenphi! - Use the official Tasty ESLint plugin 1.18.0 in published lint configurations. It adds an opt-in wrappers-only mode for protected-restyle checks while preserving the default checks. - #209
c2bb170Thanks @tenphi! - Upgrade the bundled Tasty lint plugin to check raw colors in native SVG color attributes and explain theme-aware alternatives.
Cookbook v0.33.1
Patch Changes
- #200
5dc7a6fThanks @tenphi! - Upgrade Glaze to 3.0.1 so theme shadows and glows do not report an unreachable
step merely because high contrast or a numeric contrast level moved their
surface. Resolved colors and generated exports are unchanged. - #202
206bc11Thanks @tenphi! - Use the official Tasty ESLint plugin 1.17.1 for code validation and published lint configurations. It avoids false runtime-mutation warnings for style objects constructed once at module load, while retaining checks inside functions and instance fields.
Cookbook v0.33.0
Minor Changes
- #198
25b3158Thanks @tenphi! - Upgrade Glaze to 3.0.0. Shadows now step an exact number of tones: the built-inshadowrole steps 8 tones in light and dark and is transparent in high contrast. In the default contrast mode, light shadows look as before and dark ones are noticeably stronger, since 2.x stepped only about 3 tones on a dark page.theme.glaze.shadowTuningand a shadow role's owntuningtake Glaze 3'sobjectInfluence,tint,reach, andhueBleedinstead of the removed 2.x fields, and palette roles acceptglowdeclarations.
Cookbook v0.32.0
Minor Changes
- #194
50cbc33Thanks @tenphi! - AddCardGrid, which lays outCardelements in one column on narrow screens and two equal-height columns from 40rem, separated only by the grid gap instead of Markdown block spacing. Customize it withtheme.styles.CardGrid, including itsCardsub-element.
Patch Changes
- #194
50cbc33Thanks @tenphi! - Keep prose block spacing out of tab, code group, code block, and card anatomy. Tab panels now sit directly under the tab list, panel content starts at the panel padding, code group captions keep their own gap to the code, copy buttons stay in the top-right corner regardless of stylesheet order, and card descriptions follow the title by the card gap, staying at the top when a grid stretches the card. New customizable sub-elements:Tabs.Tab,Tab.Body,CodeGroup.MarkdownCodeBlock, andCard.Body.