@@ -22,9 +22,9 @@
> [!NOTE]
-> I develop **Gram** on my primary [Forgejo instance](https://git.gram-lang.org/gram-lang/gram), with automatic mirrors on [GitHub](https://github.com/gram-lang/gram) and [Codeberg](https://codeberg.org/gram-lang/gram).
-
-> Contributions, issues, and discussions are welcome on any of these platforms.
+> I develop **Gram** on my primary [Forgejo instance](https://git.gram-lang.org/gram-lang/gram), with read-only automatic mirrors on [GitHub](https://github.com/gram-lang/gram) and [Codeberg](https://codeberg.org/gram-lang/gram).
+>
+> Issues and pull requests are handled on [Forgejo](https://git.gram-lang.org/gram-lang/gram).
Please see [CONTRIBUTING.md](./CONTRIBUTING.md) for more information on how to get involved.
@@ -103,7 +103,7 @@ Commands to maintain your `ingredients.yaml` file:
## Documentation
The full technical documentation is available online:
-[**https://docs.gram-lang.org/**](https://docs.gram-lang.org/)
+[**https://gram-lang.org/docs/**](https://gram-lang.org/docs/)
The source code for the Astro & Starlight documentation can be found locally in `packages/docs/`.
@@ -190,7 +190,7 @@ Gram stands on the shoulders of giants.
## Community & Support
-- **Bugs & Feature Requests**: Please use our primary [Forgejo issues](https://git.gram-lang.org/gram-lang/gram/issues) (or [GitHub mirror](https://github.com/gram-lang/gram/issues)).
+- **Bugs & Feature Requests**: Please use our primary [Forgejo issues](https://git.gram-lang.org/gram-lang/gram/issues).
- **Chat & Discussions**: Join us on [Discord](https://discord.gg/nsCBkhjuAR) or visit [r/gramlang](https://www.reddit.com/r/gramlang/) for casual community discussions.
---
diff --git a/bun.lock b/bun.lock
index 37195d8e..afa9dc19 100644
--- a/bun.lock
+++ b/bun.lock
@@ -102,10 +102,10 @@
"name": "@gram-lang/docs",
"version": "1.4.2",
"dependencies": {
- "@astrojs/markdown-remark": "^7.3.0",
- "@astrojs/mdx": "^8.0.2",
- "@astrojs/starlight": "^0.42.4",
- "@astrojs/vue": "^7.0.1",
+ "@astrojs/markdown-remark": "^7.3.10",
+ "@astrojs/mdx": "^8.1.6",
+ "@astrojs/starlight": "^0.43.1",
+ "@astrojs/vue": "^7.1.6",
"@codemirror/commands": "^6.10.4",
"@codemirror/lint": "^6.9.7",
"@codemirror/state": "^6.7.1",
@@ -119,18 +119,18 @@
"@gram-lang/parser": "workspace:*",
"@gram-lang/renderer": "workspace:*",
"@gram-lang/scheduler": "workspace:*",
- "astro": "^7.3.5",
+ "astro": "^7.4.13",
"mermaid": "^12.0.0",
"shiki": "^4.3.1",
- "starlight-theme-nova": "^0.12.2",
+ "starlight-theme-nova": "^0.12.3",
"unist-util-visit": "^5.1.0",
"vite": "^8.0.13",
"vue": "^3.5.39",
},
"devDependencies": {
- "@astrojs/check": "^0.9.10",
+ "@astrojs/check": "^0.9.12",
"@types/mdast": "^4.0.4",
- "starlight-links-validator": "^0.26.0",
+ "starlight-links-validator": "^0.27.0",
"vue-tsc": "^3.3.14",
"yaml": "^2.9.0",
},
@@ -269,7 +269,7 @@
"@astrojs/astro2tsx": ["@astrojs/astro2tsx@0.1.4", "", { "dependencies": { "@emnapi/core": "1.11.3", "@emnapi/runtime": "1.11.3", "@napi-rs/wasm-runtime": "1.2.4" } }, "sha512-5dJqY4i1AlXxcsSFHkaegnrgdVs9J4U93y/YF0xmvmSOcNYVQnf4db3IhvqHZ5v8biLPlPlFmlYsqHj0c4/ZSA=="],
- "@astrojs/check": ["@astrojs/check@0.9.10", "", { "dependencies": { "@astrojs/language-server": "^2.16.7", "chokidar": "^4.0.3", "kleur": "^4.1.5", "yargs": "^18.0.0" }, "peerDependencies": { "typescript": "^5.0.0 || ^6.0.0" }, "bin": { "astro-check": "./bin/astro-check.js" } }, "sha512-zgx/UQMozdjOa3bOxjgeCFdtpE3c9rRX6xHwa+2QXvy8z8Akifu2AtubHyv/zzC2znO8dl8fFWL4K+Ba9kS8HQ=="],
+ "@astrojs/check": ["@astrojs/check@0.9.12", "", { "dependencies": { "@astrojs/language-server": "^2.17.3", "chokidar": "^5.0.0", "kleur": "^4.1.5", "yargs": "^18.2.0" }, "peerDependencies": { "typescript": "^5.0.0 || ^6.0.0" }, "bin": { "astro-check": "./bin/astro-check.js" } }, "sha512-hazpqxIfZWj2VhyPyR0pOEQ/IhFDM/2nIApL96zMXABdD8NrUKYDmhxTy7h+drTDl9MQG/Sd1ET/4amadVJUUA=="],
"@astrojs/compiler-binding": ["@astrojs/compiler-binding@0.5.3", "", { "optionalDependencies": { "@astrojs/compiler-binding-android-arm64": "0.5.3", "@astrojs/compiler-binding-darwin-arm64": "0.5.3", "@astrojs/compiler-binding-darwin-x64": "0.5.3", "@astrojs/compiler-binding-linux-arm64-gnu": "0.5.3", "@astrojs/compiler-binding-linux-arm64-musl": "0.5.3", "@astrojs/compiler-binding-linux-x64-gnu": "0.5.3", "@astrojs/compiler-binding-linux-x64-musl": "0.5.3", "@astrojs/compiler-binding-wasm32-wasi": "0.5.3", "@astrojs/compiler-binding-win32-arm64-msvc": "0.5.3", "@astrojs/compiler-binding-win32-x64-msvc": "0.5.3" } }, "sha512-fHG6eWKvnSlV11dUMZSi4AynOGjVbNBgZZc704Hi9DW8WeKtbsS7fJQT3omz1Nba+5mccLQQGAWOQ65cnuNLtg=="],
@@ -295,25 +295,31 @@
"@astrojs/compiler-rs": ["@astrojs/compiler-rs@0.5.3", "", { "dependencies": { "@astrojs/compiler-binding": "0.5.3" } }, "sha512-rNSAYm5IcRJMpNm+cSMaaPNCmzCXIdiz67kcBwC1qN8eTmO48wEJ6hZdlGq60+0HIHwUlncfaMxti1Fk2uJu7w=="],
- "@astrojs/internal-helpers": ["@astrojs/internal-helpers@0.11.0", "", { "dependencies": { "@types/hast": "^3.0.4", "@types/mdast": "^4.0.4", "js-yaml": "^4.3.0", "picomatch": "^4.0.4", "retext-smartypants": "^6.2.0", "shiki": "^4.0.2", "smol-toml": "^1.6.0", "unified": "^11.0.5" } }, "sha512-3rzxJ+xbo0+8YyqOzLziIN32wmsHdCjEVz2sGOpRxJ+Ben/KiLph4ItxBy1abEL+E8fkRzqjg0rfXmaHJGw9JA=="],
+ "@astrojs/internal-helpers": ["@astrojs/internal-helpers@0.13.2", "", { "dependencies": { "@types/hast": "^3.0.5", "@types/mdast": "^4.0.4", "picomatch": "^4.0.7", "retext-smartypants": "^6.2.0", "shiki": "^4.6.0", "smol-toml": "^1.9.1", "unified": "^11.0.5", "yaml": "^2.9.1" } }, "sha512-SWiNS+OMrhwWYzJENTekHUyUCMKB+tdU6D4v1ZNIU1ZHh2mScQ8WIs0J6AJ8KPXkIrs9+EZU7Rm2CstfThyVnw=="],
"@astrojs/language-server": ["@astrojs/language-server@2.17.3", "", { "dependencies": { "@astrojs/astro2tsx": "^0.1.2", "@astrojs/yaml2ts": "^0.2.4", "@volar/kit": "~2.4.28", "@volar/language-core": "~2.4.28", "@volar/language-server": "~2.4.28", "@volar/language-service": "~2.4.28", "muggle-string": "^0.4.1", "tinyglobby": "^0.2.17", "volar-service-css": "0.0.71", "volar-service-emmet": "0.0.71", "volar-service-html": "0.0.71", "volar-service-prettier": "0.0.71", "volar-service-typescript": "0.0.71", "volar-service-typescript-twoslash-queries": "0.0.71", "volar-service-yaml": "0.0.71", "vscode-html-languageservice": "^5.6.2", "vscode-uri": "^3.2.0" }, "peerDependencies": { "prettier": "^3.0.0", "prettier-plugin-astro": ">=0.11.0" }, "optionalPeers": ["prettier", "prettier-plugin-astro"], "bin": { "astro-ls": "./bin/nodeServer.js" } }, "sha512-QIAFu1e/4quJMTPdmBOm+ZPXc5NDGZE4/YQjgR3EgjhGLl/tdidaWJDr5WmO2lesVc+BW1qN/xNBURmuePDG2A=="],
- "@astrojs/markdown-remark": ["@astrojs/markdown-remark@7.3.1", "", { "dependencies": { "@astrojs/internal-helpers": "0.11.0", "@astrojs/prism": "4.0.2", "@mdx-js/mdx": "^3.1.1", "acorn": "^8.16.0", "estree-util-visit": "^2.0.0", "github-slugger": "^2.0.0", "hast-util-from-html": "^2.0.3", "hast-util-to-html": "^9.0.5", "hast-util-to-text": "^4.0.2", "mdast-util-definitions": "^6.0.0", "rehype-raw": "^7.0.0", "rehype-stringify": "^10.0.1", "remark-gfm": "^4.0.1", "remark-parse": "^11.0.0", "remark-rehype": "^11.1.2", "remark-smartypants": "^3.0.2", "source-map": "^0.7.6", "unified": "^11.0.5", "unist-util-remove-position": "^5.0.0", "unist-util-visit": "^5.1.0", "unist-util-visit-parents": "^6.0.2", "vfile": "^6.0.3" } }, "sha512-QCjsjZQl0+Cgb91+T3Ip9hyUe1r5aLm4udi584rML9YO3syupbAYE+jWpAxYg+z4lFLNUugPrylFxZ+8qFTClg=="],
+ "@astrojs/markdown-remark": ["@astrojs/markdown-remark@7.3.10", "", { "dependencies": { "@astrojs/internal-helpers": "^0.13.2", "@astrojs/prism": "^4.1.2", "@mdx-js/mdx": "^3.1.1", "acorn": "^8.19.0", "estree-util-visit": "^2.0.0", "github-slugger": "^2.0.0", "hast-util-from-html": "^2.1.0", "hast-util-to-html": "^9.0.6", "hast-util-to-text": "^4.0.3", "mdast-util-definitions": "^6.0.0", "rehype-raw": "^7.0.0", "rehype-stringify": "^10.0.1", "remark-gfm": "^4.0.1", "remark-parse": "^11.0.0", "remark-rehype": "^11.1.2", "remark-smartypants": "^3.0.3", "source-map": "^0.8.0", "unified": "^11.0.5", "unist-util-remove-position": "^5.0.0", "unist-util-visit": "^5.2.0", "unist-util-visit-parents": "^6.1.0", "vfile": "^6.0.3" } }, "sha512-QVonWrmdN4DQa97H4KtSW/H8vMOt7kPvXOsxiZBJoqePicgsxKzRtEzhQ8L41e3g6zZ52vkFHMHLjgROgHeLrQ=="],
"@astrojs/markdown-satteri": ["@astrojs/markdown-satteri@0.4.10", "", { "dependencies": { "@astrojs/internal-helpers": "^0.13.2", "@astrojs/prism": "^4.1.2", "github-slugger": "^2.0.0", "satteri": "^0.11.6" } }, "sha512-3h/wheVjZIcP/m295nkiUjOvCsCs6QpvZ3l4BfDU4ghNQcrcFrNVu1+K+I+YT61hH9tuCDQiGdF8QDzfDoG42w=="],
"@astrojs/mdx": ["@astrojs/mdx@8.1.6", "", { "dependencies": { "@astrojs/internal-helpers": "^0.13.2", "@astrojs/markdown-satteri": "^0.4.10", "es-module-lexer": "^3.0.4" }, "peerDependencies": { "@astrojs/markdown-remark": "^7.3.0", "astro": "^7.2.10" }, "optionalPeers": ["@astrojs/markdown-remark"] }, "sha512-Zq4iblpzpboFbmdLhPy8Pd9z6yGDpSXkTO+KCeV8Ugr5pDBxoFD0LJqw7MKHMEzw/0Y7Id8jIpNlm7pQhT118g=="],
- "@astrojs/prism": ["@astrojs/prism@4.0.2", "", { "dependencies": { "prismjs": "^1.30.0" } }, "sha512-KTivpmnz6lDsC6o9H4+DNm2SrE/GHzw8cNAvEJwAvUT+eoaEnn/4NtbDNfRRaxaJHdp15gf+tfHAWiXR4wB3BA=="],
+ "@astrojs/prism": ["@astrojs/prism@4.1.2", "", { "dependencies": { "prismjs": "^1.30.0" } }, "sha512-jMrUEpFDarDO1KWPvVc9eSa8DSfwBlwEOHwX+8zvZQpiqXRGDxFnOXHsYqV6DP7w+0qIgTr98gS1GdQlm8ypWg=="],
- "@astrojs/sitemap": ["@astrojs/sitemap@3.7.5", "", { "dependencies": { "sitemap": "^10.0.0", "zod": "^4.6.7" } }, "sha512-rxSbFcxdcOoVRR02q0aFxyZ6chwXZpUOHMg8e+3iWPo7xYV4hlYBU4ztFd1Xl/pWtr6pe+TVCFKJfyPe0sp8iA=="],
+ "@astrojs/runtime": ["@astrojs/runtime@0.1.2", "", { "dependencies": { "@oslojs/encoding": "^1.1.0", "clsx": "^2.1.1" } }, "sha512-qLNoKPjASZmKtkvQNYqax7DHIe5+0TC1PX8n2AkA87Bv+JxiaFZtPepdm0lwcRbL/jLoiRvHXVCliFC1CRFQxA=="],
- "@astrojs/starlight": ["@astrojs/starlight@0.42.4", "", { "dependencies": { "@astrojs/markdown-satteri": "^0.4.0", "@astrojs/mdx": "^8.0.0", "@astrojs/sitemap": "^3.7.3", "@pagefind/default-ui": "^1.3.0", "@types/hast": "^3.0.5", "@types/js-yaml": "^4.0.9", "@types/mdast": "^4.0.4", "astro-expressive-code": "^0.44.0", "bcp-47": "^2.1.0", "hast-util-format": "^1.1.0", "hast-util-select": "^6.0.4", "hast-util-to-html": "^9.0.5", "hast-util-to-string": "^3.0.1", "hastscript": "^9.0.1", "i18next": "^26.0.7", "js-yaml": "^4.1.1", "klona": "^2.0.6", "magic-string": "^1.2.3", "mdast-util-directive": "^3.1.0", "mdast-util-to-markdown": "^2.1.2", "mdast-util-to-string": "^4.0.0", "pagefind": "^1.5.2", "remark-directive": "^4.0.0", "satteri": "^0.10.3", "ultrahtml": "^1.6.0", "unified": "^11.0.5", "unist-util-visit": "^5.1.0", "vfile": "^6.0.3" }, "peerDependencies": { "@astrojs/markdown-remark": "^7.3.0", "astro": "^7.2.10" }, "optionalPeers": ["@astrojs/markdown-remark"] }, "sha512-EsQsqGJ1uTBQcIMojvLqqg4Ku9idwi6PSNuppIOoYmvVP18xjoUkijMdKoDkhmmwKdhbB4ctLhGjPRJzxaq+Jw=="],
+ "@astrojs/sitemap": ["@astrojs/sitemap@3.7.6", "", { "dependencies": { "sitemap": "^10.0.0", "zod": "^4.6.7" } }, "sha512-QEKD3ubC0iJxpNzC4KvcKdxSP97U5SjuQ16+VkmUwx1TT+Hq7TIV8QGm/d2pvkN6+3GqGXLRzm7j6lZxHETm3A=="],
- "@astrojs/telemetry": ["@astrojs/telemetry@3.3.3", "", { "dependencies": { "ci-info": "^4.4.0", "dset": "^3.1.4", "is-docker": "^4.0.0", "package-manager-detector": "^1.6.0" } }, "sha512-C1TLn5sPJr0x4vk56piHWKbnqlEB8BKyte5Y45V02U+D7BGO5eMqZDH5aPjnkXQWJggvmsTXxH03QMZ9NgWLzQ=="],
+ "@astrojs/starlight": ["@astrojs/starlight@0.43.1", "", { "dependencies": { "@astrojs/markdown-satteri": "^0.4.3", "@astrojs/mdx": "^8.0.3", "@astrojs/sitemap": "^3.7.4", "@pagefind/default-ui": "^1.3.0", "@types/hast": "^3.0.5", "@types/mdast": "^4.0.4", "astro-expressive-code": "^0.44.0", "bcp-47": "^2.1.0", "hast-util-format": "^1.1.0", "hast-util-select": "^6.0.4", "hast-util-to-html": "^9.0.5", "hast-util-to-string": "^3.0.1", "hastscript": "^9.0.1", "i18next": "^27.0.1", "klona": "^2.0.6", "magic-string": "^1.2.3", "mdast-util-directive": "^3.1.0", "mdast-util-to-markdown": "^2.1.2", "mdast-util-to-string": "^4.0.0", "pagefind": "^1.5.2", "remark-directive": "^4.0.0", "satteri": "^0.10.3", "ultrahtml": "^1.6.0", "unified": "^11.0.5", "unist-util-visit": "^5.1.0", "vfile": "^6.0.3", "yaml": "^2.9.1" }, "peerDependencies": { "@astrojs/markdown-remark": "^7.3.0", "astro": "^7.2.10" }, "optionalPeers": ["@astrojs/markdown-remark"] }, "sha512-GhTK+93UNejoQThnYbEkJAlRJiOtctxOCnFtLcUMSTraT75vzS1E89xdMtKOdKcUDD2wx+taJxsfrA3UBs0QgQ=="],
- "@astrojs/vue": ["@astrojs/vue@7.0.1", "", { "dependencies": { "@vitejs/plugin-vue": "^6.0.5", "@vitejs/plugin-vue-jsx": "^5.1.5", "@vue/compiler-sfc": "^3.5.30", "vite": "^8.0.13", "vite-plugin-vue-devtools": "^8.1.0" }, "peerDependencies": { "astro": "^7.0.0", "vue": "^3.5.24" } }, "sha512-DHTZ1QKlLZ8ZSrqmQ7KMjsyGLitgLYM9ynFRc55ZKr9Jrb6yIuVRRRHbzsqXXI87oc3dwObxEhEaWPgJe7Dq/w=="],
+ "@astrojs/telemetry": ["@astrojs/telemetry@3.4.2", "", { "dependencies": { "ci-info": "^4.4.0", "dset": "^3.1.4", "is-docker": "^4.0.0", "package-manager-detector": "^1.9.0" } }, "sha512-2JOMRUxJrBSfiVDfeKLv1wBmvSIx1Y6u2YEO8awZ9qSq3u/rNAiUyFdOYi8dHv91kHrmYEQX7pRDw0J4xyj3UA=="],
+
+ "@astrojs/vite-plugin-astro": ["@astrojs/vite-plugin-astro@0.1.3", "", { "dependencies": { "@astrojs/compiler-rs": "^0.5.1", "@astrojs/internal-helpers": "^0.13.2", "@astrojs/runtime": "^0.1.1", "common-ancestor-path": "^2.0.0", "devalue": "^6.0.2", "magic-string": "^1.4.2", "rolldown": "~1.2.16", "smol-toml": "^1.9.0", "zod": "^4.6.5" }, "peerDependencies": { "vite": "^8.3.3" } }, "sha512-yj+xGnr3HeHUtIdra/tWizJuisBoxAuWlBTElMlf22FpSxinrTwTl/dqftG0D2BsQTcn4/shgCCUwcnkcZ8buA=="],
+
+ "@astrojs/vue": ["@astrojs/vue@7.1.6", "", { "dependencies": { "@astrojs/internal-helpers": "^0.13.2", "@astrojs/vue-renderer": "^0.1.2", "@vitejs/plugin-vue": "^6.0.10", "@vitejs/plugin-vue-jsx": "^5.1.6", "@vue/compiler-sfc": "^3.5.45", "vite": "^8.3.6", "vite-plugin-vue-devtools": "^8.2.1" }, "peerDependencies": { "astro": "^7.0.0", "vue": "^3.5.24" } }, "sha512-2Ks0mNfZCkEOy2FNVvPWgvwS7bfg1UXmi5GEkDJt5T9RaqU3SxsVIo/Np0ziLDdAER8Tz0Jg6+BVJwweAuGOaw=="],
+
+ "@astrojs/vue-renderer": ["@astrojs/vue-renderer@0.1.2", "", { "dependencies": { "@astrojs/runtime": "^0.1.1" }, "peerDependencies": { "vue": "^3.5.24" } }, "sha512-2LvAzAZJUQXG2wJGcCOYehJ/xo3HwFBd4wIlmFkp8wRAq7cceKWc33Qap6khUDVlH6hJcbGZ5L6+O7iuocseeA=="],
"@astrojs/yaml2ts": ["@astrojs/yaml2ts@0.2.4", "", { "dependencies": { "yaml": "^2.8.3" } }, "sha512-8oddpOae35pJsXPQXhTkM0ypfKPskVsh2bCxRtbf7e+/Epw2nReakFYpLKjZMEr75CsoF203PMnCocpfz0s69A=="],
@@ -575,13 +581,13 @@
"@esbuild/win32-x64": ["@esbuild/win32-x64@0.28.2", "", { "os": "win32", "cpu": "x64" }, "sha512-5ebpxr3nWMzrL/rnUI755Jkuee0bHL/Gq0WTF9lvcpv73wAp5eu8MfBUgWK9bhWvZjj7yX8etf/8tI8Ney695g=="],
- "@expressive-code/core": ["@expressive-code/core@0.44.3", "", { "dependencies": { "@ctrl/tinycolor": "^4.0.4", "hast-util-select": "^6.0.2", "hast-util-to-html": "^9.0.1", "hast-util-to-text": "^4.0.1", "hastscript": "^9.0.0", "postcss": "^8.4.38", "postcss-nested": "^7.0.2", "unist-util-visit": "^5.0.0", "unist-util-visit-parents": "^6.0.1" } }, "sha512-pffktF0TJoxC08dgNcutl/0LcSnTrjF6vXR39qVpwZ0EyxpwO9zjI7dbni6sO7w3yHpRBO0voLFvhzB+EPJRsA=="],
+ "@expressive-code/core": ["@expressive-code/core@0.44.4", "", { "dependencies": { "@ctrl/tinycolor": "^4.0.4", "hast-util-select": "^6.0.2", "hast-util-to-html": "^9.0.1", "hast-util-to-text": "^4.0.1", "hastscript": "^9.0.0", "postcss": "^8.4.38", "postcss-nested": "^7.0.2", "unist-util-visit": "^5.0.0", "unist-util-visit-parents": "^6.0.1" } }, "sha512-dkn3fyIZeHaqQCnpX5ESSR7eI9FMeLFiKDCzFliFy2SPog6sf9NFmiO9wzvEMfgmL8GMWK6P25l6JYLP2wRoLA=="],
- "@expressive-code/plugin-frames": ["@expressive-code/plugin-frames@0.44.3", "", { "dependencies": { "@expressive-code/core": "^0.44.3" } }, "sha512-ysW4VXk9vXEliA99Ur6ApUepVtx74sPolp6o/j45BRjZQoL5O6kXKMhSP4koQLih8HbC5B3ImIvO+HKKhkv/oA=="],
+ "@expressive-code/plugin-frames": ["@expressive-code/plugin-frames@0.44.4", "", { "dependencies": { "@expressive-code/core": "^0.44.4" } }, "sha512-wlfwIl62MlPiE6qj1HuqMfpDF96RyAn2YxaD9qct5d+CjmH8G3j819wPJ23NgWtEqSVIJKdZVeN8OcRHafUiyw=="],
- "@expressive-code/plugin-shiki": ["@expressive-code/plugin-shiki@0.44.3", "", { "dependencies": { "@expressive-code/core": "^0.44.3", "shiki": "^4.0.2" } }, "sha512-jAibAZPG7lDmi61EFJADZjoSZzjHiwZZdbbgR/mTlWXM4ON/Pyo/9tB2vrqQNKylsci6jqtCi6idrwqQXF53xA=="],
+ "@expressive-code/plugin-shiki": ["@expressive-code/plugin-shiki@0.44.4", "", { "dependencies": { "@expressive-code/core": "^0.44.4", "shiki": "^4.0.2" } }, "sha512-390h3iPn6eTYzQvdv/b5YD7K96/86PLPHzaEBNLm44dmSufcTqcOC8zR8R0T5DBE+KTlT/ValIhwjUNy/9DreA=="],
- "@expressive-code/plugin-text-markers": ["@expressive-code/plugin-text-markers@0.44.3", "", { "dependencies": { "@expressive-code/core": "^0.44.3" } }, "sha512-4Ae2xRSDV5kdWPsi40xWbOtoihbzM0zLVjQKkDAnD5KzFXl+6/kd+VhuWOlTRVaJ5cqGk++vCbAaf0MR1XbZlw=="],
+ "@expressive-code/plugin-text-markers": ["@expressive-code/plugin-text-markers@0.44.4", "", { "dependencies": { "@expressive-code/core": "^0.44.4" } }, "sha512-cfjqsNh4oYikxFeylXKhZ0BxvrwIIztu+g5JFFObYMO3YTmHwv66DrHCh91wTgTGz0q4+Tj/iTIYkngqCpX0Cg=="],
"@floating-ui/core": ["@floating-ui/core@1.8.0", "", { "dependencies": { "@floating-ui/utils": "^0.2.12" } }, "sha512-0CIZ5itps/8x7BG8dEIhs53BvCUH2PCoogtakwRTut+Arm58sJooJ0AuZhLw2HJYIR5cMLNPBSS728sPho2khQ=="],
@@ -739,7 +745,7 @@
"@oslojs/encoding": ["@oslojs/encoding@1.1.0", "", {}, "sha512-70wQhgYmndg4GCPxPPxPGevRKqTIJ2Nh4OkiMWmDAVYsTQ+Ta7Sq+rPevXyXGdzr30/qZBnyOalCszoMxlyldQ=="],
- "@oxc-project/types": ["@oxc-project/types@0.156.0", "", {}, "sha512-1Duyg48TdJNdyhEB8Xn1L36bT9Pv6GUtlKjHxOys8xkaF/rQq3XJE+bAurSK/AgIz5mGFsb77cn9Pb20+WCScw=="],
+ "@oxc-project/types": ["@oxc-project/types@0.159.0", "", {}, "sha512-QWjWhxheluOJ82kDHNyps00UvRpQCtI34B5A/SzpgQycUD/79FuvT4I0aQIfE/bdPwKmX4QPftnywFBH6FxJhQ=="],
"@pagefind/darwin-arm64": ["@pagefind/darwin-arm64@1.6.0", "", { "os": "darwin", "cpu": "arm64" }, "sha512-611gl64aqN12UcMyKPtZ8+vRWBKlJFSh2JgO8uScxa1Eyjo1dXz9r4wZuRno0yCUE/KN0FauEoKZ3KEwUYHCCg=="],
@@ -761,37 +767,37 @@
"@polka/url": ["@polka/url@1.0.0-next.29", "", {}, "sha512-wwQAWhWSuHaag8c4q/KN/vCoeOJYshAIvMQwD4GpSb3OiZklFfvAgmj0VCBBImRpuF/aFgIRzllXlVX93Jevww=="],
- "@rolldown/binding-android-arm-eabi": ["@rolldown/binding-android-arm-eabi@1.2.19", "", { "os": "android", "cpu": "arm" }, "sha512-e+Ebe0WT+9tbXmNKPIiC8YrWAHYwug3m6i4p3rZGGulfZri1jtI4HslT+OZnFf/OIHowWF71DTlHwXBP2SiA7A=="],
+ "@rolldown/binding-android-arm-eabi": ["@rolldown/binding-android-arm-eabi@1.3.3", "", { "os": "android", "cpu": "arm" }, "sha512-K1itOg1Xl50XyjLDa4qQZqaYsfiQbFbFRWXOEOupOsGr3whhm5ed4lgySd6Inohv2TB0+sdU4AxORKuS/TGang=="],
- "@rolldown/binding-android-arm64": ["@rolldown/binding-android-arm64@1.2.19", "", { "os": "android", "cpu": "arm64" }, "sha512-hOombrTJ+szt2ciEzS7oCA78lMPBgF5UMQWCJIyNfnrI7GLl8HYoFqCnpL2gcPOaXMqryGCU5ExdQKyDDcC+yA=="],
+ "@rolldown/binding-android-arm64": ["@rolldown/binding-android-arm64@1.3.3", "", { "os": "android", "cpu": "arm64" }, "sha512-re+E0E3YSJXjEFzdOvBgkVUev1Gg49ileia04qy+Djn0lIMBr7pnwVOYQ+4vc9XbLClCmMziasqXHM7KTmKNKQ=="],
- "@rolldown/binding-darwin-arm64": ["@rolldown/binding-darwin-arm64@1.2.19", "", { "os": "darwin", "cpu": "arm64" }, "sha512-XoMA2pwCKGTQzUjPgtRwkedH4WmXhdIPKT6l6oOxd1PUbNodGI6DcBekgN7EC//+x3pfBYX/qL1gNmZAqivw5g=="],
+ "@rolldown/binding-darwin-arm64": ["@rolldown/binding-darwin-arm64@1.3.3", "", { "os": "darwin", "cpu": "arm64" }, "sha512-6pMLYsUiQJXPkUj/CG447hOBKtbe+hjWw/wbxe/mucoPKgnLSVRTzey7s0kXfqrjxhDd3gQ2hj6lgUKRumsIzw=="],
- "@rolldown/binding-darwin-x64": ["@rolldown/binding-darwin-x64@1.2.19", "", { "os": "darwin", "cpu": "x64" }, "sha512-zo8EsSSwMZCY/e+fRnGaX02YGgvJD0yvhNi/9hpGPA2MJ9ZF8dPCw75UGfpI6OpQ/myR/dIYmogRvqiZD0TrXg=="],
+ "@rolldown/binding-darwin-x64": ["@rolldown/binding-darwin-x64@1.3.3", "", { "os": "darwin", "cpu": "x64" }, "sha512-Lz+TskwvhceQgwnP+0ox5ZeL7HDDXHKWVRpOqC1Eo05y6rYyfvvep0msGqC95kQTykXrmGgP6qwJB1NdgNZVhg=="],
- "@rolldown/binding-freebsd-x64": ["@rolldown/binding-freebsd-x64@1.2.19", "", { "os": "freebsd", "cpu": "x64" }, "sha512-O8ISAOfI1nj7AuBPd30FSF47z7f7lzlk5poQVGgiikvQuGEBFYvW8ki+UEnT+YJPnNGjQzn304klt4O9FUE7mA=="],
+ "@rolldown/binding-freebsd-x64": ["@rolldown/binding-freebsd-x64@1.3.3", "", { "os": "freebsd", "cpu": "x64" }, "sha512-sIzqNDbA7GFDXU8k9/vcJyV1p45mCe+xHOLo9qD7gdbTbMlwB+SpnFoP7WSpC2iYdGfOX9pjBxCfViRn/Nu3Jw=="],
- "@rolldown/binding-linux-arm-gnueabihf": ["@rolldown/binding-linux-arm-gnueabihf@1.2.19", "", { "os": "linux", "cpu": "arm" }, "sha512-/lYCba5NO0yq4S0jGMH8QTBtkvQxoXjoQWzF5BcWp9MjB9jxVRD1GQDNofkVjcOj30DWyhLIN/4Oe60JKzaONw=="],
+ "@rolldown/binding-linux-arm-gnueabihf": ["@rolldown/binding-linux-arm-gnueabihf@1.3.3", "", { "os": "linux", "cpu": "arm" }, "sha512-HYysnZZ7HD3FM5RIBN6wDMoxtOjw4LS9HhRuQ57MsZt5XGpGRPxVpplvr7vUXRN+9MD8zb6vn1JRP06PXIuMYQ=="],
- "@rolldown/binding-linux-arm64-gnu": ["@rolldown/binding-linux-arm64-gnu@1.2.19", "", { "os": "linux", "cpu": "arm64" }, "sha512-pm/apFMBnSbFb3O6nG5pHO1iqHhZrjGDFEjSm+ot9J17XXPvH9L90y5h+jgfHCE+Qdlsvy8qKEcU4VKxgjD+vA=="],
+ "@rolldown/binding-linux-arm64-gnu": ["@rolldown/binding-linux-arm64-gnu@1.3.3", "", { "os": "linux", "cpu": "arm64" }, "sha512-XAyLqWSoEKVc8wsDbCIz5o2sBY6ye+0YByK9ib5QxFReoM1KHyThSHsdUODa1DKNzlEfae+p9QwK62LsVwo6Nw=="],
- "@rolldown/binding-linux-arm64-musl": ["@rolldown/binding-linux-arm64-musl@1.2.19", "", { "os": "linux", "cpu": "arm64" }, "sha512-K1SmQp3FFichn8oqrNIwvFoZ5wcvjC7goBzpaMNvLf9FZc+QB/QvLmnpJZgAAGHiD980tP8FZZnXk2K94rvlxg=="],
+ "@rolldown/binding-linux-arm64-musl": ["@rolldown/binding-linux-arm64-musl@1.3.3", "", { "os": "linux", "cpu": "arm64" }, "sha512-oVyicDPj6vUVFRnuoQS7M2Ab8EkGWoq3a5ntyQqjtZoXfgVykIJqN2IAJSi9q9UyNoQUW0vbBLQSgGtlPJ40Kg=="],
- "@rolldown/binding-linux-ppc64-gnu": ["@rolldown/binding-linux-ppc64-gnu@1.2.19", "", { "os": "linux", "cpu": "ppc64" }, "sha512-I0xwD57jP/3A7+5UPZin2w8Y7XHEmEM5zqpYZOcQ45MlNW6tUJUziymV3yRr7rL4vwyfEcRsRksC4a7Kc08p5Q=="],
+ "@rolldown/binding-linux-ppc64-gnu": ["@rolldown/binding-linux-ppc64-gnu@1.3.3", "", { "os": "linux", "cpu": "ppc64" }, "sha512-k7aFSWgUoi/X7jCst7UEof7pS5jc5ymD8mT/pdFE+pO1IBBI2+JU5Os4HEDqS/tYhetRggwM7MOiLP3cg1bSBQ=="],
- "@rolldown/binding-linux-s390x-gnu": ["@rolldown/binding-linux-s390x-gnu@1.2.19", "", { "os": "linux", "cpu": "s390x" }, "sha512-BrtEHT24SNXj9HiXqy+s/kXiSiQGt6EKCPUlRirAoIioVxKGnbXBUEkbZASAei7iZJB0/Ynm+0JP00Ipx7AnSw=="],
+ "@rolldown/binding-linux-s390x-gnu": ["@rolldown/binding-linux-s390x-gnu@1.3.3", "", { "os": "linux", "cpu": "s390x" }, "sha512-D5mxHpr1qIb1Pt5UT+Bm2p6vJ7+VxcxWcxZCYVDFzZwWRq9iLiEg4/ROsaXFQl1O8sDQZZJ55UoRWWMK64uH5w=="],
- "@rolldown/binding-linux-x64-gnu": ["@rolldown/binding-linux-x64-gnu@1.2.19", "", { "os": "linux", "cpu": "x64" }, "sha512-rm75/9DkHKeU2WnA8w4X94WGYgLlDCFCfkQC+4bguVJmC/jvDRv2B+2wLOYhyE0fVuv7//Ckk39OoOufyCu76Q=="],
+ "@rolldown/binding-linux-x64-gnu": ["@rolldown/binding-linux-x64-gnu@1.3.3", "", { "os": "linux", "cpu": "x64" }, "sha512-nmW1O4BbNEmQI9+KTHbJgbDv0EuyZy64oBnRlMCtLJ8lQMIJ/H/iziQ0g2IUlHEhNrSebGvs9cRrlRj8oEfP+g=="],
- "@rolldown/binding-linux-x64-musl": ["@rolldown/binding-linux-x64-musl@1.2.19", "", { "os": "linux", "cpu": "x64" }, "sha512-irh/4+iYFM4GAzpluDErgjz89bj6NDtqqMAG/6O1LG38Ed3NpyebzCpcVNkFW8uhy+/3/BocUvnXDR33CXWe9A=="],
+ "@rolldown/binding-linux-x64-musl": ["@rolldown/binding-linux-x64-musl@1.3.3", "", { "os": "linux", "cpu": "x64" }, "sha512-ivU4JFHK5nFzrRbzp3+vwYdLj8mFckH4oz3hEl5LH/YeThr9/m2N2vF3NvLevtHq6e0COimgrEVyYTwQhh4ODg=="],
- "@rolldown/binding-openharmony-arm64": ["@rolldown/binding-openharmony-arm64@1.2.19", "", { "os": "none", "cpu": "arm64" }, "sha512-+KWTWNoPt+CfSq94CiceWu3yPE+QzkaG+phPyz9G60tmZLwfQkcA4AeksafzvJAw4pvg1mcd5a1TkUqVv0s4JA=="],
+ "@rolldown/binding-openharmony-arm64": ["@rolldown/binding-openharmony-arm64@1.3.3", "", { "os": "none", "cpu": "arm64" }, "sha512-XxZoRIkNZ/7pFgvOA8QJmx3uFjMyVz7zS2/urzlaFffoOGclDvpUAMu3AHKT551E8JBKXLxIjpYxYMdF6Mz9vQ=="],
- "@rolldown/binding-wasm32-wasi": ["@rolldown/binding-wasm32-wasi@1.2.19", "", { "dependencies": { "@emnapi/core": "2.0.0-beta.2", "@emnapi/runtime": "2.0.0-beta.2", "@napi-rs/wasm-runtime": "1.2.6" }, "cpu": "none" }, "sha512-7EH+skOsl5qpWnK0vzamgJFhOv1cwxQpsxm8tI883K9fur5c27p8q87fzEO6BbBPabA2/+s/zR63/pLc137iOg=="],
+ "@rolldown/binding-wasm32-wasi": ["@rolldown/binding-wasm32-wasi@1.3.3", "", { "dependencies": { "@emnapi/core": "2.0.0-beta.2", "@emnapi/runtime": "2.0.0-beta.2", "@napi-rs/wasm-runtime": "1.2.6" }, "cpu": "none" }, "sha512-bBl1MB2gF26PSPy3CiDLiv+A6JGI546WbsDR34LfKAywSGeBeQXaDanoDG6QdZDJs53M1QyJir5MTKTu1n4ptA=="],
- "@rolldown/binding-win32-arm64-msvc": ["@rolldown/binding-win32-arm64-msvc@1.2.19", "", { "os": "win32", "cpu": "arm64" }, "sha512-3Q1Yg1Q7tEvBWoZf5rFvG/GKZQPgwfru+p4wBajDfJFBs0SHCpL++dfTjW9gyAKd1T7ZpIYvdaUax7Pa/IhFVQ=="],
+ "@rolldown/binding-win32-arm64-msvc": ["@rolldown/binding-win32-arm64-msvc@1.3.3", "", { "os": "win32", "cpu": "arm64" }, "sha512-6rZur0hyen4LPhOxWIg7az1YX+Eo8Vvauc0D6lFYGK/QCvN+1XpnB8aFe3jQc/PBUGIReJJnLX3sS8h33/5v7A=="],
- "@rolldown/binding-win32-x64-msvc": ["@rolldown/binding-win32-x64-msvc@1.2.19", "", { "os": "win32", "cpu": "x64" }, "sha512-y/sqRRc6d7hECzOFc5n3LSeqctmIp9mMjY1Kq4s14uLPd/LZ4z7i1zrW6fMtp2mPeuQIC4e6ULMcwQzMomqQag=="],
+ "@rolldown/binding-win32-x64-msvc": ["@rolldown/binding-win32-x64-msvc@1.3.3", "", { "os": "win32", "cpu": "x64" }, "sha512-Ggzyuq1mN7claruAZH10aiiM1N3LRCoMP5xDXPdU514ulL0D2bksCWgFqEmEM2/pDzEP7Dq+dcv7IH452jtr1w=="],
"@rolldown/pluginutils": ["@rolldown/pluginutils@1.1.1", "", {}, "sha512-glFIJDvLNDtJhT9qrMFWLPbvS+skxgt4L0K8Ei2YtnhPysAJnsI7nyxSJxKj4ADeKX0OLjC4ntRkwpLOoS3rwA=="],
@@ -969,8 +975,6 @@
"@types/hast": ["@types/hast@3.0.5", "", { "dependencies": { "@types/unist": "*" } }, "sha512-rp/ezSWaD1m44dPKICGhiskI13nVr7qTloFwDa/IYkhhf5nzwP+zIQcIJh3WIFSBOy/H1PzB40jPjMDksN4F+g=="],
- "@types/js-yaml": ["@types/js-yaml@4.0.9", "", {}, "sha512-k4MGaQl5TGo/iipqb2UDG2UwjXziSWkh0uysQelTlJpX1qGlpUZYm8PnO4DxG1qBomtJUdYJ6qR6xdIah10JLg=="],
-
"@types/mdast": ["@types/mdast@4.0.4", "", { "dependencies": { "@types/unist": "*" } }, "sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA=="],
"@types/mdx": ["@types/mdx@2.0.14", "", {}, "sha512-T48PeuJtvLosNTPVhfnIp3i/n3a4g4Bad7YCq5k64D4u7NwDrAotikQ+5+sjtUvBmxCMlbo3dVL+C2dP0rWHzg=="],
@@ -981,8 +985,6 @@
"@types/node": ["@types/node@26.6.6", "", { "dependencies": { "undici-types": "~8.9.0" } }, "sha512-MzQj+8Kx3XI40OmUAE6Qoh58ZMNstNNMwn2nfd3qWsfe7nDNSqJNzes4njhz6AHwrSHOffSLwXU6yb474Q4aog=="],
- "@types/picomatch": ["@types/picomatch@4.0.3", "", {}, "sha512-iG0T6+nYJ9FAPmx9SsUlnwcq1ZVRuCXcVEvWnntoPlrOpwtSTKNDC9uVAxTsC3PUvJ+99n4RpAcNgBbHX3JSnQ=="],
-
"@types/react": ["@types/react@19.2.17", "", { "dependencies": { "csstype": "^3.2.2" } }, "sha512-MXfmqaVPEVgkBT/aY0aGCkRWWtByiYQXo3xdQ8r5RzuFrPiRn8Gar2tQdXSUQ2GKV3bkXckek89V8wQBY2Q/Aw=="],
"@types/sax": ["@types/sax@1.2.7", "", { "dependencies": { "@types/node": "*" } }, "sha512-rO73L89PJxeYM3s3pPPjiPgVVcymqU490g0YO5n5By0k2Erzj6tay/4lr1CHAAU4JyOWd1rpQ8bCf6cZfHU96A=="],
@@ -1093,13 +1095,13 @@
"@vue/babel-plugin-resolve-type": ["@vue/babel-plugin-resolve-type@2.0.1", "", { "dependencies": { "@babel/code-frame": "^7.27.1", "@babel/helper-module-imports": "^7.27.1", "@babel/helper-plugin-utils": "^7.27.1", "@babel/parser": "^7.28.4", "@vue/compiler-sfc": "^3.5.22" }, "peerDependencies": { "@babel/core": "^7.0.0-0" } }, "sha512-ybwgIuRGRRBhOU37GImDoWQoz+TlSqap65qVI6iwg/J7FfLTLmMf97TS7xQH9I7Qtr/gp161kYVdhr1ZMraSYQ=="],
- "@vue/compiler-core": ["@vue/compiler-core@3.5.39", "", { "dependencies": { "@babel/parser": "^7.29.7", "@vue/shared": "3.5.39", "entities": "^7.0.1", "estree-walker": "^2.0.2", "source-map-js": "^1.2.1" } }, "sha512-16KBTEXAJCpDr0mwlw+AZyhu8iyC7R3S2vBwsI7QnWJU6X3WKc9VKeNEZpiMdZ569qWhz9574L3vV55qRL0Vtw=="],
+ "@vue/compiler-core": ["@vue/compiler-core@3.5.45", "", { "dependencies": { "@babel/parser": "^7.29.12", "@vue/shared": "3.5.45", "entities": "^7.0.1", "estree-walker": "^2.0.2", "source-map-js": "^1.2.2" } }, "sha512-XGHJrM6ufZARAc/w+tyOswStw9tdKiqCKBScI4gGaNxD+aaGu/HQWgKJ+JItjRLPqenQ7iE7G8AJC7T5ew1p+g=="],
"@vue/compiler-dom": ["@vue/compiler-dom@3.5.39", "", { "dependencies": { "@vue/compiler-core": "3.5.39", "@vue/shared": "3.5.39" } }, "sha512-oQPigALqYbNxTNPvNgSOe+czwVExfbVF02lz8jP0S3AXJiu3jxYDygNUiqSep4ezzW8XgnubqH63My2A7JR/vg=="],
- "@vue/compiler-sfc": ["@vue/compiler-sfc@3.5.39", "", { "dependencies": { "@babel/parser": "^7.29.7", "@vue/compiler-core": "3.5.39", "@vue/compiler-dom": "3.5.39", "@vue/compiler-ssr": "3.5.39", "@vue/shared": "3.5.39", "estree-walker": "^2.0.2", "magic-string": "^0.30.21", "postcss": "^8.5.15", "source-map-js": "^1.2.1" } }, "sha512-d0ki86iOyN8LoZPBmk5SJWNwHP19CnDDCfuo//+2WJa2g5Ke0Jay983PIBIcSSzldC68I8DrD5GrHV3OSDfodg=="],
+ "@vue/compiler-sfc": ["@vue/compiler-sfc@3.5.45", "", { "dependencies": { "@babel/parser": "^7.29.12", "@vue/compiler-core": "3.5.45", "@vue/compiler-dom": "3.5.45", "@vue/compiler-ssr": "3.5.45", "@vue/shared": "3.5.45", "estree-walker": "^2.0.2", "magic-string": "^0.30.21", "postcss": "^8.5.32", "source-map-js": "^1.2.2" } }, "sha512-MKFjb2UX0M/l/jhfzqMLrI8VM4pfvFKG3pqFZkSZFHRLtNld/O4RtUPZFWSwhro/14qP88UQEkWzHxAZAQ0tsw=="],
- "@vue/compiler-ssr": ["@vue/compiler-ssr@3.5.39", "", { "dependencies": { "@vue/compiler-dom": "3.5.39", "@vue/shared": "3.5.39" } }, "sha512-Ce7/wvwMHai74bdszfXExdazFigYnlF9zgCmEQUcM1j0fOymlouZ7XilTYNo8oUjhlnjYOZbGrcYKuqjz89Ucw=="],
+ "@vue/compiler-ssr": ["@vue/compiler-ssr@3.5.45", "", { "dependencies": { "@vue/compiler-dom": "3.5.45", "@vue/shared": "3.5.45" } }, "sha512-RF5sbZOfYz5AK00tOJUn2PwFXR2fS1u2HVzI8D9VF9rGAFxuGBqg2bB1kJ3ZHMprqSltXnT9MZE1IsqjSM8oew=="],
"@vue/devtools-core": ["@vue/devtools-core@8.2.1", "", { "dependencies": { "@vue/devtools-kit": "^8.2.1", "@vue/devtools-shared": "^8.2.1" }, "peerDependencies": { "vue": "^3.0.0" } }, "sha512-s/VfAY9oDTb/kFEWmy461jaFde2MIV1RO/gi1vwM+PAZBZ/Pc2Ndu3BNBdZUze8QDUuyYvElbEEGA83syjJfzA=="],
@@ -1147,7 +1149,7 @@
"alien-signals": ["alien-signals@3.2.1", "", {}, "sha512-I8FjmltrfnDFoZedi5CG8DghVYNhzb/Ijluz7tCSJH0xpd0484Kowhbb1XDYOxfJpU1p5wnM2X54dA+IfGyD1g=="],
- "am-i-vibing": ["am-i-vibing@0.4.0", "", { "dependencies": { "process-ancestry": "^0.1.0" }, "bin": { "am-i-vibing": "dist/cli.mjs" } }, "sha512-MxT4XZL7pzLHpuvhDKdMaQHMGGkJDLluKBLsbstn+8wv9sWcFT6h+0ve9qkml95amVTZtZV83gQe2hY+ojgHLg=="],
+ "am-i-vibing": ["am-i-vibing@0.5.0", "", { "dependencies": { "process-ancestry": "^0.1.0" }, "bin": { "am-i-vibing": "dist/cli.mjs" } }, "sha512-KLcsDhqf1XRrJmJr+9I/C0EX2K+sGrAGZFgkmd84c8TJO9zJBu+/kFInjazu1KfJWFhWDKdRWkpBzEs7s35DVA=="],
"ansi-escapes": ["ansi-escapes@7.3.0", "", { "dependencies": { "environment": "^1.0.0" } }, "sha512-BvU8nYgGQBxcmMuEeUEmNTvrMVjJNSH7RgW24vXexN4Ven6qCvy4TntnvlnwnMLTVlcRQQdbRY8NKnaIoeWDNg=="],
@@ -1161,17 +1163,15 @@
"anymatch": ["anymatch@3.1.3", "", { "dependencies": { "normalize-path": "^3.0.0", "picomatch": "^2.0.4" } }, "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw=="],
- "argparse": ["argparse@2.0.1", "", {}, "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q=="],
-
"aria-query": ["aria-query@5.3.2", "", {}, "sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw=="],
"array-iterate": ["array-iterate@2.0.1", "", {}, "sha512-I1jXZMjAgCMmxT4qxXfPXa6SthSoE8h6gkSI9BGGNv8mP8G/v0blc+qFnZu6K42vTOiuME596QaLO0TP3Lk0xg=="],
"astring": ["astring@1.9.0", "", { "bin": { "astring": "bin/astring" } }, "sha512-LElXdjswlqjWrPpJFg1Fx4wpkOCxj1TDHlSV4PlaRxHGWko024xICaa97ZkMfs6DRKlCguiAI+rbXv5GWwXIkg=="],
- "astro": ["astro@7.3.5", "", { "dependencies": { "@astrojs/compiler-rs": "^0.5.0", "@astrojs/internal-helpers": "0.11.0", "@astrojs/markdown-satteri": "0.4.2", "@astrojs/telemetry": "3.3.3", "@capsizecss/unpack": "^4.0.0", "@clack/prompts": "^1.1.0", "@oslojs/encoding": "^1.1.0", "am-i-vibing": "^0.4.0", "aria-query": "^5.3.2", "axobject-query": "^4.1.0", "ci-info": "^4.4.0", "clsx": "^2.1.1", "common-ancestor-path": "^2.0.0", "cookie": "^2.0.1", "devalue": "^5.8.1", "diff": "^9.0.0", "dset": "^3.1.4", "es-module-lexer": "^2.0.0", "esbuild": "^0.28.0", "find-proc": "0.2.0", "flattie": "^1.1.1", "fontace": "~0.4.1", "get-tsconfig": "5.0.0-beta.4", "github-slugger": "^2.0.0", "html-escaper": "3.0.3", "http-cache-semantics": "^4.2.0", "js-yaml": "^4.3.2", "jsonc-parser": "^3.3.1", "magic-string": "^1.0.0", "magicast": "^0.5.2", "mrmime": "^2.0.1", "neotraverse": "^1.0.1", "obug": "^3.0.0", "p-limit": "^7.3.0", "p-queue": "^9.1.0", "package-manager-detector": "^1.6.0", "piccolore": "^0.1.3", "picomatch": "^4.0.4", "shiki": "^4.0.2", "smol-toml": "^1.8.0", "svgo": "^4.1.0", "tinyclip": "^1.0.1", "tinyexec": "^1.0.4", "tinyglobby": "^0.2.15", "ultrahtml": "^1.6.0", "unifont": "~0.7.5", "unstorage": "^1.17.5", "verkit": "^0.4.0", "vite": "^8.0.13", "vitefu": "^1.1.2", "xxhash-wasm": "^1.1.0", "yargs-parser": "^22.0.0", "zod": "^4.5.4" }, "optionalDependencies": { "sharp": "^0.35.4" }, "peerDependencies": { "@astrojs/markdown-remark": "^7.3.0" }, "optionalPeers": ["@astrojs/markdown-remark"], "bin": { "astro": "./bin/astro.mjs" } }, "sha512-1p/ernaq/RuESbM5NMjWzbO6SiebMGrGcYlGjMfBhzzgM+n/X7AUmVyw8BqW2QYCdivpsHwJBcD1fqmlTZjZHg=="],
+ "astro": ["astro@7.4.13", "", { "dependencies": { "@astrojs/compiler-rs": "^0.5.3", "@astrojs/internal-helpers": "^0.13.2", "@astrojs/markdown-satteri": "^0.4.10", "@astrojs/runtime": "^0.1.2", "@astrojs/telemetry": "^3.4.2", "@astrojs/vite-plugin-astro": "^0.1.3", "@capsizecss/unpack": "^4.0.1", "@clack/prompts": "^1.9.0", "@oslojs/encoding": "^1.1.0", "am-i-vibing": "^0.5.0", "aria-query": "^5.3.2", "axobject-query": "^4.1.0", "ci-info": "^4.5.0", "cookie": "^2.0.2", "devalue": "^6.0.3", "diff": "^9.0.0", "dset": "^3.1.4", "es-module-lexer": "^3.0.4", "flattie": "^1.1.1", "fontace": "~0.4.1", "get-tsconfig": "5.0.0-beta.6", "github-slugger": "^2.0.0", "html-escaper": "3.0.3", "http-cache-semantics": "^4.3.0", "jsonc-parser": "^3.3.1", "magic-string": "^1.4.5", "magicast": "^0.5.5", "mri": "^1.2.0", "mrmime": "^2.0.1", "neotraverse": "^1.0.2", "obug": "^3.0.0", "p-limit": "^7.3.3", "p-queue": "^10.0.0", "package-manager-detector": "^1.9.0", "piccolore": "^0.1.3", "picomatch": "^4.0.7", "rolldown": "~1.3.2", "shiki": "^4.6.0", "smol-toml": "^1.9.1", "svgo": "^4.1.0", "tinyclip": "^1.0.3", "tinyexec": "^1.3.1", "tinyglobby": "^0.2.17", "tinyps": "^0.5.2", "ultrahtml": "^1.7.0", "unifont": "^1.0.3", "unstorage": "^1.17.6", "verkit": "^0.5.0", "vite": "^8.3.8", "vitefu": "^1.1.3", "xxhash-wasm": "^1.1.0", "zod": "^4.6.7" }, "optionalDependencies": { "sharp": "^0.35.4" }, "peerDependencies": { "@astrojs/markdown-remark": "^7.3.0" }, "optionalPeers": ["@astrojs/markdown-remark"], "bin": { "astro": "./bin/astro.mjs" } }, "sha512-tcpMXEB9jypYzbnzT/g6yxL0jRkFlj3WsvxcWgsxRjPBUE6r81qLo/7kN5GMWz6hC7spzrg6fvCeL2HG0Bl68g=="],
- "astro-expressive-code": ["astro-expressive-code@0.44.3", "", { "dependencies": { "rehype-expressive-code": "^0.44.3", "url-extras": "^0.1.0" }, "peerDependencies": { "astro": "^4.0.0-beta || ^5.0.0-beta || ^3.3.0 || ^6.0.0-beta || ^7.0.0" } }, "sha512-LUpQmmvzr90JXP5QIAopgdjlOKLuT3x0wlPAUpc4OZtPtFS8sbflPcGPpL/lG3pQuUCQV2CXUFgYNBYNu9tphA=="],
+ "astro-expressive-code": ["astro-expressive-code@0.44.4", "", { "dependencies": { "rehype-expressive-code": "^0.44.4", "url-extras": "^0.1.0" }, "peerDependencies": { "astro": "^4.0.0-beta || ^5.0.0-beta || ^3.3.0 || ^6.0.0-beta || ^7.0.0" } }, "sha512-TxdQ/E1xP7P6gq9Z5XHuLNpWzgOP2xz7aKyW3w2FDkIOkXbcyXh/C7of7E+NYIX3Ws2Oq+Aaliuwy/ewavH+UQ=="],
"astro-theme-toggle": ["astro-theme-toggle@0.8.2", "", {}, "sha512-x6DKMc4V5q47s5Wc3tvC11Yhd9VFVA8XQflD23GX+BpdEIv2wLN0592wIllrCtrMgiv6TgdiVSruhx18qg2Qtw=="],
@@ -1387,7 +1387,7 @@
"detect-libc": ["detect-libc@2.1.2", "", {}, "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ=="],
- "devalue": ["devalue@5.9.4", "", {}, "sha512-sPAT4pztbu6586/hrhOnMKS17IJrvg12mXiSPSS3W5qDeN2RGgvZ0diZCm31dBbnevfVmujNO3IM2wrS4Y2Rhg=="],
+ "devalue": ["devalue@6.0.3", "", {}, "sha512-3woMEITftG1wKeO/4d/QXH1DVKctTSZg3jNGPpjp9hNr5Hos8MCFF5McTML5ZtgKDObm2R591B0spRp2IVernA=="],
"devlop": ["devlop@1.1.0", "", { "dependencies": { "dequal": "^2.0.0" } }, "sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA=="],
@@ -1461,11 +1461,9 @@
"estree-walker": ["estree-walker@3.0.3", "", { "dependencies": { "@types/estree": "^1.0.0" } }, "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g=="],
- "eventemitter3": ["eventemitter3@5.0.4", "", {}, "sha512-mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw=="],
-
"eventsource-parser": ["eventsource-parser@3.1.1", "", {}, "sha512-EKN1vKAMcZ8MlYMpaNuxN6R9yakzH6uajHcHVTqWJzvu5pWw9DyhbP35HH8MVBQ+dZjAfDxk+A8NiR9KWaXiyQ=="],
- "expressive-code": ["expressive-code@0.44.3", "", { "dependencies": { "@expressive-code/core": "^0.44.3", "@expressive-code/plugin-frames": "^0.44.3", "@expressive-code/plugin-shiki": "^0.44.3", "@expressive-code/plugin-text-markers": "^0.44.3" } }, "sha512-7RGslhJTNt01pdn5I3QmVh5C8ZIiSm0A+ORQ9j9r39oOgJVKjn/7dXl9rMT/SqmFLE6pJkTYI7UjW0BxJnW7OQ=="],
+ "expressive-code": ["expressive-code@0.44.4", "", { "dependencies": { "@expressive-code/core": "^0.44.4", "@expressive-code/plugin-frames": "^0.44.4", "@expressive-code/plugin-shiki": "^0.44.4", "@expressive-code/plugin-text-markers": "^0.44.4" } }, "sha512-xaHx7AG7MCmxBkw9d84IQ7OGZLxzYhLYE8/eurS5JSRfY8P6/1XA6I7FueYwqOGKJH/1HPk3/Pmf+9HgVAsTcg=="],
"extend": ["extend@3.0.2", "", {}, "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g=="],
@@ -1481,12 +1479,12 @@
"fdir": ["fdir@6.5.0", "", { "peerDependencies": { "picomatch": "^3 || ^4" }, "optionalPeers": ["picomatch"] }, "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg=="],
- "find-proc": ["find-proc@0.2.0", "", {}, "sha512-a6h2nTrgB3g5Wrn4au9Ux4kMk7IJtyF6oA8uGn+mk3weLZssUtc1cp6meHIzzuW2o1srrBAxzkmXLbqjRkgB6w=="],
-
"fix-dts-default-cjs-exports": ["fix-dts-default-cjs-exports@1.0.1", "", { "dependencies": { "magic-string": "^0.30.17", "mlly": "^1.7.4", "rollup": "^4.34.8" } }, "sha512-pVIECanWFC61Hzl2+oOCtoJ3F17kglZC/6N94eRWycFgBH35hHx0Li604ZIzhseh97mf2p0cv7vVrOZGoqhlEg=="],
"flattie": ["flattie@1.1.1", "", {}, "sha512-9UbaD6XdAL97+k/n+N7JwX46K/M6Zc6KcFYskrYL8wbBV/Uyk0CTAMY0VT+qiK5PM7AIc9aTWYtq65U7T+aCNQ=="],
+ "fnv1a-64": ["fnv1a-64@0.1.2", "", {}, "sha512-mJbcILTPybAR1jdOwt/lVv8N2cffeJFFP+gVbSAwLEx1ujXH27RpPd8Rokec/KX9c76UYIB6Co+H4lQzxPnJfA=="],
+
"fontace": ["fontace@0.4.1", "", { "dependencies": { "fontkitten": "^1.0.2" } }, "sha512-lDMvbAzSnHmbYMTEld5qdtvNH2/pWpICOqpean9IgC7vUbUJc3k+k5Dokp85CegamqQpFbXf0rAVkbzpyTA8aw=="],
"fontkitten": ["fontkitten@1.0.3", "", { "dependencies": { "tiny-inflate": "^1.0.3" } }, "sha512-Wp1zXWPVUPBmfoa3Cqc9ctaKuzKAV6uLstRqlR56kSjplf5uAce+qeyYym7F+PHbGTk+tCEdkCW6RD7DX/gBZw=="],
@@ -1505,7 +1503,7 @@
"get-proto": ["get-proto@1.0.1", "", { "dependencies": { "dunder-proto": "^1.0.1", "es-object-atoms": "^1.0.0" } }, "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g=="],
- "get-tsconfig": ["get-tsconfig@5.0.0-beta.4", "", { "dependencies": { "resolve-pkg-maps": "^1.0.0" } }, "sha512-7nF7C9fIPFEMHgEMEfgIlO9wDdZ8CyHw27rWciFZfHvHDReIiPhsYuzPRXsfvBCqFy1l8RRyyWV7QLM+ZhUJsQ=="],
+ "get-tsconfig": ["get-tsconfig@5.0.0-beta.6", "", { "dependencies": { "resolve-pkg-maps": "^1.0.0" } }, "sha512-X6fBC0pmImC70gvX2zm56go9hx0MyoGVdG0tUCkg/D+Xnh5TJsOZ7iDbOdI3PvmtrDxnu1YdDufpK2QJX1Meqw=="],
"github-slugger": ["github-slugger@2.0.0", "", {}, "sha512-IaOQ9puYtjrkq7Y0Ygl9KDZnrf/aiUJYUpVf89y8kyaxbRG7Y1SrX/jaumrv81vc61+kiMempujsM3Yw7w5qcw=="],
@@ -1551,7 +1549,7 @@
"hast-util-to-estree": ["hast-util-to-estree@3.1.3", "", { "dependencies": { "@types/estree": "^1.0.0", "@types/estree-jsx": "^1.0.0", "@types/hast": "^3.0.0", "comma-separated-tokens": "^2.0.0", "devlop": "^1.0.0", "estree-util-attach-comments": "^3.0.0", "estree-util-is-identifier-name": "^3.0.0", "hast-util-whitespace": "^3.0.0", "mdast-util-mdx-expression": "^2.0.0", "mdast-util-mdx-jsx": "^3.0.0", "mdast-util-mdxjs-esm": "^2.0.0", "property-information": "^7.0.0", "space-separated-tokens": "^2.0.0", "style-to-js": "^1.0.0", "unist-util-position": "^5.0.0", "zwitch": "^2.0.0" } }, "sha512-48+B/rJWAp0jamNbAAf9M7Uf//UVqAoMmgXhBdxTDJLGKY+LRnZ99qcG+Qjl5HfMpYNzS5v4EAwVEF34LeAj7w=="],
- "hast-util-to-html": ["hast-util-to-html@9.0.6", "", { "dependencies": { "@types/hast": "^3.0.0", "@types/unist": "^3.0.0", "ccount": "^2.0.0", "comma-separated-tokens": "^2.0.0", "hast-util-whitespace": "^3.0.0", "html-void-elements": "^3.0.0", "mdast-util-to-hast": "^13.0.0", "property-information": "^7.0.0", "space-separated-tokens": "^2.0.0", "stringify-entities": "^4.0.0", "zwitch": "^2.0.4" } }, "sha512-1SZUxCN3TtJAE7e2BQN2MBHsoZ1gnmi9GoCP5Di59CSWptIezSAW09yDZyVbanb78V9eCwrKqdQsjtfVTxYHWA=="],
+ "hast-util-to-html": ["hast-util-to-html@9.0.7", "", { "dependencies": { "@types/hast": "^3.0.0", "@types/unist": "^3.0.0", "ccount": "^2.0.0", "comma-separated-tokens": "^2.0.0", "hast-util-whitespace": "^3.0.0", "html-void-elements": "^3.0.0", "mdast-util-to-hast": "^13.0.0", "property-information": "^7.0.0", "space-separated-tokens": "^2.0.0", "stringify-entities": "^4.0.0", "zwitch": "^2.0.4" } }, "sha512-HYNDA3qdnzUPitY/LcQm1nWs8z0cWFNH1Nz09jdI/tXifAqF7h3+jrLl4S/b9Mi4VSjn0Dsn54ctuTV6zhBthA=="],
"hast-util-to-jsx-runtime": ["hast-util-to-jsx-runtime@2.3.7", "", { "dependencies": { "@types/estree": "^1.0.0", "@types/hast": "^3.0.0", "@types/unist": "^3.0.0", "comma-separated-tokens": "^2.0.0", "devlop": "^1.0.0", "estree-util-is-identifier-name": "^3.0.0", "hast-util-whitespace": "^3.0.0", "mdast-util-mdx-expression": "^2.0.0", "mdast-util-mdx-jsx": "^3.0.0", "mdast-util-mdxjs-esm": "^2.0.0", "property-information": "^7.0.0", "space-separated-tokens": "^2.0.0", "style-to-object": "^2.0.0", "unist-util-position": "^5.0.0", "vfile-message": "^4.0.0" } }, "sha512-F7DNV2NMcTxA4GqPVHnXzX+mpoPHAIY9rJAVH3CZ1FdBZOcBUEjUuvMkMpHVs/sicEtznh9tMGj5WUR9S4E2rg=="],
@@ -1583,7 +1581,7 @@
"human-id": ["human-id@4.2.2", "", { "bin": { "human-id": "dist/cli.js" } }, "sha512-Z+8unD6em/MJwyrkWQ2M3wygRGI1+MztbutiNwk1DCuEPXOZRWGjtcMPZYP1exY9iNZMhd7ZOSMQSo9WYtiQRw=="],
- "i18next": ["i18next@26.7.2", "", { "peerDependencies": { "typescript": "^5 || ^6 || ^7" }, "optionalPeers": ["typescript"] }, "sha512-RsOY3BeaCDdkk52NeJSFAXELQ2rQXBO/tOub6L8ue2ICPfR/FRDWDOfEDg4xMPd1SqO5goVYQ6i72qWEUB/PPw=="],
+ "i18next": ["i18next@27.2.2", "", { "peerDependencies": { "typescript": "^5 || ^6 || ^7" }, "optionalPeers": ["typescript"] }, "sha512-1/AJgz/bpE/YL6tqekQlZAzDhkmrUBbgU8+Xon/Lwv6c5WdYuyFZ9mb86OVfR2C2XujUDT7Rz23Ydaq4l981lA=="],
"iconv-lite": ["iconv-lite@0.6.3", "", { "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" } }, "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw=="],
@@ -1631,8 +1629,6 @@
"js-tokens": ["js-tokens@4.0.0", "", {}, "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ=="],
- "js-yaml": ["js-yaml@4.3.2", "", { "dependencies": { "argparse": "^2.0.1" }, "bin": { "js-yaml": "bin/js-yaml.js" } }, "sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA=="],
-
"jsesc": ["jsesc@3.1.0", "", { "bin": { "jsesc": "bin/jsesc" } }, "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA=="],
"json-schema": ["json-schema@0.4.0", "", {}, "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA=="],
@@ -1871,6 +1867,8 @@
"mlly": ["mlly@1.8.2", "", { "dependencies": { "acorn": "^8.16.0", "pathe": "^2.0.3", "pkg-types": "^1.3.1", "ufo": "^1.6.3" } }, "sha512-d+ObxMQFmbt10sretNDytwt85VrbkhhUA/JBGm1MPaWJ65Cl4wOgLaB1NYvJSZ0Ef03MMEU/0xpPMXUIQ29UfA=="],
+ "mri": ["mri@1.2.0", "", {}, "sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA=="],
+
"mrmime": ["mrmime@2.0.1", "", {}, "sha512-Y3wQdFg2Va6etvQ5I82yUhGdsKrcYox6p7FfL1LbK2J4V01F9TGlepTIhnK24t7koZibmg82KGglhA1XK5IsLQ=="],
"ms": ["ms@2.1.3", "", {}, "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="],
@@ -1919,9 +1917,7 @@
"p-limit": ["p-limit@7.3.3", "", { "dependencies": { "yocto-queue": "^1.2.1" } }, "sha512-SKgVvDU5TNIxQ4r30U75BNLC6a+6GOEjngrk/ysM5+Zu3oJuk1SC5ApzIzY/7PjCEjoVPMWJ0zho/4QUiEB7TQ=="],
- "p-queue": ["p-queue@9.3.5", "", { "dependencies": { "eventemitter3": "^5.0.4", "p-timeout": "^7.0.0" } }, "sha512-Lki/zhXFVmDhesBUn/yHRLW9Bte7mE7xoFHzTR8sIomV7a2z+LxYAPkGvdfidNiu4fKSfjtawixxSHcZci5QcQ=="],
-
- "p-timeout": ["p-timeout@7.0.2", "", {}, "sha512-prbX4Z3YszrFNgH+MW5Zoeq3baXrMtP/MQnFeET90UB/GtGcGDQ5Usg9OCy6ETjTTntOw1SL2z9fMPUppN3Guw=="],
+ "p-queue": ["p-queue@10.0.0", "", {}, "sha512-P2wrCri3bhGLPo3kX7qYVXbo/5GvaVATU0DpO24CbeT53Y4z35t8JUWku04ERpXHUYB5rPMi3TkWE3fmJgx5rA=="],
"package-manager-detector": ["package-manager-detector@1.9.0", "", {}, "sha512-zAMfbta9nPA8AKkA4WdmNAT8R8s6Dk0/xwPsqNnRidMFcLo1YkLuPDTgs2f64XdzS8vbLNnoJ+uUIkgbz7oRHA=="],
@@ -2011,7 +2007,7 @@
"rehype": ["rehype@13.0.2", "", { "dependencies": { "@types/hast": "^3.0.0", "rehype-parse": "^9.0.0", "rehype-stringify": "^10.0.0", "unified": "^11.0.0" } }, "sha512-j31mdaRFrwFRUIlxGeuPXXKWQxet52RBQRvCmzl5eCefn/KGbomK5GMHNMsOJf55fgo3qw5tST5neDuarDYR2A=="],
- "rehype-expressive-code": ["rehype-expressive-code@0.44.3", "", { "dependencies": { "expressive-code": "^0.44.3" } }, "sha512-vaVuQPobFXvmtcHXQ5uqXZlzuuPnLyIuZcX/03sX1U/Qfj9fZrPYI9w66OSr/PUx6alzRYmreEwgYBbsVx8HsA=="],
+ "rehype-expressive-code": ["rehype-expressive-code@0.44.4", "", { "dependencies": { "expressive-code": "^0.44.4" } }, "sha512-TciCyvRGs1bAXsTr7ZtUksNBxj6gqvgD9yqJDOW/c/V3mkYglgwcjnY281nbYblGDUn+IhBT+HwQP6rT/OFwsw=="],
"rehype-parse": ["rehype-parse@9.0.1", "", { "dependencies": { "@types/hast": "^3.0.0", "hast-util-from-html": "^2.0.0", "unified": "^11.0.0" } }, "sha512-ksCzCD0Fgfh7trPDxr2rSylbwq9iYDkSn8TCDmEJ49ljEUBxDVCzCHv7QNzZOfODanX4+bWQ4WZqLCRWYLfhag=="],
@@ -2057,7 +2053,7 @@
"robust-predicates": ["robust-predicates@3.0.3", "", {}, "sha512-NS3levdsRIUOmiJ8FZWCP7LG3QpJyrs/TE0Zpf1yvZu8cAJJ6QMW92H1c7kWpdIHo8RvmLxN/o2JXTKHp74lUA=="],
- "rolldown": ["rolldown@1.2.19", "", { "dependencies": { "@oxc-project/types": "=0.156.0", "@rolldown/pluginutils": "^1.0.0" }, "optionalDependencies": { "@rolldown/binding-android-arm-eabi": "1.2.19", "@rolldown/binding-android-arm64": "1.2.19", "@rolldown/binding-darwin-arm64": "1.2.19", "@rolldown/binding-darwin-x64": "1.2.19", "@rolldown/binding-freebsd-x64": "1.2.19", "@rolldown/binding-linux-arm-gnueabihf": "1.2.19", "@rolldown/binding-linux-arm64-gnu": "1.2.19", "@rolldown/binding-linux-arm64-musl": "1.2.19", "@rolldown/binding-linux-ppc64-gnu": "1.2.19", "@rolldown/binding-linux-s390x-gnu": "1.2.19", "@rolldown/binding-linux-x64-gnu": "1.2.19", "@rolldown/binding-linux-x64-musl": "1.2.19", "@rolldown/binding-openharmony-arm64": "1.2.19", "@rolldown/binding-wasm32-wasi": "1.2.19", "@rolldown/binding-win32-arm64-msvc": "1.2.19", "@rolldown/binding-win32-x64-msvc": "1.2.19" }, "bin": { "rolldown": "./bin/cli.mjs" } }, "sha512-QIiV1J9d0pzN4jeeTH4sjPy0AZ6cAy2cG0ExeoE1+U8Rvj+hR3gYkokx0YbeUNGlZqiQJJ2utcETe0oKXwzsuA=="],
+ "rolldown": ["rolldown@1.3.3", "", { "dependencies": { "@oxc-project/types": "=0.159.0", "@rolldown/pluginutils": "^1.0.0" }, "optionalDependencies": { "@rolldown/binding-android-arm-eabi": "1.3.3", "@rolldown/binding-android-arm64": "1.3.3", "@rolldown/binding-darwin-arm64": "1.3.3", "@rolldown/binding-darwin-x64": "1.3.3", "@rolldown/binding-freebsd-x64": "1.3.3", "@rolldown/binding-linux-arm-gnueabihf": "1.3.3", "@rolldown/binding-linux-arm64-gnu": "1.3.3", "@rolldown/binding-linux-arm64-musl": "1.3.3", "@rolldown/binding-linux-ppc64-gnu": "1.3.3", "@rolldown/binding-linux-s390x-gnu": "1.3.3", "@rolldown/binding-linux-x64-gnu": "1.3.3", "@rolldown/binding-linux-x64-musl": "1.3.3", "@rolldown/binding-openharmony-arm64": "1.3.3", "@rolldown/binding-wasm32-wasi": "1.3.3", "@rolldown/binding-win32-arm64-msvc": "1.3.3", "@rolldown/binding-win32-x64-msvc": "1.3.3" }, "bin": { "rolldown": "./bin/cli.mjs" } }, "sha512-ksB1g74e7haRy02OYm4lOQAlr6sK6hBpAY5R+YC30Gkv4L1COwF6M9umBAYAPxWpGow6Vr+IXtyDjH9fq7A+Zg=="],
"rollup": ["rollup@4.68.5", "", { "dependencies": { "@types/estree": "^1.0.10" }, "optionalDependencies": { "@rollup/rollup-android-arm-eabi": "4.68.5", "@rollup/rollup-android-arm64": "4.68.5", "@rollup/rollup-android-x64": "4.68.5", "@rollup/rollup-darwin-arm64": "4.68.5", "@rollup/rollup-darwin-x64": "4.68.5", "@rollup/rollup-freebsd-arm64": "4.68.5", "@rollup/rollup-freebsd-x64": "4.68.5", "@rollup/rollup-linux-arm-gnueabihf": "4.68.5", "@rollup/rollup-linux-arm-musleabihf": "4.68.5", "@rollup/rollup-linux-arm64-gnu": "4.68.5", "@rollup/rollup-linux-arm64-musl": "4.68.5", "@rollup/rollup-linux-loong64-gnu": "4.68.5", "@rollup/rollup-linux-loong64-musl": "4.68.5", "@rollup/rollup-linux-ppc64-gnu": "4.68.5", "@rollup/rollup-linux-ppc64-musl": "4.68.5", "@rollup/rollup-linux-riscv64-gnu": "4.68.5", "@rollup/rollup-linux-riscv64-musl": "4.68.5", "@rollup/rollup-linux-s390x-gnu": "4.68.5", "@rollup/rollup-linux-x64-gnu": "4.68.5", "@rollup/rollup-linux-x64-musl": "4.68.5", "@rollup/rollup-openbsd-x64": "4.68.5", "@rollup/rollup-openharmony-arm64": "4.68.5", "@rollup/rollup-win32-arm64-msvc": "4.68.5", "@rollup/rollup-win32-ia32-msvc": "4.68.5", "@rollup/rollup-win32-x64-gnu": "4.68.5", "@rollup/rollup-win32-x64-msvc": "4.68.5", "fsevents": "~2.3.2" }, "bin": { "rollup": "dist/bin/rollup" } }, "sha512-m6toRYCueVCY+5aEIriX7Dc36g3EHzn3Wk7xCW5aGgCQtTo4uXLZiZPNhDFMmPfVSvC92y3wEwIP2DCUp/ukXg=="],
@@ -2119,9 +2115,11 @@
"stack-utils": ["stack-utils@2.0.6", "", { "dependencies": { "escape-string-regexp": "^2.0.0" } }, "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ=="],
- "starlight-links-validator": ["starlight-links-validator@0.26.0", "", { "dependencies": { "@astrojs/markdown-satteri": "^0.4.0", "@types/picomatch": "^4.0.2", "github-slugger": "^2.0.0", "hast-util-from-html": "^2.0.3", "is-absolute-url": "^5.0.0", "mdast-util-mdx-jsx": "^3.2.0", "mdast-util-to-hast": "^13.2.1", "picomatch": "^4.0.3", "satteri": "^0.10.3", "terminal-link": "^5.0.0", "unist-util-visit": "^5.1.0", "yaml": "^2.8.3" }, "peerDependencies": { "@astrojs/starlight": ">=0.42.0", "astro": ">=7.2.10" } }, "sha512-b3JlzP5bczSDMQp10ST/Gldd6RNzcwpWfTrszzGPcqnuav2W31+MjyX92IXH+VCcG2pG9G1qyDcEcNuMRYi2ig=="],
+ "starlight-links-validator": ["starlight-links-validator@0.27.0", "", { "dependencies": { "@astrojs/markdown-satteri": "^0.4.0", "github-slugger": "^2.0.0", "hast-util-from-html": "^2.0.3", "is-absolute-url": "^5.0.0", "mdast-util-mdx-jsx": "^3.2.0", "mdast-util-to-hast": "^13.2.1", "picomatch": "^4.0.3", "satteri": "^0.10.3", "terminal-link": "^5.0.0", "unist-util-visit": "^5.1.0", "yaml": "^2.8.3" }, "peerDependencies": { "@astrojs/starlight": ">=0.42.0", "astro": ">=7.2.10" } }, "sha512-UvPl8L9hfWR+yWbLOEtljLmpJCGcM6AVseVy5IO9dmqdOjW4R+Y8FaYyVA5axCC8RvxM5xU7M1WTerpwU8rYbw=="],
- "starlight-theme-nova": ["starlight-theme-nova@0.12.2", "", { "dependencies": { "@aria-ui/core": "^0.2.1", "@aria-ui/utils": "^0.1.7", "@astrojs/markdown-satteri": "^0.3.4", "@pagefind/default-ui": "^1.5.2", "@shikijs/transformers": "^4.3.1", "@shikijs/twoslash": "^4.3.1", "@shikijs/types": "^4.3.1", "@types/hast": "^3.0.5", "astro-theme-toggle": "^0.8.1", "hast-util-is-element": "^3.0.0", "rehype": "^13.0.2", "satteri-custom-header-id": "^0.1.0", "shiki-twoslash-renderer": "^0.3.5" }, "peerDependencies": { "@astrojs/starlight": "*" }, "optionalPeers": ["@astrojs/starlight"] }, "sha512-ElILXQ4d+wtQV6eMrWVcJpSParodVc6zJge+OCk6ArAC64u767gznV1QKFe+qfkZltIecIsAlwhQezrFNKsAzA=="],
+ "starlight-theme-nova": ["starlight-theme-nova@0.12.3", "", { "dependencies": { "@aria-ui/core": "^0.2.1", "@aria-ui/utils": "^0.1.7", "@astrojs/markdown-satteri": "^0.4.0", "@pagefind/default-ui": "^1.5.2", "@shikijs/transformers": "^4.4.3", "@shikijs/twoslash": "^4.4.3", "@shikijs/types": "^4.4.3", "@types/hast": "^3.0.5", "astro-theme-toggle": "^0.8.2", "hast-util-is-element": "^3.0.0", "rehype": "^13.0.2", "satteri-custom-header-id": "^0.1.1", "shiki-twoslash-renderer": "^0.3.5" }, "peerDependencies": { "@astrojs/starlight": "*" }, "optionalPeers": ["@astrojs/starlight"] }, "sha512-9rOFc2TwgN5mMzOKMPyl4n0fD4ACSMA6vHbKCGadAFu4hgCYRI6hCJd5+X9bMbIfmnMOHMSxinduNM/rSvwQOw=="],
+
+ "std-env": ["std-env@4.3.0", "", {}, "sha512-OtU/EgQ1kIm5KwqQpBC6ZEMXrZRui11w8zgfTWp8cdO9B8OaPsbA8bTHO2P+HNo1VlUTGMVBwPhydu6poeXiag=="],
"string-width": ["string-width@8.3.0", "", { "dependencies": { "get-east-asian-width": "^1.5.0", "strip-ansi": "^7.1.2" } }, "sha512-ZbmZM0JCihQN91dWnxoipT2KOEyHqEyfRXUyjuRhW8b/xnqPDoq4gWEVApTVa9db2wN8mmoikgFBbjh71+cGeQ=="],
@@ -2167,6 +2165,8 @@
"tinyglobby": ["tinyglobby@0.2.17", "", { "dependencies": { "fdir": "^6.5.0", "picomatch": "^4.0.4" } }, "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g=="],
+ "tinyps": ["tinyps@0.5.2", "", {}, "sha512-sYhvdbpuo2rGE7u/jPUMiZz4H2LCaOodUtRD9ot4DLNFQbr884g9zozoJnxLI+1r4hXqWkmdHUl8Yig2Rllxxw=="],
+
"totalist": ["totalist@3.0.1", "", {}, "sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ=="],
"tree-kill": ["tree-kill@1.2.2", "", { "bin": { "tree-kill": "cli.js" } }, "sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A=="],
@@ -2215,7 +2215,7 @@
"unified": ["unified@11.0.5", "", { "dependencies": { "@types/unist": "^3.0.0", "bail": "^2.0.0", "devlop": "^1.0.0", "extend": "^3.0.0", "is-plain-obj": "^4.0.0", "trough": "^2.0.0", "vfile": "^6.0.0" } }, "sha512-xKvGhPWw3k84Qjh8bI3ZeJjqnyadK+GEFtazSfZv/rKeTkTjOJho6mFqh2SM96iIcZokxiOpg78GazTSg8+KHA=="],
- "unifont": ["unifont@0.7.5", "", { "dependencies": { "css-tree": "^3.1.0", "ohash": "^2.0.11", "undici": "^8.0.0" } }, "sha512-ULe/Cs+ZIsq+dcFofNkhqielCrUJnb5mr+Yc4EBM2VlL+6OZR6+cjtI2mT1bJvRBrVncqHAbLURxmPLcCXzWMg=="],
+ "unifont": ["unifont@1.0.3", "", { "dependencies": { "css-tree": "^3.1.0", "fnv1a-64": "^0.1.2", "std-env": "^4.2.0", "undici": "^8.0.0" } }, "sha512-XGnEwj5sWdCbiBX01mWLSBncS0yMRjnLygau3IfdOlfjMacNIQvTGW4VH7pWBq+gGWArfSef/CensMLjMmIr/A=="],
"unist-util-is": ["unist-util-is@6.0.1", "", { "dependencies": { "@types/unist": "^3.0.0" } }, "sha512-LsiILbtBETkDz8I9p1dQ0uyRUWuaQzd/cuEeS1hoRSyW5E5XGmTzlwY1OrNzzakGowI9Dr/I8HVaw4hTtnxy8g=="],
@@ -2249,7 +2249,7 @@
"uuid": ["uuid@14.0.3", "", { "bin": { "uuid": "dist-node/bin/uuid" } }, "sha512-Sc5u1VVln93y1Xnz4R+CunOZc7R9LUcTmhj7Rc7Eg3HVcf7rVn2FOoa812fe0W8p3jD7xeoGSYbfqCGGH2B6xw=="],
- "verkit": ["verkit@0.4.1", "", {}, "sha512-mMVzj0TXExtVdlDEq+Mzp0eyOuyznNpFobNM3uAqe3HVm/Ps2c+u17BligMkZjZCA6EiXpoon8iRTer3iu40SQ=="],
+ "verkit": ["verkit@0.5.0", "", {}, "sha512-u4J1hr6Y+C/hit34GwL3eIcUf3wngT8TlYUjK7tk0jxydKLAq3sYvifjdTDA6U3KCKRcQCQDGf/srjxfZF3l7g=="],
"version-range": ["version-range@4.15.0", "", {}, "sha512-Ck0EJbAGxHwprkzFO966t4/5QkRuzh+/I1RxhLgUKKwEn+Cd8NwM60mE3AqBZg5gYODoXW0EFsQvbZjRlvdqbg=="],
@@ -2355,15 +2355,15 @@
"zwitch": ["zwitch@2.0.4", "", {}, "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A=="],
+ "@astrojs/check/chokidar": ["chokidar@5.0.0", "", { "dependencies": { "readdirp": "^5.0.0" } }, "sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw=="],
+
"@astrojs/compiler-binding-wasm32-wasi/@napi-rs/wasm-runtime": ["@napi-rs/wasm-runtime@1.2.7", "", { "dependencies": { "@tybys/wasm-util": "^0.10.3" }, "peerDependencies": { "@emnapi/core": "^1.7.1 || 2.0.0-beta.2 || 2.0.0-beta.3", "@emnapi/runtime": "^1.7.1 || 2.0.0-beta.2 || 2.0.0-beta.3" } }, "sha512-zJccwplOAbgfZju95IUHazLnx9RAPtPN2YGJXI6UbrgeaR9QfPjGrQL6ERkSAtnVCA4Q+83ApGyaX5zdpCaKkQ=="],
- "@astrojs/markdown-satteri/@astrojs/internal-helpers": ["@astrojs/internal-helpers@0.13.2", "", { "dependencies": { "@types/hast": "^3.0.5", "@types/mdast": "^4.0.4", "picomatch": "^4.0.7", "retext-smartypants": "^6.2.0", "shiki": "^4.6.0", "smol-toml": "^1.9.1", "unified": "^11.0.5", "yaml": "^2.9.1" } }, "sha512-SWiNS+OMrhwWYzJENTekHUyUCMKB+tdU6D4v1ZNIU1ZHh2mScQ8WIs0J6AJ8KPXkIrs9+EZU7Rm2CstfThyVnw=="],
-
- "@astrojs/markdown-satteri/@astrojs/prism": ["@astrojs/prism@4.1.2", "", { "dependencies": { "prismjs": "^1.30.0" } }, "sha512-jMrUEpFDarDO1KWPvVc9eSa8DSfwBlwEOHwX+8zvZQpiqXRGDxFnOXHsYqV6DP7w+0qIgTr98gS1GdQlm8ypWg=="],
+ "@astrojs/markdown-remark/source-map": ["source-map@0.8.0", "", {}, "sha512-d8EqvL+k/SOXCreS/SUzg2ciyHqBBLcN/yuRjFsbvVhHTE2pgei7oAhmPM7kWFbkX6OSMQfUq4KbkF3au9lhYQ=="],
"@astrojs/markdown-satteri/satteri": ["satteri@0.11.7", "", { "dependencies": { "@types/estree-jsx": "^1.0.5", "@types/hast": "^3.0.5", "@types/mdast": "^4.0.4", "@types/unist": "^3.0.3" }, "optionalDependencies": { "@bruits/satteri-android-arm64": "0.11.7", "@bruits/satteri-darwin-arm64": "0.11.7", "@bruits/satteri-darwin-x64": "0.11.7", "@bruits/satteri-freebsd-x64": "0.11.7", "@bruits/satteri-linux-arm64-gnu": "0.11.7", "@bruits/satteri-linux-arm64-musl": "0.11.7", "@bruits/satteri-linux-x64-gnu": "0.11.7", "@bruits/satteri-linux-x64-musl": "0.11.7", "@bruits/satteri-wasm32-wasi": "0.11.7", "@bruits/satteri-win32-arm64-msvc": "0.11.7", "@bruits/satteri-win32-x64-msvc": "0.11.7" } }, "sha512-xDOSxkc1ew3z3IovIjmsqJaVHRXTGYJkPvx0LL/U6o90km8kSU+pmrZVvnWd5creJeE0UnvMEienlkPuYQdJaA=="],
- "@astrojs/mdx/@astrojs/internal-helpers": ["@astrojs/internal-helpers@0.13.2", "", { "dependencies": { "@types/hast": "^3.0.5", "@types/mdast": "^4.0.4", "picomatch": "^4.0.7", "retext-smartypants": "^6.2.0", "shiki": "^4.6.0", "smol-toml": "^1.9.1", "unified": "^11.0.5", "yaml": "^2.9.1" } }, "sha512-SWiNS+OMrhwWYzJENTekHUyUCMKB+tdU6D4v1ZNIU1ZHh2mScQ8WIs0J6AJ8KPXkIrs9+EZU7Rm2CstfThyVnw=="],
+ "@astrojs/vite-plugin-astro/rolldown": ["rolldown@1.2.19", "", { "dependencies": { "@oxc-project/types": "=0.156.0", "@rolldown/pluginutils": "^1.0.0" }, "optionalDependencies": { "@rolldown/binding-android-arm-eabi": "1.2.19", "@rolldown/binding-android-arm64": "1.2.19", "@rolldown/binding-darwin-arm64": "1.2.19", "@rolldown/binding-darwin-x64": "1.2.19", "@rolldown/binding-freebsd-x64": "1.2.19", "@rolldown/binding-linux-arm-gnueabihf": "1.2.19", "@rolldown/binding-linux-arm64-gnu": "1.2.19", "@rolldown/binding-linux-arm64-musl": "1.2.19", "@rolldown/binding-linux-ppc64-gnu": "1.2.19", "@rolldown/binding-linux-s390x-gnu": "1.2.19", "@rolldown/binding-linux-x64-gnu": "1.2.19", "@rolldown/binding-linux-x64-musl": "1.2.19", "@rolldown/binding-openharmony-arm64": "1.2.19", "@rolldown/binding-wasm32-wasi": "1.2.19", "@rolldown/binding-win32-arm64-msvc": "1.2.19", "@rolldown/binding-win32-x64-msvc": "1.2.19" }, "bin": { "rolldown": "./bin/cli.mjs" } }, "sha512-QIiV1J9d0pzN4jeeTH4sjPy0AZ6cAy2cG0ExeoE1+U8Rvj+hR3gYkokx0YbeUNGlZqiQJJ2utcETe0oKXwzsuA=="],
"@babel/core/semver": ["semver@6.3.2", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-GYrCADwpu6yV5OAvchkQ27Z5wwMxWAEMg5NNWjyHh/5DboFFqbdbvYNIvZouQpxXyeMPoTOh0vdPYKlf0ZswdQ=="],
@@ -2403,22 +2403,34 @@
"@vscode/vsce/marked": ["marked@18.2.1", "", { "bin": { "marked": "bin/marked.js" } }, "sha512-ii4bxCTCqqwpT86XZWgJNs+ZnAIZksmLGYMViWA7PDIXYIeNo1x6cDdX3JOip9NM/cI6p8z57FxliACboTruMA=="],
+ "@vue/babel-plugin-resolve-type/@vue/compiler-sfc": ["@vue/compiler-sfc@3.5.39", "", { "dependencies": { "@babel/parser": "^7.29.7", "@vue/compiler-core": "3.5.39", "@vue/compiler-dom": "3.5.39", "@vue/compiler-ssr": "3.5.39", "@vue/shared": "3.5.39", "estree-walker": "^2.0.2", "magic-string": "^0.30.21", "postcss": "^8.5.15", "source-map-js": "^1.2.1" } }, "sha512-d0ki86iOyN8LoZPBmk5SJWNwHP19CnDDCfuo//+2WJa2g5Ke0Jay983PIBIcSSzldC68I8DrD5GrHV3OSDfodg=="],
+
+ "@vue/compiler-core/@vue/shared": ["@vue/shared@3.5.45", "", {}, "sha512-ue9fgHmVNPlP7iW3+cxoBX/Cnlw53dHlVSw0JKGY6z1lObg8pHoj928M2nzG4/yVsMZ3NaRZ2s2z61uC16NDwQ=="],
+
"@vue/compiler-core/entities": ["entities@7.0.1", "", {}, "sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA=="],
"@vue/compiler-core/estree-walker": ["estree-walker@2.0.2", "", {}, "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w=="],
+ "@vue/compiler-dom/@vue/compiler-core": ["@vue/compiler-core@3.5.39", "", { "dependencies": { "@babel/parser": "^7.29.7", "@vue/shared": "3.5.39", "entities": "^7.0.1", "estree-walker": "^2.0.2", "source-map-js": "^1.2.1" } }, "sha512-16KBTEXAJCpDr0mwlw+AZyhu8iyC7R3S2vBwsI7QnWJU6X3WKc9VKeNEZpiMdZ569qWhz9574L3vV55qRL0Vtw=="],
+
+ "@vue/compiler-sfc/@vue/compiler-dom": ["@vue/compiler-dom@3.5.45", "", { "dependencies": { "@vue/compiler-core": "3.5.45", "@vue/shared": "3.5.45" } }, "sha512-LbP2d19GSOYGPmvMBBCVJVlv7TKtjM1Cfeyu3cYia720pknZP+1cLX7H5MVatvruT6MuJhiPuNbQBW/MDn/EwA=="],
+
+ "@vue/compiler-sfc/@vue/shared": ["@vue/shared@3.5.45", "", {}, "sha512-ue9fgHmVNPlP7iW3+cxoBX/Cnlw53dHlVSw0JKGY6z1lObg8pHoj928M2nzG4/yVsMZ3NaRZ2s2z61uC16NDwQ=="],
+
"@vue/compiler-sfc/estree-walker": ["estree-walker@2.0.2", "", {}, "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w=="],
"@vue/compiler-sfc/magic-string": ["magic-string@0.30.21", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.5" } }, "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ=="],
+ "@vue/compiler-ssr/@vue/compiler-dom": ["@vue/compiler-dom@3.5.45", "", { "dependencies": { "@vue/compiler-core": "3.5.45", "@vue/shared": "3.5.45" } }, "sha512-LbP2d19GSOYGPmvMBBCVJVlv7TKtjM1Cfeyu3cYia720pknZP+1cLX7H5MVatvruT6MuJhiPuNbQBW/MDn/EwA=="],
+
+ "@vue/compiler-ssr/@vue/shared": ["@vue/shared@3.5.45", "", {}, "sha512-ue9fgHmVNPlP7iW3+cxoBX/Cnlw53dHlVSw0JKGY6z1lObg8pHoj928M2nzG4/yVsMZ3NaRZ2s2z61uC16NDwQ=="],
+
"@vue/language-core/@volar/language-core": ["@volar/language-core@2.4.30", "", { "dependencies": { "@volar/source-map": "2.4.30" } }, "sha512-73fjwEV8wat6aOZ6U/y/hqtE30ocrIWECg67b0txGczOMNw+MffLmvJ5fnFfN9drVUEYZzLdaNo6VAy6G6avMw=="],
+ "@vue/server-renderer/@vue/compiler-ssr": ["@vue/compiler-ssr@3.5.39", "", { "dependencies": { "@vue/compiler-dom": "3.5.39", "@vue/shared": "3.5.39" } }, "sha512-Ce7/wvwMHai74bdszfXExdazFigYnlF9zgCmEQUcM1j0fOymlouZ7XilTYNo8oUjhlnjYOZbGrcYKuqjz89Ucw=="],
+
"anymatch/picomatch": ["picomatch@2.3.2", "", {}, "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA=="],
- "astro/@astrojs/markdown-satteri": ["@astrojs/markdown-satteri@0.4.2", "", { "dependencies": { "@astrojs/internal-helpers": "0.11.0", "@astrojs/prism": "4.0.2", "github-slugger": "^2.0.0", "satteri": "^0.10.3" } }, "sha512-g4QehXnB/MzxQWnSf17NciFInMqEJy9948p8cc7zGg/r7995m0Ln5PMr3Xlnj24iey1LchaoZ3SzTOa3D4P/3w=="],
-
- "astro/es-module-lexer": ["es-module-lexer@2.3.2", "", {}, "sha512-poHGpORABojJJucnV9KbOavETW8lBVnphkW77ER5/BQ5Fz7oXSoCNek7IH3vR5nRjdsEz926ibFYX8KtLQmdyw=="],
-
"chevrotain/@chevrotain/types": ["@chevrotain/types@11.1.2", "", {}, "sha512-U+HFai5+zmJCkK86QsaJtoITlboZHBqrVketcO2ROv865xfCMSFpELQoz1GkX5GzME8pTa+3kbKrZHQtI0gdbw=="],
"cli-truncate/slice-ansi": ["slice-ansi@10.0.1", "", { "dependencies": { "ansi-styles": "^7.0.0", "string-width": "^8.3.0" } }, "sha512-CJKEH3zwVX4bOnE+bFbmh+JK/YMT9VAazqBsVBTesnYKXlNtz6oVmrhNp1jHrxHzscuUkWiKZpzNzFraZcrorg=="],
@@ -2455,8 +2467,6 @@
"parse-entities/@types/unist": ["@types/unist@2.0.11", "", {}, "sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA=="],
- "starlight-theme-nova/@astrojs/markdown-satteri": ["@astrojs/markdown-satteri@0.3.8", "", { "dependencies": { "@astrojs/internal-helpers": "0.10.4", "@astrojs/prism": "4.0.2", "github-slugger": "^2.0.0", "satteri": "^0.10.3" } }, "sha512-n8ItpFTCmlDsVR5+rwDmehSf+jFCYLWmZiisZNGuF7xILqYhsVeBfcha4qgS2Seq3fAc9Tm58ZVrvqFQ6RQgRQ=="],
-
"style-to-js/style-to-object": ["style-to-object@1.0.14", "", { "dependencies": { "inline-style-parser": "0.2.7" } }, "sha512-LIN7rULI0jBscWQYaSswptyderlarFkjQ+t79nzty8tcIAceVomEVlLzH5VP4Cmsv6MtKhs7qaAiwlcp+Mgaxw=="],
"sucrase/commander": ["commander@4.1.1", "", {}, "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA=="],
@@ -2469,6 +2479,8 @@
"unstorage/chokidar": ["chokidar@5.0.0", "", { "dependencies": { "readdirp": "^5.0.0" } }, "sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw=="],
+ "vite/rolldown": ["rolldown@1.2.19", "", { "dependencies": { "@oxc-project/types": "=0.156.0", "@rolldown/pluginutils": "^1.0.0" }, "optionalDependencies": { "@rolldown/binding-android-arm-eabi": "1.2.19", "@rolldown/binding-android-arm64": "1.2.19", "@rolldown/binding-darwin-arm64": "1.2.19", "@rolldown/binding-darwin-x64": "1.2.19", "@rolldown/binding-freebsd-x64": "1.2.19", "@rolldown/binding-linux-arm-gnueabihf": "1.2.19", "@rolldown/binding-linux-arm64-gnu": "1.2.19", "@rolldown/binding-linux-arm64-musl": "1.2.19", "@rolldown/binding-linux-ppc64-gnu": "1.2.19", "@rolldown/binding-linux-s390x-gnu": "1.2.19", "@rolldown/binding-linux-x64-gnu": "1.2.19", "@rolldown/binding-linux-x64-musl": "1.2.19", "@rolldown/binding-openharmony-arm64": "1.2.19", "@rolldown/binding-wasm32-wasi": "1.2.19", "@rolldown/binding-win32-arm64-msvc": "1.2.19", "@rolldown/binding-win32-x64-msvc": "1.2.19" }, "bin": { "rolldown": "./bin/cli.mjs" } }, "sha512-QIiV1J9d0pzN4jeeTH4sjPy0AZ6cAy2cG0ExeoE1+U8Rvj+hR3gYkokx0YbeUNGlZqiQJJ2utcETe0oKXwzsuA=="],
+
"vite-dev-rpc/birpc": ["birpc@4.2.0", "", {}, "sha512-KxgKcZPfrtzJDDALHPguGpGJUrzdgpymyiQQgzFjWreHMOpWrnFNVREr5J48x2DBh8ZVioscrV1SBkDipGiX+Q=="],
"vite-plugin-inspect/obug": ["obug@2.2.1", "", {}, "sha512-XrsrhT5sybtKI6wakr2SPOlGZWWYbUXZ7a0jT8/QOeAPau+1X/bSegNe5YR75oJmEZQbKningirmGOEJCIk61Q=="],
@@ -2479,12 +2491,16 @@
"vscode-css-languageservice/vscode-languageserver-types": ["vscode-languageserver-types@3.17.5", "", {}, "sha512-Ld1VelNuX9pdF39h2Hgaeb5hEZM2Z3jUrrMgWQAu82jMtZp7p3vJT3BzToKtZI7NgQssZje5o0zryOrhQvzQAg=="],
+ "vue/@vue/compiler-sfc": ["@vue/compiler-sfc@3.5.39", "", { "dependencies": { "@babel/parser": "^7.29.7", "@vue/compiler-core": "3.5.39", "@vue/compiler-dom": "3.5.39", "@vue/compiler-ssr": "3.5.39", "@vue/shared": "3.5.39", "estree-walker": "^2.0.2", "magic-string": "^0.30.21", "postcss": "^8.5.15", "source-map-js": "^1.2.1" } }, "sha512-d0ki86iOyN8LoZPBmk5SJWNwHP19CnDDCfuo//+2WJa2g5Ke0Jay983PIBIcSSzldC68I8DrD5GrHV3OSDfodg=="],
+
"yaml-language-server/request-light": ["request-light@0.5.8", "", {}, "sha512-3Zjgh+8b5fhRJBQZoy+zbVKpAQGLyka0MPgW3zruTF4dFFJ8Fqcfu9YsAvi/rvdcaTeWG3MkbZv4WKxAn/84Lg=="],
"yaml-language-server/vscode-languageserver": ["vscode-languageserver@9.0.1", "", { "dependencies": { "vscode-languageserver-protocol": "3.17.5" }, "bin": { "installServerIntoExtension": "bin/installServerIntoExtension" } }, "sha512-woByF3PDpkHFUreUa7Hos7+pUWdeWMXRd26+ZX2A8cFx6v/JPTtd4/uN0/jB6XQHYaOlHbio03NTHCqrgG5n7g=="],
"yaml-language-server/yaml": ["yaml@2.8.3", "", { "bin": { "yaml": "bin.mjs" } }, "sha512-AvbaCLOO2Otw/lW5bmh9d/WEdcDFdQp2Z2ZUH3pX9U2ihyUY0nvLv7J6TrWowklRGPYbB/IuIMfYgxaCPg5Bpg=="],
+ "@astrojs/check/chokidar/readdirp": ["readdirp@5.1.1", "", {}, "sha512-Kko+Y5XQ6fM+Ce3dq3m9YGxnacYZYl9cA1wZjaF3Vbry2L3i1qVg8+CAgNPsXRArPMUMCaOR7oa9Nqntc43JKA=="],
+
"@astrojs/markdown-satteri/satteri/@bruits/satteri-darwin-arm64": ["@bruits/satteri-darwin-arm64@0.11.7", "", { "os": "darwin", "cpu": "arm64" }, "sha512-yllQOX1kVWrwqL7tamQlp4NP0loIb4KuadjuNrAe4JEOerHpgYISPRDb8DqLipgvP7Ks4e87LydZpdakMR1rhQ=="],
"@astrojs/markdown-satteri/satteri/@bruits/satteri-darwin-x64": ["@bruits/satteri-darwin-x64@0.11.7", "", { "os": "darwin", "cpu": "x64" }, "sha512-RMQrKzEZRZSiYyLFifiSuk0nBH6uAY1TVMNR/h/aE4rr2OS6l82e4MJTpC6H/tqSMoE+3CwbkUKBQGLHIweYlg=="],
@@ -2503,6 +2519,40 @@
"@astrojs/markdown-satteri/satteri/@bruits/satteri-win32-x64-msvc": ["@bruits/satteri-win32-x64-msvc@0.11.7", "", { "os": "win32", "cpu": "x64" }, "sha512-OIyBFJ35uMu5CH5RWnIR3bKsZwScKZ7vXmhCohZ+qonT1SkxmHCEf4H8YRWThRL2EXdVDjkjhfOsaiA4O24Vvw=="],
+ "@astrojs/vite-plugin-astro/rolldown/@oxc-project/types": ["@oxc-project/types@0.156.0", "", {}, "sha512-1Duyg48TdJNdyhEB8Xn1L36bT9Pv6GUtlKjHxOys8xkaF/rQq3XJE+bAurSK/AgIz5mGFsb77cn9Pb20+WCScw=="],
+
+ "@astrojs/vite-plugin-astro/rolldown/@rolldown/binding-android-arm-eabi": ["@rolldown/binding-android-arm-eabi@1.2.19", "", { "os": "android", "cpu": "arm" }, "sha512-e+Ebe0WT+9tbXmNKPIiC8YrWAHYwug3m6i4p3rZGGulfZri1jtI4HslT+OZnFf/OIHowWF71DTlHwXBP2SiA7A=="],
+
+ "@astrojs/vite-plugin-astro/rolldown/@rolldown/binding-android-arm64": ["@rolldown/binding-android-arm64@1.2.19", "", { "os": "android", "cpu": "arm64" }, "sha512-hOombrTJ+szt2ciEzS7oCA78lMPBgF5UMQWCJIyNfnrI7GLl8HYoFqCnpL2gcPOaXMqryGCU5ExdQKyDDcC+yA=="],
+
+ "@astrojs/vite-plugin-astro/rolldown/@rolldown/binding-darwin-arm64": ["@rolldown/binding-darwin-arm64@1.2.19", "", { "os": "darwin", "cpu": "arm64" }, "sha512-XoMA2pwCKGTQzUjPgtRwkedH4WmXhdIPKT6l6oOxd1PUbNodGI6DcBekgN7EC//+x3pfBYX/qL1gNmZAqivw5g=="],
+
+ "@astrojs/vite-plugin-astro/rolldown/@rolldown/binding-darwin-x64": ["@rolldown/binding-darwin-x64@1.2.19", "", { "os": "darwin", "cpu": "x64" }, "sha512-zo8EsSSwMZCY/e+fRnGaX02YGgvJD0yvhNi/9hpGPA2MJ9ZF8dPCw75UGfpI6OpQ/myR/dIYmogRvqiZD0TrXg=="],
+
+ "@astrojs/vite-plugin-astro/rolldown/@rolldown/binding-freebsd-x64": ["@rolldown/binding-freebsd-x64@1.2.19", "", { "os": "freebsd", "cpu": "x64" }, "sha512-O8ISAOfI1nj7AuBPd30FSF47z7f7lzlk5poQVGgiikvQuGEBFYvW8ki+UEnT+YJPnNGjQzn304klt4O9FUE7mA=="],
+
+ "@astrojs/vite-plugin-astro/rolldown/@rolldown/binding-linux-arm-gnueabihf": ["@rolldown/binding-linux-arm-gnueabihf@1.2.19", "", { "os": "linux", "cpu": "arm" }, "sha512-/lYCba5NO0yq4S0jGMH8QTBtkvQxoXjoQWzF5BcWp9MjB9jxVRD1GQDNofkVjcOj30DWyhLIN/4Oe60JKzaONw=="],
+
+ "@astrojs/vite-plugin-astro/rolldown/@rolldown/binding-linux-arm64-gnu": ["@rolldown/binding-linux-arm64-gnu@1.2.19", "", { "os": "linux", "cpu": "arm64" }, "sha512-pm/apFMBnSbFb3O6nG5pHO1iqHhZrjGDFEjSm+ot9J17XXPvH9L90y5h+jgfHCE+Qdlsvy8qKEcU4VKxgjD+vA=="],
+
+ "@astrojs/vite-plugin-astro/rolldown/@rolldown/binding-linux-arm64-musl": ["@rolldown/binding-linux-arm64-musl@1.2.19", "", { "os": "linux", "cpu": "arm64" }, "sha512-K1SmQp3FFichn8oqrNIwvFoZ5wcvjC7goBzpaMNvLf9FZc+QB/QvLmnpJZgAAGHiD980tP8FZZnXk2K94rvlxg=="],
+
+ "@astrojs/vite-plugin-astro/rolldown/@rolldown/binding-linux-ppc64-gnu": ["@rolldown/binding-linux-ppc64-gnu@1.2.19", "", { "os": "linux", "cpu": "ppc64" }, "sha512-I0xwD57jP/3A7+5UPZin2w8Y7XHEmEM5zqpYZOcQ45MlNW6tUJUziymV3yRr7rL4vwyfEcRsRksC4a7Kc08p5Q=="],
+
+ "@astrojs/vite-plugin-astro/rolldown/@rolldown/binding-linux-s390x-gnu": ["@rolldown/binding-linux-s390x-gnu@1.2.19", "", { "os": "linux", "cpu": "s390x" }, "sha512-BrtEHT24SNXj9HiXqy+s/kXiSiQGt6EKCPUlRirAoIioVxKGnbXBUEkbZASAei7iZJB0/Ynm+0JP00Ipx7AnSw=="],
+
+ "@astrojs/vite-plugin-astro/rolldown/@rolldown/binding-linux-x64-gnu": ["@rolldown/binding-linux-x64-gnu@1.2.19", "", { "os": "linux", "cpu": "x64" }, "sha512-rm75/9DkHKeU2WnA8w4X94WGYgLlDCFCfkQC+4bguVJmC/jvDRv2B+2wLOYhyE0fVuv7//Ckk39OoOufyCu76Q=="],
+
+ "@astrojs/vite-plugin-astro/rolldown/@rolldown/binding-linux-x64-musl": ["@rolldown/binding-linux-x64-musl@1.2.19", "", { "os": "linux", "cpu": "x64" }, "sha512-irh/4+iYFM4GAzpluDErgjz89bj6NDtqqMAG/6O1LG38Ed3NpyebzCpcVNkFW8uhy+/3/BocUvnXDR33CXWe9A=="],
+
+ "@astrojs/vite-plugin-astro/rolldown/@rolldown/binding-openharmony-arm64": ["@rolldown/binding-openharmony-arm64@1.2.19", "", { "os": "none", "cpu": "arm64" }, "sha512-+KWTWNoPt+CfSq94CiceWu3yPE+QzkaG+phPyz9G60tmZLwfQkcA4AeksafzvJAw4pvg1mcd5a1TkUqVv0s4JA=="],
+
+ "@astrojs/vite-plugin-astro/rolldown/@rolldown/binding-wasm32-wasi": ["@rolldown/binding-wasm32-wasi@1.2.19", "", { "dependencies": { "@emnapi/core": "2.0.0-beta.2", "@emnapi/runtime": "2.0.0-beta.2", "@napi-rs/wasm-runtime": "1.2.6" }, "cpu": "none" }, "sha512-7EH+skOsl5qpWnK0vzamgJFhOv1cwxQpsxm8tI883K9fur5c27p8q87fzEO6BbBPabA2/+s/zR63/pLc137iOg=="],
+
+ "@astrojs/vite-plugin-astro/rolldown/@rolldown/binding-win32-arm64-msvc": ["@rolldown/binding-win32-arm64-msvc@1.2.19", "", { "os": "win32", "cpu": "arm64" }, "sha512-3Q1Yg1Q7tEvBWoZf5rFvG/GKZQPgwfru+p4wBajDfJFBs0SHCpL++dfTjW9gyAKd1T7ZpIYvdaUax7Pa/IhFVQ=="],
+
+ "@astrojs/vite-plugin-astro/rolldown/@rolldown/binding-win32-x64-msvc": ["@rolldown/binding-win32-x64-msvc@1.2.19", "", { "os": "win32", "cpu": "x64" }, "sha512-y/sqRRc6d7hECzOFc5n3LSeqctmIp9mMjY1Kq4s14uLPd/LZ4z7i1zrW6fMtp2mPeuQIC4e6ULMcwQzMomqQag=="],
+
"@babel/helper-compilation-targets/lru-cache/yallist": ["yallist@3.1.1", "", {}, "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g=="],
"@bruits/satteri-wasm32-wasi/@emnapi/core/@emnapi/wasi-threads": ["@emnapi/wasi-threads@1.2.2", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-c95qOXkHdydNKhscBTebqEC1CVAZpyqOfVfBzQ1qgzyl3gfeldUjIggDbIZgDKsHLgnsM+igH7TJ/eAasaVuMA=="],
@@ -2513,6 +2563,18 @@
"@volar/typescript/@volar/language-core/@volar/source-map": ["@volar/source-map@2.4.30", "", {}, "sha512-zym1ob/KwDDyN+0jGVtxwbxJSRRnUvv5HspCtz3yEfVVdCG4/dzxJktMGPAgemqRuVs81O0o/y0q3qOUErR8kg=="],
+ "@vue/babel-plugin-resolve-type/@vue/compiler-sfc/@vue/compiler-core": ["@vue/compiler-core@3.5.39", "", { "dependencies": { "@babel/parser": "^7.29.7", "@vue/shared": "3.5.39", "entities": "^7.0.1", "estree-walker": "^2.0.2", "source-map-js": "^1.2.1" } }, "sha512-16KBTEXAJCpDr0mwlw+AZyhu8iyC7R3S2vBwsI7QnWJU6X3WKc9VKeNEZpiMdZ569qWhz9574L3vV55qRL0Vtw=="],
+
+ "@vue/babel-plugin-resolve-type/@vue/compiler-sfc/@vue/compiler-ssr": ["@vue/compiler-ssr@3.5.39", "", { "dependencies": { "@vue/compiler-dom": "3.5.39", "@vue/shared": "3.5.39" } }, "sha512-Ce7/wvwMHai74bdszfXExdazFigYnlF9zgCmEQUcM1j0fOymlouZ7XilTYNo8oUjhlnjYOZbGrcYKuqjz89Ucw=="],
+
+ "@vue/babel-plugin-resolve-type/@vue/compiler-sfc/estree-walker": ["estree-walker@2.0.2", "", {}, "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w=="],
+
+ "@vue/babel-plugin-resolve-type/@vue/compiler-sfc/magic-string": ["magic-string@0.30.21", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.5" } }, "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ=="],
+
+ "@vue/compiler-dom/@vue/compiler-core/entities": ["entities@7.0.1", "", {}, "sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA=="],
+
+ "@vue/compiler-dom/@vue/compiler-core/estree-walker": ["estree-walker@2.0.2", "", {}, "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w=="],
+
"@vue/language-core/@volar/language-core/@volar/source-map": ["@volar/source-map@2.4.30", "", {}, "sha512-zym1ob/KwDDyN+0jGVtxwbxJSRRnUvv5HspCtz3yEfVVdCG4/dzxJktMGPAgemqRuVs81O0o/y0q3qOUErR8kg=="],
"cli-truncate/slice-ansi/ansi-styles": ["ansi-styles@7.0.0", "", {}, "sha512-kKvt3m4uwzqL0wlkPd09CmljPJGOZZ4D0fP65sqFSvPkMRKhNi+74MgIJ5QxE6SxqB4t4KyUFGg8+n5zjo6hew=="],
@@ -2523,8 +2585,6 @@
"d3-sankey/d3-shape/d3-path": ["d3-path@1.0.9", "", {}, "sha512-VLaYcn81dtHVTjEHd8B+pbe9yHWpXKZUC87PzoFmsFrJqgFwDe/qxfp5MlfsfM1V5E/iVt0MmEbWQ7FVIXh/bg=="],
- "starlight-theme-nova/@astrojs/markdown-satteri/@astrojs/internal-helpers": ["@astrojs/internal-helpers@0.10.4", "", { "dependencies": { "@types/hast": "^3.0.4", "@types/mdast": "^4.0.4", "js-yaml": "^4.3.0", "picomatch": "^4.0.4", "retext-smartypants": "^6.2.0", "shiki": "^4.0.2", "smol-toml": "^1.6.0", "unified": "^11.0.5" } }, "sha512-nozZSy/mKYLqe4YrqbKtdOszedAfXYCtw3wZ0d+CAjz4GqQ4L9rl1ltIL5BlgwmYVinJg/RZ0MgGuWOdlyRZlA=="],
-
"style-to-js/style-to-object/inline-style-parser": ["inline-style-parser@0.2.7", "", {}, "sha512-Nb2ctOyNR8DqQoR0OwRG95uNWIC0C1lCgf5Naz5H6Ji72KZ8OcFZLz2P5sNgwlyoJ8Yif11oMuYs5pBQa86csA=="],
"unstorage/chokidar/readdirp": ["readdirp@5.1.1", "", {}, "sha512-Kko+Y5XQ6fM+Ce3dq3m9YGxnacYZYl9cA1wZjaF3Vbry2L3i1qVg8+CAgNPsXRArPMUMCaOR7oa9Nqntc43JKA=="],
@@ -2533,6 +2593,48 @@
"vite-plugin-vue-inspector/@vue/babel-plugin-jsx/@vue/babel-plugin-resolve-type": ["@vue/babel-plugin-resolve-type@1.5.0", "", { "dependencies": { "@babel/code-frame": "^7.27.1", "@babel/helper-module-imports": "^7.27.1", "@babel/helper-plugin-utils": "^7.27.1", "@babel/parser": "^7.28.0", "@vue/compiler-sfc": "^3.5.18" }, "peerDependencies": { "@babel/core": "^7.0.0-0" } }, "sha512-Wm/60o+53JwJODm4Knz47dxJnLDJ9FnKnGZJbUUf8nQRAtt6P+undLUAVU3Ha33LxOJe6IPoifRQ6F/0RrU31w=="],
+ "vite/rolldown/@oxc-project/types": ["@oxc-project/types@0.156.0", "", {}, "sha512-1Duyg48TdJNdyhEB8Xn1L36bT9Pv6GUtlKjHxOys8xkaF/rQq3XJE+bAurSK/AgIz5mGFsb77cn9Pb20+WCScw=="],
+
+ "vite/rolldown/@rolldown/binding-android-arm-eabi": ["@rolldown/binding-android-arm-eabi@1.2.19", "", { "os": "android", "cpu": "arm" }, "sha512-e+Ebe0WT+9tbXmNKPIiC8YrWAHYwug3m6i4p3rZGGulfZri1jtI4HslT+OZnFf/OIHowWF71DTlHwXBP2SiA7A=="],
+
+ "vite/rolldown/@rolldown/binding-android-arm64": ["@rolldown/binding-android-arm64@1.2.19", "", { "os": "android", "cpu": "arm64" }, "sha512-hOombrTJ+szt2ciEzS7oCA78lMPBgF5UMQWCJIyNfnrI7GLl8HYoFqCnpL2gcPOaXMqryGCU5ExdQKyDDcC+yA=="],
+
+ "vite/rolldown/@rolldown/binding-darwin-arm64": ["@rolldown/binding-darwin-arm64@1.2.19", "", { "os": "darwin", "cpu": "arm64" }, "sha512-XoMA2pwCKGTQzUjPgtRwkedH4WmXhdIPKT6l6oOxd1PUbNodGI6DcBekgN7EC//+x3pfBYX/qL1gNmZAqivw5g=="],
+
+ "vite/rolldown/@rolldown/binding-darwin-x64": ["@rolldown/binding-darwin-x64@1.2.19", "", { "os": "darwin", "cpu": "x64" }, "sha512-zo8EsSSwMZCY/e+fRnGaX02YGgvJD0yvhNi/9hpGPA2MJ9ZF8dPCw75UGfpI6OpQ/myR/dIYmogRvqiZD0TrXg=="],
+
+ "vite/rolldown/@rolldown/binding-freebsd-x64": ["@rolldown/binding-freebsd-x64@1.2.19", "", { "os": "freebsd", "cpu": "x64" }, "sha512-O8ISAOfI1nj7AuBPd30FSF47z7f7lzlk5poQVGgiikvQuGEBFYvW8ki+UEnT+YJPnNGjQzn304klt4O9FUE7mA=="],
+
+ "vite/rolldown/@rolldown/binding-linux-arm-gnueabihf": ["@rolldown/binding-linux-arm-gnueabihf@1.2.19", "", { "os": "linux", "cpu": "arm" }, "sha512-/lYCba5NO0yq4S0jGMH8QTBtkvQxoXjoQWzF5BcWp9MjB9jxVRD1GQDNofkVjcOj30DWyhLIN/4Oe60JKzaONw=="],
+
+ "vite/rolldown/@rolldown/binding-linux-arm64-gnu": ["@rolldown/binding-linux-arm64-gnu@1.2.19", "", { "os": "linux", "cpu": "arm64" }, "sha512-pm/apFMBnSbFb3O6nG5pHO1iqHhZrjGDFEjSm+ot9J17XXPvH9L90y5h+jgfHCE+Qdlsvy8qKEcU4VKxgjD+vA=="],
+
+ "vite/rolldown/@rolldown/binding-linux-arm64-musl": ["@rolldown/binding-linux-arm64-musl@1.2.19", "", { "os": "linux", "cpu": "arm64" }, "sha512-K1SmQp3FFichn8oqrNIwvFoZ5wcvjC7goBzpaMNvLf9FZc+QB/QvLmnpJZgAAGHiD980tP8FZZnXk2K94rvlxg=="],
+
+ "vite/rolldown/@rolldown/binding-linux-ppc64-gnu": ["@rolldown/binding-linux-ppc64-gnu@1.2.19", "", { "os": "linux", "cpu": "ppc64" }, "sha512-I0xwD57jP/3A7+5UPZin2w8Y7XHEmEM5zqpYZOcQ45MlNW6tUJUziymV3yRr7rL4vwyfEcRsRksC4a7Kc08p5Q=="],
+
+ "vite/rolldown/@rolldown/binding-linux-s390x-gnu": ["@rolldown/binding-linux-s390x-gnu@1.2.19", "", { "os": "linux", "cpu": "s390x" }, "sha512-BrtEHT24SNXj9HiXqy+s/kXiSiQGt6EKCPUlRirAoIioVxKGnbXBUEkbZASAei7iZJB0/Ynm+0JP00Ipx7AnSw=="],
+
+ "vite/rolldown/@rolldown/binding-linux-x64-gnu": ["@rolldown/binding-linux-x64-gnu@1.2.19", "", { "os": "linux", "cpu": "x64" }, "sha512-rm75/9DkHKeU2WnA8w4X94WGYgLlDCFCfkQC+4bguVJmC/jvDRv2B+2wLOYhyE0fVuv7//Ckk39OoOufyCu76Q=="],
+
+ "vite/rolldown/@rolldown/binding-linux-x64-musl": ["@rolldown/binding-linux-x64-musl@1.2.19", "", { "os": "linux", "cpu": "x64" }, "sha512-irh/4+iYFM4GAzpluDErgjz89bj6NDtqqMAG/6O1LG38Ed3NpyebzCpcVNkFW8uhy+/3/BocUvnXDR33CXWe9A=="],
+
+ "vite/rolldown/@rolldown/binding-openharmony-arm64": ["@rolldown/binding-openharmony-arm64@1.2.19", "", { "os": "none", "cpu": "arm64" }, "sha512-+KWTWNoPt+CfSq94CiceWu3yPE+QzkaG+phPyz9G60tmZLwfQkcA4AeksafzvJAw4pvg1mcd5a1TkUqVv0s4JA=="],
+
+ "vite/rolldown/@rolldown/binding-wasm32-wasi": ["@rolldown/binding-wasm32-wasi@1.2.19", "", { "dependencies": { "@emnapi/core": "2.0.0-beta.2", "@emnapi/runtime": "2.0.0-beta.2", "@napi-rs/wasm-runtime": "1.2.6" }, "cpu": "none" }, "sha512-7EH+skOsl5qpWnK0vzamgJFhOv1cwxQpsxm8tI883K9fur5c27p8q87fzEO6BbBPabA2/+s/zR63/pLc137iOg=="],
+
+ "vite/rolldown/@rolldown/binding-win32-arm64-msvc": ["@rolldown/binding-win32-arm64-msvc@1.2.19", "", { "os": "win32", "cpu": "arm64" }, "sha512-3Q1Yg1Q7tEvBWoZf5rFvG/GKZQPgwfru+p4wBajDfJFBs0SHCpL++dfTjW9gyAKd1T7ZpIYvdaUax7Pa/IhFVQ=="],
+
+ "vite/rolldown/@rolldown/binding-win32-x64-msvc": ["@rolldown/binding-win32-x64-msvc@1.2.19", "", { "os": "win32", "cpu": "x64" }, "sha512-y/sqRRc6d7hECzOFc5n3LSeqctmIp9mMjY1Kq4s14uLPd/LZ4z7i1zrW6fMtp2mPeuQIC4e6ULMcwQzMomqQag=="],
+
+ "vue/@vue/compiler-sfc/@vue/compiler-core": ["@vue/compiler-core@3.5.39", "", { "dependencies": { "@babel/parser": "^7.29.7", "@vue/shared": "3.5.39", "entities": "^7.0.1", "estree-walker": "^2.0.2", "source-map-js": "^1.2.1" } }, "sha512-16KBTEXAJCpDr0mwlw+AZyhu8iyC7R3S2vBwsI7QnWJU6X3WKc9VKeNEZpiMdZ569qWhz9574L3vV55qRL0Vtw=="],
+
+ "vue/@vue/compiler-sfc/@vue/compiler-ssr": ["@vue/compiler-ssr@3.5.39", "", { "dependencies": { "@vue/compiler-dom": "3.5.39", "@vue/shared": "3.5.39" } }, "sha512-Ce7/wvwMHai74bdszfXExdazFigYnlF9zgCmEQUcM1j0fOymlouZ7XilTYNo8oUjhlnjYOZbGrcYKuqjz89Ucw=="],
+
+ "vue/@vue/compiler-sfc/estree-walker": ["estree-walker@2.0.2", "", {}, "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w=="],
+
+ "vue/@vue/compiler-sfc/magic-string": ["magic-string@0.30.21", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.5" } }, "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ=="],
+
"yaml-language-server/vscode-languageserver/vscode-languageserver-protocol": ["vscode-languageserver-protocol@3.17.5", "", { "dependencies": { "vscode-jsonrpc": "8.2.0", "vscode-languageserver-types": "3.17.5" } }, "sha512-mb1bvRJN8SVznADSGWM9u/b07H7Ecg0I3OgXDuLdn307rl/J3A9YD6/eYOssqhecL27hK1IPZAsaqh00i/Jljg=="],
"@astrojs/markdown-satteri/satteri/@bruits/satteri-wasm32-wasi/@emnapi/core": ["@emnapi/core@1.11.1", "", { "dependencies": { "@emnapi/wasi-threads": "1.2.2", "tslib": "^2.4.0" } }, "sha512-RSvbQmHzdKzNsLYa/wHrbc3KN4sYLKAdPZxqiM2HATqv/SBk2/ENSHpvXGaLOMcsAyz0poEGqkmmKYG3OWiJEQ=="],
@@ -2541,14 +2643,44 @@
"@astrojs/markdown-satteri/satteri/@bruits/satteri-wasm32-wasi/@napi-rs/wasm-runtime": ["@napi-rs/wasm-runtime@1.2.7", "", { "dependencies": { "@tybys/wasm-util": "^0.10.3" }, "peerDependencies": { "@emnapi/core": "^1.7.1 || 2.0.0-beta.2 || 2.0.0-beta.3", "@emnapi/runtime": "^1.7.1 || 2.0.0-beta.2 || 2.0.0-beta.3" } }, "sha512-zJccwplOAbgfZju95IUHazLnx9RAPtPN2YGJXI6UbrgeaR9QfPjGrQL6ERkSAtnVCA4Q+83ApGyaX5zdpCaKkQ=="],
+ "@astrojs/vite-plugin-astro/rolldown/@rolldown/binding-wasm32-wasi/@emnapi/core": ["@emnapi/core@2.0.0-beta.2", "", { "dependencies": { "@emnapi/wasi-threads": "2.2.0", "tslib": "^2.4.0" } }, "sha512-MzCVoWtcg4Pm2B3je5mMvYMvj3MmBKw+fU7vbsJc9/iT8ip6/eYIHo/Dsm/mr+wsHB6SEyJDuxB09Yy6r/8+4A=="],
+
+ "@astrojs/vite-plugin-astro/rolldown/@rolldown/binding-wasm32-wasi/@emnapi/runtime": ["@emnapi/runtime@2.0.0-beta.2", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-JcrSPzPvZuNZvJqPTF9Fw25LbOJ8avzFVlaf2grmH4Cku0oGP47tRgqPZadcfj3YoZMHkFVnCYFbQM8I+i5QEw=="],
+
+ "@astrojs/vite-plugin-astro/rolldown/@rolldown/binding-wasm32-wasi/@napi-rs/wasm-runtime": ["@napi-rs/wasm-runtime@1.2.6", "", { "dependencies": { "@tybys/wasm-util": "^0.10.3" }, "peerDependencies": { "@emnapi/core": "^1.7.1 || 2.0.0-beta.2", "@emnapi/runtime": "^1.7.1 || 2.0.0-beta.2" } }, "sha512-mRyDmEw9/fCDXCGfL1sbgIw/GUK0PVxRW4YwgPN61F3LQ+fSyoBFarJVzgGyhF6kRzEQZ0FejDqm4WLXSeqQmw=="],
+
"@volar/language-server/vscode-languageserver/vscode-languageserver-protocol/vscode-jsonrpc": ["vscode-jsonrpc@8.2.0", "", {}, "sha512-C+r0eKJUIfiDIfwJhria30+TYWPtuHJXHtI7J0YlOmKAo7ogxP20T0zxB7HZQIFhIyvoBPwWskjxrvAtfjyZfA=="],
"@volar/language-server/vscode-languageserver/vscode-languageserver-protocol/vscode-languageserver-types": ["vscode-languageserver-types@3.17.5", "", {}, "sha512-Ld1VelNuX9pdF39h2Hgaeb5hEZM2Z3jUrrMgWQAu82jMtZp7p3vJT3BzToKtZI7NgQssZje5o0zryOrhQvzQAg=="],
+ "@vue/babel-plugin-resolve-type/@vue/compiler-sfc/@vue/compiler-core/entities": ["entities@7.0.1", "", {}, "sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA=="],
+
+ "vite-plugin-vue-inspector/@vue/babel-plugin-jsx/@vue/babel-plugin-resolve-type/@vue/compiler-sfc": ["@vue/compiler-sfc@3.5.39", "", { "dependencies": { "@babel/parser": "^7.29.7", "@vue/compiler-core": "3.5.39", "@vue/compiler-dom": "3.5.39", "@vue/compiler-ssr": "3.5.39", "@vue/shared": "3.5.39", "estree-walker": "^2.0.2", "magic-string": "^0.30.21", "postcss": "^8.5.15", "source-map-js": "^1.2.1" } }, "sha512-d0ki86iOyN8LoZPBmk5SJWNwHP19CnDDCfuo//+2WJa2g5Ke0Jay983PIBIcSSzldC68I8DrD5GrHV3OSDfodg=="],
+
+ "vite/rolldown/@rolldown/binding-wasm32-wasi/@emnapi/core": ["@emnapi/core@2.0.0-beta.2", "", { "dependencies": { "@emnapi/wasi-threads": "2.2.0", "tslib": "^2.4.0" } }, "sha512-MzCVoWtcg4Pm2B3je5mMvYMvj3MmBKw+fU7vbsJc9/iT8ip6/eYIHo/Dsm/mr+wsHB6SEyJDuxB09Yy6r/8+4A=="],
+
+ "vite/rolldown/@rolldown/binding-wasm32-wasi/@emnapi/runtime": ["@emnapi/runtime@2.0.0-beta.2", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-JcrSPzPvZuNZvJqPTF9Fw25LbOJ8avzFVlaf2grmH4Cku0oGP47tRgqPZadcfj3YoZMHkFVnCYFbQM8I+i5QEw=="],
+
+ "vite/rolldown/@rolldown/binding-wasm32-wasi/@napi-rs/wasm-runtime": ["@napi-rs/wasm-runtime@1.2.6", "", { "dependencies": { "@tybys/wasm-util": "^0.10.3" }, "peerDependencies": { "@emnapi/core": "^1.7.1 || 2.0.0-beta.2", "@emnapi/runtime": "^1.7.1 || 2.0.0-beta.2" } }, "sha512-mRyDmEw9/fCDXCGfL1sbgIw/GUK0PVxRW4YwgPN61F3LQ+fSyoBFarJVzgGyhF6kRzEQZ0FejDqm4WLXSeqQmw=="],
+
+ "vue/@vue/compiler-sfc/@vue/compiler-core/entities": ["entities@7.0.1", "", {}, "sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA=="],
+
"yaml-language-server/vscode-languageserver/vscode-languageserver-protocol/vscode-jsonrpc": ["vscode-jsonrpc@8.2.0", "", {}, "sha512-C+r0eKJUIfiDIfwJhria30+TYWPtuHJXHtI7J0YlOmKAo7ogxP20T0zxB7HZQIFhIyvoBPwWskjxrvAtfjyZfA=="],
"yaml-language-server/vscode-languageserver/vscode-languageserver-protocol/vscode-languageserver-types": ["vscode-languageserver-types@3.17.5", "", {}, "sha512-Ld1VelNuX9pdF39h2Hgaeb5hEZM2Z3jUrrMgWQAu82jMtZp7p3vJT3BzToKtZI7NgQssZje5o0zryOrhQvzQAg=="],
"@astrojs/markdown-satteri/satteri/@bruits/satteri-wasm32-wasi/@emnapi/core/@emnapi/wasi-threads": ["@emnapi/wasi-threads@1.2.2", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-c95qOXkHdydNKhscBTebqEC1CVAZpyqOfVfBzQ1qgzyl3gfeldUjIggDbIZgDKsHLgnsM+igH7TJ/eAasaVuMA=="],
+
+ "@astrojs/vite-plugin-astro/rolldown/@rolldown/binding-wasm32-wasi/@emnapi/core/@emnapi/wasi-threads": ["@emnapi/wasi-threads@2.2.0", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-JP7OYH38Q7+pyTAe14raZHLQIK7BDKbdwji+Xi3pcd/6QkJYQH3SX4wu6EplGrGJWRepoNzedfm0G3B9Z4e9Rw=="],
+
+ "vite-plugin-vue-inspector/@vue/babel-plugin-jsx/@vue/babel-plugin-resolve-type/@vue/compiler-sfc/@vue/compiler-core": ["@vue/compiler-core@3.5.39", "", { "dependencies": { "@babel/parser": "^7.29.7", "@vue/shared": "3.5.39", "entities": "^7.0.1", "estree-walker": "^2.0.2", "source-map-js": "^1.2.1" } }, "sha512-16KBTEXAJCpDr0mwlw+AZyhu8iyC7R3S2vBwsI7QnWJU6X3WKc9VKeNEZpiMdZ569qWhz9574L3vV55qRL0Vtw=="],
+
+ "vite-plugin-vue-inspector/@vue/babel-plugin-jsx/@vue/babel-plugin-resolve-type/@vue/compiler-sfc/@vue/compiler-ssr": ["@vue/compiler-ssr@3.5.39", "", { "dependencies": { "@vue/compiler-dom": "3.5.39", "@vue/shared": "3.5.39" } }, "sha512-Ce7/wvwMHai74bdszfXExdazFigYnlF9zgCmEQUcM1j0fOymlouZ7XilTYNo8oUjhlnjYOZbGrcYKuqjz89Ucw=="],
+
+ "vite-plugin-vue-inspector/@vue/babel-plugin-jsx/@vue/babel-plugin-resolve-type/@vue/compiler-sfc/estree-walker": ["estree-walker@2.0.2", "", {}, "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w=="],
+
+ "vite/rolldown/@rolldown/binding-wasm32-wasi/@emnapi/core/@emnapi/wasi-threads": ["@emnapi/wasi-threads@2.2.0", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-JP7OYH38Q7+pyTAe14raZHLQIK7BDKbdwji+Xi3pcd/6QkJYQH3SX4wu6EplGrGJWRepoNzedfm0G3B9Z4e9Rw=="],
+
+ "vite-plugin-vue-inspector/@vue/babel-plugin-jsx/@vue/babel-plugin-resolve-type/@vue/compiler-sfc/@vue/compiler-core/entities": ["entities@7.0.1", "", {}, "sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA=="],
}
}
diff --git a/package.json b/package.json
index a5106695..2a50b754 100644
--- a/package.json
+++ b/package.json
@@ -40,7 +40,7 @@
"test": "bun test --only-failures",
"change": "changeset",
"check-changesets": "bun run check-changesets.ts",
- "version-packages": "bun dedupe && bun prune && bun run generate-release-note.ts && changeset version && bun run --cwd packages/kitchen prebuild && bun run --cwd packages/docs scripts/generate-changelog.ts && bun update",
+ "version-packages": "bun dedupe && bun prune && bun run generate-release-note.ts && changeset version && bun run --cwd packages/kitchen prebuild && bun update",
"release": "bun run scripts/publish-release.ts",
"conformance": "bun run --cwd conformance conformance",
"conformance:update": "bun run --cwd conformance conformance:update",
diff --git a/packages/analyzer/README.md b/packages/analyzer/README.md
index ecc0ee97..415d2413 100644
--- a/packages/analyzer/README.md
+++ b/packages/analyzer/README.md
@@ -11,7 +11,7 @@ The physical and nutritional analysis module for the Gram recipe language. It ta
## 📚 General Documentation
-For full syntax specifications, grammar details, cheatsheets, and best practices, please refer to the **[Gram Documentation](https://docs.gram-lang.org/)**.
+For full syntax specifications, grammar details, cheatsheets, and best practices, please refer to the **[Gram Documentation](https://gram-lang.org/docs/)**.
---
diff --git a/packages/cli/README.md b/packages/cli/README.md
index 634fbf1d..e50a3871 100644
--- a/packages/cli/README.md
+++ b/packages/cli/README.md
@@ -11,7 +11,7 @@ The official command-line tool for the Gram recipe language. Validate, compile,
## 📚 General Documentation
-For full syntax specifications, command reference, and best practices, please refer to the **[Gram Documentation](https://docs.gram-lang.org/)**.
+For full syntax specifications, command reference, and best practices, please refer to the **[Gram Documentation](https://gram-lang.org/docs/)**.
---
diff --git a/packages/cli/src/core/gram-tokens.ts b/packages/cli/src/core/gram-tokens.ts
index 09578f65..47a5c36d 100644
--- a/packages/cli/src/core/gram-tokens.ts
+++ b/packages/cli/src/core/gram-tokens.ts
@@ -24,7 +24,7 @@ import { slugify } from "@gram-lang/kitchen";
/** `modifier = "?" | "-" | "*" | "&" | "="` */
const MODIFIERS = new Set(["?", "-", "*", "&", "="]);
-/** `syntaxChar = "{" | "}" | "[" | "]" | "(" | ")" | "<" | "|" | ":"` */
+/** `syntaxChar = "={" | "{" | "}" | "[" | "]" | "(" | ")" | "<" | "|" | ":"` */
const SYNTAX_CHARS = new Set(["{", "}", "[", "]", "(", ")", "<", "|", ":"]);
/** `refSigil = "@" | "#" | "~" | "^" | "&"` */
@@ -33,15 +33,23 @@ const REF_SIGILS = new Set(["@", "#", "~", "^", "&"]);
/** `sentencePunct = "," | ";" | "!" | "?" | "."` */
const SENTENCE_PUNCT = new Set([",", ";", "!", "?", "."]);
+function isSyntaxCharAt(src: string, i: number): boolean {
+ const c = src[i] as string;
+ // A `=` ends a name only before `{`, where a target state starts (`@oil until ={translucent}`).
+ return SYNTAX_CHARS.has(c) || (c === "=" && src[i + 1] === "{");
+}
+
/** `refName = (~(syntaxChar | refSigil | nl) any)+` */
-function isRefNameChar(c: string): boolean {
- return !SYNTAX_CHARS.has(c) && !REF_SIGILS.has(c) && c !== "\n";
+function isRefNameChar(src: string, i: number): boolean {
+ const c = src[i] as string;
+ return !isSyntaxCharAt(src, i) && !REF_SIGILS.has(c) && c !== "\n";
}
/** `singleWordName = (~(syntaxChar | space | nl | sentencePunct) any)+` */
-function isSingleWordNameChar(c: string): boolean {
+function isSingleWordNameChar(src: string, i: number): boolean {
+ const c = src[i] as string;
return (
- !SYNTAX_CHARS.has(c) &&
+ !isSyntaxCharAt(src, i) &&
!SENTENCE_PUNCT.has(c) &&
!/\s/.test(c) &&
c !== "\n"
@@ -136,14 +144,11 @@ export function findWrittenIngredients(text: string): WrittenIngredient[] {
// -- full: refName alias? "{"
let end = p;
- while (end < src.length && isRefNameChar(src[end] as string)) end++;
+ while (end < src.length && isRefNameChar(src, end)) end++;
let afterAlias = end;
if (src[afterAlias] === ":") {
afterAlias++;
- while (
- afterAlias < src.length &&
- isRefNameChar(src[afterAlias] as string)
- )
+ while (afterAlias < src.length && isRefNameChar(src, afterAlias))
afterAlias++;
}
@@ -158,10 +163,7 @@ export function findWrittenIngredients(text: string): WrittenIngredient[] {
} else {
// -- bare: singleWordName
let bareEnd = p;
- while (
- bareEnd < src.length &&
- isSingleWordNameChar(src[bareEnd] as string)
- )
+ while (bareEnd < src.length && isSingleWordNameChar(src, bareEnd))
bareEnd++;
if (bareEnd === p) continue; // a lone "@" is not an ingredient
name = src.slice(p, bareEnd);
diff --git a/packages/cli/tests/import-integrity.test.ts b/packages/cli/tests/import-integrity.test.ts
index c76441f8..fccffe6d 100644
--- a/packages/cli/tests/import-integrity.test.ts
+++ b/packages/cli/tests/import-integrity.test.ts
@@ -125,6 +125,14 @@ Take @?optional herb{1}, @-omitted{1}, @tomatoes:toms{2}(diced) and @zest{1}<@un
),
).toEqual(["salt"]);
});
+
+ it("stops a bare ingredient before a target state", () => {
+ expect(
+ findWrittenIngredients(
+ `${FRONT}Sweat with @oil until ={translucent}.\n`,
+ ).map((w) => ({ name: w.name, quantified: w.quantified })),
+ ).toEqual([{ name: "oil", quantified: false }]);
+ });
});
describe("collectAnalysisGaps", () => {
diff --git a/packages/docs/astro.config.mjs b/packages/docs/astro.config.mjs
index 642b928c..9e83c174 100644
--- a/packages/docs/astro.config.mjs
+++ b/packages/docs/astro.config.mjs
@@ -60,8 +60,9 @@ export default defineConfig({
errorOnInconsistentLocale: true,
exclude: [
'/play', '/play/', '/fr/play', '/fr/play/',
- '/docs', '/docs/', '/fr/docs', '/fr/docs/', '/en/docs', '/en/docs/',
- '/blog', '/blog/', '/blog/**', '/fr/blog', '/fr/blog/', '/fr/blog/**'
+ '/en/docs', '/en/docs/',
+ '/blog', '/blog/', '/blog/**', '/fr/blog', '/fr/blog/', '/fr/blog/**',
+ '/changelog', '/changelog/', '/changelog/**', '/fr/changelog', '/fr/changelog/', '/fr/changelog/**'
]
})
],
@@ -72,6 +73,7 @@ export default defineConfig({
],
components: {
Footer: './src/components/Footer.astro',
+ Sidebar: './src/components/Sidebar.astro',
SiteTitle: './src/components/SiteTitle.astro',
ThemeSelect: './src/components/ThemeSelect.astro'
},
@@ -81,104 +83,142 @@ export default defineConfig({
},
sidebar: [
{
- label: 'Introduction',
- collapsed: false,
+ label: 'Guides',
+ translations: { fr: 'Guides' },
items: [
- { label: 'What is Gram?', translations: { fr: "C'est quoi Gram ?" }, slug: 'docs/explanation/philosophy' },
- { label: 'Getting started', translations: { fr: 'Premiers pas' }, slug: 'docs/tutorials/getting-started' },
- { label: 'Your first recipe', translations: { fr: 'Votre première recette' }, slug: 'docs/tutorials/first-recipe' }
+ {
+ label: 'Introduction',
+ collapsed: false,
+ items: [
+ { label: 'Overview', translations: { fr: "Vue d'ensemble" }, slug: 'docs' },
+ { label: 'What is Gram?', translations: { fr: "C'est quoi Gram ?" }, slug: 'docs/explanation/philosophy' },
+ { label: 'Getting started', translations: { fr: 'Premiers pas' }, slug: 'docs/tutorials/getting-started' },
+ { label: 'Your first recipe', translations: { fr: 'Votre première recette' }, slug: 'docs/tutorials/first-recipe' }
+ ]
+ },
+ {
+ label: 'How-to guides',
+ translations: { fr: 'Guides pratiques' },
+ collapsed: false,
+ items: [
+ { label: 'Organize modular recipes', translations: { fr: 'Organiser des recettes modulaires' }, slug: 'docs/how-to/organize-modular-recipes' },
+ { label: 'Scale recipes dynamically', translations: { fr: 'Ajuster les proportions' }, slug: 'docs/how-to/scale-recipes' },
+ { label: 'Plan a meal', translations: { fr: 'Planifier un repas' }, slug: 'docs/how-to/plan-a-meal' },
+ { label: 'Generate shopping list', translations: { fr: 'Générer la liste de courses' }, slug: 'docs/how-to/weekly-shopping-list' },
+ { label: 'Manage database', translations: { fr: 'Gérer la base de données' }, slug: 'docs/how-to/manage-database' },
+ { label: 'Configure AI provider', translations: { fr: "Configurer l'IA" }, slug: 'docs/how-to/configure-ai' }
+ ]
+ }
]
},
{
- label: 'How-to guides',
- translations: { fr: 'Guides pratiques' },
- collapsed: false,
+ label: 'Language',
+ translations: { fr: 'Syntaxe' },
items: [
- { label: 'Organize modular recipes', translations: { fr: 'Organiser des recettes modulaires' }, slug: 'docs/how-to/organize-modular-recipes', badge: { text: 'v1.2.0', variant: 'default' } },
- { label: 'Scale recipes dynamically', translations: { fr: 'Ajuster les proportions' }, slug: 'docs/how-to/scale-recipes' },
- { label: 'Plan a meal', translations: { fr: 'Planifier un repas' }, slug: 'docs/how-to/plan-a-meal', badge: { text: 'v1.4.0', variant: 'default' } },
- { label: 'Generate shopping list', translations: { fr: 'Générer la liste de courses' }, slug: 'docs/how-to/weekly-shopping-list' },
- { label: 'Configure AI provider', translations: { fr: "Configurer l'IA" }, slug: 'docs/how-to/configure-ai' },
- { label: 'Manage database', translations: { fr: 'Gérer la base de données' }, slug: 'docs/how-to/manage-database' },
- { label: 'How to build a custom UI', translations: { fr: 'Créer une UI personnalisée' }, slug: 'docs/how-to/build-custom-ui' },
- { label: 'Deprecated features', translations: { fr: 'Fonctionnalités dépréciées' }, slug: 'docs/how-to/deprecations' }
+ {
+ label: 'Basics',
+ translations: { fr: 'Bases' },
+ collapsed: false,
+ items: [
+ { label: 'Cheatsheet', translations: { fr: 'Antisèche' }, slug: 'docs/reference/syntax/cheatsheet' },
+ { label: 'Document structure', translations: { fr: 'Structure du document' }, slug: 'docs/reference/syntax/document-structure' },
+ { label: 'Ingredients', translations: { fr: 'Ingrédients' }, slug: 'docs/reference/syntax/ingredients' },
+ { label: 'Cookware', translations: { fr: 'Matériel' }, slug: 'docs/reference/syntax/cookware' },
+ { label: 'Times & scheduling', translations: { fr: 'Temps & planification' }, slug: 'docs/reference/syntax/times' },
+ { label: 'Temperatures', translations: { fr: 'Températures' }, slug: 'docs/reference/syntax/temperatures' },
+ { label: 'Target states', translations: { fr: 'États attendus' }, slug: 'docs/reference/syntax/target-states', badge: { text: 'v1.5.0', variant: 'default' } }
+ ]
+ },
+ {
+ label: 'Advanced',
+ translations: { fr: 'Avancé' },
+ collapsed: true,
+ items: [
+ { label: 'Relative quantities & ratios', translations: { fr: 'Quantités relatives & proportions' }, slug: 'docs/reference/syntax/relative-quantities' },
+ { label: 'Intermediate variables', translations: { fr: 'Variables intermédiaires' }, slug: 'docs/reference/syntax/intermediate-variables' },
+ { label: 'Composite ingredients', translations: { fr: 'Ingrédients composites' }, slug: 'docs/reference/syntax/composite-ingredients' },
+ { label: 'Module imports', translations: { fr: 'Imports de modules' }, slug: 'docs/reference/syntax/modules' }
+ ]
+ }
]
},
{
- label: 'Language reference',
- translations: { fr: 'Référence du langage' },
- collapsed: false,
+ label: 'Tooling',
+ translations: { fr: 'Outils' },
items: [
- { label: 'Document structure', translations: { fr: 'Structure du document' }, slug: 'docs/reference/syntax/document-structure' },
- { label: 'Module imports', translations: { fr: 'Imports de modules' }, slug: 'docs/reference/syntax/modules', badge: { text: 'v1.2.0', variant: 'default' } },
- { label: 'Ingredients', translations: { fr: 'Ingrédients' }, slug: 'docs/reference/syntax/ingredients' },
- { label: 'Cookware', translations: { fr: 'Matériel' }, slug: 'docs/reference/syntax/cookware' },
- { label: 'Times', translations: { fr: 'Temps' }, slug: 'docs/reference/syntax/times' },
- { label: 'Temperatures', translations: { fr: 'Températures' }, slug: 'docs/reference/syntax/temperatures' },
- { label: 'Target states', translations: { fr: 'États attendus' }, slug: 'docs/reference/syntax/target-states', badge: { text: 'v1.5.0', variant: 'default' } },
- { label: 'Intermediate variables', translations: { fr: 'Variables intermédiaires' }, slug: 'docs/reference/syntax/intermediate-variables' },
- { label: 'Relative quantities', translations: { fr: 'Quantités relatives' }, slug: 'docs/reference/syntax/relative-quantities' },
- { label: 'Composite ingredients', translations: { fr: 'Ingrédients composites' }, slug: 'docs/reference/syntax/composite-ingredients' },
- { label: 'Cheatsheet', translations: { fr: 'Antisèche' }, slug: 'docs/reference/syntax/cheatsheet' },
- { label: 'Writing Gram programmatically', translations: { fr: 'Génération automatisée de Gram' }, slug: 'docs/reference/syntax/ai-generation-notes' }
+ {
+ label: 'CLI & editors',
+ translations: { fr: 'CLI & éditeurs' },
+ collapsed: false,
+ items: [
+ { label: 'CLI commands', translations: { fr: 'Commandes CLI' }, slug: 'docs/reference/tooling/cli' },
+ { label: 'VS Code extension', translations: { fr: 'Extension VS Code' }, slug: 'docs/reference/tooling/vscode-extension' },
+ { label: 'Language server', slug: 'docs/reference/tooling/language-server' }
+ ]
+ },
+ {
+ label: 'Integration & AI',
+ translations: { fr: 'Intégration & IA' },
+ collapsed: false,
+ items: [
+ { label: 'Writing Gram programmatically', translations: { fr: 'Génération automatisée de Gram' }, slug: 'docs/reference/syntax/ai-generation-notes' },
+ { label: 'How to build a custom UI', translations: { fr: 'Créer une UI personnalisée' }, slug: 'docs/how-to/build-custom-ui' }
+ ]
+ }
]
},
{
- label: 'Tooling reference',
- translations: { fr: 'Référence des outils' },
- collapsed: false,
+ label: 'Engine & API',
+ translations: { fr: 'Moteur & API' },
items: [
- { label: 'CLI commands', translations: { fr: 'Commandes CLI' }, slug: 'docs/reference/tooling/cli' },
- { label: 'VS Code extension', translations: { fr: 'Extension VS Code' }, slug: 'docs/reference/tooling/vscode-extension' },
- { label: 'Language server', slug: 'docs/reference/tooling/language-server' }
+ {
+ label: 'API reference',
+ translations: { fr: 'Référence API' },
+ collapsed: false,
+ items: [
+ { label: 'Overview', translations: { fr: "Vue d'ensemble" }, slug: 'docs/reference/api' },
+ { label: '@gram-lang/parser', slug: 'docs/reference/api/parser' },
+ { label: '@gram-lang/modules', slug: 'docs/reference/api/modules' },
+ { label: '@gram-lang/kitchen', slug: 'docs/reference/api/kitchen' },
+ { label: '@gram-lang/scheduler', slug: 'docs/reference/api/scheduler' },
+ { label: '@gram-lang/analyzer', slug: 'docs/reference/api/analyzer' },
+ { label: '@gram-lang/renderer', slug: 'docs/reference/api/renderer' },
+ { label: '@gram-lang/format', slug: 'docs/reference/api/format' },
+ { label: '@gram-lang/i18n', slug: 'docs/reference/api/i18n' },
+ { label: 'Data formats', translations: { fr: 'Formats de données' }, slug: 'docs/reference/api/data-formats' },
+ { label: 'Warnings', translations: { fr: 'Avertissements' }, slug: 'docs/reference/api/warnings' },
+ { label: 'Deprecated features', translations: { fr: 'Fonctionnalités dépréciées' }, slug: 'docs/how-to/deprecations' }
+ ]
+ },
+ {
+ label: 'Gram engine',
+ translations: { fr: 'Moteur Gram' },
+ collapsed: true,
+ items: [
+ { label: 'The Gram lifecycle', translations: { fr: 'Cycle de vie' }, slug: 'docs/explanation/engine/lifecycle' },
+ { label: 'Parsing & AST', slug: 'docs/explanation/engine/parser' },
+ { label: 'Module resolution & composition', translations: { fr: 'Résolution & composition' }, slug: 'docs/explanation/engine/modules' },
+ { label: 'Compilation & structure', translations: { fr: 'Compilation & structure' }, slug: 'docs/explanation/engine/kitchen' },
+ { label: 'The scheduling engine', translations: { fr: "Le moteur d'ordonnancement" }, slug: 'docs/explanation/engine/scheduler' },
+ { label: 'Semantic analysis', translations: { fr: 'Analyse sémantique' }, slug: 'docs/explanation/engine/analyzer' },
+ { label: 'Rendering & output', translations: { fr: 'Rendu & sortie' }, slug: 'docs/explanation/engine/renderer' }
+ ]
+ },
+ {
+ label: 'Deep dives',
+ translations: { fr: 'Analyses approfondies' },
+ collapsed: true,
+ items: [
+ { label: 'ALAP scheduling', translations: { fr: 'Ordonnancement ALAP' }, slug: 'docs/explanation/alap-scheduling' },
+ { label: 'Mass & yield', translations: { fr: 'Masse & rendement' }, slug: 'docs/explanation/mass-and-yield' },
+ { label: 'Nutrition', slug: 'docs/explanation/nutrition' },
+ { label: 'Shopping lists', translations: { fr: 'Liste de courses' }, slug: 'docs/explanation/shopping-list-aggregation' },
+ { label: 'Scaling', translations: { fr: "Ajustement des proportions" }, slug: 'docs/explanation/scaling' },
+ { label: 'Planning & run sheet', translations: { fr: 'Planification & plan de marche' }, slug: 'docs/explanation/planning' }
+ ]
+ }
]
- },
- {
- label: 'API reference',
- translations: { fr: 'Référence API' },
- collapsed: true,
- items: [
- { label: 'Overview', translations: { fr: "Vue d'ensemble" }, slug: 'docs/reference/api' },
- { label: '@gram-lang/parser', slug: 'docs/reference/api/parser' },
- { label: '@gram-lang/modules', slug: 'docs/reference/api/modules', badge: { text: 'v1.2.0', variant: 'default' } },
- { label: '@gram-lang/kitchen', slug: 'docs/reference/api/kitchen' },
- { label: '@gram-lang/scheduler', slug: 'docs/reference/api/scheduler', badge: { text: 'v1.4.0', variant: 'default' } },
- { label: '@gram-lang/analyzer', slug: 'docs/reference/api/analyzer' },
- { label: '@gram-lang/renderer', slug: 'docs/reference/api/renderer' },
- { label: '@gram-lang/format', slug: 'docs/reference/api/format' },
- { label: '@gram-lang/i18n', slug: 'docs/reference/api/i18n' },
- { label: 'Data formats', translations: { fr: 'Formats de données' }, slug: 'docs/reference/api/data-formats' },
- { label: 'Warnings', translations: { fr: 'Avertissements' }, slug: 'docs/reference/api/warnings' }
- ]
- },
- {
- label: 'Gram engine',
- translations: { fr: 'Moteur Gram' },
- collapsed: true,
- items: [
- { label: 'The Gram lifecycle', translations: { fr: 'Cycle de vie' }, slug: 'docs/explanation/engine/lifecycle' },
- { label: 'Parsing & AST', slug: 'docs/explanation/engine/parser' },
- { label: 'Module resolution & composition', translations: { fr: 'Résolution & composition' }, slug: 'docs/explanation/engine/modules', badge: { text: 'v1.2.0', variant: 'default' } },
- { label: 'Compilation & structure', translations: { fr: 'Compilation & structure' }, slug: 'docs/explanation/engine/kitchen' },
- { label: 'The scheduling engine', translations: { fr: "Le moteur d'ordonnancement" }, slug: 'docs/explanation/engine/scheduler', badge: { text: 'v1.4.0', variant: 'default' } },
- { label: 'Semantic analysis', translations: { fr: 'Analyse sémantique' }, slug: 'docs/explanation/engine/analyzer' },
- { label: 'Rendering & output', translations: { fr: 'Rendu & sortie' }, slug: 'docs/explanation/engine/renderer' }
- ]
- },
- {
- label: 'Deep dives',
- translations: { fr: 'Analyses approfondies' },
- collapsed: true,
- items: [
- { label: 'ALAP scheduling', translations: { fr: 'Ordonnancement ALAP' }, slug: 'docs/explanation/alap-scheduling' },
- { label: 'Mass & yield', translations: { fr: 'Masse & rendement' }, slug: 'docs/explanation/mass-and-yield' },
- { label: 'Nutrition', slug: 'docs/explanation/nutrition' },
- { label: 'Shopping lists', translations: { fr: 'Liste de courses' }, slug: 'docs/explanation/shopping-list-aggregation' },
- { label: 'Scaling', translations: { fr: "Ajustement des proportions" }, slug: 'docs/explanation/scaling' },
- { label: 'Planning & run sheet', translations: { fr: 'Planification & plan de marche' }, slug: 'docs/explanation/planning', badge: { text: 'v1.4.0', variant: 'default' } }
- ]
- },
- { label: 'Changelog', translations: { fr: 'Changelog' }, slug: 'docs/changelog' }
+ }
],
head: [
{
diff --git a/packages/docs/package.json b/packages/docs/package.json
index 4af93806..654e2478 100644
--- a/packages/docs/package.json
+++ b/packages/docs/package.json
@@ -4,21 +4,21 @@
"private": true,
"type": "module",
"engines": {
- "node": ">=22.12.0"
+ "node": ">=22.23.4"
},
"scripts": {
- "dev": "astro dev",
- "prebuild": "bun scripts/vendor-starlight-tokens.ts && bun scripts/generate-changelog.ts && bun scripts/generate-llms-full.ts",
- "build": "astro build && node scripts/check-bundle-size.mjs",
- "preview": "astro preview",
- "astro": "astro",
- "typecheck": "astro check && vue-tsc --noEmit"
+ "dev": "bunx --bun astro dev",
+ "prebuild": "bun scripts/vendor-starlight-tokens.ts && bun scripts/generate-llms-full.ts",
+ "build": "bunx --bun astro build && node scripts/check-bundle-size.mjs",
+ "preview": "bunx --bun astro preview",
+ "astro": "bunx --bun astro",
+ "typecheck": "bunx --bun astro check && vue-tsc -p tsconfig.vue.json --noEmit"
},
"dependencies": {
- "@astrojs/markdown-remark": "^7.3.0",
- "@astrojs/mdx": "^8.0.2",
- "@astrojs/starlight": "^0.42.4",
- "@astrojs/vue": "^7.0.1",
+ "@astrojs/markdown-remark": "^7.3.10",
+ "@astrojs/mdx": "^8.1.6",
+ "@astrojs/starlight": "^0.43.1",
+ "@astrojs/vue": "^7.1.6",
"@codemirror/commands": "^6.10.4",
"@codemirror/lint": "^6.9.7",
"@codemirror/state": "^6.7.1",
@@ -32,18 +32,18 @@
"@gram-lang/parser": "workspace:*",
"@gram-lang/renderer": "workspace:*",
"@gram-lang/scheduler": "workspace:*",
- "astro": "^7.3.5",
+ "astro": "^7.4.13",
"mermaid": "^12.0.0",
"shiki": "^4.3.1",
- "starlight-theme-nova": "^0.12.2",
+ "starlight-theme-nova": "^0.12.3",
"unist-util-visit": "^5.1.0",
"vite": "^8.0.13",
"vue": "^3.5.39"
},
"devDependencies": {
- "@astrojs/check": "^0.9.10",
+ "@astrojs/check": "^0.9.12",
"@types/mdast": "^4.0.4",
- "starlight-links-validator": "^0.26.0",
+ "starlight-links-validator": "^0.27.0",
"vue-tsc": "^3.3.14",
"yaml": "^2.9.0"
}
diff --git a/packages/docs/public/examples/canneles-fr.gram b/packages/docs/public/examples/canneles-fr.gram
index 2bbeccb1..71169128 100644
--- a/packages/docs/public/examples/canneles-fr.gram
+++ b/packages/docs/public/examples/canneles-fr.gram
@@ -30,4 +30,4 @@ portions: 10
[Cuire] Dans le #&four à ^{240°C} pendant ~_cuisson{10 min}.
-[Cuire] Baisser la température à ^{180°C} et continuer la cuisson ~_cuisson{30 min - 1 h}, selon la coloration désirée.
+[Cuire] Baisser la température à ^{180°C} et continuer la cuisson ~_cuisson{30 min - 1 h}, jusqu'à obtenir une ={caramélisation complète} de la croûte.
diff --git a/packages/docs/public/examples/canneles.gram b/packages/docs/public/examples/canneles.gram
index dda86060..7e771c0b 100644
--- a/packages/docs/public/examples/canneles.gram
+++ b/packages/docs/public/examples/canneles.gram
@@ -12,7 +12,7 @@ portions: 10
[Mix] In a #mixing bowl{}, combine the @flour{300 g}, @sugar{500 g}, and @salt{3 g}. ->&dry ingredients{}
-[Heat] In a #large saucepan{}, bring the @milk{1 l}, @butter{100 g}, and @vanilla bean{1}(split and scraped) to ^{85C}. ->&hot milk{}
+[Heat] In a #large saucepan{}, bring the @milk{1 l}, @butter{100 g}, and @vanilla bean{1}(split and scraped) to ^{185°F}. ->&hot milk{}
[Mix] Pour the &hot milk{} over the &dry ingredients{} all at once. Whisk vigorously.
@@ -22,12 +22,12 @@ portions: 10
## Baking
-[Preheat] The #oven to ^{240C}.
+[Preheat] The #oven to ^{465°F}.
[Grease] The #cannelé molds{38}(lunch/4.5cm).
[Fill] Pour the &batter into the molds, filling them 3/4 full.
-[Bake] In the #&oven at ^{240C} for ~_baking{10 min}.
+[Bake] In the #&oven at ^{465°F} for ~_baking{10 min}.
-[Cook] Lower the temperature to ^{180C} and continue for ~_baking{30 min - 1 h}, depending on the desired browning.
+[Cook] Lower the temperature to ^{360°F} and continue for ~_baking{30 min - 1 h}, until ={dark mahogany}.
diff --git a/packages/docs/public/examples/chocolate-chip-cookies-fr.gram b/packages/docs/public/examples/chocolate-chip-cookies-fr.gram
deleted file mode 100644
index 9c638950..00000000
--- a/packages/docs/public/examples/chocolate-chip-cookies-fr.gram
+++ /dev/null
@@ -1,31 +0,0 @@
----
-title: 'Cookies aux pépites de chocolat'
-description: 'Des cookies américains moelleux, mesurés en cups et en cuillères, comme sur la fiche d’origine.'
-category: 'Dessert'
-makes: '24 cookies'
-tags: ['américain', 'cookies', 'pâtisserie']
-
-portions: 24
----
-
-## Pâte ->&pâte
-
-[Fouetter] Dans un #saladier{}, fouetter la @farine{2 cups + 2 tbsp}, le @bicarbonate{1 tsp} et le @sel{1/2 tsp + 1 pincée}. ->&ingrédients secs{}
-
-[Crémer] Dans un #robot pâtissier{}, battre le @beurre{1 cup - 2 tbsp}(pommade) avec la @cassonade{3/4 cup + 1-2 tbsp} et le @sucre{1/2 cup} jusqu'à ={blanchiment}(le mélange devient pâle et mousseux), ~{3-4 min}.
-
-[Ajouter] Incorporer les @œufs{2} un à un, puis l'@extrait de vanille{1 tbsp + 1 tsp}.
-
-[Incorporer] Ajouter les &ingrédients secs{} au mélange beurré, puis les @pépites de chocolat{1 1/2 cups + 50 g}.
-
-[Reposer] Couvrir et placer la pâte au frais ~_réfrigérateur{30-60 min}.
-
-## Cuisson
-
-[Préchauffer] Le #four à ^{180°C}.
-
-[Façonner] Former des boules de &pâte de la taille d'une noix et les déposer sur deux #plaques{2} couvertes de #papier cuisson{}.
-
-[Cuire] Jusqu'à ce que les bords dorent, le cœur restant tendre, ~_four{10-12 min}.
-
-[Refroidir] Laisser sur les plaques ~_{5 min}, puis sur une #grille{}.
diff --git a/packages/docs/public/examples/chocolate-chip-cookies.gram b/packages/docs/public/examples/chocolate-chip-cookies.gram
deleted file mode 100644
index 184646e4..00000000
--- a/packages/docs/public/examples/chocolate-chip-cookies.gram
+++ /dev/null
@@ -1,31 +0,0 @@
----
-title: 'Chocolate chip cookies'
-description: 'Chewy American cookies, measured with cups and spoons the way the recipe card says it.'
-category: 'Dessert'
-makes: '24 cookies'
-tags: ['american', 'cookies', 'baking']
-
-portions: 24
----
-
-## Dough ->&dough
-
-[Whisk] In a #mixing bowl{}, whisk the @flour{2 cups + 2 tbsp}, @baking soda{1 tsp} and @salt{1/2 tsp + 1 pinch}. ->&dry ingredients{}
-
-[Cream] In a #stand mixer{}, beat the @butter{1 cup - 2 tbsp}(softened) with the @brown sugar{3/4 cup + 1-2 tbsp} and the @sugar{1/2 cup} until ={pale and fluffy}, ~{3-4 min}.
-
-[Add] Beat in the @eggs{2}, one at a time, then the @vanilla extract{1 tbsp + 1 tsp}.
-
-[Fold] Fold the &dry ingredients{} into the butter mixture, then the @chocolate chips{1 1/2 cups + 50 g}.
-
-[Rest] Cover and chill the dough for ~_fridge{30-60 min}.
-
-## Baking
-
-[Preheat] The #oven to ^{350°F}.
-
-[Shape] Scoop the &dough into balls the size of a walnut onto two #baking sheets{2} lined with #parchment paper{}.
-
-[Bake] Until golden at the edges but still soft in the middle, ~_oven{10-12 min}.
-
-[Cool] Leave on the sheets for ~_{5 min}, then move to a #wire rack{}.
diff --git a/packages/docs/public/examples/empanadas-fr.gram b/packages/docs/public/examples/empanadas-fr.gram
index 823633cd..da9c50cb 100644
--- a/packages/docs/public/examples/empanadas-fr.gram
+++ b/packages/docs/public/examples/empanadas-fr.gram
@@ -11,7 +11,7 @@ portions: 5
## Pâte brisée ->&pâte
-[Chauffer] Dans une #casserole, l'@eau{150 ml}, le @sel{1/2 càc}, et le @beurre{100 g}. ->&liquides // Retirer du feu dès que le beurre est fondu et laisser refroidir.
+[Chauffer] L'@eau{150 ml}, le @sel{1/2 càc}, et le @beurre{100 g} dans une #casserole jusqu'à ce que le beurre soit ={complètement fondu}. ->&liquides // Retirer du feu et laisser refroidir.
[Pétrir] Incorporer ces &liquides à la @farine{500 g}. Travailler pour former une boule. // Mouiller avec un filet d'eau supplémentaire si la pâte ne lie pas bien
@@ -19,13 +19,13 @@ portions: 5
## Garniture ->&garniture
-[Faire suer] Les @oignons{200 g}(finement ciselés) avec un filet d'@huile jusqu'à ce qu'ils soient translucides.
+[Faire suer] Les @oignons{200 g}(finement ciselés) avec un filet d'@huile jusqu'à ce qu'ils soient ={translucides}.
[Incorporer] Le @poivron rouge{1/2}(en brunoise).
[Saisir] Ajouter le @boeuf haché{200 g} à ^{feu vif}.
-[Assaisonner] Avec le @sel{1/2 càc}, l'@ail{2 gousses}(hachées), l'@origan frais{1 càc}, le @paprika doux{1 càc}, et le @persil frais{1 càc}. // La règle de la grand-mère argentine : 1 gousse d'ail pour 100g de viande
+[Assaisonner] Avec le @&sel{1/2 càc}, l'@ail{1 gousse / 100 g @&boeuf haché}(haché), l'@origan frais{1 càc}, le @paprika doux{1 càc}, et le @persil frais{1 càc}.
[Mélanger] Retirer du feu, incorporer les @oeufs{2}(durs, finement hachés) et quelques @olives vertes{}.
@@ -37,4 +37,4 @@ portions: 5
[Façonner] Placer la &garniture sur la moitié de chaque disque. Plier en forme de demi-lune et pincer fermement les bords pour sceller la pâte. // Piquer le dessus avec un cure-dent pour créer une petite cheminée
-[Cuire] À ^{200°C} pendant environ ~cuisson{15 min}. // Arrêter la cuisson dès qu'elles sont bien dorées
+[Cuire] À ^{200°C} pendant environ ~_cuisson{15 min} jusqu'à ce qu'ils soient ={bien dorés}.
diff --git a/packages/docs/public/examples/empanadas.gram b/packages/docs/public/examples/empanadas.gram
index 1c16c1fd..740cce80 100644
--- a/packages/docs/public/examples/empanadas.gram
+++ b/packages/docs/public/examples/empanadas.gram
@@ -11,7 +11,7 @@ portions: 5
## Shortcrust Pastry ->&dough
-[Heat] In a #saucepan, @water{150 ml}, @salt{1/2 tsp}, and @butter{100 g}. ->&butter mixture{} // Remove from heat as soon as the butter melts and let cool.
+[Heat] The @water{150 ml}, @salt{1/2 tsp}, and @butter{100 g} in a #saucepan until the butter is ={fully melted}. ->&butter mixture{} // Remove from heat and let cool.
[Knead] Incorporate this &butter mixture{} into the @flour{500 g}. Work it to form a ball. // Moisten with an extra splash of water if the dough does not bind well
@@ -19,13 +19,13 @@ portions: 5
## Filling ->&filling
-[Sweat] @onions{200 g}(finely diced) with a drizzle of @oil until translucent.
+[Sweat] The @onions{200 g}(finely diced) with a drizzle of @oil until ={translucent}.
-[Incorporate] @red bell pepper{1/2}(finely diced).
+[Incorporate] The @red bell pepper{1/2}(finely diced).
[Sear] Add the @ground beef{200 g} over ^{high heat}.
-[Season] With @salt{1/2 tsp}, @garlic{2 cloves}(pressed), @fresh oregano{1 tsp}, @sweet paprika{1 tsp}, and @fresh parsley{1 tbsp}. // Argentine grandmother's rule: 1 clove of garlic per 100g of meat
+[Season] With @&salt{1/2 tsp}, @garlic{1 clove / 100 g @&ground beef}(pressed), @fresh oregano{1 tsp}, @sweet paprika{1 1/2 tsp}, and @fresh parsley{1 tbsp + 1 tsp}.
[Mix] Remove from heat, stir in the @eggs{2}(hard-boiled, finely diced) and some @green olives{}.
@@ -37,4 +37,4 @@ portions: 5
[Shape] Place the &filling on half of each circle. Fold into a half-moon shape and pinch the edges firmly to seal the dough. // Prick the top with a toothpick to create a small steam vent
-[Bake] At ^{200C} for about ~baking{15 min}. // Stop baking as soon as they are nicely golden brown
+[Bake] At ^{390°F} for about ~_baking{15 min} until ={golden brown}.
diff --git a/packages/docs/public/examples/lemon-tart-fr/bases/pate-sucree.gram b/packages/docs/public/examples/lemon-tart-fr/bases/pate-sucree.gram
index abf81b3c..6c2457db 100644
--- a/packages/docs/public/examples/lemon-tart-fr/bases/pate-sucree.gram
+++ b/packages/docs/public/examples/lemon-tart-fr/bases/pate-sucree.gram
@@ -7,6 +7,6 @@ description: "Une pâte sucrée de base, isolée dans son propre fichier pour ê
[Sabler] La @farine{300 g} avec le @beurre{200 g}(froid, en dés).
-[Ajouter] l'@oeuf{50 g} et le @sel{3 g}, puis rassembler en boule.
+[Ajouter] L'@oeuf{50 g} et le @sel{3 g}, puis rassembler en boule.
[Reposer] Filmée au réfrigérateur pendant ~_{30min}.
diff --git a/packages/docs/public/examples/lemon-tart-fr/lemon-tart.gram b/packages/docs/public/examples/lemon-tart-fr/lemon-tart.gram
index c21ab642..4fc01388 100644
--- a/packages/docs/public/examples/lemon-tart-fr/lemon-tart.gram
+++ b/packages/docs/public/examples/lemon-tart-fr/lemon-tart.gram
@@ -9,9 +9,9 @@ portions: 8
## Appareil au citron ->&appareil
-[Fouetter] Les @oeufs{3}, le @sucre{150 g}, et le @jus de citron{120 ml}<@citrons{2} dans une #casserole à ^{feu doux} jusqu'à ={épaississement}(la crème nappe le dos de la cuillère), environ ~{8min}.
+[Fouetter] Les @oeufs{3}, le @sucre{150 g}, et le @jus de citron{120 ml}<@citrons{2} dans une #casserole à ^{feu doux} jusqu'à ={épaississement}(la crème doit napper le dos d'une cuillère), environ ~{8min}.
-[Incorporer] Hors du feu, le @beurre{80 g} en fouettant jusqu'à épaississement.
+[Incorporer] Hors du feu, le @beurre{80 g} en fouettant jusqu'à ={épaississement}.
## Montage
diff --git a/packages/docs/public/examples/lemon-tart/bases/shortcrust-base.gram b/packages/docs/public/examples/lemon-tart/bases/shortcrust-base.gram
index ec9a9e8a..32e911af 100644
--- a/packages/docs/public/examples/lemon-tart/bases/shortcrust-base.gram
+++ b/packages/docs/public/examples/lemon-tart/bases/shortcrust-base.gram
@@ -5,8 +5,8 @@ description: 'A basic shortcrust pastry, split out so any tart can reuse it.'
## Shortcrust dough
-[Mix] @flour{300 g} with @butter{200 g}(cold, cubed) until sandy.
+[Mix] The @flour{300 g} with @butter{200 g}(cold, cubed) until ={sandy}.
-[Add] @egg{50 g} and @salt{3 g}, then bring together into a ball.
+[Add] The @egg{50 g} and @salt{3 g}, then bring together into a ball.
[Rest] Wrapped in the refrigerator for ~_{30min}.
diff --git a/packages/docs/public/examples/lemon-tart/lemon-tart.gram b/packages/docs/public/examples/lemon-tart/lemon-tart.gram
index e5c5b037..590c0ff1 100644
--- a/packages/docs/public/examples/lemon-tart/lemon-tart.gram
+++ b/packages/docs/public/examples/lemon-tart/lemon-tart.gram
@@ -9,14 +9,14 @@ portions: 8
## Lemon Curd ->&curd
-[Whisk] @eggs{3}, @sugar{150 g}, and @lemon juice{120 ml}<@lemons{2} in a #saucepan over ^{low heat} until ={thickened}(it coats the back of a spoon), about ~{8min}.
+[Whisk] The @eggs{3}, @sugar{150 g}, and @lemon juice{120 ml}<@lemons{2} in a #saucepan over ^{low heat} until ={thickened}(it coats the back of a spoon), about ~{8min}.
-[Incorporate] Remove from heat, blend in the @butter{80 g}, and whisk in until glossy.
+[Incorporate] Remove from heat, blend in the @butter{80 g}, and whisk in until ={glossy}.
## Baking and assembling
[Line] A #tart tin{}(24cm) with the &shortcrust{250 g}(rolled out thin).
-[Bake] At ^{180C} for ~_{15min}. ->&baked shell{}
+[Bake] At ^{355°F} for ~_{15min}. ->&baked shell{}
[Fill] The &baked shell{} with the &curd and ^{chill} for ~_{2h} before serving.
diff --git a/packages/docs/public/examples/manifest-fr.json b/packages/docs/public/examples/manifest-fr.json
index be76520d..8a189183 100644
--- a/packages/docs/public/examples/manifest-fr.json
+++ b/packages/docs/public/examples/manifest-fr.json
@@ -9,11 +9,6 @@
"title": "Les Empanadas de Brian",
"path": "/examples/empanadas-fr.gram"
},
- {
- "id": "chocolate-chip-cookies-fr.gram",
- "title": "Cookies aux pépites de chocolat (cups et cuillères)",
- "path": "/examples/chocolate-chip-cookies-fr.gram"
- },
{
"id": "lemon-tart-fr",
"title": "Tarte au Citron (multi-fichiers, @use)",
diff --git a/packages/docs/public/examples/manifest.json b/packages/docs/public/examples/manifest.json
index 5bc0e00f..ed4cf7e9 100644
--- a/packages/docs/public/examples/manifest.json
+++ b/packages/docs/public/examples/manifest.json
@@ -9,11 +9,6 @@
"title": "Brian's Empanadas",
"path": "/examples/empanadas.gram"
},
- {
- "id": "chocolate-chip-cookies.gram",
- "title": "Chocolate Chip Cookies (cups and spoons)",
- "path": "/examples/chocolate-chip-cookies.gram"
- },
{
"id": "lemon-tart",
"title": "Lemon Tart (multi-file, @use)",
diff --git a/packages/docs/public/llms-full.txt b/packages/docs/public/llms-full.txt
index a6672ce8..7f241944 100644
--- a/packages/docs/public/llms-full.txt
+++ b/packages/docs/public/llms-full.txt
@@ -13,7 +13,7 @@ Cooking is a bit like an algorithm: you take raw ingredients as input and output
I've always loved the idea of writing recipes in plain text, heavily inspired by pioneering projects like the excellent [Cooklang](https://cooklang.org). Cooklang is fantastic for quick, straightforward home recipes. But when things get a bit more complex—like professional pastry formulas with multiple sub-components, baker's math, or tricky scheduling—relying entirely on natural language can get messy.
-Gram also draws structural inspiration from the classic [Cooking for Engineers](http://www.cookingforengineers.com/) tabular format. Because Gram compiles recipes into a deterministic JSON tree, it natively unlocks advanced presentations: a for the kitchen, tabular flowcharts, and calendar exports. The engine computes; the views, like the run sheet, only show what it computed.
+Gram also draws structural inspiration from the classic [Cooking for Engineers](http://www.cookingforengineers.com/) tabular format. Because Gram compiles recipes into a deterministic JSON tree, it natively unlocks advanced presentations: a **run sheet** for the kitchen, tabular flowcharts, and calendar exports. The engine computes; the views, like the run sheet, only show what it computed.
I created Gram as an alternative for these more demanding scenarios. It introduces **relational logic**, **physical accuracy**, **modular composition**, and **predictive scheduling** into your recipe writing:
@@ -75,7 +75,7 @@ portions: 10
[Mix] In a #mixing bowl{}, combine the @flour{300 g}, @sugar{500 g}, and @salt{3 g}. ->&dry ingredients{}
-[Heat] In a #large saucepan{}, bring the @milk{1 l}, @butter{100 g}, and @vanilla bean{1}(split and scraped) to ^{85C}. ->&hot milk{}
+[Heat] In a #large saucepan{}, bring the @milk{1 l}, @butter{100 g}, and @vanilla bean{1}(split and scraped) to ^{185°F}. ->&hot milk{}
[Mix] Pour the &hot milk{} over the &dry ingredients{} all at once. Whisk vigorously.
@@ -87,10 +87,10 @@ portions: 10
{
"title": "Cannelés",
"meta": { "portions": "10" },
- "generator": "@gram-lang/kitchen@1.4.0",
+ "generator": "@gram-lang/kitchen@1.5.0",
"metrics": {
- "preparationTime": 24,
- "activeTime": 41,
+ "preparationTime": 9,
+ "activeTime": 56,
"totalMass": 2132,
"nutrition": {
"total": {
@@ -214,16 +214,14 @@ densities:
## 2. Module imports
-*(since v1.2.0)*
-
Right after the frontmatter, before any step, a recipe can `@use` other `.gram` files as reusable sub-components.
```gram
-@use "./bases/pate-sablee.gram" as &pate
+@use "./bases/shortcrust-pastry.gram" as &pastry
-## Montage
+## Assembly
-[Foncer] le moule avec &pate{250g}.
+[Line] The #pan{} with &pastry{250g}.
```
*See [Module Imports](/docs/reference/syntax/modules) for the full syntax, scaling rules, and encapsulation guarantees.*
@@ -249,7 +247,7 @@ Steps can optionally start with an **Action** enclosed in brackets `[]`. This hi
```
:::tip[Name the action]
-Starting steps with an action verb in brackets is strongly recommended, especially for timed steps: the and summary views rely on these actions to name each step clearly.
+Starting steps with an action verb in brackets is strongly recommended, especially for timed steps: the **run sheet** and summary views rely on these actions to name each step clearly.
:::
## 4. Sections
@@ -259,11 +257,11 @@ Complex recipes often have multiple components (e.g., dough, filling, frosting)
```gram
## Dough
-Mix @flour{200g} and @water{100ml} together until smooth.
+[Mix] @flour{200g} and @water{100ml} together until smooth.
## Filling
-Combine @cheese{100g} and @spinach{50g}, then season to taste.
+[Combine] @cheese{100g} and @spinach{50g}, then season to taste.
```
### Retro-planning (scheduling)
@@ -291,12 +289,12 @@ You can add comments to explain instructions without affecting the compiled outp
**Inline Comments (`//`)**:
```gram
-Mash @potato{2kg} until smooth // alternatively, boil 'em first.
+[Mash] @potato{2kg} until smooth // alternatively, boil 'em first.
```
**Block Comments (`/* ... */`)**:
```gram
-Slowly add @milk{4 cup} /* TODO change units to litres */, keep mixing.
+[Add] Slowly pour in @milk{4 cup} /* TODO change units to litres */, keep mixing.
```
:::note[Comments vs YAML Notes]
@@ -329,6 +327,272 @@ Comments are preserved during compilation and are rendered alongside the instruc
---
+
+
+A recipe can `@use` another `.gram` file as a reusable sub-component — a shortcrust pastry, a stock, a batch of egg whites — instead of copy-pasting its steps into every recipe that needs it.
+
+```gram
+---
+title: 'Lemon Meringue Tart'
+---
+
+@use "./bases/shortcrust-pastry.gram" as &shortcrust
+
+## Assembly
+
+[Line] The #tart ring{} with &shortcrust{250g}.
+
+[Fill] With @lemon curd{300g}.
+```
+
+The imported recipe's steps are seamlessly inlined into the timeline: a base's resting time interleaves with the host's steps, and its raw ingredients merge directly onto the unified shopping list.
+
+
+## Syntax
+
+`@use` directives must be declared immediately after the frontmatter, before any cooking step — see [Document Structure](/docs/reference/syntax/document-structure#2-module-imports).
+
+```gram title="@use directive variants"
+@use "./bases/shortcrust.gram" as &crust
+
+// 2. Destructuring (imports multiple distinct components)
+@use "./bases/tart-elements.gram" as { &crust, &frangipane }
+
+// 3. Renaming (resolves naming conflicts in the host recipe)
+@use "./bases/cream.gram" as { &cream as &pastry-cream }
+
+// 4. Multi-word identifiers (wrapped in braces)
+@use "./bases/tart-elements.gram" as &sweet pastry{}
+
+// 5. Time-anchoring (schedules preparation 2 days ahead)
+@use "./bases/starter.gram" as &starter ~{-2d}
+```
+
+### Specifier rules
+* The specifier must end in `.gram`.
+* Supported formats: relative path (`./`, `../`), project root (`@/`), or custom alias (`@alias/`).
+* Paths are strictly confined to the project root containing `.gram/` — absolute paths or URLs are rejected.
+
+
+## Project-root & aliased paths
+
+`./` and `../` resolve relative to the *importing file's directory*. For deeply nested recipes, Gram provides two clean alternatives:
+
+**Project Root (@/)**
+
+`@/` always points to the project root (the directory containing `.gram/`), regardless of file depth:
+
+ ```gram
+ @use "@/bases/shortcrust-pastry.gram" as &pastry
+ ```
+
+ **Path Aliases (@alias/)**
+
+Configure path aliases in `.gram/config.yaml`:
+
+ ```yaml
+ # .gram/config.yaml
+ paths:
+ bases: ./shared/bases
+ sauces: ./shared/sauces
+ ```
+
+ Then import directly using `@alias/`:
+
+ ```gram
+ @use "@bases/shortcrust-pastry.gram" as &pastry
+ @use "@sauces/bechamel.gram" as &sauce
+ ```
+
+
+## What a module exports
+
+Only **section-level** intermediate variables (`->&` on a `## Section` header) are exported. Step-level intermediates (`->&` inside a step) remain private to the module. See [Intermediate Variables](/docs/reference/syntax/intermediate-variables).
+
+```gram title="bases/tart-elements.gram"
+title: 'Tart Elements'
+
+## Sweet Pastry ->&crust
+
+[Mix] @flour{200g}, @butter{100g}, @sugar{50g}, and @water{50ml}. Chill for ~_{1h}.
+
+## Frangipane Cream ->&frangipane
+
+[Cream] @almond flour{100g}, @butter{100g}, @sugar{100g}, and @eggs{100g}.
+```
+
+:::note[Default Exports & Re-exporting]
+* **Default Export**: A module with a single section export binds that target when using `as &name`. A module with multiple exports defaults to the output of its **last** section.
+* **Destructured Exports**: Use `as { &a, &b }` to target specific components by name.
+* **No Implicit Re-exports**: If `sauce.gram` imports `&stock` from `stock.gram`, importing `sauce.gram` only provides `&sauce`, not `&stock`. Re-exporting must be explicit via a dedicated section.
+:::
+
+
+## Scaling
+
+Gram measures a module's own output from its ingredients — nothing to declare:
+
+```gram title="bases/shortcrust.gram"
+title: 'Shortcrust Pastry'
+
+## Pastry
+
+[Mix] @flour{300g} with @butter{200g}.
+```
+
+`shortcrust.gram` sums its own ingredients to 500g. When an importing recipe requests `&pastry{250g}`, Gram scales every ingredient in it by `0.5` automatically — the ratio between what was asked for and what the module actually measures out to.
+
+:::note[When the measurement is only an estimate]
+If working out a module's mass depends on an estimated density or a default unit weight rather than an explicit mass, Gram emits an `ESTIMATED_MODULE_YIELD` diagnostic rather than treating the scale factor as exact.
+:::
+
+### Scaling destructured exports
+
+When importing multiple components from the same module, each component is measured on its own — from its own section's ingredients, plus anything that section itself references. If different ratios are requested, the **largest ratio** applies to the entire module, and Gram reports the extra production:
+
+```gram title="bases/tart-elements.gram"
+title: 'Tart Elements'
+
+## Sweet Pastry ->&crust
+
+[Mix] @flour{200g}, @butter{100g}, @sugar{50g}, and @water{50ml}. Chill for ~_{1h}.
+
+## Frangipane Cream ->&frangipane
+
+[Cream] @almond flour{100g}, @butter{100g}, @sugar{100g}, and @eggs{100g}.
+```
+
+```gram
+@use "./bases/tart-elements.gram" as { &crust, &frangipane }
+
+## Pear Tart
+
+[Line] The #tart ring{} with the &crust{800g}.
+
+[Spread] The &frangipane{400g} over the base and top with sliced @pears{3}.
+```
+
+`&crust{800g}` against a measured 400g of sweet pastry requires a ×2 ratio; `&frangipane{400g}` against 400g of frangipane cream requires ×1. The larger ratio (×2) applies to the whole module, so frangipane comes out to 800g produced against the 400g actually used.
+
+:::caution[Production Surplus (`MODULE_SURPLUS`)]
+When asymmetrical ingredient demands force Gram to apply the higher multiplier across the entire module, the compiler flags the resulting excess production (here 400g of frangipane cream) with a `MODULE_SURPLUS` diagnostic rather than silently ignoring it.
+:::
+
+### Timers & batches
+
+**Cooking and resting times are never scaled.** Doubling a cookie dough does not double or halve the baking duration.
+
+When a discrete count is requested against a module's measured mass (`&cookies{2}` against a module that measures out to 500g), Gram interprets the request as *2 full batches* and emits `MODULE_BATCH_INTERPRETATION`.
+
+
+## Chained imports & transitivity
+
+Modules can import other modules, creating a dependency chain:
+
+```text
+recipe.gram ──▶ @use "./sauce.gram" ──▶ @use "./stock.gram"
+```
+
+* **Encapsulation**: `recipe.gram` interacts only with `&sauce`. Private steps and local variables of `stock.gram` remain isolated.
+* **Unified Schedule & Shopping List**: Raw ingredients (carrots, aromatics, bones) and simmering steps from `stock.gram` automatically bubble up into the main recipe.
+
+
+## Diamond dependencies & cycle prevention
+
+### Diamond dependencies
+
+When a menu imports multiple dishes sharing a common base (e.g. an entrée and a dessert both importing `shortcrust-pastry.gram`):
+* The shared base file is parsed **only once**.
+* The compiler creates independent instances scaled to each dish's requirements.
+* Raw ingredients (flour, butter) merge cleanly on the shopping list.
+
+### Cycle prevention
+
+:::danger[Circular Dependencies (`MODULE_CYCLE`)]
+If Recipe A imports B which imports A (directly or indirectly), Gram detects the circular dependency, cuts off that one import branch, and reports a `MODULE_CYCLE` error diagnostic displaying the full dependency loop (`A -> B -> A`). The rest of the recipe still compiles — the cyclic binding is left unresolved rather than crashing the whole build — but `gram check` (and any `--strict` run) fails on it, since `MODULE_CYCLE` is error-severity.
+:::
+
+
+## Encapsulation
+
+* **Section Scoping**: Relative quantities (`@water{70% @&flour}`) and ingredient checks resolve only within the module's own sections. Host recipes using identical ingredient names never cause conflicts.
+* **Headless Modules**: A module without section headers (`##`) is isolated into its own dedicated section upon import — it never merges into the host's untitled section.
+
+
+## Frontmatter inheritance
+
+Informational metadata (`title`, `description`, `author`, `tags`, `category`) belongs strictly to the host recipe — importing a `vegan` base does not make an egg-based host tart vegan.
+
+**Exceptions:**
+* `densities:` merges into the host (host values take precedence on conflict).
+* Baker's percentage references (`*`) inside imported modules are stripped on import.
+
+
+## Stocking an import (`--stock`)
+
+When a component is already on hand (bought ready-made or prepared ahead of time), pass `--stock` to the CLI:
+
+```bash
+gram shop dinner.gram --stock @bases/bouillon.gram
+gram cook dinner.gram --stock @bases/bouillon.gram
+```
+
+* **Run sheet**: Preparation steps for stocked modules are omitted and open no dedicated kitchen visits; the base is simply listed "in stock" within the visit using it.
+* **Shopping List**: Appears as a single purchasable item (e.g. `1 bouillon`) instead of raw ingredients.
+* **Nutrition**: Exact caloric and macronutrient values are preserved.
+
+Supported by all CLI commands resolving `@use` (`build`, `check`, `view`, `export`, `cook`, `print`, `watch`, `shop`, `scale`).
+
+
+## Anchoring an import in time (`~{-2d}`)
+
+When a fresh preparation must be started in advance (e.g. a sourdough starter or marinade), anchor it directly on the `@use` line:
+
+```gram
+@use "./bases/starter.gram" as &starter ~{-2d}
+
+## Bread
+
+[Knead] With &starter{150g}.
+```
+
+:::tip[Time-Anchor Precedence]
+* An importer-level `~{...}` clause overrides any retro-planning header declared inside the base (`RETRO_PLANNING_OVERRIDE_SHADOWED`).
+* Combining `--stock` with `~{...}` on the same import causes the time anchor to be ignored, triggering a `STOCKED_RETRO_PLANNING_IGNORED` diagnostic.
+:::
+
+
+## Editor & language server support
+
+The Gram Language Server resolves `@use` directives in real time:
+
+* **Instant Diagnostics**: Cross-file validation updates live as you type.
+* **Run sheet & live preview**: Real-time update incorporating spliced steps and scaled quantities. An imported base integrates into kitchen visits, and a time anchor (e.g. `~{-2d}`) on its `@use` directive automatically opens a dedicated working day.
+* **Go to Definition**: Jumping to `&pastry` opens the source module at the exact exported section.
+* **Auto-completion**: Typing `@use "` completes `./`, `../`, `@/`, and configured `paths:` aliases.
+
+
+## Related documentation
+
+
+
+
+
+
+---
+
Ingredients are the core building blocks of any Gram recipe.
@@ -369,7 +633,7 @@ If you scale a recipe from 2 to 4 portions, an `@ingredient` with `{100g}` becom
Some `@ingredient` items (like salt, yeast, or spices) should not scale linearly. You can lock their quantity using the `=` modifier.
```gram
-Season with @=salt{1 tsp} to taste.
+[Season] With @=salt{1 tsp} to taste.
```
This keeps the salt at 1 tsp regardless of how many portions the user calculates.
@@ -456,9 +720,9 @@ Each preparation counts toward the mise en place of **its own section**, where i
Only a parenthesis that touches the `}` (or the name when there are no braces) is read as a preparation, and it ends on the same line. With a space, the parenthesis stays part of the sentence:
```gram
-Add the @butter{100 g}(softened).
+[Add] The @butter{100 g}(softened).
-Add the @butter{100 g} (about 1 stick).
+[Add] The @butter{100 g} (about 1 stick).
```
The first butter carries the preparation `softened`; the second has none, and `(about 1 stick)` stays ordinary text. The same rule applies to parentheses on cookware, temperatures, and target states.
@@ -471,10 +735,10 @@ You can rename an `@ingredient` for display purposes using a colon `:` immediate
```gram title="Code"
-Deglaze with @dry white wine:wine{100ml}.
+[Deglaze] With @dry white wine:wine{100ml}.
```
```markdown title="Rendered Recipe"
-1. Deglaze with **wine** (100ml).
+1. **[Deglaze]** With **wine** (100ml).
```
```markdown title="Shopping List"
- **dry white wine**: 100ml
@@ -495,91 +759,90 @@ This `:` syntax only renames how the ingredient is *displayed* in the rendered s
You can define acceptable alternatives for an `@ingredient` using the pipe `|` operator.
```gram
-Add @milk{100ml}|@water{95ml}.
+[Add] @milk{100ml}|@water{95ml}.
```
This works with short-hand preparations as well:
```gram
-@onion{1}(peeled and chopped)|@shallots{2}(minced)
+[Add] @onion{1}(peeled and chopped)|@shallots{2}(minced)
```
### Ranges
Recipes aren't always exact. You can specify a range using a hyphen `-`.
```gram
-Add @eggs{2-4}.
+[Add] @eggs{2-4}.
-Pour @water{1.5-2l}.
+[Pour] @water{1.5-2l}.
```
### Fractions
Quantities accept fractions in three forms — a plain fraction, a mixed number, or a Unicode fraction glyph — all normalized to the same decimal value.
```gram
-Add @sugar{1/2 cup}.
+[Add] @sugar{1/2 cup}.
-Add @flour{1 1/2 cups}.
+[Add] @flour{1 1/2 cups}.
-Add @butter{1½ sticks}.
+[Add] @butter{1½ sticks}.
```
### Decimal numbers
*(since v1.5.0)*
-A decimal number takes a point or a comma, whichever you are used to: `{1.5 kg}` and `{1,5 kg}` are the same quantity. This holds for every number in braces: ingredients, ranges (`{0,5-0,75 l}`), relative quantities (`{12,5% &dough}`), cookware, temperatures (`^{37,5°C}`), timers and section anchors.
+Decimals accept either a period or a comma: `{1.5 kg}` and `{1,5 kg}` mean the same thing. This applies to every number inside braces—ingredients, ranges (`{0,5-0,75 l}`), relative quantities (`{12,5% &dough}`), cookware, temperatures (`^{37,5°C}`), timers, and section anchors.
```gram
-Add @flour{1,5 kg} and @salt{0.125 kg}.
+[Add] @flour{1,5 kg} and @salt{0.125 kg}.
-Pour @milk{0,5-0,75 l}.
+[Pour] @milk{0,5-0,75 l}.
```
-Gram has no thousands separator: write `{1500 g}`, never `{1,500 g}`. A comma followed by exactly three digits is read as a decimal like any other (`{1,000 g}` is 1 g), but since a reader could mean a thousand, the compiler warns `AMBIGUOUS_NUMBER` and says how it read the number. A point keeps the meaning it has always had: `{1.000 kg}` is 1 kg, with no warning.
+:::caution[No thousands separator]
+Gram has no thousands separator: write `{1500 g}`, never `{1,500 g}`. A comma followed by three digits like `{1,000 g}` is parsed as a decimal (`1 g`) and triggers an `AMBIGUOUS_NUMBER` warning; a period (`{1.000 kg}`) always means `1 kg` with no warning.
+:::
### Sums of quantities
*(since v1.5.0)*
-A measure that doesn't fit one unit is written the way a recipe says it: terms joined by `+`, or `-` for an amount taken away.
+When a measurement combines more than one unit, write it as a sum with `+`, or `-` for an amount subtracted:
```gram
-Add @flour{1 cup + 1 tbsp} and @sugar{1 cup - 2 tbsp}.
+[Add] @flour{1 cup + 1 tbsp} and @sugar{1 cup - 2 tbsp}.
-Pour @milk{1 cup + 1-2 tbsp}.
+[Pour] @milk{1 cup + 1-2 tbsp}.
-Mix in @butter{2 1/2 tbsp + ½ tsp} and @rice{1 cup + 20 g}.
+[Mix] In @butter{2 1/2 tbsp + ½ tsp} and @rice{1 cup + 20 g}.
```
-Each term is a number (or a range, or a fraction) with its unit. Gram keeps the terms as written and works out their total: `{1 cup + 1 tbsp}` is 17 tbsp, `{1 cup - 2 tbsp}` is 14 tbsp. The recipe shows the sum as you wrote it; once scaled, it is worked out again into amounts a cook can measure (`{1 cup + 1 tbsp}` doubled reads `2 cup + 2 tbsp`, never `2 1/8 cup`). The `=` modifier locks a sum like any other quantity (`@=salt{1,5 g + 1 pinch}`).
+Each term is a quantity (number, range, or fraction) with its unit. Gram preserves the sum as written in the unscaled recipe, and recomputes it into practical kitchen measures when scaling (for example, doubling `{1 cup + 1 tbsp}` gives `2 cup + 2 tbsp`). Adding `=` locks the entire sum (`@=salt{1,5 g + 1 pinch}`).
-A sum counts as **separate mentions** of the ingredient: `@rice{1 cup + 20 g}` goes into the shopping list exactly like `@rice{1 cup}` followed by `@&rice{20 g}`. Terms of the same kind of unit add up (cups and spoons, kilos and grams); a volume next to a weight, or two units Gram doesn't know (`{1 head + 2 cloves}`), stay side by side.
+In the shopping list, a sum behaves like separate mentions of the ingredient: compatible units add up (cups and spoons, grams and kilograms), while a volume and a weight (`{1 cup + 20 g}`) or unrecognized units stay side by side.
-A few rules keep a sum readable:
+A few rules keep sums unambiguous:
-- **Every term has its unit**: `{1 + 1 cup}` is refused.
-- **Only amounts**: no percentage (`{100 g + 10%}`, write `{110 g}`, or a [relative quantity](/docs/reference/syntax/relative-quantities/)), no multiplication (`{2 x 100 g + 50 g}`).
-- **Take away from the same kind**: `{1 cup - 2 tbsp}` works, `{1 cup - 20 g}` doesn't, and what is taken away must leave something (`{1 tbsp - 1 cup}` is refused).
-- **No range after `-`**: `{1 cup - 1-2 tbsp}` would swap its bounds; write the range on a term that is added.
+- **Every term needs a unit**: `{1 + 1 cup}` is rejected.
+- **Plain quantities only**: no percentages (`{100 g + 10%}`) or multiplications (`{2 x 100 g}`).
+- **Subtract within the same kind**: `{1 cup - 2 tbsp}` works, `{1 cup - 20 g}` does not, and the result must remain positive (`{1 tbsp - 1 cup}` is rejected).
+- **No range after `-`**: put ranges on added terms (`{1 cup + 1-2 tbsp}`), never subtracted ones.
-Each kind of amount adds up and takes away **on its own**, because a volume and a weight can't be compared without a density. In `{1 cup - 2 tbsp + 30 g}`, the 2 tbsp come off the cup and the 30 g are added beside them: the sum is 14 tbsp of volume plus 30 g of weight. In `{1 cup - 20 g}`, there is no weight to take the 20 g from, so Gram refuses it rather than guess. Hover a sum in the editor to see what each kind comes to.
+An invalid sum still compiles with an `INVALID_QUANTITY` warning explaining why, and is excluded from shopping list and nutrition totals. See [Scaling sums of quantities](/docs/explanation/scaling/#scaling-sums-of-quantities) for details.
-A refused sum compiles with an `INVALID_QUANTITY` warning that says why, and counts for nothing in the shopping list and the nutrition. Two quantities written side by side without an operator (`{1 cup 5 tbsp}`) raise `INVALID_UNIT`; the editor offers to insert the ` + `.
-
-:::caution[oz is a weight]
-In `{1 cup + 2 oz}`, `oz` is an ounce of weight, not of volume: Gram reads it as written and adds a note (`OZ_AFTER_VOLUME`). Write `fl oz` for a fluid ounce.
+:::caution[`oz` means weight]
+In `{1 cup + 2 oz}`, `oz` is parsed as weight (ounces), not fluid volume (`OZ_AFTER_VOLUME`). Write `fl oz` for fluid ounces.
:::
## Error handling
-Some syntax errors stop the recipe from being read before it is even compiled: an unreadable quantity in braces (`@salt{1 g/l}`), a brace that is never closed. The message points at the exact spot to fix, and the editor underlines it.
+Some syntax errors stop parsing before compilation: an unreadable quantity in braces (such as `@salt{1/2/3}`) or an unclosed brace. The error points to the exact spot to fix.
-The compiler checks for semantic errors in your `@ingredient` declarations and will output specific warnings:
+The compiler checks for semantic errors in your `@ingredient` declarations and emits structured warnings:
-- **Invalid Modifier**: If you combine incompatible modifiers (like `?*`), the compiler warns `INVALID_MODIFIER_COMBINATION` and ignores them.
-- **Undefined Reference**: If you use a reference (`@&ingredient`) but that item hasn't been declared previously in the recipe, the compiler warns `UNDEFINED_REFERENCE`.
-- **Database Missing**: If you compile with a database and the `@ingredient` is not found, it warns `MISSING_INGREDIENT`.
-- **Missing Macros**: If the database lacks nutritional information for the `@ingredient`, it warns `MISSING_MACROS`.
-- **Unknown Mass**: If it cannot convert a volume or count into grams to estimate nutrition, it warns `UNKNOWN_MASS`.
-- **Invalid Quantity**: If a sum of quantities can't be read (a term without a unit, a percentage, an amount taken away from another kind…), it warns `INVALID_QUANTITY` and gives the reason.
-- **Ambiguous Number**: If a comma is followed by exactly three digits (`{1,000 g}`), it reads a decimal and warns `AMBIGUOUS_NUMBER`, in case a thousand was meant.
+- **Invalid Modifier**: Combining incompatible modifiers (like `?*`) triggers `INVALID_MODIFIER_COMBINATION`.
+- **Undefined Reference**: Using a reference (`@&ingredient`) before it has been declared triggers `UNDEFINED_REFERENCE`.
+- **Database Missing**: An `@ingredient` missing from the supplied database triggers `MISSING_INGREDIENT`.
+- **Missing Macros**: An entry without nutritional information triggers `MISSING_MACROS`.
+- **Unknown Mass**: A volume or count that cannot be converted into grams triggers `UNKNOWN_MASS`.
+- **Invalid Quantity / Ambiguous Number**: Malformed sums trigger `INVALID_QUANTITY`, and a comma followed by three digits (`{1,000 g}`) triggers `AMBIGUOUS_NUMBER`.
## Related resources
@@ -616,13 +879,13 @@ You can define the tools and equipment needed for a recipe using the `#` symbol.
Like an `@ingredient`, if the `#cookware` name is a single word and you only need one of it, you can omit the braces `{}`.
```gram
-Heat the #pan.
+[Heat] The #pan.
```
If the name contains spaces or you want to specify a quantity, you must use braces `{}`.
```gram
-Take a #baking sheet{}.
+[Take] A #baking sheet{}.
```
## Quantities vs dimensions
@@ -675,23 +938,23 @@ Cookware items required by a section are inventoried in the mise en place of the
You can apply Optional (`?`), Hidden (`-`), Fixed (`=`), and Reference (`&`) modifiers directly after `#`:
```gram
-Use a #?wok if you have one, otherwise a #-large pan will do.
+[Use] A #?wok if you have one, otherwise a #-large pan will do.
-Return to the #&wok to finish the sauce.
+[Return] To the #&wok to finish the sauce.
```
**Component alias**
You can rename an equipment item for display while keeping a clean canonical slug using the `:` operator:
```gram
-Use the #cast iron skillet:skillet{}.
+[Use] The #cast iron skillet:skillet{}.
```
**Alternatives**
You can declare acceptable equipment substitutions using the pipe `|` operator:
```gram
-Cook in a #pan|#wok.
+[Cook] In a #pan|#wok.
```
## Related resources
@@ -719,25 +982,21 @@ Cook in a #pan|#wok.
You can define `~timer` declarations and durations in your recipes using the `~` symbol.
-## Basic declaration
+## Writing a duration
-A `~timer` **must** state its unit inside the braces. Words are not durations: `~{about 10 minutes}` or `~{half an hour}` are not read, and the compiler warns about them.
+Every `~timer` requires a recognizable duration and unit inside braces (`~{25min}`); free-text durations like `~{about 10 minutes}` or `~{half an hour}` trigger a compiler warning.
```gram
-Bake for ~{25min}.
+[Bake] For ~{25min}.
```
**Supported units:**
-- `min` (minutes) - Canonical preferred standard.
+- `min` (minutes) — canonical preferred standard (`m` and `minutes` normalize to `min`).
- `h` (hours).
- `d` (days).
- `s` (seconds).
-:::note
-Shorthand `m` or the word `minutes` are automatically normalized to `min` by the compiler.
-:::
-
-These units are resolved through Gram's multi-language time dictionary: localized aliases below are recognized natively regardless of the recipe language (e.g. in a French recipe, `~{2j}` resolves identically to `~{2d}`, and `~{1 hr}` reads in any recipe).
+Units resolve through Gram's multi-language time dictionary, so localized aliases work regardless of the recipe language (`~{2j}` equals `~{2d}`, and `~{1 hr}` works anywhere).
| Canonical | Aliases |
| --- | --- |
@@ -746,132 +1005,74 @@ These units are resolved through Gram's multi-language time dictionary: localize
| `m` | `min`, `mins`, `minute`, `minutes` |
| `s` | `sec`, `secs`, `second`, `seconds` |
-## Writing a duration
+### Natural and compound forms
*(since v1.5.0)*
-Write a duration the way a recipe does, in American or British English, in French or in international notation. Spaces carry no meaning: `~{1h30}`, `~{1 h 30}`, `~{1hr 30}` and `~{1 hr. 30 mins}` all read as 1 hour 30 minutes.
+Write durations the way recipes naturally do. Spaces don't matter (`~{1h30}`, `~{1 h 30}`, `~{1 hr 30 mins}` all mean 1 h 30 min), and every view formats them consistently in the reader's language:
```gram
-Simmer the @stock{2 l} for ~{1h30}.
+[Simmer] The @stock{2 l} for ~{1h30}.
-Let the @dough{} rise ~_{1 hr 30 mins}.
+[Rise] Let the @dough{} rise ~_{1 hr 30 mins}.
-Age the @ham{1} in the cellar ~_{2d 4h}.
+[Age] The @ham{1} in the cellar ~_{2d 4h}.
```
-Whatever the writing, the views display every duration the same way, in the reader's language (`1 h 30 min`), and hovering a timer in your editor shows how Gram read it.
-
-### Several units
-
-A duration can chain several units, optionally joined by `+`: `~{1h30min}`, `~{1 h 30 min}`, `~{2 d 4 h}`, `~{1h + 30min}`.
-
-- Units go **from the largest to the smallest**, each one once: `~{30min 1h}` and `~{1h 2h}` are not read.
-- A **last number without a unit** is allowed right after hours (it counts minutes) or minutes (it counts seconds), when it is a whole number under 60: `~{1h30}`, `~{2min30}`. `~{1h75}` is not read: write `~{2h15}`.
-- **Decimals and fractions** only work in a duration of a single unit: `~{1.5 h}`, `~{1½ h}`, `~{1 1/2 hours}`. `~{1.5h30}` is not read.
-
-### Clock notation
-
-A clock with three parts always reads: `~{1:30:00}` is 1 hour 30 minutes, `~{0:04:30}` is 4 minutes 30 seconds. With two parts, a unit says what the first part is: `~{1:30 h}` is 1 hour 30 minutes, `~{4:30 min}` is 4 minutes 30 seconds.
-
-```gram
-Steam the @pudding{1} for ~_{1:30 h}.
-```
-
-`~{1:30}` alone is not read: it could be 1 hour 30 or 1 minute 30. Write `~{1h30}` or `~{1:30 min}`. After the first part, each part has two digits and stays under 60.
-
-### Prime notation
-
-Common in Italian and French recipes, `'` counts minutes and `"` seconds: `~{5'}`, `~{5'30"}`, `~{45"}`, `~{90'}`. A last number without a prime counts seconds (`~{5'30}`). Primes only count minutes and seconds, in whole numbers.
-
-```gram
-Cook the @spaghetti{500g} for ~{9'}, then toss for ~{1'30"}.
-```
-
-The typographic variants read too: the curly apostrophe `’` that word processors put in place of `'`, the primes `′` and `″`, and two apostrophes `''` for seconds.
-
-### Decimal numbers
-
-A duration can be a decimal, with a point or a comma (`~{1.5 h}`, `~{1,5 h}`; see [decimal numbers](/docs/reference/syntax/ingredients/#decimal-numbers)).
+- **Compound units** (`~{1h30min}`, `~{2 d 4 h}`, `~{1h + 30min}`): list units from largest to smallest, each once. A trailing number without a unit is allowed right after hours (minutes) or minutes (seconds) if it is a whole number under 60 (`~{1h30}`, `~{2min30}`, not `~{1h75}`). Decimals and fractions only apply to single-unit durations (`~{1.5 h}`, `~{1½ h}`, not `~{1.5h30}`).
+- **Clock notation** (`~{1:30:00}`, `~{1:30 h}`, `~{4:30 min}`): three parts always work (`hh:mm:ss`); two parts require a leading unit so `1:30` isn't ambiguous between hours and minutes.
+- **Prime notation** (`~{5'}`, `~{5'30"}`, `~{45"}`): `'` counts whole minutes and `"` counts whole seconds (typographic quotes `’`, `′`, `″`, and `''` also work).
+- **Decimals** (`~{1.5 h}`, `~{1,5 h}`): periods and commas both work (see [decimal numbers](/docs/reference/syntax/ingredients/#decimal-numbers)).
:::caution
-A decimal is a fraction of the unit, not minutes: `~{1.30 h}` (or `~{1,30 h}`) is 1 hour 18 minutes, not 1 hour 30. Write `~{1h30}` or `~{1.5 h}` for an hour and a half.
+A decimal is a fraction of the unit, not minutes: `~{1.30 h}` is 1 h 18 min, not 1 h 30 min. Write `~{1h30}` or `~{1.5 h}` for an hour and a half.
:::
-### What Gram reads, at a glance
-
-| Written | Read as |
-| :--- | :--- |
-| `~{90min}`, `~{1.5 h}`, `~{1,5 h}`, `~{1½ h}`, `~{1 1/2 hours}` | 1 h 30 min |
-| `~{1h30}`, `~{1 h 30}`, `~{1hr 30}`, `~{1 hr 30 mins}`, `~{1 hour 30 minutes}`, `~{1h30m}` | 1 h 30 min |
-| `~{1 heure 30}`, `~{1h + 30min}`, `~{1:30 h}`, `~{1:30:00}` | 1 h 30 min |
-| `~{4min30}`, `~{4:30 min}`, `~{4'30"}`, `~{0:04:30}` | 4 min 30 s |
-| `~{2 d 4 h}`, `~{2 j 4 h}` | 2 days 4 hours |
-| `~{45 min - 1 h}`, `~{1h30-2h}`, `~{5-7'}` | a range (see below) |
-
-| Not read | Why | Write instead |
+| Accepted | Rejected | Use instead |
| :--- | :--- | :--- |
-| `~{1:30}` | hours or minutes? | `~{1h30}` or `~{1:30 min}` |
-| `~{1h75}` | 60 minutes or more after the hours | `~{2h15}` |
-| `~{30min 1h}` | units from the smallest to the largest | `~{1h30}` |
-| `~{1.5h30}` | a decimal in a duration of several units | `~{1h30}` or `~{1.5 h}` |
-| `~{half an hour}`, `~{2 to 3 hours}` | words | `~{30min}`, `~{2-3h}` |
-| `~{2 * 2 min}` | a multiplication | the total, `~{4min}` |
-| `~{PT1H30M}` | ISO 8601, a notation for machines | `~{1h30}` |
+| `~{1h30}`, `~{1 hr 30}`, `~{1h + 30min}` | `~{1:30}` *(ambiguous)* | `~{1h30}` or `~{1:30 min}` |
+| `~{1:30 h}`, `~{1:30:00}` | `~{1h75}` *(≥ 60 min)* | `~{2h15}` |
+| `~{4'30"}`, `~{4min30}` | `~{30min 1h}` *(wrong order)* | `~{1h30}` |
+| `~{1.5 h}`, `~{1,5 h}`, `~{1½ h}` | `~{1.5h30}` *(decimal in compound)* | `~{1h30}` or `~{1.5 h}` |
+| `~{45 min - 1 h}`, `~{1h30-2h}` | `~{half an hour}` *(words)* | `~{30min}` |
-A duration Gram does not read raises a [warning](#error-handling) with a suggestion, and is not counted in the total time: Gram never guesses.
-
-### Timer names
-You can assign an explicit name to a `~timer`. This is especially useful for passive background tasks: when multiple timers run concurrently (like a dough fermenting while a stock simmers), named timers allow user interfaces and production run sheets to track each process simultaneously without confusion.
-
-```gram
-Boil @eggs{2} for ~eggs{3min}.
-```
+Unrecognized durations raise an `INVALID_DURATION` warning with a suggested fix and are excluded from total times.
### Exact times and ranges
-*(since v1.4.0)*
-By default, a timer is **exact**: `~_{12h}` lasts exactly 12 hours. When an operation has variable or flexible duration, specify an interval: this provides official elasticity for Gram's scheduling engine.
+By default, a timer is **exact**: `~_{12h}` lasts exactly 12 hours. When an operation has a variable or flexible duration, specify a range:
```gram
-Let the dough rest in the fridge ~_{12-24h}.
+[Chill] Let the dough rest in the fridge ~_{12-24h}.
-Roast the chicken for ~{40-50min}.
+[Roast] The chicken for ~{40-50min}.
```
-Each side of a range follows the rules above, and the shorter duration comes first. The left side takes the unit of the right side only when it is a bare number and the right side has a single unit: `~{1-2 h}`, `~{5-7'}`, `~{1.5-2 h}` (and two clocks before a unit: `~{1:30-2:00 h}`). Otherwise, write both sides in full (since 1.5.0):
+Write the shorter duration first, following the duration formats above. You can omit the left-hand unit only when it is a bare number and the right side has a single unit (`~{1-2 h}`, `~{5-7'}`, `~{1:30-2:00 h}`); for compound or mixed-unit bounds, write both sides in full (`~_{2h30-3h}`, `~{45 min - 1 h}`).
-```gram
-Braise the @beef cheeks{1 kg} ~_{2h30-3h}.
+Ranges behave differently depending on whether the timer is passive or active:
-Poach the @pears{4} for ~{45 min - 1 h}.
-```
+- **Passive range (`~_{12-24h}`) — elasticity**: "ready from 12 hours, optimal up to 24 hours." By default, timelines use the shortest bound (configurable to `shortest`, `balanced`, or `longest` via `--rests` / `gram.rests`), and calendar planning can stretch or compress it within those bounds to fit your kitchen hours.
+- **Active range (`~{40-50min}`) — safety margin**: planned on the longest bound (50 minutes) so service is never delayed (`rests` does not apply).
-`~{1-2h30}` is not read (is the left side 1 hour or 1 hour 30?): write `~{1h-2h30}`. Neither is `~{2-1 h}`: write `~{1-2 h}`.
-
-The interpretation of a range differs fundamentally based on timer type:
-
-- **A passive range represents elasticity.** The declaration `~_{12-24h}` states: "ready from 12 hours, optimal up to 24 hours". By default, the timeline lays out the shortest bound (`'shortest'`). You can select alternative elasticity strategies (`'shortest'`, median `'balanced'`, or longest `'longest'`) via the `--rests` CLI option, the `gram.rests` VS Code setting, or the `rests` renderer option. When provided with a target serving time and kitchen availability, the scheduler uses this elasticity to bridge overnight non-working hours without requiring cook intervention (see [Planning and run sheets](/docs/explanation/planning/)).
-- **How the reflects ranges.** The run sheet displays each passive wait with its scheduled duration and, when adjusted, reminds you of the original range specified in the recipe (e.g. `15 h 50 min (12–48 h)`). This elasticity is what grants an anticipation margin to a kitchen visit ("Possible from 18:00"), since a stretchable wait allows upstream tasks to be performed earlier. Conversely, an exact passive duration fixes the visit time in place ("Can't start earlier"). See [Plan a meal](/docs/how-to/plan-a-meal/).
-- **An active range represents operational uncertainty.** The declaration `~{40-50min}` represents how long the chicken takes to roast. The schedule always defaults to the longest bound (50 minutes) so that service is never delayed. Passive elasticity settings (`rests`) do not apply to active timers.
-
-:::note
-Deprecated fields of the compiled recipe (`steps[].timings`, `steps[].backgroundTasks`, and `metrics`) continue to evaluate ranges as their average value until version 2.0.0. Consume the modern `schedule` blocks instead.
-:::
+For how ranges shape margins and kitchen visits on the **run sheet**, see [Planning and run sheets](/docs/explanation/planning/) and [Plan a meal](/docs/how-to/plan-a-meal/).
### Proportional times
*(since v1.5.0)*
-Some times follow a weight: 15 minutes per 500 g of roast, 4 minutes per cutlet. Write the duration, a slash, then the amount of an ingredient written earlier in the section, as in a [ratio with units](/docs/reference/syntax/relative-quantities/#ratios-with-units):
+Some cooking times scale with weight or count—such as 15 minutes per 500 g of roast, or 4 minutes per cutlet. Write the duration, a slash, and the reference amount of an ingredient declared earlier in the section, following the same syntax as a [ratio with units](/docs/reference/syntax/relative-quantities/#ratios-with-units):
```gram
-Season the @roast{1.2 kg} and roast ~{15 min / 500 g @&roast}. // 36 min
+[Season] The @roast{1.2 kg} and roast ~{15 min / 500 g @&roast}. // 36 min
-Braise the @shoulder{2 kg} ~_{1:30 h / 1 kg @&shoulder}. // 3 h
+[Braise] The @shoulder{2 kg} ~_{1:30 h / 1 kg @&shoulder}. // 3 h
-Fry the @cutlets{4} ~{4 min / @&cutlets}. // 16 min
+[Fry] The @cutlets{4} ~{4 min / @&cutlets}. // 16 min
```
-The duration takes every form above (`1h30`, `1:30 h`, a range such as `15-20 min`), the target amount a single number. A time per piece counted from a weight (`~{4 min / @&cutlets}` with `@cutlets{800 g}`) uses the `unit_weight` of the ingredient database, and stays uncounted, with a warning, when there is none. Scaling the recipe computes the time again, and the schedule with it. A multiplier after a proportional time (`~{15 min / 500 g @&roast * 2}`) is not read yet, nor is a proportional section anchor.
+- The duration accepts any standard format (`1h30`, `1:30 h`, or a range like `15-20 min`), while the target amount must be a single number.
+- A time per piece applied to a weight (`~{4 min / @&cutlets}` with `@cutlets{800 g}`) relies on `unit_weight` in your ingredient database; if missing, the timer stays uncomputed with a warning.
+- Scaling the recipe recalculates proportional times and updates the schedule automatically.
+- Multipliers (`~{15 min / 500 g @&roast * 2}`) and proportional section anchors are not supported yet.
## Active vs passive
@@ -890,7 +1091,7 @@ The Gram compiler builds a complete execution timeline for each recipe. To achie
By default, a `~timer` is active. It requires direct hands-on involvement: the step is **blocking** and demands undivided attention before moving on to subsequent operations.
```gram
-Whisk the @heavy cream{} continuously for ~{5min}.
+[Whisk] The @heavy cream{} continuously for ~{5min}.
```
> ⏱️ **Result:** Adds 5 minutes to **active time**.
@@ -898,21 +1099,32 @@ Whisk the @heavy cream{} continuously for ~{5min}.
Add the `_` modifier to designate a passive `~timer`. This represents a **background task**. You initiate the timer (e.g. putting a dish into the oven) and can immediately proceed with subsequent steps.
```gram
-Bake in the #oven for ~_{45min}.
+[Bake] In the #oven for ~_{45min}.
-Meanwhile, prepare the glaze...
+[Prepare] Meanwhile, prepare the glaze...
```
> ⏱️ **Result:** Adds 0 minutes to active time, but extends **idle / passive duration** to ensure these 45 minutes elapse before removing the dish.
+## Naming timers and tracks
+
+You can assign an explicit identifier right after `~` or `~_` to label a timer or queue background tasks on a shared resource.
+
+### Timer labels
+When multiple operations run concurrently (like eggs boiling while a stock simmers), naming a timer allows user interfaces and run sheets to track each process clearly:
+
+```gram
+[Boil] @eggs{2} for ~eggs{3min}.
+```
+
### Sequential passive timers (named tracks)
By default, passive timers run concurrently with the rest of the recipe. However, certain background operations sharing equipment cannot physically overlap (e.g. blind-baking a crust for 10 minutes, then lowering the heat and continuing baking for 30 minutes in the same oven).
-To enforce **sequential** execution of passive timers, assign them the **same track name**:
+To enforce **sequential** execution of passive timers, give them the **same track name**:
```gram
-Bake in the #oven at 240°C for ~_baking{10min}.
+[Bake] In the #oven at ^{465°F} for ~_baking{10min}.
-Lower the heat to 180°C and bake for ~_baking{30min}.
+[Bake] Lower the heat to ^{350°F} and bake for ~_baking{30min}.
```
> ⏱️ **Result:** Because both timers share the track name `baking`, Gram places them on the same background track. The 30-minute timer will only start *after* the 10-minute timer completes. Idle waiting time increases by 40 minutes, while active hands-on time remains zero.
@@ -921,11 +1133,62 @@ Lower the heat to 180°C and bake for ~_baking{30min}.
Two passive timers that overlap in steps citing the **same cookware** (`#oven` in both) with no track in common are reported by `PASSIVE_OVERLAP_SAME_COOKWARE`: the message suggests a named track. It is only informational, since two trays can share an oven. See [Warnings](/docs/reference/api/warnings/#passive_overlap_same_cookware).
:::
+## Section retro-planning
+
+Adding a `~{...}` annotation to a `## Section` header defines an anticipation deadline. This tells the compiler when the section must conclude relative to the final step where it is consumed.
+
+**This acts as a temporal anchor.** An annotation like `~{-2d}` instructs the compiler to complete this section **2 full days before** it is needed in subsequent steps.
+
+To ensure positive relative timestamps starting at `0`, the compiler normalizes the timeline: this anticipated section becomes the new start point (Time 0), and all subsequent operations are shifted proportionally. Its mise en place moves accordingly, scheduled immediately before the section, two days prior to service.
+
+```gram
+## Puff pastry ~{-2d}
+```
+
+The puff pastry must be completed **2 days** before final assembly.
+
+### Days and hours
+
+The chosen unit defines the anchor's semantics:
+
+- **An anchor in days** (`~{-1d}`, `~{-2d}`) opens a distinct working day (day before, two days before), anchoring the "by working day" strategy and day labels (D-1, D-2).
+- **An anchor in hours or minutes** (`~{-18h}`, `~{-90min}`) specifies a precise deadline within that section's scheduled day, without opening a new working day.
+
+Working days are designed to fit within a 24-hour span: if a long passive duration pushes a day's work out of its window (such as a `~{-1d}` dough fermenting for 50 hours), the compiler emits `DAY_OVERFLOW` and recommends anchoring the section further back.
+
+### Strict syntax
+
+Section header retro-planning annotations require a **strictly negative** duration:
+
+- A **required** leading `-` sign.
+- A non-zero duration in days, hours, or minutes (compound and clock forms are both supported; see [Writing a duration](#writing-a-duration)).
+- A single duration—anchors cannot be ranges or include seconds.
+
+```gram
+## Puff pastry ~{-2d}
+
+[Fold] The @butter{250g} into the @dough{500g}.
+
+## Brioche ~{-1d 12h}
+
+[Knead] The @flour{500g}.
+
+## Ganache ~{-1h30}
+
+[Pour] The @cream{200ml} over the @chocolate{200g}.
+```
+
+Free prose (`~{the day before}`), positive values (`~{2h}`), and zero values (`~{0h}`) are invalid and trigger compiler warnings.
+
+Units resolve through the multi-language time dictionary used by `~timer`: `j`, `jour`, and `jours` are recognized aliases for `d`.
+
+See also: [Retro-planning (Scheduling)](/docs/reference/syntax/document-structure#retro-planning-scheduling) in the document structure reference.
+
## How time is calculated
Behind the scenes, Gram tracks four distinct time metrics to establish realistic schedules:
-:::note[⏱️ The 4 time metrics]
+:::note[The 4 time metrics]
1. **Preparation time** (mise en place): Time spent gathering and preparing raw ingredients and cookware (fetching, weighing, peeling, chopping).
2. **Active time**: Cumulative hands-on duration spent executing culinary steps.
3. **Passive time**: Autonomous baking, resting, fermentation, or idle waiting time.
@@ -947,7 +1210,6 @@ Here is how the compiler converts syntax elements into working minutes:
| **Step without any timer** | - | **+ 2 min** (default fallback) | - |
### When the mise en place happens
-*(since v1.4.0)*
Each section has its own mise en place (gathering and preparing ingredients and cookware). Gram supports three layout strategies without requiring any changes to the recipe source text:
@@ -968,64 +1230,6 @@ Gram natively implements an **As Late As Possible (ALAP)** scheduling algorithm.
For a deeper architectural exploration, see the [ALAP scheduling deep dive](/docs/explanation/alap-scheduling/).
-## Section retro-planning
-
-Adding a `~{...}` annotation to a `## Section` header defines an anticipation deadline. This tells the compiler when the section must conclude relative to the final step where it is consumed.
-
-**This acts as a temporal anchor.** An annotation like `~{-2d}` instructs the compiler to complete this section **2 full days before** it is needed in subsequent steps.
-
-To ensure positive relative timestamps starting at `0`, the compiler normalizes the timeline: this anticipated section becomes the new start point (Time 0), and all subsequent operations are shifted proportionally. Its mise en place moves accordingly, scheduled immediately before the section, two days prior to service.
-
-```gram
-## Puff pastry ~{-2d}
-```
-
-The puff pastry must be completed **2 days** before final assembly.
-
-### Days and hours
-*(since v1.4.0)*
-
-The chosen unit defines the anchor's semantics:
-
-- **An anchor in days** (`~{-1d}`, `~{-2d}`) opens a distinct working day (day before, two days before), anchoring the "by working day" strategy and day labels (D-1, D-2).
-- **An anchor in hours or minutes** (`~{-18h}`, `~{-90min}`) specifies a precise deadline within that section's scheduled day, without opening a new working day.
-
-Working days are designed to fit within a 24-hour span: if a long passive duration pushes a day's work out of its window (such as a `~{-1d}` dough fermenting for 50 hours), the compiler emits `DAY_OVERFLOW` and recommends anchoring the section further back.
-
-### Strict syntax
-
-Section header retro-planning annotations require a **strictly negative** duration:
-
-- A **required** leading `-` sign.
-- A non-zero duration, written like a timer (see [Writing a duration](#writing-a-duration)) in days, hours and minutes (compound and clock forms since 1.5.0).
-- A single duration: an anchor is never a range, and never counts seconds.
-
-```gram
-## Puff pastry ~{-2d}
-
-Fold the @butter{250g} into the @dough{500g}.
-
-## Brioche ~{-1d 12h}
-
-Knead the @flour{500g}.
-
-## Ganache ~{-1h30}
-
-Pour the @cream{200ml} over the @chocolate{200g}.
-
-## Custard ~{-1:30 h}
-
-Whisk the @yolks{4} with the @sugar{80g}.
-```
-
-An anchor written with days stays in days (`~{-1d 12h}` is a day and a half, and opens a working day); otherwise it counts in its smallest unit (`~{-1h30}` is 90 minutes, `~{-1:30 h}` too).
-
-Free prose (`~{the day before}`), positive values (`~{2h}`), and zero values (`~{0h}`) are invalid. Existing recipes using legacy formats still compile for backward compatibility, but produce compiler warnings.
-
-Units resolve through the multi-language time dictionary used by `~timer`: `j`, `jour`, and `jours` are recognized aliases for `d`.
-
-See also: [Retro-planning (Scheduling)](/docs/reference/syntax/document-structure#retro-planning-scheduling) in the document structure reference.
-
## Error handling
The compiler validates `~timer` declarations and section retro-planning annotations, emitting typed warnings for malformed data:
@@ -1034,11 +1238,11 @@ The compiler validates `~timer` declarations and section retro-planning annotati
- **Invalid Unit** (`~timer`): Unrecognized units (e.g. `~{30 lightyears}`) trigger `INVALID_UNIT`.
- **Missing Unit** (section retro-planning): `~{-2}`, free text, positive (`~{2h}`), or zero values (`~{0h}`) trigger `MISSING_UNIT`.
- **Invalid Unit** (section retro-planning): Unrecognized units trigger `INVALID_UNIT`.
-- **Invalid Duration** *(Since 1.5.0)*: A duration in a shape Gram does not read (`~{1:30}`, `~{1h75}`, `~{30min 1h}`, `~{1-2h30}`, `~{half an hour}`, or a range or seconds in an anchor) triggers `INVALID_DURATION`. The message says why and how to write it; the timer is not counted in the total time, and the section is not anchored. See [Writing a duration](#writing-a-duration).
-- **Ambiguous Number** *(Since 1.5.0)*: A comma followed by exactly three digits (`~{1,000 min}`, `~{-1,000h}`) is read as a decimal, one minute or one hour, and triggers `AMBIGUOUS_NUMBER` in case a thousand was meant.
+- **Invalid Duration**: Unrecognized or ambiguous duration formats (`~{1:30}`, `~{1h75}`, `~{30min 1h}`, `~{1-2h30}`, `~{half an hour}`, or ranges/seconds in anchors) trigger `INVALID_DURATION` with a suggested fix; the timer is excluded from total time and the anchor is ignored.
+- **Ambiguous Number**: A comma followed by three digits (`~{1,000 min}`, `~{-1,000h}`) is parsed as a decimal (`1`) and triggers `AMBIGUOUS_NUMBER`.
- **Time Paradox**: Anchors conflicting with dependency order (e.g. an ingredient anchored at `-10 min` needed by a section anchored at `-1 h`) trigger `TIME_PARADOX`.
- **Track Contention**: Concurrent passive timers delayed on the same named track trigger `TRACK_CONTENTION`.
-- **Day overflow** *(Since 1.4.0)*: Passive durations pushing working day tasks beyond the 24-hour window trigger `DAY_OVERFLOW`.
+- **Day overflow**: Passive durations pushing working day tasks beyond the 24-hour window trigger `DAY_OVERFLOW`.
- **Duration Out Of Range**: Durations exceeding 1,000 years are capped and trigger `DURATION_OUT_OF_RANGE`.
Warnings are non-blocking by default, but can be enforced as errors via `gram check --strict`.
@@ -1082,16 +1286,16 @@ Exact temperatures specify a numeric value accompanied by a recognized unit: `C`
**Standard exact temperature**
```gram
-Preheat the #oven to ^{180°C}.
+[Preheat] The #oven to ^{180°C}.
-Bake at ^{350°F} until golden brown.
+[Bake] At ^{350°F} until golden brown.
```
**Appliance-labeled temperature**
Just like with `~timers`, you can assign an appliance or process name to a temperature to help renderers and tools highlight equipment setup at a glance:
```gram
-Preheat the #oven to ^oven{180°C}.
+[Preheat] The #oven to ^oven{350°F}.
```
## Semantic temperatures
@@ -1099,9 +1303,9 @@ Preheat the #oven to ^oven{180°C}.
For stovetop cooking, searing, or subjective heat levels where exact degree values are impractical, you can write qualitative free-text strings:
```gram
-Cook on ^stove{high heat} for ~{2min}.
+[Cook] On ^stove{high heat} for ~{2min}.
-Turn down to ^{low heat} and let simmer.
+[Simmer] Turn down to ^{low heat} and let simmer.
```
:::note[Parsing distinction]
@@ -1113,19 +1317,19 @@ When the Gram compiler inspects a `^temperature` token:
## Cooking mode and notes
*(since v1.5.0)*
-A note in parentheses, right after the closing brace, says what goes with the temperature: the oven mode, where it is measured, how to cook. It works on exact and semantic temperatures, named or not, the way a preparation follows an ingredient.
+Add a parenthetical note right after the closing brace to specify the oven mode, measurement point, or cooking condition. This works on both exact and semantic temperatures, named or unnamed, just like ingredient preparation notes:
```gram
-Preheat the #oven to ^{160°C}(fan).
+[Preheat] The #oven to ^{320°F}(fan).
-Roast until the meat reaches ^{63°C}(internal).
+[Roast] Until the meat reaches ^{145°F}(internal).
-Cook on ^stove{high heat}(uncovered) for ~{5min}.
+[Cook] On ^stove{high heat}(uncovered) for ~{5min}.
```
-The note is always shown next to the temperature, on screen and on paper, since baking at 160 °C fan or conventional is not the same thing. It is words for the cook, in the recipe's language: Gram keeps it as written and never reads it.
+The note is always shown next to the temperature on screen and in print, and is preserved as written in your recipe's language without being parsed.
-As with ingredients and cookware, keep the opening `(` glued to the `}` on the same line: with a space (`^{180°C} (preheated)`), the parenthesis stays ordinary text in the sentence.
+As with ingredients and cookware, keep the opening `(` attached to `}` on the same line: with a space (`^{350°F} (preheated)`), the parentheses remain ordinary step text.
## Error handling
@@ -1144,7 +1348,7 @@ Only Celsius and Fahrenheit temperature scales are supported. The compiler emits
/>
+
+*(since v1.5.0)*
+
+A timer tells you how long a step should take, not when it is truly done. Custard is ready when it coats the spoon, yolks when they fall in a ribbon, brown butter when it smells nutty. A **target state** marks that visual or sensory cue with `={...}`:
+
+```gram
+[Whisk] @egg yolks{4} with @sugar{80 g} until ={ribbon stage}.
+
+[Brown] As soon as the butter turns ={nutty brown}, take the #pan off the heat.
+
+[Whip] The egg whites should be ={stiff} before you add the @sugar{50 g}.
+```
+
+Place a target state wherever the sentence flows best—at the end, start, or middle of a step—with no required connecting word ("until", "when", or none at all). Put only the state itself inside the braces and keep surrounding words in the prose so the step reads naturally while the cue stands out in every view.
+
+## How to check it
+
+Add a parenthetical note directly after the closing brace to explain how to verify the state—the practical test a cook can rely on:
+
+```gram
+[Cook] On ^{low heat}, stirring, until ={it coats the spoon}(a finger drawn across the back of the spoon leaves a clean line) ->&custard{}
+```
+
+Both the state and its note are always displayed, on screen and in print, and `gram cook` highlights them beneath the step. Gram preserves them as written in your recipe's language without interpreting them.
+
+Just like ingredients, cookware, and temperatures, keep the opening `(` attached to `}` on the same line: with a space (`={stiff peaks} (about 5 min)`), the parentheses remain ordinary step text.
+
+## With a time and a temperature
+
+A step can combine a target state with a timer and a temperature. The timer estimates duration for the schedule; the state tells the cook when to stop at the stove.
+
+```gram
+[Cook] At ^{180°F}(internal) for ~{8 min}, until ={it coats the spoon}.
+```
+
+:::tip[What does not go inside]
+A target state describes a sensory cue, never a measurement:
+- use a [temperature](/docs/reference/syntax/temperatures/) with a note for target temperatures (`^{145°F}(internal)`);
+- use a [timer](/docs/reference/syntax/times/) for durations (`~{5 min}`);
+- target states never scale (`={doubled in volume}` stays unchanged regardless of servings).
+:::
+
+## Several in one step
+
+A step can contain multiple target states. Each renders inline in the prose, and `gram cook` lists them together—reminding you to check them when a step's timer finishes.
+
+```gram
+[Knead] Until the dough is ={smooth} and ={elastic}(it springs back slowly when stretched).
+```
+
+As with timers and temperatures, shorter steps are easier to follow. If two states mark distinct actions, split them into separate steps rather than chaining them:
+
+```gram
+[Melt] The @butter{50 g} until ={nutty brown}.
+
+[Cool] Until ={lukewarm}, then stir in the @eggs{2}.
+```
+
+## Errors
+
+A target state must be non-empty and closed on the same line. `={}` or an unclosed `={ribbon stage` raises a syntax error pointing to the opening marker.
+
+A standalone `=` not followed by `{` stays ordinary text, and fixed ingredient modifiers (`@=salt{1 tsp}`) are unaffected.
+
+## Related resources
+
+
+
+
+
+
+
+---
+
In complex recipes, you often create sub-components (like a dough, a sauce, or a filling) that are assembled in later stages. Gram allows you to declare these sub-components as **intermediate variables**.
@@ -1210,13 +1505,13 @@ When placed at the end of a `## Section` title, the variable captures the cumula
To use a previously declared variable, prefix its name with `&`:
```gram
-Use the &puff pastry{} to line the tart tin.
+[Line] Use the &puff pastry{} to line the tart tin.
```
You can also assign a quantity to it for display purposes in the rendered recipe:
```gram
-Take &puff pastry{200g} and roll it out.
+[Roll] Take &puff pastry{200g} and roll it out.
```
:::note[Shopping list vs recipe ingredients]
@@ -1244,7 +1539,8 @@ You can calculate an ingredient's mass as a percentage of an intermediate variab
The compiler helps you maintain clean and conflict-free code by checking variable usage:
- **`SCOPE_CONFLICT`**: Triggered if the same intermediate variable name is declared multiple times across different sections.
-- **`UNUSED_VARIABLE`**: Triggered if an intermediate variable is declared with `->&` but never referenced in any downstream step.
+- **`UNDEFINED_REFERENCE`**: Triggered if `&name` references an intermediate variable that has not been declared yet.
+- **`CIRCULAR_REFERENCE`**: Triggered if an intermediate variable depends on itself directly or through another variable.
## Related resources
@@ -1287,9 +1583,9 @@ You can target either a base ingredient or an intermediate variable:
Prefix the target ingredient's name with `@&`:
```gram
-Add @flour{100g} to the bowl.
+[Add] @flour{100g} to the bowl.
-Then mix in @water{70% @&flour}. // 70g of water
+[Mix] In @water{70% @&flour}. // 70g of water
```
**Pattern:** `@name{ percentage% @&TargetIngredient }`
@@ -1298,9 +1594,9 @@ Then mix in @water{70% @&flour}. // 70g of water
Reference the target intermediate variable with `&`:
```gram
-Mix the ingredients to form the dough. ->&dough
+[Mix] The ingredients to form the dough. ->&dough
-Add @salt{2% &dough}. // 2% of the total mass of the &dough variable
+[Add] @salt{2% &dough}. // 2% of the total mass of the &dough variable
```
**Pattern:** `@name{ percentage% &TargetVariable }`
@@ -1314,61 +1610,46 @@ When the compiler resolves a relative quantity, it follows four strict scoping a
| **Section scoping** | Current section only | You cannot directly target a base `@ingredient` declared in a different section. To bridge sections, capture the result into a globally scoped `&variable`. |
| **Accumulation** | Sums all occurrences | If the target `@ingredient` appears multiple times within the same section, the percentage applies to their **cumulative total**. |
| **Mass-based** | Evaluated in grams | Calculations are always performed against **physical mass in grams**. For example, 50% of "2 eggs" (each standardized at 50g) produces **50g**, not 1 egg. |
-| **Alternatives** | One option at a time | Each option of an alternative gets its own amount, never added to the others: `@butter{10% @&flour}\|@oil{8% @&flour}` reads "20 g of butter or 16 g of oil" for 200 g of flour. An option can also take a share of an earlier option of the same group: `@butter{100g}\|@oil{80% @&butter}`. |
+| **Alternatives** | One option at a time | Each option in an alternative group computes independently (`@butter{10% @&flour}\|@oil{8% @&flour}` gives 20 g of butter or 16 g of oil for 200 g of flour). An option may also target an earlier option in the same group (`@butter{100g}\|@oil{80% @&butter}`). |
## Ratios with units
*(since v1.5.0)*
-A percentage weighs grams against grams. A relates two amounts in any units, the way recipes state their rules: one egg per 100 g of flour, 15 g of salt per liter of water, 15 minutes per 500 g of roast.
+While a percentage compares mass to mass, a **ratio with units** relates two quantities in any compatible units—just as recipes state them: 1 egg per 100 g of flour, 15 g of salt per liter of water, or 15 minutes per 500 g of roast.
```gram
-Mix @flour{500 g} with @eggs{1 / 100 g @&flour}. // 5 eggs
+[Mix] @flour{500 g} with @eggs{1 / 100 g @&flour}. // 5 eggs
-Pour @water{2 l} and @salt{15 g / 1 L @&water}. // 30 g of salt
+[Pour] @water{2 l} and @salt{15 g / 1 L @&water}. // 30 g of salt
-Crush @garlic{3 cloves} with @parsley{1 tsp / 2 cloves @&garlic}. // 1.5 tsp
+[Crush] @garlic{3 cloves} with @parsley{1 tsp / 2 cloves @&garlic}. // 1.5 tsp
```
-**Pattern:** `@name{ amount / target amount @&TargetIngredient }`, or `&TargetVariable` for an intermediate. The amount takes its unit (`15 g`) or none (`1` egg); the target amount is a number and a unit (`100 g`), a unit alone (`L`), or nothing for one piece (`{1 / @&cutlet}`). A range works as the amount (`{15-20 g / 100 g @&flour}`), never as the target amount.
+**Pattern:** `@name{ amount / targetAmount @&TargetIngredient }` (or `&TargetVariable`).
-Write a space on at least one side of the slash: `{1/100g @&flour}` reads as the fraction `1/100` and is refused with a message that shows the spaced form. Write the unit alone, too: in `{1 / 100 g of @&flour}` the unit is `g of`, which Gram refuses.
+- `amount` takes its unit (`15 g`) or none for counts (`1` egg), and may be a range (`15-20 g`).
+- `targetAmount` is a single number and unit (`100 g`), a unit alone (`L`), or omitted for one piece (`{1 / @&cutlet}`).
+- **Always put a space around `/`** (at least on one side) and write the unit alone before the target: `{1/100g @&flour}` parses as the fraction `1/100`, and `{1 / 100 g of @&flour}` treats `g of` as the unit.
-### The unit guardrail
+### Unit compatibility
-A ratio is computed only when its units can be compared, never guessed:
+Gram only computes a ratio when its units can be compared safely—it never guesses:
| Target amount | Target written in | Result |
| :--- | :--- | :--- |
-| A weight (`100 g`) | A weight (`1 kg`) | Computed by the compiler |
-| A weight | A volume, or pieces | Computed with the density or the `unit_weight` of the ingredient database |
-| Pieces (`2 cloves`, nothing) | The same pieces (`3 clove`, `4`) | Computed by the compiler: singular and plural match |
-| Pieces | Other pieces (`2 slices` for garlic in cloves) | Refused |
+| Weight (`100 g`) | Weight (`1 kg`) | Computed directly |
+| Weight | Volume or count | Computed using density or `unit_weight` from the ingredient database |
+| Count (`2 cloves`, or none) | Same count (`3 clove`, `4`) | Computed directly (singular/plural matched) |
+| Count | Different count (`2 slices` for cloves) | Refused (`RELATIVE_QUANTITY_UNKNOWN_MASS`) |
-A ratio that cannot be computed keeps its writing (`1 / 100 ml @&flour` in the views and the shopping list) and raises `RELATIVE_QUANTITY_UNKNOWN_MASS` with the reason. Unlike a percentage, a computed ratio keeps the unit of its amount: `5` eggs, `15 g` of salt, merged with the other uses of the ingredient in the shopping list.
+If a ratio cannot be resolved, it remains as written in views and shopping lists and raises `RELATIVE_QUANTITY_UNKNOWN_MASS`. Unlike percentages, a resolved ratio keeps the unit of its own `amount` (e.g. `5` eggs, `15 g` of salt) and merges normally in the shopping list.
-### Where the target is
+### Scope, intermediates & scaling
-The same rules as a percentage: an `@&ingredient` written earlier in the section with an amount (every amount in the section adds up), or an `&intermediate`. An option of an alternative may take an earlier option as its target. When the section uses an intermediate whole, with no amount (`Roll out the &dough`), the ratio counts from the mass of the section that makes it, an estimate of what went into the bowl, before cooking. Gram refuses when another section uses the intermediate too, since it cannot tell who takes what:
-
-```gram
-## Dough ->&dough
-
-Mix @flour{500 g} and @water{60% @&flour}.
-
-## Bake
-
-Roll out the &dough, sprinkle @salt{2 g / 100 g &dough}. // 16 g of 800 g
-```
-
-This applies to a percentage as well (`@sugar{5% &dough}`), which used to give up there.
-
-### On references and composites
-
-A reference to a homemade preparation takes a ratio or a percentage too: `&stock{250 ml / 100 g @&rice}`, `&stock{250% @&rice}`. A composite parent does not yet (`<@box{1 / 100 g @&flour}>` is refused until composites are reworked).
-
-### Scaling
-
-Scaling a recipe computes its ratios again on the scaled amounts: twice the flour, twice the eggs. A ratio whose target is fixed (`@=pepper{2 g}`) stays as it is. `=` on a ratio itself is refused: a ratio always follows its target.
+- **Same scope as percentages**: target an `@&ingredient` declared earlier in the section (repeated uses sum up), an earlier option in an alternative group, or an `&intermediate`.
+- **Whole intermediates**: if a section consumes an intermediate without a quantity (`Roll out the &dough`), ratios and percentages (`@salt{2 g / 100 g &dough}`, `@sugar{5% &dough}`) resolve against the total mass of the section that produces it—provided only that section consumes it.
+- **References & composites**: ratios and percentages work on homemade intermediate references (`&stock{250 ml / 100 g @&rice}`), but are not yet supported on composite parents (`@eggs{1}<@box{1 / 100 g @&flour}>`).
+- **Scaling**: scaling a recipe recalculates ratios from the scaled targets (unless the target is fixed with `@=`). Marking a ratio itself with `=` is not allowed.
## Mass calculation rules
@@ -1460,8 +1741,6 @@ You define a composite ingredient using the `<` operator (which can be read as *
### Naming the child
-*(since v1.2.0)*
-
While Gram accepts a bare single-word child (`@juice<@lemon{1}`), you should write its full name instead (`@lemon juice{}<@lemon{1}`). That name becomes the ingredient's identity in the shared database (`ingredients.yaml`), used for mass standardization, nutrition, and `gram db enrich`.
Because the database only indexes the child's identifier, generic names collide: `@juice<@lemon` and `@juice<@orange` in another recipe would map to the same entry despite having nothing in common. Using the full name (`lemon juice`, `orange juice`) prevents collisions and automatically links with standalone, non-composite uses of the ingredient (e.g. `@orange juice{1l}` bought in a carton).
@@ -1477,7 +1756,7 @@ Both the child and the parent can carry independent `()` preparation notes:
Attach the note to the part it actually describes (what is done to the extracted part vs. the whole item). You can also combine both:
```gram
-Add the @lemon juice{150ml}(strained)<@lemon{1}(cut in half) to the bowl.
+[Add] The @lemon juice{150ml}(strained)<@lemon{1}(cut in half) to the bowl.
```
### Example
@@ -1485,9 +1764,9 @@ Add the @lemon juice{150ml}(strained)<@lemon{1}(cut in half) to the bowl.
Here is how you would declare that 100ml of juice requires 2 lemons, but the zest only requires 1 lemon:
```gram
-Add the @lemon juice{100ml}<@lemon{2}.
+[Add] The @lemon juice{100ml}<@lemon{2}.
-Then add the @lemon zest{1}<@lemon. // Implicitly costs 1 lemon
+[Add] Then add the @lemon zest{1}<@lemon. // Implicitly costs 1 lemon
```
**Total required in Shopping List**: 2 Lemons.
@@ -1505,9 +1784,9 @@ How does the compiler actually calculate the total number of lemons you need to
If you use different parts of the same parent (like zest and juice), Gram knows they can come from the exact same physical lemon. It takes the **maximum** required amount across those parts.
```gram
-Add @lemon zest{1}<@lemon. // Needs 1 lemon
+[Add] @lemon zest{1}<@lemon. // Needs 1 lemon
-Add @lemon juice{1}<@lemon. // Needs 1 lemon
+[Add] @lemon juice{1}<@lemon. // Needs 1 lemon
```
> 🛒 **Shopping List**: 1 Lemon (The single lemon provides both parts).
@@ -1515,9 +1794,9 @@ Add @lemon juice{1}<@lemon. // Needs 1 lemon
If you use the *same* part multiple times across different steps of your recipe, Gram adds them up. You can't magically get two zests from one lemon!
```gram
-Add @lemon zest{1}<@lemon. // Needs 1 lemon
+[Add] @lemon zest{1}<@lemon. // Needs 1 lemon
-Add @lemon zest{1}<@lemon. // Needs another lemon
+[Add] @lemon zest{1}<@lemon. // Needs another lemon
```
> 🛒 **Shopping List**: 2 Lemons.
@@ -1525,11 +1804,11 @@ Add @lemon zest{1}<@lemon. // Needs another lemon
If you also use the whole parent ingredient directly (e.g., cutting a whole lemon into wedges for garnish), Gram simply adds it to the optimized total.
```gram
-Add @lemon zest{1}<@lemon. // Covered by the 1st lemon
+[Add] @lemon zest{1}<@lemon. // Covered by the 1st lemon
-Add @lemon juice{1}<@lemon. // Covered by the 1st lemon
+[Add] @lemon juice{1}<@lemon. // Covered by the 1st lemon
-Cut @lemon{2} into wedges. // Needs 2 whole lemons
+[Cut] @lemon{2} into wedges. // Needs 2 whole lemons
```
> 🛒 **Shopping List**: 3 Lemons.
@@ -1607,9 +1886,9 @@ Essential markup tokens used directly inside recipe steps:
| :--- | :--- | :--- | :--- | :--- |
| **Ingredient** | `@` | `@name[{quantity}]` | `@flour{200g}` | Declares an ingredient. Omitting `{}` indicates no specific quantity (e.g. `@salt`). |
| **Cookware** | `#` | `#name[{quantity}]` | `#pan{2}`, `#whisk` | Specifies kitchen equipment. Omitting `{}` defaults to a single item (`1`). |
-| **Timer** | `~` | `~{time}` | `~{30min}`, `~{1h30}` | Defines an active cooking or preparation duration, written as in a recipe (`1 hr 30 mins`, `1:30 h`, `5'30"`). |
-| **Temperature** | `^` | `^{temperature}` | `^{180°C}`, `^{350°F}` | Declares an exact heat setting (`C` or `F`, case-insensitive). |
-| **Target state** | `=` | `={state}` | `={ribbon stage}`, `={golden}` | The state to reach, in the cook's words, anywhere in the step. Since 1.5.0. |
+| **Timer** | `~` | `~{time}` | `~{30min}`, `~{1h30}` | Active cooking or preparation duration (`1 hr 30 mins`, `1:30 h`, `5'30"`). |
+| **Temperature** | `^` | `^{temperature}` | `^{180°C}`, `^{350°F}` | Exact heat setting (`C` or `F`, case-insensitive). |
+| **Target state** | `=` | `={state}` | `={ribbon stage}`, `={golden}` | Sensory cue to reach, placed anywhere in the step. |
## Modifiers
@@ -1634,18 +1913,18 @@ Specialized patterns for flexible culinary instructions:
| **Short-hand prep** | `(...)` | `@butter{10g}(room temp)` | Notes prep techniques without cluttering names. |
| **Component alias** | `:slug` | `@dry white wine:wine{10ml}` | Displays user-friendly text while mapping to a canonical ID. |
| **Relative quantity** | `% @&target` | `@water{70% @&flour}` | Computes amount relative to a reference ingredient mass. |
-| **Ratio with units** | `a / b @&target` | `@eggs{1 / 100 g @&flour}`, `@salt{15 g / L @&water}` | An amount per amount of another ingredient, in any units; a space around the slash. Since 1.5.0. |
+| **Ratio with units** | `a / b @&target` | `@eggs{1 / 100 g @&flour}`, `@salt{15 g / L @&water}` | Amount per reference amount of another ingredient, in any compatible units (space around `/`). |
| **Composite child** | `<@parent` | `@lemon zest{1}<@lemon` | Bundles parts (zest, juice) into a single shopping item. |
| **Passive timer** | `~_` | `~_{1h}` | Represents resting/rising time without blocking the cook. |
-| **Proportional time** | `~{time / b @&target}` | `~{15 min / 500 g @&roast}`, `~{4 min / @&cutlet}` | A time that follows a weight or a count, computed again when scaled. Since 1.5.0. |
+| **Proportional time** | `~{time / b @&target}` | `~{15 min / 500 g @&roast}`, `~{4 min / @&cutlet}` | Duration scaled dynamically by an ingredient's weight or count. |
| **Named timer** | `~name{...}` | `~eggs{3min}`, `~_oven{45min}` | Queues resource-constrained steps (named tracks). |
| **Semantic temperature** | `^{text}` | `^{medium heat}`, `^{simmer}` | Expresses qualitative stove settings. |
-| **Temperature note** | `^{...}(note)` | `^{160°C}(fan)`, `^{63°C}(internal)` | Oven mode or condition, always shown. Since 1.5.0. |
-| **Target state note** | `={...}(note)` | `={it coats the spoon}(a finger leaves a clean line)` | How to check the state, always shown. Since 1.5.0. |
+| **Temperature note** | `^{...}(note)` | `^{320°F}(fan)`, `^{145°F}(internal)` | Oven mode or measurement condition, always displayed. |
+| **Target state note** | `={...}(note)` | `={it coats the spoon}(a finger leaves a clean line)` | How to verify the target state, always displayed. |
| **Fractions** | `n/d` or Unicode | `@flour{1 1/2 cups}`, `@sugar{½ cup}` | Fully supported across imperial and metric systems. |
-| **Sum of quantities** | `a + b`, `a - b` | `@flour{1 cup + 1 tbsp}`, `@sugar{1 cup - 2 tbsp}`, `@rice{1 cup + 20 g}` | Kept as written and added up; a volume and a weight stay side by side. Since 1.5.0. |
+| **Sum of quantities** | `a + b`, `a - b` | `@flour{1 cup + 1 tbsp}`, `@sugar{1 cup - 2 tbsp}`, `@rice{1 cup + 20 g}` | Preserved as written and summed; incompatible kinds stay side by side. |
-Every parenthetical note `(...)` — on an ingredient, cookware, a temperature, or a target state — must touch the element before it on the same line; with a space, it stays ordinary text.
+Every parenthetical note `(...)`—on an ingredient, cookware, temperature, or target state—must touch the preceding token on the same line; with a space, it remains ordinary text.
## Intermediate variables
@@ -1711,9 +1990,9 @@ When turning an existing recipe into `.gram`, working through these five points
1. **Structure** — Identify distinct phases (dough, filling, sauce, assembly…). Each phase with its own ingredient list is a candidate for a `## Section`. Anything that must be prepared in advance gets a retro-planning lead time (see [Document Structure](/docs/reference/syntax/document-structure#retro-planning-scheduling)).
-2. **Frontmatter** — Extract `title`, `author`, `source`, `category`, `portions`, and dates from whatever metadata the source provides. Never invent a value that isn't in the source.
-3. **Ingredients** — List every unique `@ingredient` using its full name with spaces (`"olive oil"`, not `"olive-oil"`). Note which ones appear more than once — the second and later mentions should use `@&`. Prefer SI units for precision, but keep `tbsp`/`tsp`/`cup` for small amounts when that's how the source expresses them. For parts of an ingredient (juice, zest, yolk…), plan the [composite syntax](/docs/reference/syntax/composite-ingredients) instead of a separate prep step.
-4. **Steps** — Write each step as a paragraph with a `[Verb]` action prefix, inlining every `@ingredient`, `#cookware`, `~timer`, and `^temperature` as it's introduced. Use passive timers (`~_`) for hands-off waits (oven, resting, chilling, rising) and active timers (`~`) for anything that keeps the cook busy. If multiple passive timers must happen sequentially (one after another, e.g. baking in stages), give them the SAME NAME (`~_baking{10m}` then `~_baking{30m}`) to automatically sequence them without adding to the cook's active time.
+2. **Frontmatter** — Extract `title`, `author`, `source`, `category`, `portions` (not `servings`), `makes` (not the obsolete `size`), and dates from whatever metadata the source provides. Keep it flat (`key: value` lines only, with inline arrays like `source: [...]` or `densities: [flour:0.55]` — never nested/indented YAML), omit computed time fields (`prep`, `total`), and never invent a value that isn't in the source.
+3. **Ingredients** — List every unique `@ingredient` using its full name with spaces (`"olive oil"`, not `"olive-oil"`), keeping the core noun short and moving state qualifiers into `()` (`@chicken breast{500g}(boneless, skinless)` rather than `@boneless skinless chicken breast{500g}`). Note which ingredients appear more than once — the second and later mentions should use `@&`. Prefer SI units for precision, but keep `tbsp`/`tsp`/`cup` for small amounts when that's how the source expresses them. For parts of an ingredient (juice, zest, yolk…), plan the [composite syntax](/docs/reference/syntax/composite-ingredients) instead of a separate prep step.
+4. **Steps** — Write each step as a paragraph separated by a **blank line** (including right after `## Section` headers — consecutive lines merge into one step). Start each step with a `[Verb]` action prefix, inlining every `@ingredient`, `#cookware`, `~timer`, and `^temperature` as it's introduced. Use passive timers (`~_`) for hands-off waits (oven, resting, chilling, rising) and active timers (`~`) for anything that keeps the cook busy. If multiple passive timers must happen sequentially (one after another, e.g. baking in stages), give them the SAME NAME (`~_baking{10min}` then `~_baking{30min}`) to automatically sequence them without adding to the cook's active time.
5. **Review** — Before finalizing, check for the mistakes listed below: kebab-case names, units inside cookware braces, missing `@&` on repeat mentions, redundant `->&name` declarations, and standalone steps that only prepare an ingredient for a later step.
@@ -1753,9 +2032,19 @@ A multi-word `@ingredient`/`#cookware` name always needs `{}` (or `{count}` for
```gram
❌ @salt{to taste} → ✅ @salt{} or @salt
❌ @flour{about 200g} → ✅ @flour{200g}
+❌ @flour{1,000 g} → ✅ @flour{1000 g}
❌ ~{about 10 minutes} → ✅ ~{10min}
+❌ ~{1.30 h} → ✅ ~{1h30}
```
-Quantities and timers need a real number (or empty braces for "to taste"); fuzzy text doesn't parse.
+Quantities and timers need a real number (or empty braces when no quantity is given); fuzzy prefixes like `about` trigger compiler warnings (`INVALID_UNIT` / `INVALID_DURATION`), and free text in a timer loses its duration for scheduling. Gram has no thousands separator: `{1,000 g}` parses as `1 g` and triggers `AMBIGUOUS_NUMBER`. Similarly, decimals in timers are fractions of the unit (`~{1.30 h}` means 1 h 18 min), so write `~{1h30}` for an hour and a half.
+
+### Space between braces and preparations
+
+```gram
+❌ @onion{1} (diced) → ✅ @onion{1}(diced)
+❌ #pan{} (20cm, non-stick) → ✅ #pan{}(20cm, non-stick)
+```
+A preparation note `(...)` must touch the closing `}` (or bare single-word name). Any space before `(` leaves it in ordinary step prose instead of attaching it to the ingredient or cookware.
### One amount given in several measures
*(since v1.5.0)*
@@ -1763,25 +2052,25 @@ Quantities and timers need a real number (or empty braces for "to taste"); fuzzy
```gram
❌ @flour{1 cup 5 tbsp} → ✅ @flour{1 cup + 5 tbsp}
```
-Write an amount the recipe gives in several measures as a [sum](/docs/reference/syntax/ingredients/#sums-of-quantities), exactly as the source says it: "1 cup plus 1 tablespoon" is `{1 cup + 1 tbsp}`, "1 cup minus 2 tablespoons" is `{1 cup - 2 tbsp}`, and a volume next to a weight is fine (`{1 cup + 20 g}`). Don't work it out into one number either (`{1.0625 cup}`, `{17 tbsp}`): Gram adds the terms itself and shows them as the cook measures them. Every term needs its unit, and a term is only an amount: no percentage (`{100g + 10%}`), no multiplication (`{2 x 100g}`), no range after `-` (a range may be a term that is added: `{1 cup + 1-2 tbsp}`).
+Write multi-measure amounts as a [sum](/docs/reference/syntax/ingredients/#sums-of-quantities) (`{1 cup + 1 tbsp}`, `{1 cup - 2 tbsp}`, `{1 cup + 20 g}`) rather than collapsing them into decimals (`{1.0625 cup}`). Every term needs a unit, and only plain quantities are allowed (no `%`, no `×`, and no range after `-`).
### The oven mode left in the prose
*(since v1.5.0)*
```gram
-❌ Bake at ^{160°C} fan. → ✅ Bake at ^{160°C}(fan).
-❌ Bake at ^{180°C} (fan). → ✅ Bake at ^{180°C}(fan).
+❌ Bake at ^{320°F} fan. → ✅ Bake at ^{320°F}(fan).
+❌ Bake at ^{350°F} (fan). → ✅ Bake at ^{350°F}(fan).
```
-What goes with a temperature (the oven mode, "internal", "covered") belongs in a [note](/docs/reference/syntax/temperatures/#cooking-mode-and-notes) glued to the closing brace, in the recipe's language. With a space before it, the parenthesis is ordinary text and the note is lost.
+Attach oven modes and conditions ("fan", "internal", "covered") as a [parenthetical note](/docs/reference/syntax/temperatures/#cooking-mode-and-notes) directly touching `}`, in the recipe's language. Any space before `(` leaves it as plain text.
### The target state left in the prose
*(since v1.5.0)*
```gram
❌ Whisk until ribbon stage. → ✅ Whisk until ={ribbon stage}.
-❌ Cook until ={82°C} or ={5 min}. → ✅ Cook at ^{82°C}(internal) for ~{5 min}, until ={it coats the spoon}.
+❌ Cook until ={180°F} or ={5 min}. → ✅ Cook at ^{180°F}(internal) for ~{5 min}, until ={it coats the spoon}.
```
-When the source says what state the cook should reach (a texture, a color, a smell), mark it as a [target state](/docs/reference/syntax/target-states/), wherever it sits in the step: only the state between the braces, the linking words ("until", "as soon as", "when") left in the sentence, a test in a glued note if the source gives one. Never a temperature, a time or a quantity inside, and never a cue the source does not give.
+Mark visual or sensory cues stated by the source as [target states](/docs/reference/syntax/target-states/) (`={...}`), keeping linking words ("until", "when") outside the braces and putting any verification test in a glued `(...)` note. Never put temperatures, durations, or quantities inside `={...}`, and never invent cues absent from the source.
### A proportional rule computed by hand
*(since v1.5.0)*
@@ -1791,7 +2080,7 @@ When the source says what state the cook should reach (a texture, a color, a sme
❌ Roast ~{36 min} (15 min per 500 g). → ✅ Roast ~{15 min / 500 g @&roast}.
❌ Add @eggs{1/100g @&flour}. → ✅ Add @eggs{1 / 100 g @&flour}.
```
-When the source states a proportional rule ("per 100 g", "per liter", "per pound", "per piece"), write it as a [ratio with units](/docs/reference/syntax/relative-quantities/#ratios-with-units): it follows the target when the recipe is scaled. Only then: an amount the source gives as such stays an amount. Always a space around the slash, the unit alone before the target (never `100 g of @&flour`), and no multiplier after a proportional time.
+When the source states a proportional rule ("per 100 g", "per liter", "per piece"), write it as a [ratio with units](/docs/reference/syntax/relative-quantities/#ratios-with-units) so it scales with its target. Always leave a space around `/`, write the unit alone before the target (never `100 g of @&flour`), and omit multipliers on proportional times.
### Using `@&` on the first occurrence
@@ -1843,16 +2132,16 @@ Any step whose entire purpose is "take X and do Y to it before the real step" sh
### Attaching a composite's preparation to the wrong side
```gram
-❌ @lemon juice(cut in half, one half sliced for garnish)<@lemon{1} // says the JUICE was cut in half
-✅ @lemon juice<@lemon{1}(cut in half, one half sliced for garnish) // says the LEMON was cut in half
+❌ @lemon juice{}(cut in half, one half sliced for garnish)<@lemon{1} // says the JUICE was cut in half
+✅ @lemon juice{}<@lemon{1}(cut in half, one half sliced for garnish) // says the LEMON was cut in half
```
Both the child and the parent of a composite can carry their own independent `()` preparation:
-- **Child's preparation** goes right after its own name (and quantity, if any).
+- **Child's preparation** goes right after its own `{}` / `{quantity}`.
- **Parent's preparation** goes right after `<@parentName{parentCost}`.
Attach it to whichever one it actually describes — "cut in half" happens to the whole lemon, not to the extracted juice. They can also combine when both genuinely need one: `@lemon juice{150ml}(strained)<@lemon{1}(cut in half)`.
-### A redundant `->&name` when the section title already declares one
+### A redundant or duplicate `->&name`
```gram
❌ ## Seasoning Mix ->&seasoning
@@ -1863,7 +2152,7 @@ Attach it to whichever one it actually describes — "cut in half" happens to th
[Mix] @paprika{2 tsp} with @salt{1 tsp}. // no local declaration needed
```
-A section-level `->&name` already captures the output of every step inside it — see [Intermediate Variables](/docs/reference/syntax/intermediate-variables#section-level-declaration).
+A section-level `->&name` already captures the output of every step inside it, and every intermediate name must be unique across the whole recipe (declaring `->&dough` twice triggers a hard `SCOPE_CONFLICT` error) — see [Intermediate Variables](/docs/reference/syntax/intermediate-variables#section-level-declaration).
### An active timer for passive cooking
@@ -1993,7 +2282,7 @@ Mix @flour{200g} and @milk{200ml}.
```json
{
- "generator": "@gram-lang/kitchen@1.4.0",
+ "generator": "@gram-lang/kitchen@1.5.0",
"title": "Crepes",
"slug": "crepes",
"meta": { "title": "Crepes" },
@@ -2078,7 +2367,7 @@ Mix @flour{200g} and @milk{200ml}.
```json
{
- "generator": "@gram-lang/kitchen@1.4.0",
+ "generator": "@gram-lang/kitchen@1.5.0",
"title": "Crepes",
"slug": "crepes",
"meta": { "title": "Crepes" },
@@ -2180,7 +2469,7 @@ Mix @flour{200g} and @milk{200ml}.
}
```
-*(since v1.4.0)* The compiled recipe exposes `generator` (which compiler generated it), `miseEnPlace` (operational prep tasks and durations per section), `tasks` (the neutral task graph), and `schedule` (the default theoretical schedule laid out from it; alternative schedules are generated via `layout(tasks, options)`).
+The compiled recipe exposes `generator` (which compiler generated it), `miseEnPlace` (operational prep tasks and durations per section), `tasks` (the neutral task graph), and `schedule` (the default theoretical schedule laid out from it; alternative schedules are generated via `layout(tasks, options)`).
:::note[Deprecated timing fields]
*(since v1.4.0)* Legacy per-step `timings` and `backgroundTasks`, along with `metrics.totalTime`, `metrics.idleTime`, and time breakdowns are deprecated: they remain populated until removed in version 2.0.0, but are omitted from the example above for clarity. The [Kitchen API reference](/docs/reference/api/kitchen) documents each field and its modern counterpart.
@@ -2188,7 +2477,7 @@ Mix @flour{200g} and @milk{200ml}.
Note the compiler's `StepToken` vocabulary inside `content`: narrative text is a bare `string`; ingredients, cookware, and intermediate references share the `Usage` structure (no `type` field, identified by the presence of an `id`); timers, temperatures, target states (`checkpoint`, since 1.5.0: `{ type, state, note? }`), comments, and declarations each carry an explicit lowercase `type`. This distinction from the parser's PascalCase `ASTNodeType` is intentional: it describes compiled *output*, not parsed source syntax. See [How to build a custom UI](/docs/how-to/build-custom-ui) for a tutorial on consuming this structure in frontend frameworks.
-*(since v1.5.0)* A timer token carries `raw`, the duration as written between the braces, and `minutes`, the duration the schedule uses (the middle of a range). `quantity` and `unit` stay, in the smallest unit written (`1h20` gives `80` `min`), so a program that reads them stays right; a duration written as before 1.5 (`1.5h`) keeps them unchanged. A timer Gram does not read keeps only `raw` (and `name`, `isPassive`): show it as written.
+*(since v1.5.0)* A timer token carries `raw` (the duration as written inside the braces) and `minutes` (the scheduled duration, or the midpoint of a range). `quantity` and `unit` remain populated in the smallest written unit (`1h20` produces `80` `min`) for backwards compatibility, while pre-1.5 single-unit formats (`1.5h`) stay unchanged. Unrecognized timers keep only `raw` (plus `name` and `isPassive`) so views can display them as written.
```json
{ "type": "timer", "raw": "1h30", "quantity": { "type": "single", "value": 90 }, "unit": "min", "minutes": 90 }
@@ -2196,11 +2485,11 @@ Note the compiler's `StepToken` vocabulary inside `content`: narrative text is a
{ "type": "timer", "raw": "1:30" }
```
-*(since v1.5.0)* A [sum of quantities](/docs/reference/syntax/ingredients/#sums-of-quantities) (`@flour{1 cup + 1 tbsp}`) adds `parts` to its `Usage`: each term as written, with its `qty` (a number or a `QuantityValue`) and `unit`, and `minus: true` on a term taken away. **`parts` is the only source of truth**; `qty` and `unit` are a total kept so that a program reading them stays right:
+*(since v1.5.0)* A [sum of quantities](/docs/reference/syntax/ingredients/#sums-of-quantities) (`@flour{1 cup + 1 tbsp}`) adds `parts` to its `Usage`: each written term with `qty` (a number or `QuantityValue`), `unit`, and `minus: true` for subtracted terms. **`parts` is the source of truth**; `qty` and `unit` retain a compatibility summary:
-- **One kind of unit**: `qty` / `unit` hold the total, in the smallest unit written when the units share a scale (`{1 cup + 1 tbsp}` gives `17` `tbsp`), in `ml` or `g` otherwise. A range in a term makes the total a range.
-- **Several kinds** (a volume and a weight, or units Gram doesn't know): no `qty`, and `unit` holds the sum written out (`"1 cup + 20 g"`), like a quantity in words (`{a pinch}`). Read `parts` rather than parsing it.
-- **Refused** (an `INVALID_QUANTITY` warning): `parts` alone, no `qty` nor `unit`.
+- **Single unit family**: `qty` and `unit` hold the total, in the smallest written unit when terms share a scale (`{1 cup + 1 tbsp}` → `17` `tbsp`), or in `ml` / `g` otherwise. Any range term makes the total a range.
+- **Multiple families** (a volume and a weight, or unknown units): `qty` is omitted and `unit` holds the written expression (`"1 cup + 20 g"`), similar to text quantities (`{a pinch}`). Read `parts` instead of parsing this string.
+- **Invalid** (`INVALID_QUANTITY`): `parts` only, with neither `qty` nor `unit`.
```json
{ "id": "flour", "_usageId": "1", "qty": 17, "unit": "tbsp", "parts": [ { "qty": 1, "unit": "cup" }, { "qty": 1, "unit": "tbsp" } ] }
@@ -2294,7 +2583,7 @@ flour:
## 5. The run sheet
-Data structure of the (`@gram-lang/scheduler`), as returned by `runSheet()` and emitted by `gram plan --format json` under the `runSheet` property. Example for a recipe scheduled with a target serving time:
+Data structure of the **run sheet** (`@gram-lang/scheduler`), as returned by `runSheet()` and emitted by `gram plan --format json` under the `runSheet` property. Example for a recipe scheduled with a target serving time:
```json
{
@@ -2385,7 +2674,7 @@ interface Warning {
`compile()` returns them on `CompilationResult.warnings`; `analyze()` carries those through and may push additional ones onto the same array on `AnalyzedCompilationResult.warnings`. Never a bare string — `.message` is always present.
-*(since v1.5.0)* A few codes also carry `data`, the facts a tool needs to act on the warning without parsing `.message`: the language server passes it on as the diagnostic's `data`, and its Quick Fixes read it. Only `INVALID_QUANTITY` (`{ reason, suggestion? }`), `OZ_AFTER_VOLUME` (`{ suggestion }`) and an ingredient's `INVALID_UNIT` (`{ reason, suggestion? }`) set it; for the other codes it is absent.
+*(since v1.5.0)* Certain codes also attach structured `data` so tools and language-server quick fixes can act without parsing `.message`. Only `INVALID_QUANTITY` (`{ reason, suggestion? }`), `OZ_AFTER_VOLUME` (`{ suggestion }`), and ingredient `INVALID_UNIT` (`{ reason, suggestion? }`) populate `data`.
## Severity & `--strict`
@@ -2445,7 +2734,7 @@ Structural integrity issues — a reference to something that doesn't exist, a n
| `STOCKED_DESTRUCTURED_NUTRITION_BLENDED` | info | `Stocked module "{specifier}" uses destructured imports — nutrition profile is averaged across the entire module.` |
### `VARIABLE_NOT_FOUND`
-A relative quantity references an intermediate variable (`50% of &name`) that hasn't been declared as an intermediate output (`>> name`) anywhere in the recipe. **Fix**: declare the variable before referencing it, or check for a typo in the name.
+A relative quantity references an intermediate variable (`50% of &name`) that hasn't been declared as an intermediate output (`->&name`) anywhere in the recipe. **Fix**: declare the variable before referencing it, or check for a typo in the name.
### `RELATIVE_QUANTITY_UNRESOLVED`
A relative quantity references an ingredient (`50% of @name`) that hasn't appeared earlier **in the same section** — relative-to-ingredient targets are section-scoped, unlike variables. **Fix**: move the referenced ingredient earlier in the same section, or reference a variable (`&name`) instead if it's meant to be recipe-wide.
@@ -2453,7 +2742,13 @@ A relative quantity references an ingredient (`50% of @name`) that hasn't appear
### `RELATIVE_QUANTITY_UNKNOWN_MASS`
Pushed during analysis: the target of a relative quantity was found, but its own mass couldn't be computed (no resolvable unit/density), so the percentage can't be applied. **Fix**: give the target ingredient a standardizable unit, or a density/`unit_weight` entry in the ingredient database.
-For a ratio with units (`1 / 100 g @&flour`, `~{15 min / 500 g @&roast}`, since 1.5.0) it carries a `reason` and points at the ratio: `noTargetQuantity` (the target has no amount), `incompatibleUnits` (`2 slices` against garlic counted in cloves, a weight against a named piece, or a unit followed by a word, `100 g of`), `missingDensity` (a weight against a volume, with no density), `missingUnitWeight` (pieces against a weight, with no `unit_weight`), and for an intermediate used whole (`Roll out the &dough`) `wholeUseAmbiguous` (another section uses it too) or `producerMassUnknown` (the mass of the section that makes it is incomplete). Gram never guesses a ratio it cannot compute: the amount stays unresolved. **Fix**: write the ratio in the unit the target is written in, add the density or `unit_weight` to the ingredient database, or write the amount of the intermediate used (`&dough{500 g}`).
+For a [ratio with units](/docs/reference/syntax/relative-quantities/#ratios-with-units) (`1 / 100 g @&flour`, `~{15 min / 500 g @&roast}`, *(since v1.5.0)*), it includes a `reason` pointing to the ratio and leaves the amount unresolved:
+- `noTargetQuantity`: the target has no quantity.
+- `incompatibleUnits`: mismatched counts (`2 slices` against cloves), a weight against a named piece, or trailing words (`100 g of`).
+- `missingDensity` / `missingUnitWeight`: converting between weight and volume or pieces requires `density` or `unit_weight` in the database.
+- `wholeUseAmbiguous` / `producerMassUnknown`: for an intermediate used whole (`&dough`), either another section also consumes it or the producing section's mass is incomplete.
+
+**Fix**: match the target's unit, add `density` or `unit_weight` to the database, or specify the intermediate's used quantity (`&dough{500 g}`).
### `CIRCULAR_REFERENCE`
An ingredient's relative quantity targets itself (`@flour{50% of @flour}`). **Fix**: remove the self-reference — a percentage-based quantity must target a *different* ingredient or variable.
@@ -2465,55 +2760,56 @@ A bare reference (`&name`) or a referenceable ingredient (`@&name`) points to so
A `Timer` or `Temperature` was written without an explicit unit (e.g. `~{10}` instead of `~{10 min}`). **Fix**: add an explicit unit.
### `INVALID_UNIT`
-Either the word right after a number in a `Timer` (or a section's anchor) is not a time unit, as in `~{3 bananas}`, or a `Temperature` was given a unit other than Celsius/Fahrenheit. **Fix**: use a recognized time unit for timers (`h`, `hr`, `min`, `heures`…); use `°C` or `°F` for temperatures.
-
-*(since v1.4.1)* It also flags an ingredient whose unit reads as two quantities: a known unit, a number and another known unit, as in `@flour{1 cup 5 tbsp}` or `@flour{1 kg 200 g}`. The whole `cup 5 tbsp` is taken as one unknown unit: no mass, and a scaled recipe reads `2 cup 5 tbsp`. **Fix**: *(since v1.5.0)* write the two quantities as a [sum](/docs/reference/syntax/ingredients/#sums-of-quantities), `@flour{1 cup + 5 tbsp}`; the editor offers this fix, and `data.suggestion` holds the unit to write (`cup + 5 tbsp`). A number that only describes the unit, as in `@tomatoes{1 tin of 400 g}`, raises nothing: scaling the number of tins stays right.
-
-It flags as well a unit that hides a quantity, as in `@flour{about 200g}`: a quantity starts with its number, so with words in front the whole text was read as a unit, with no mass, and the quantity vanished from a scaled recipe. **Fix**: write the quantity alone (`@flour{200g}`), and the "about" in the step if it matters. Words with no number, such as `{a pinch}` or `{to taste}`, raise nothing.
+Emitted in three situations:
+- **Time or temperature units**: a word after a number in a `Timer` or section anchor is not a recognized time unit (`~{3 bananas}`), or a `Temperature` uses a unit other than Celsius or Fahrenheit. **Fix**: use a recognized time unit (`h`, `hr`, `min`, `heures`…), or `°C` / `°F` for temperatures.
+- **Unjoined quantities in a unit** *(since v1.5.0)*: an ingredient's unit looks like two quantities without an operator (`@flour{1 cup 5 tbsp}` or `@flour{1 kg 200 g}`), where `cup 5 tbsp` would otherwise be treated as one unknown unit with no mass. **Fix**: write it as a [sum](/docs/reference/syntax/ingredients/#sums-of-quantities) (`@flour{1 cup + 5 tbsp}`); `data.suggestion` provides the corrected unit (`cup + 5 tbsp`) for editor quick fixes. Descriptive unit text like `@tomatoes{1 tin of 400 g}` is unaffected.
+- **Leading prose before a number**: a unit hides a leading word before the number (`@flour{about 200g}`), since quantities must start with a number. **Fix**: write `@flour{200g}` and keep `"about"` in the prose. Pure text quantities (`{a pinch}`, `{to taste}`) raise nothing.
### `INVALID_QUANTITY`
*(since v1.5.0)*
-A [sum of quantities](/docs/reference/syntax/ingredients/#sums-of-quantities) Gram refuses to add up. The recipe still compiles and the sum is shown as written, but it counts for nothing in the shopping list and the nutrition. The message and `data.reason` name the problem:
+Emitted when a [sum of quantities](/docs/reference/syntax/ingredients/#sums-of-quantities) or number expression cannot be evaluated. The recipe still compiles and renders the text as written, but the value is excluded from shopping list and nutrition totals. `data.reason` identifies the cause:
| `reason` | Example | Fix |
| :--- | :--- | :--- |
-| `unitlessTerm` | `{1 + 1 cup}` | Give every term its unit: `{1 cup + 1 tbsp}`. |
-| `percentTerm` | `{100 g + 10%}` | Write the result (`{110 g}`, given in `data.suggestion` and offered by the editor), or a relative quantity such as `{10% &flour}`. |
-| `expressionTerm` | `{2 x 100 g + 50 g}` | A sum only adds or takes away: write `{250 g}`. |
-| `quantityInUnit` | `{1 tin of 400 g + 50 g}` | Write the amount in one unit: `{450 g}`. |
-| `nonPositiveTotal` | `{1 tbsp - 1 cup}` | What is taken away is as much as what is added, or more: check the terms. |
-| `rangeAfterMinus` | `{1 cup - 1-2 tbsp}` | A range taken away would swap its bounds: put it on a term that is added, or write the total as a range. |
-| `minusAcrossFamilies` | `{1 cup - 20 g}` | Take an amount away from one of its kind only (a volume from a volume, a weight from a weight). |
+| `unitlessTerm` | `{1 + 1 cup}` | Give every term a unit (`{1 cup + 1 tbsp}`). |
+| `percentTerm` | `{100 g + 10%}` | Write the computed total (`{110 g}`, provided in `data.suggestion`) or use a relative quantity (`{10% &flour}`). |
+| `expressionTerm` | `{2 x 100 g + 50 g}` | Sums only support `+` and `-`; write `{250 g}`. |
+| `quantityInUnit` | `{1 tin of 400 g + 50 g}` | Express the amount in a single unit (`{450 g}`). |
+| `nonPositiveTotal` | `{1 tbsp - 1 cup}` | Subtracted amount equals or exceeds what was added. |
+| `rangeAfterMinus` | `{1 cup - 1-2 tbsp}` | Put ranges on added terms, or write the total as a range. |
+| `minusAcrossFamilies` | `{1 cup - 20 g}` | Subtract only from the same unit family (volume from volume, weight from weight). |
+| `zeroDenominator` | `{1/0 cup}`, `{1/0% &dough}`, `#pan{1/0}`, `^{1/0 °C}` | Division by zero is ignored; write a valid fraction (`1/2`). |
+| `relativeNotSupported` | `@eggs{3}<@box{50% @&flour}`, `@eggs{1}<@box{1 / 100 g @&flour}` | Percentages and ratios are not supported on composite parents yet; specify the parent's quantity (`@eggs{3}<@box{1}`). |
-Subtraction is checked kind by kind: each kind of amount adds up and takes away on its own, so `{1 cup - 2 tbsp + 30 g}` is fine (the 2 tbsp come off the cup), while `{1 cup - 20 g}` has no weight to take the 20 g from. The editor's hover on a sum shows what each kind comes to.
-
-It also flags, with `reason: "zeroDenominator"`, a fraction over zero anywhere a number is written (`@flour{1/0 cup}`, `{1 1/0 cup}`, a term of a sum, `{1/0% &dough}`, `#pan{1/0}`, `^{1/0 °C}`). Such a number has no value: Gram leaves it out, as if no number had been written (`cup` alone, a sum without that term, an ingredient with no quantity for a percentage), where it used to vanish without a word. **Fix**: write the fraction you meant (`1/2`). A timer says it through `INVALID_DURATION`.
-
-With `reason: "relativeNotSupported"`, it flags a percentage on a composite parent (`@eggs{3}<@box{50% @&flour}>`), which Gram does not support yet: the parent is read with no quantity, where the percentage used to vanish without a word. **Fix**: write the parent's amount (`<@box{1}>`). A ratio on a parent (`<@box{1 / 100 g @&flour}>`) is refused the same way, and a ratio over zero (`{1 / 0 g @&flour}`) raises `zeroDenominator`: the ingredient reads with no amount.
+Subtraction is checked per unit family: `{1 cup - 2 tbsp + 30 g}` is valid (2 tbsp are subtracted from 1 cup), while `{1 cup - 20 g}` has no weight to subtract from.
### `OZ_AFTER_VOLUME`
*(since v1.5.0)*
-Information: a sum puts `oz` after a volume, as in `@water{1 cup + 2 oz}`. `oz` is an ounce of weight, so Gram reads it as one: the sum is a volume plus a weight. **Fix**: write `fl oz` if a fluid ounce was meant (`data.suggestion`, offered by the editor); otherwise there's nothing to do.
+Informational notice when `oz` follows a volume in a sum (`@water{1 cup + 2 oz}`). Because `oz` denotes weight, Gram keeps it separate from the volume. **Fix**: change to `fl oz` if fluid ounces were intended (`data.suggestion` offers this quick fix).
### `DURATION_OUT_OF_RANGE`
-*(since v1.4.0)*
A timer or a section's retro-planning offset lasts longer than 1000 years. **Fix**: check the number, often a stray digit or a missing unit letter (`~{-3000d}` is eight years, `~{-3000000000d}` is not a recipe). The duration is capped at 1000 years, so the timeline stays finite instead of coming out as `0`, `Infinity` or `NaN`. That limit is a technical bound, not a judgement on recipes: anything up to it, a solera that runs for decades included, is planned as written and raises nothing.
### `AMBIGUOUS_NUMBER`
*(since v1.5.0)*
-A comma followed by exactly three digits, after a whole part of one to three digits, as in `@flour{1,000 g}` or `@flour{12,500 g}`. Gram reads a comma between two digits as a decimal and has no thousands separator, so this is 1 g (and 12.5 g); the warning says how the number was read, because an English reader would see a thousand. The quantity stays usable either way. **Fix**: write `{1000 g}` if a thousand was meant, or `{1 g}` otherwise. A number that cannot be a thousands separator, such as `{0,125 kg}` or `{1,25 kg}`, raises nothing, and neither does a point: `{1.000 kg}` has always meant 1 kg. Every number of a recipe is checked: quantities, timers and temperatures, but also a percentage (`{1,000% &dough}`) and a section's anchor (`~{-1,000h}`, read as one hour), including one written on `@use`. An anchor that is dropped anyway, positive or with no valid unit, only raises `MISSING_UNIT`, `INVALID_UNIT` or `INVALID_DURATION`.
+A comma followed by three digits after one to three integer digits (`@flour{1,000 g}`, `@flour{12,500 g}`). Because Gram supports decimal commas and has no thousands separator, `{1,000 g}` is parsed as `1 g` (and `{12,500 g}` as `12.5 g`). Checked across quantities, timers, temperatures, percentages, and section anchors (including on `@use`). **Fix**: write `{1000 g}` if a thousand was meant, or `{1 g}` otherwise. Periods (`{1.000 kg}`) always parse as decimals without warning.
### `INVALID_DURATION`
*(since v1.5.0)*
-A timer or a section's anchor is written with numbers and units Gram knows, but in a way it will not guess: `~{1:30}` (hours or minutes?), `~{30min 1h}` (units out of order), `~{1h75}` (75 minutes after an hour), `~{1-2h30}` (is the left side `1 h` or `1 h 30`?), `~{2-1 h}` (a range starts with the shorter duration), `~{2 * 2 min}` or `~{1 heure et demie}`. The message gives the reason and an example to write instead. The timer is not counted in the total time (only what was written is kept in the compiled JSON, as `raw`), and the anchor is dropped. A section anchor is also refused when it is a range (`~{-1-2d}`) or counts seconds (`~{-1min30}`, `~{-5'}`). A proportional time is refused with a multiplier (`~{15 min / 500 g @&roast * 2}`, `reason: "ratioMultiplication"`) or a range as its target amount (`~{15 min / 1-2 kg @&roast}`, `"ratioShape"`), and an anchor can never be one (`"anchorRatio"`). **Fix**: write the duration the way the message suggests, e.g. `~{1h30}`, `~{1:30 min}` or `~{1h30-2h}`. A word right after a number is an unknown unit and keeps raising `INVALID_UNIT`, and a number alone keeps raising `MISSING_UNIT`.
+A timer or section anchor uses numbers and units Gram recognizes, but in an ambiguous or unsupported shape:
+- **Ambiguous or malformed timers**: `~{1:30}` (hours or minutes?), `~{30min 1h}` (wrong order), `~{1h75}` (`≥ 60` after hours), `~{1-2h30}` (ambiguous range bound), `~{2-1 h}` (reversed range), `~{2 * 2 min}`, or prose (`~{half an hour}`). The timer is excluded from total time while keeping its `raw` string.
+- **Unsupported anchors**: ranges (`~{-1-2d}`), seconds (`~{-1min30}`, `~{-5'}`), or proportional anchors (`reason: "anchorRatio"`).
+- **Proportional timer limits**: multipliers (`~{15 min / 500 g @&roast * 2}`, `reason: "ratioMultiplication"`) or ranged targets (`~{15 min / 1-2 kg @&roast}`, `reason: "ratioShape"`).
+
+**Fix**: follow the suggested format in `.message` (e.g. `~{1h30}`, `~{1:30 min}`, `~{1h30-2h}`). Unknown units after a number still raise `INVALID_UNIT`, and bare numbers raise `MISSING_UNIT`.
### `SCOPE_CONFLICT`
-Two sections declare the same intermediate/global variable name (`>> name`). Variable names must be unique across the whole recipe, not just within a section. **Fix**: rename one of the two declarations.
+Two sections declare the same intermediate/global variable name (`->&name`). Variable names must be unique across the whole recipe, not just within a section. **Fix**: rename one of the two declarations.
### `MISSING_INGREDIENT`
During nutrition estimation, an ingredient with a computable mass has no matching entry (by id or alias) in the ingredient database at all. **Fix**: add the ingredient (or an alias to an existing entry) to your database.
@@ -2535,20 +2831,14 @@ Baker's math was explicitly requested (`enableBakersMath` with a bare `*` search
### `COMPOSITE_PARENT_CONFLICT`
-*(since v1.2.0)*
-
A short composite child name (e.g. `@juice`) is drawn from two different parent ingredients within the same recipe (e.g. `<@lemon` in one step and `<@orange` in another). **Fix**: use the full name for the child (e.g. `@lemon juice` and `@orange juice`) to prevent database identity collisions.
### `MODULE_NOT_FOUND`
-*(since v1.2.0)*
-
An imported module specified in a `@use` directive could not be resolved or found on the filesystem. **Fix**: verify the module path, file extension (`.gram`), or configured path aliases in `config.yaml`.
### `DAY_OVERFLOW`
-*(since v1.4.0)*
-
A working day (derived from a section's `~{-Nd}` anchor) starts before its 24-hour window opens because a long passive rest pushes it backward. **Fix**: anchor the section further back (for example `~{-2d}` instead of `~{-1d}`), or shorten the rest duration.
### `TIME_PARADOX`
@@ -2561,8 +2851,6 @@ Multiple passive timers share the same equipment track (e.g. `~_oven`) and canno
### `PASSIVE_OVERLAP_SAME_COOKWARE`
-*(since v1.4.0)*
-
Two passive timers overlap in time, in steps that cite the same cookware (`#oven` in both), with no named track in common. If one is meant to follow the other, they are probably on one oven: the plan shows them side by side. **Fix**: give them the same named track (`~_oven{30min}` then `~_oven{20min}`) so they take turns; if both fit in the oven at once, this is only an informational notice. Only names are compared (`#oven` with `#oven`), so it works whatever the language of the recipe, and the overlap is read on the default timeline.
## Related resources
diff --git a/packages/docs/public/llms.txt b/packages/docs/public/llms.txt
index 1fb7cd65..ea44d388 100644
--- a/packages/docs/public/llms.txt
+++ b/packages/docs/public/llms.txt
@@ -2,7 +2,7 @@
> Gram is an open-source declarative and computational recipe DSL built for developers. Code your recipes in plain text: `.gram` files compile into structured, calculated JSON — with relational variables, physical-accuracy shopping lists, modular imports (@use), and strict data contracts for temperatures, times, ingredients, and cookware.
-Gram is a pipeline of composable `@gram-lang/*` npm packages (`parser`, `modules`, `kitchen`, `analyzer`, `renderer`, `format`, `i18n`), plus a `gram` CLI, a Language Server, and a VS Code extension. Full documentation is at https://gram-lang.org/ (with a French translation under `/fr/`). For the complete language spec in a single file, see https://gram-lang.org/llms-full.txt.
+Gram is a pipeline of composable `@gram-lang/*` npm packages (`parser`, `modules`, `kitchen`, `scheduler`, `analyzer`, `renderer`, `format`, `i18n`), plus a `gram` CLI, a Language Server, and a VS Code extension. Full documentation is at https://gram-lang.org/ (with a French translation under `/fr/`). For the complete language spec in a single file, see https://gram-lang.org/llms-full.txt.
## Getting Started
@@ -17,9 +17,10 @@ Gram is a pipeline of composable `@gram-lang/*` npm packages (`parser`, `modules
- [Ingredients](https://gram-lang.org/docs/reference/syntax/ingredients): `@ingredient` declarations, quantities, units, and modifiers.
- [Cookware](https://gram-lang.org/docs/reference/syntax/cookware): `#cookware` declarations and quantities.
- [Times & Scheduling](https://gram-lang.org/docs/reference/syntax/times): `~timer` declarations, active vs. passive, and section retro-planning.
-- [Temperatures](https://gram-lang.org/docs/reference/syntax/temperatures): `^temperature` declarations, exact and semantic.
+- [Temperatures](https://gram-lang.org/docs/reference/syntax/temperatures): `^temperature` declarations, exact and semantic, with optional notes.
+- [Target States](https://gram-lang.org/docs/reference/syntax/target-states): `={state}` sensory cues and verification notes.
- [Intermediate Variables](https://gram-lang.org/docs/reference/syntax/intermediate-variables): Declaring and referencing sub-components (`->&name`) like dough or sauce across steps.
-- [Relative Quantities](https://gram-lang.org/docs/reference/syntax/relative-quantities): Defining a quantity as a dynamic percentage of another ingredient or variable.
+- [Relative Quantities & Ratios](https://gram-lang.org/docs/reference/syntax/relative-quantities): Defining a quantity as a dynamic percentage or unit ratio of another ingredient or variable.
- [Composite Ingredients](https://gram-lang.org/docs/reference/syntax/composite-ingredients): `<@parent` syntax so sub-parts (zest/juice) aggregate correctly in the shopping list.
- [Cheatsheet](https://gram-lang.org/docs/reference/syntax/cheatsheet): One-page quick reference for all syntax elements and modifiers.
- [Writing Gram Programmatically](https://gram-lang.org/docs/reference/syntax/ai-generation-notes): Guidance and common mistakes for scripts/AI models generating `.gram` files.
@@ -29,7 +30,8 @@ Gram is a pipeline of composable `@gram-lang/*` npm packages (`parser`, `modules
- [API Overview](https://gram-lang.org/docs/reference/api/): The pipeline of composable packages and install instructions.
- [@gram-lang/parser](https://gram-lang.org/docs/reference/api/parser): `getAST()` — turns `.gram` source into a plain-object AST.
- [@gram-lang/modules](https://gram-lang.org/docs/reference/api/modules): `loadModuleGraph()`, `composeRecipe()` — resolves `@use` imports and composes multi-file ASTs.
-- [@gram-lang/kitchen](https://gram-lang.org/docs/reference/api/kitchen): `compile()` — produces the shopping list, timings, registry, and warnings.
+- [@gram-lang/kitchen](https://gram-lang.org/docs/reference/api/kitchen): `compile()` — produces the shopping list, task graph, default schedule, registry, and warnings.
+- [@gram-lang/scheduler](https://gram-lang.org/docs/reference/api/scheduler): `layout()`, `project()`, `runSheet()`, `findServeTimes()`, `earliestServe()` — ALAP scheduling and calendar projection.
- [@gram-lang/analyzer](https://gram-lang.org/docs/reference/api/analyzer): `analyze()` — enriches a compiled recipe with mass, yield, nutrition, and baker's percentages.
- [@gram-lang/renderer](https://gram-lang.org/docs/reference/api/renderer): Rendering a compiled/analyzed result to Markdown or HTML.
- [@gram-lang/format](https://gram-lang.org/docs/reference/api/format): `formatGram()` — canonical code formatter with 13 unified formatting rules.
@@ -39,8 +41,10 @@ Gram is a pipeline of composable `@gram-lang/*` npm packages (`parser`, `modules
## Guides
+- [How to Organize Modular Recipes](https://gram-lang.org/docs/how-to/organize-modular-recipes): Splitting bases and composing recipes with `@use`.
- [How to Manage an Ingredient Database](https://gram-lang.org/docs/how-to/manage-database): Sync, lint, and enrich a local `ingredients.yaml` via the CLI.
- [How to Scale Recipes Dynamically](https://gram-lang.org/docs/how-to/scale-recipes): Relative quantities and baker's math for ratio-based recipes.
+- [How to Plan a Meal](https://gram-lang.org/docs/how-to/plan-a-meal): Scheduling prep days and serving times with `gram plan`.
- [How to Generate a Weekly Shopping List](https://gram-lang.org/docs/how-to/weekly-shopping-list): Aggregating ingredients across multiple `.gram` files with `gram shop`.
- [How to Build a Custom UI](https://gram-lang.org/docs/how-to/build-custom-ui): Consuming Gram's compiled JSON to build a custom frontend.
@@ -48,10 +52,12 @@ Gram is a pipeline of composable `@gram-lang/*` npm packages (`parser`, `modules
- [Playground](https://gram-lang.org/play): Interactive in-browser editor with a live compiler preview.
- [CLI Commands](https://gram-lang.org/docs/reference/tooling/cli): Reference for the `gram` command-line tool.
-- [VS Code Extension](https://gram-lang.org/docs/reference/tooling/vscode-extension): Live preview, nutrition CodeLens, ingredient matching.
+- [VS Code Extension](https://gram-lang.org/docs/reference/tooling/vscode-extension): Live preview, run sheet, nutrition summary, ingredient matching.
- [Language Server](https://gram-lang.org/docs/reference/tooling/language-server): The LSP implementation powering editor integrations.
-- [The Gram Lifecycle](https://gram-lang.org/docs/explanation/engine/lifecycle): How the parser → modules → kitchen → analyzer → renderer pipeline fits together.
+- [The Gram Lifecycle](https://gram-lang.org/docs/explanation/engine/lifecycle): How the parser → modules → kitchen → scheduler → analyzer → renderer pipeline fits together.
- [Module Resolution & Composition](https://gram-lang.org/docs/explanation/engine/modules): Resolving @use dependency graphs, yield scaling, and intermediate hygiene.
+- [Deep Dive: ALAP Scheduling](https://gram-lang.org/docs/explanation/alap-scheduling): Backward scheduling, elastic rests, and working-day sessions.
+- [Deep Dive: Planning & Run Sheet](https://gram-lang.org/docs/explanation/planning): Kitchen visits, preparation grouping, and calendar projection.
- [Deep Dive: Mass Standardization & Yield](https://gram-lang.org/docs/explanation/mass-and-yield): Converting volumes/counts to standardized mass.
- [Deep Dive: Nutritional Estimation](https://gram-lang.org/docs/explanation/nutrition): The macro/micronutrient calculation flow.
- [Deep Dive: Shopping List Aggregation](https://gram-lang.org/docs/explanation/shopping-list-aggregation): ID normalization, alias resolution, and unit merging.
diff --git a/packages/docs/scripts/generate-changelog.ts b/packages/docs/scripts/generate-changelog.ts
deleted file mode 100644
index c0a47243..00000000
--- a/packages/docs/scripts/generate-changelog.ts
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/usr/bin/env bun
-// Mirrors the root CHANGELOG.md (the single source of truth, generated by
-// changesets via generate-release-note.ts) into a Starlight content page, so the
-// site never carries a second, hand-maintained copy of the release history.
-
-import { readFileSync, writeFileSync } from "node:fs";
-import { join } from "node:path";
-
-const ROOT_CHANGELOG = join(import.meta.dirname, "..", "..", "..", "CHANGELOG.md");
-const OUT_FILE = join(
- import.meta.dirname,
- "..",
- "src",
- "content",
- "docs",
- "docs",
- "changelog.md",
-);
-
-const FRONTMATTER = `---
-title: Changelog
-description: Every release of Gram — new features, fixes, and breaking changes.
-tableOfContents:
- minHeadingLevel: 2
- maxHeadingLevel: 2
----
-
-`;
-
-function main() {
- const source = readFileSync(ROOT_CHANGELOG, "utf-8");
- // Drop the leading "# Changelog" heading: the page's `title` frontmatter
- // already renders as the H1, so keeping it would duplicate the heading.
- const body = source.replace(/^# Changelog\n+/, "");
-
- writeFileSync(OUT_FILE, FRONTMATTER + body, "utf-8");
- console.log("Synced CHANGELOG.md -> src/content/docs/docs/changelog.md");
-}
-
-main();
diff --git a/packages/docs/scripts/generate-llms-full.ts b/packages/docs/scripts/generate-llms-full.ts
index d53fd2b4..3474efc4 100644
--- a/packages/docs/scripts/generate-llms-full.ts
+++ b/packages/docs/scripts/generate-llms-full.ts
@@ -19,6 +19,7 @@ import {
categoriesTable,
type Table,
} from "../src/data/api-reference";
+import { termLabel, type TermId } from "../src/data/terms";
const SITE_ORIGIN = "https://gram-lang.org";
const CONTENT_DIR = join(import.meta.dirname, "..", "src", "content", "docs", "docs");
@@ -30,10 +31,12 @@ const OUT_FILE = join(import.meta.dirname, "..", "public", "llms-full.txt");
const PAGES: [string, string][] = [
["explanation/philosophy.mdx", "/docs/explanation/philosophy"],
["reference/syntax/document-structure.mdx", "/docs/reference/syntax/document-structure"],
+ ["reference/syntax/modules.mdx", "/docs/reference/syntax/modules"],
["reference/syntax/ingredients.mdx", "/docs/reference/syntax/ingredients"],
["reference/syntax/cookware.mdx", "/docs/reference/syntax/cookware"],
["reference/syntax/times.mdx", "/docs/reference/syntax/times"],
["reference/syntax/temperatures.mdx", "/docs/reference/syntax/temperatures"],
+ ["reference/syntax/target-states.mdx", "/docs/reference/syntax/target-states"],
["reference/syntax/intermediate-variables.mdx", "/docs/reference/syntax/intermediate-variables"],
["reference/syntax/relative-quantities.mdx", "/docs/reference/syntax/relative-quantities"],
["reference/syntax/composite-ingredients.mdx", "/docs/reference/syntax/composite-ingredients"],
@@ -99,7 +102,17 @@ function stripStarlightComponents(content: string): string {
.replace(/]*)?>/g, "### $1\n")
.replace(/<\/Card>/g, "")
.replace(/<\/?Steps>/g, "")
- .replace(/]*)?\s*\/>/g, "[$1]");
+ .replace(/]*)?\s*\/>/g, "[$1]")
+ .replace(/]+?)\s*\/>/g, (_m, attrs: string) => {
+ const idMatch = attrs.match(/id="([^"]+)"/);
+ if (!idMatch) return "";
+ const label = termLabel(idMatch[1] as TermId, "en");
+ const cap = /\bcap\b/.test(attrs);
+ const text = cap
+ ? label.charAt(0).toUpperCase() + label.slice(1)
+ : label.charAt(0).toLowerCase() + label.slice(1);
+ return `**${text}**`;
+ });
}
const sections = PAGES.map(([relPath, urlPath]) => {
diff --git a/packages/docs/src/components/ChangelogEntry.astro b/packages/docs/src/components/ChangelogEntry.astro
new file mode 100644
index 00000000..2c4ae9b3
--- /dev/null
+++ b/packages/docs/src/components/ChangelogEntry.astro
@@ -0,0 +1,187 @@
+---
+import type { ChangelogEntry } from "../lib/changelog";
+import type { ReleasePostInfo } from "../lib/releases";
+
+export interface RenderedChangelogRelease extends ChangelogEntry {
+ formattedDate: string;
+ blogPost?: ReleasePostInfo;
+ summary?: string;
+ html: string;
+}
+
+interface Props {
+ release: RenderedChangelogRelease;
+ readPostLabel: string;
+ compareLabel: string;
+}
+
+const { release, readPostLabel, compareLabel } = Astro.props;
+---
+
+
+
+
diff --git a/packages/docs/src/content/blog/en/2026-08-07-release-1.0.1.md b/packages/docs/src/content/blog/en/2026-08-07-release-1.0.1.md
index 53ac48aa..2f69b838 100644
--- a/packages/docs/src/content/blog/en/2026-08-07-release-1.0.1.md
+++ b/packages/docs/src/content/blog/en/2026-08-07-release-1.0.1.md
@@ -15,4 +15,4 @@ This is a small patch release that focuses on improving the `gram import` comman
- **Improved CLI guidance**: The `gram import` command now correctly points to `gram db sync` as the next step and accurately reports missing ingredients.
- **Clearer help text**: Clarified the description of the `gram check` command.
-For the full list of changes, please refer to the [Changelog](/docs/changelog).
+For the full list of changes, please refer to the [Changelog](/changelog).
diff --git a/packages/docs/src/content/blog/en/2026-08-16-release-1.1.0.md b/packages/docs/src/content/blog/en/2026-08-16-release-1.1.0.md
index 792d5d46..64b66566 100644
--- a/packages/docs/src/content/blog/en/2026-08-16-release-1.1.0.md
+++ b/packages/docs/src/content/blog/en/2026-08-16-release-1.1.0.md
@@ -43,4 +43,4 @@ All AI-assisted commands (`gram import`, `gram db lint`, `gram db enrich`) now s
- **Shopping list**: Fixed a bug where composite ingredients with `&` were listed twice.
- **Percentages in mass totals**: Ingredients defined with relative percentages (like `@water{60% @&flour}`) are now properly included in total weights.
-For the detailed list of changes and commit history, head over to the [Changelog](/docs/changelog/#110---2026-08-16). As always, feedback is very welcome!
+For the detailed list of changes and commit history, head over to the [Changelog](/changelog/#110---2026-08-16). As always, feedback is very welcome!
diff --git a/packages/docs/src/content/blog/en/2026-08-22-release-1.2.0.md b/packages/docs/src/content/blog/en/2026-08-22-release-1.2.0.md
index a183cf32..1de5d30a 100644
--- a/packages/docs/src/content/blog/en/2026-08-22-release-1.2.0.md
+++ b/packages/docs/src/content/blog/en/2026-08-22-release-1.2.0.md
@@ -63,6 +63,6 @@ The online [Playground](/play) has been updated with full multi-file support:
- **Nutritional Totals**: Spliced intermediate masses (`-> &`) are now consistently included in overall recipe nutrition and weight totals.
- **Section-Scoped Cycle Detection**: Fixed false circular reference warnings when multiple sections independently used percentage-of formulas on same-named ingredients.
-For the full list of changes and commit history, check out the [Changelog](/docs/changelog/#120---2026-08-22). We'd love to hear your feedback!
+For the full list of changes and commit history, check out the [Changelog](/changelog/#120---2026-08-22). We'd love to hear your feedback!
diff --git a/packages/docs/src/content/blog/en/2026-08-25-release-1.2.1.md b/packages/docs/src/content/blog/en/2026-08-25-release-1.2.1.md
index 88d7fb2e..0ea2e9b0 100644
--- a/packages/docs/src/content/blog/en/2026-08-25-release-1.2.1.md
+++ b/packages/docs/src/content/blog/en/2026-08-25-release-1.2.1.md
@@ -14,4 +14,4 @@ A recipe without quantities isn't very useful! `v1.2.1` is a quick patch to fix
- **Renderer**: Switched icons to embedded inline SVGs, removing external CDN dependencies (`unpkg.com`) and enabling full offline previews in VS Code.
- **Documentation & Playground**: Improved accessibility and keyboard navigation across the website and interactive playground (ARIA roles, tab navigation, `prefers-reduced-motion`).
-For the complete list of changes, check out the [Changelog](/docs/changelog/#121---2026-08-25).
+For the complete list of changes, check out the [Changelog](/changelog/#121---2026-08-25).
diff --git a/packages/docs/src/content/blog/en/2026-09-29-release-1.3.0.md b/packages/docs/src/content/blog/en/2026-09-29-release-1.3.0.md
index 984d298d..69a84b9e 100644
--- a/packages/docs/src/content/blog/en/2026-09-29-release-1.3.0.md
+++ b/packages/docs/src/content/blog/en/2026-09-29-release-1.3.0.md
@@ -24,4 +24,4 @@ In return, the compiler is stricter: an unreadable quantity inside braces (like
- **Ingredient database**: Lookups in `ingredients.yaml` now resolve through slug normalization (e.g. `Huile d'olive` matches `huile-dolive`), avoiding false "missing nutrition" alerts during volume-to-mass conversions. `gram db lint` also catches ambiguous aliases.
- **Modules**: Intermediates declared in imported modules display their authored name (`pressed`) instead of an internal path prefix, and syntax errors in the main recipe are no longer blamed on an "imported module".
-For the complete list of changes, check out the [Changelog](/docs/changelog/#130---2026-09-29).
+For the complete list of changes, check out the [Changelog](/changelog/#130---2026-09-29).
diff --git a/packages/docs/src/content/blog/en/2026-11-13-release-1.4.0.md b/packages/docs/src/content/blog/en/2026-11-13-release-1.4.0.md
index 61784172..75112a2d 100644
--- a/packages/docs/src/content/blog/en/2026-11-13-release-1.4.0.md
+++ b/packages/docs/src/content/blog/en/2026-11-13-release-1.4.0.md
@@ -103,6 +103,6 @@ Beyond these big milestones, a few quality-of-life polish items to make life eas
Culinary scheduling and real-world time management are intricate problems, so edge cases might have slipped through despite extensive testing. If you run into any unexpected behavior with your recipes, please don't hesitate to open an [issue](https://git.gram-lang.org/gram-lang/gram/issues) on the repository—your feedback is invaluable to help me polish the engine!
-Check out the [full changelog](/docs/changelog/#140---2026-11-13) for the complete list of changes in this release.
+Check out the [full changelog](/changelog/#140---2026-11-13) for the complete list of changes in this release.
Happy cooking with Gram 1.4.0!
diff --git a/packages/docs/src/content/blog/en/2026-11-14-release-1.4.1.md b/packages/docs/src/content/blog/en/2026-11-14-release-1.4.1.md
index 92a72e87..31fc4bd5 100644
--- a/packages/docs/src/content/blog/en/2026-11-14-release-1.4.1.md
+++ b/packages/docs/src/content/blog/en/2026-11-14-release-1.4.1.md
@@ -17,4 +17,4 @@ A first round of polish right after 1.4.0! `v1.4.1` is a quick patch to make qua
- **Quantity and unit analysis**: an ingredient whose unit holds a quantity of its own (`@tomatoes{1 tin of 400 g}`) no longer falls back to the database's per-piece weight (previously, 1 tin was counted as 1 tomato, skewing the shopping-list total; its mass is now reported as unknown). Quantities split across two units (`@flour{1 cup 5 tbsp}`) or prefixed with words (`@flour{about 200g}`) now raise an `INVALID_UNIT` warning.
- **Section-header parsing and errors**: a malformed section header now raises a clear error instead of a misleading message or silently losing the section, and a section header on the very last line without a trailing newline is now recognized.
-For the complete list of changes, check out the [Changelog](/docs/changelog/#141---2026-11-14).
+For the complete list of changes, check out the [Changelog](/changelog/#141---2026-11-14).
diff --git a/packages/docs/src/content/blog/en/2026-11-17-release-1.4.2.md b/packages/docs/src/content/blog/en/2026-11-17-release-1.4.2.md
index 68d91d11..be0d21e5 100644
--- a/packages/docs/src/content/blog/en/2026-11-17-release-1.4.2.md
+++ b/packages/docs/src/content/blog/en/2026-11-17-release-1.4.2.md
@@ -16,4 +16,4 @@ description: "Quick fixes for mixed-unit shopping lists and diffs, step spacing,
- **Single-line preparations**: an unclosed parenthesis in a preparation note (`@flour{200g}(sifted and`) no longer swallows the rest of the recipe — preparations now stay on one line, and unclosed or multi-line notes remain plain text.
- **Temperature formatting**: temperatures with a space and trailing zeros (`^{160.0 °C}`) now collapse to `^{160°C}` in a single run of the formatter.
-For the complete list of changes, check out the [Changelog](/docs/changelog/#142---2026-11-17).
+For the complete list of changes, check out the [Changelog](/changelog/#142---2026-11-17).
diff --git a/packages/docs/src/content/blog/fr/2026-08-07-release-1.0.1.md b/packages/docs/src/content/blog/fr/2026-08-07-release-1.0.1.md
index 92a7ded2..26fd5ac4 100644
--- a/packages/docs/src/content/blog/fr/2026-08-07-release-1.0.1.md
+++ b/packages/docs/src/content/blog/fr/2026-08-07-release-1.0.1.md
@@ -15,4 +15,4 @@ Il s'agit d'une version corrective mineure axée sur l'amélioration de la comma
- **Meilleur guidage dans la CLI** : la commande `gram import` renvoie désormais correctement vers `gram db sync` comme étape suivante et signale précisément les ingrédients manquants.
- **Texte d'aide plus clair** : clarification de la description de la commande `gram check`.
-Pour consulter la liste complète des modifications, veuillez vous référer au [Changelog](/docs/changelog).
+Pour consulter la liste complète des modifications, veuillez vous référer au [Changelog](/fr/changelog).
diff --git a/packages/docs/src/content/blog/fr/2026-08-16-release-1.1.0.md b/packages/docs/src/content/blog/fr/2026-08-16-release-1.1.0.md
index c4685fb8..84438213 100644
--- a/packages/docs/src/content/blog/fr/2026-08-16-release-1.1.0.md
+++ b/packages/docs/src/content/blog/fr/2026-08-16-release-1.1.0.md
@@ -43,5 +43,5 @@ Toutes les commandes utilisant l'IA (`gram import`, `gram db lint`, `gram db enr
- **Liste de courses** : Correction d'un bug qui dupliquait certains ingrédients composites avec `&`.
- **Pourcentages et masse totale** : Les ingrédients définis en pourcentage d'un autre (comme `@eau{60% @&farine}`) sont maintenant bien inclus dans le calcul du poids total.
-Pour consulter l'ensemble des modifications techniques, vous pouvez vous référer au [Changelog](/docs/changelog/#110---2026-08-16). Comme d'habitude, les retours sont les bienvenus !
+Pour consulter l'ensemble des modifications techniques, vous pouvez vous référer au [Changelog](/fr/changelog/#110---2026-08-16). Comme d'habitude, les retours sont les bienvenus !
diff --git a/packages/docs/src/content/blog/fr/2026-08-22-release-1.2.0.md b/packages/docs/src/content/blog/fr/2026-08-22-release-1.2.0.md
index 4c244457..d7e38c17 100644
--- a/packages/docs/src/content/blog/fr/2026-08-22-release-1.2.0.md
+++ b/packages/docs/src/content/blog/fr/2026-08-22-release-1.2.0.md
@@ -63,4 +63,4 @@ Le [Playground en ligne](/fr/play) a lui aussi été mis à jour pour prendre en
- **Totaux nutritionnels complets** : La masse des intermédiaires injectés (`-> &`) est maintenant bien prise en compte dans le calcul du poids total et des macronutriments de la recette.
- **Détection des cycles par section** : Suppression d'une fausse alerte de référence circulaire qui pouvait survenir lorsque deux sections distinctes utilisaient des pourcentages relatifs sur des ingrédients portant le même nom.
-Pour retrouver le détail de tous les changements techniques, n'hésitez pas à consulter le [Changelog](/docs/changelog/#120---2026-08-22). Comme toujours, vos retours et suggestions sont les bienvenus !
\ No newline at end of file
+Pour retrouver le détail de tous les changements techniques, n'hésitez pas à consulter le [Changelog](/fr/changelog/#120---2026-08-22). Comme toujours, vos retours et suggestions sont les bienvenus !
\ No newline at end of file
diff --git a/packages/docs/src/content/blog/fr/2026-08-25-release-1.2.1.md b/packages/docs/src/content/blog/fr/2026-08-25-release-1.2.1.md
index 6e618d82..9630c007 100644
--- a/packages/docs/src/content/blog/fr/2026-08-25-release-1.2.1.md
+++ b/packages/docs/src/content/blog/fr/2026-08-25-release-1.2.1.md
@@ -14,4 +14,4 @@ Une recette sans quantités, c'est tout de suite moins pratique ! La version `v1
- **Rendu & Icônes SVG** : intégration directe des icônes SVG dans le code généré pour supprimer la dépendance CDN (`unpkg.com`) et permettre la prévisualisation hors-ligne dans VS Code.
- **Accessibilité du site et du playground** : amélioration de l'accessibilité et de la navigation au clavier sur le site et le playground interactif (rôles ARIA, onglets, support de `prefers-reduced-motion`).
-Pour retrouver l'ensemble des détails, consultez le [Changelog](/docs/changelog/#121---2026-08-25).
+Pour retrouver l'ensemble des détails, consultez le [Changelog](/fr/changelog/#121---2026-08-25).
diff --git a/packages/docs/src/content/blog/fr/2026-09-29-release-1.3.0.md b/packages/docs/src/content/blog/fr/2026-09-29-release-1.3.0.md
index 00eba536..b52d8575 100644
--- a/packages/docs/src/content/blog/fr/2026-09-29-release-1.3.0.md
+++ b/packages/docs/src/content/blog/fr/2026-09-29-release-1.3.0.md
@@ -24,4 +24,4 @@ En contrepartie, le compilateur devient plus rigoureux : une quantité malformé
- **Base d'ingrédients** : résolution insensible aux variantes de casse et tirets dans `ingredients.yaml` (ex. `Huile d'olive` associée à `huile-dolive`) pour fiabiliser la conversion en grammes et la nutrition. La commande `gram db lint` signale également les alias en conflit.
- **Modules** : les intermédiaires de modules importés conservent leur nom d'origine (`pressed`) au lieu d'un identifiant interne préfixé, et les erreurs de syntaxe du fichier courant ne sont plus attribuées à tort à un module tiers.
-Pour retrouver le détail complet des changements, consultez le [Changelog](/docs/changelog/#130---2026-09-29).
+Pour retrouver le détail complet des changements, consultez le [Changelog](/fr/changelog/#130---2026-09-29).
diff --git a/packages/docs/src/content/blog/fr/2026-11-13-release-1.4.0.md b/packages/docs/src/content/blog/fr/2026-11-13-release-1.4.0.md
index 5f17be80..8b7ecae1 100644
--- a/packages/docs/src/content/blog/fr/2026-11-13-release-1.4.0.md
+++ b/packages/docs/src/content/blog/fr/2026-11-13-release-1.4.0.md
@@ -102,6 +102,6 @@ Au-delà de ces gros changements, quelques petites améliorations pour se simpli
L'ordonnancement culinaire et la gestion fine du temps étant des sujets particulièrement complexes, il est tout à fait possible que des cas limites m'aient échappé malgré une batterie de tests intensifs. Si vous rencontrez le moindre comportement inattendu sur l'une de vos recettes, n'hésitez surtout pas à ouvrir un [ticket](https://git.gram-lang.org/gram-lang/gram/issues) sur le dépôt : vos retours me sont précieux pour perfectionner le moteur !
-Consultez le [Changelog complet](/docs/changelog/#140---2026-11-13) pour parcourir la liste détaillée de tous les changements de cette version.
+Consultez le [Changelog complet](/fr/changelog/#140---2026-11-13) pour parcourir la liste détaillée de tous les changements de cette version.
Bonne cuisine avec Gram 1.4.0 !
diff --git a/packages/docs/src/content/blog/fr/2026-11-14-release-1.4.1.md b/packages/docs/src/content/blog/fr/2026-11-14-release-1.4.1.md
index 406c90db..74fc3930 100644
--- a/packages/docs/src/content/blog/fr/2026-11-14-release-1.4.1.md
+++ b/packages/docs/src/content/blog/fr/2026-11-14-release-1.4.1.md
@@ -17,4 +17,4 @@ Cette version `v1.4.1` est un correctif rapide pour soigner la lecture des quant
- **Analyse des quantités et unités** : une unité qui contient déjà une quantité (`@tomates{1 boîte de 400 g}`) n'utilise plus le poids à la pièce de la base (auparavant, 1 boîte était comptée comme 1 tomate, ce qui faussait le total de la liste de courses ; sa masse est désormais laissée inconnue). De plus, les quantités à deux unités (`@farine{1 cup 5 tbsp}`) ou précédées de mots (`@farine{environ 200g}`) lèvent désormais un avertissement `INVALID_UNIT`.
- **Erreurs sur les en-têtes de section** : un en-tête de section mal écrit renvoie désormais une erreur claire plutôt qu'un message trompeur ou une perte silencieuse de la section, et un en-tête placé en toute fin de fichier sans saut de ligne final est bien reconnu.
-Pour retrouver l'ensemble des détails, consultez le [Changelog](/docs/changelog/#141---2026-11-14).
+Pour retrouver l'ensemble des détails, consultez le [Changelog](/fr/changelog/#141---2026-11-14).
diff --git a/packages/docs/src/content/blog/fr/2026-11-17-release-1.4.2.md b/packages/docs/src/content/blog/fr/2026-11-17-release-1.4.2.md
index a935de9f..6bc32e59 100644
--- a/packages/docs/src/content/blog/fr/2026-11-17-release-1.4.2.md
+++ b/packages/docs/src/content/blog/fr/2026-11-17-release-1.4.2.md
@@ -16,4 +16,4 @@ La version `v1.4.2` regroupe quelques petits correctifs repérés en travaillant
- **Préparations sur une seule ligne** : une parenthèse non fermée dans une note de préparation (`@farine{200g}(tamisée et`) n'avale plus la suite de la recette ; les préparations restent sur leur ligne et les parenthèses ouvertes ou sur plusieurs lignes restent du simple texte.
- **Formatage des températures** : une température écrite avec un espace et des zéros finaux (`^{160.0 °C}`) est désormais ramenée à `^{160°C}` en un seul passage du formateur.
-Pour retrouver l'ensemble des détails, consultez le [Changelog](/docs/changelog/#142---2026-11-17).
+Pour retrouver l'ensemble des détails, consultez le [Changelog](/fr/changelog/#142---2026-11-17).
diff --git a/packages/docs/src/content/docs/docs/changelog.md b/packages/docs/src/content/docs/docs/changelog.md
deleted file mode 100644
index 28580cb7..00000000
--- a/packages/docs/src/content/docs/docs/changelog.md
+++ /dev/null
@@ -1,818 +0,0 @@
----
-title: Changelog
-description: Every release of Gram — new features, fixes, and breaking changes.
-tableOfContents:
- minHeadingLevel: 2
- maxHeadingLevel: 2
----
-
-## [1.4.2](https://git.gram-lang.org/gram-lang/gram/compare/v.1.4.1...v.1.4.2) - 2026-11-17
-
-### Bug fixes and improvements
-- **CLI / Cook**: Fixed `gram cook` timers that never finished: a timer now rings when its time is up and shows as done, ready to be dismissed with any key.
-- **Format**: Fixed a temperature written with a space and trailing zeros, such as `^{160.0 °C}`, that took two runs of the formatter to become `^{160°C}`: it is now fixed in one.
-- **Parser**: Fixed an unclosed parenthesis in a preparation note (such as `@flour{200g}(sifted and`) swallowing the rest of the recipe up to the next `)`, including later steps and sections. Preparations now stay on one line, so an unclosed `(` or a note split across lines is kept as plain step text.
-- **Kitchen, Analyzer, Renderer & CLI**: Fixed lost, split, or skipped ingredient quantities across shopping lists, views, and diffs:
- - Shopping lists now merge different spellings of the same unit (`1 cup` and `2 cups`, `1 c.à.s` and `2 tbsp`) onto a single line, which also makes those ingredients work again with `gram scale --target`.
- - The HTML view now displays every quantity when an ingredient uses multiple units in the same section (`100 g + 1 cup`), instead of showing only the first.
- - `gram shop` no longer drops ingredients whose quantity cannot be computed (such as a percentage of a missing intermediate) and lists them as written.
- - `gram diff` now compares each unit separately when an ingredient appears in multiple units, and ignores changes that only affect how a unit is spelled.
-- **Renderer**: Fixed a missing space between two consecutive elements in a step, such as an ingredient followed by a timer or cookware (`@flour{500 g} ~{1h}` rendered as "flour (500 g)1 h"), across all views and `gram view`.
-
----
-
-## [1.4.1](https://git.gram-lang.org/gram-lang/gram/compare/v.1.4.0...v.1.4.1) - 2026-11-14
-
-### Bug fixes and improvements
-- **Parser**: Section headers with leftover text after an anchor or intermediate (such as a multi-word `->&glazed rhubarb` missing braces) now raise a clear error instead of blaming the timer or turning the section into a step, and a section header on the last line with no trailing newline is now recognized.
-- **Kitchen**: Split quantities across two units (`@flour{1 cup 5 tbsp}`) or prefixed with words (`@flour{about 200g}`) now raise an `INVALID_UNIT` warning instead of being misread or dropped when scaling (while unit-only descriptors like `{1 tin of 400 g}` or `{a pinch}` remain valid).
-- **Analyzer**: An ingredient whose unit holds a quantity of its own (`@tomatoes{1 tin of 400 g}`) no longer falls back to the database's per-piece weight (which counted one tin as one tomato); its mass is reported as unknown until Gram parses the inner quantity.
-- **Renderer**: Hovering a preparation (`&dough`) in HTML now highlights the entire section that makes it, `formatFraction` is now applied to ingredient quantities across recipe views, and ingredients written in `kg` or `mg` no longer repeat their standardized mass next to them.
-- **Renderer & CLI**: Totals where you buy or read an overview (shopping list, recipe/section weight, nutrition base, `gram shop`) convert metric amounts from 1000 g/ml up to `kg` or `l` (`3.9 kg` instead of `3900 g`), while steps, section ingredients, the run sheet, and `gram cook` keep grams for weighing (API helpers: `toLargerMetricUnit`, `isMetricMassUnit` in `@gram-lang/i18n`).
-- **Renderer & CLI**: Numbers follow the recipe's language (`lang` / project `language`, with decimal commas in French and no thousands separators in `gram shop`/`gram scale`), and spoons, cups, and imperial measures display as fractions (`1 3/4 cup`) across views and CLI commands while keeping machine attributes unchanged (API helpers: `formatNumber`, `localizeDecimals`, `toKitchenFraction` in `@gram-lang/i18n`).
-- **CLI / Cook**: Timer countdowns in `gram cook` now honor the unit written in the recipe (`~{1h}` counts down 1 hour and `~{30 s}` 30 seconds, instead of treating every timer as minutes).
-
----
-
-## [1.4.0](https://git.gram-lang.org/gram-lang/gram/compare/v.1.3.0...v.1.4.0) - 2026-11-13
-
-### New features
-- **Scheduler**: The planning engine now lives in its own package, `@gram-lang/scheduler`, which `@gram-lang/kitchen` uses. Compiled recipes keep every field published in 1.3.0, and everything `@gram-lang/kitchen` exported before is still exported from it:
- - `layout(tasks, { miseEnPlace, rests })` lays a recipe's list of tasks out on a timeline, for any mise en place plan and any choice of waits, and reports what cannot work (a time paradox, a track contention, a working day pushed before its 24 hours)
- - `project(recipes, context)` places a recipe on the calendar from a serving time, a time zone and when the cook is available; it stretches or shortens the waits written as a range so the cook's own work avoids the night, and reports what it could not fix
- - `runSheet(plan)` groups a plan into the days of the recipe, the visits to the kitchen (with the sections each one cooks and how early it could be done) and the waits that go on without the cook
- - `findServeTimes()` ranks the serving times that work over a range of days, with the reasons of the others, and `earliestServe()` gives the first one that works if the cook starts now
- - `parseAvailability()`, `parseMealTimes()` and the other readers of a project's settings (`08:00-22:00`, `fri=18:00-22:00`, `2026-10-09=none`) are shared by the CLI and the editor
-- **Kitchen**: Recipes now know when each part of the mise en place should happen:
- - New fields on the compiled recipe: `miseEnPlace` (how long each section's own preparation takes), `tasks` (the list of tasks and what each one waits for), `schedule` (a default timeline, with the preparation right before each section and the shortest rests), `days` (the working days of a timeline) and `generator` (the version that compiled it). A recipe with no step at all now has a preparation time of 0
- - Any other timeline comes from the same list, without compiling again: all the preparation at the start (`upfront`) or at the start of each working day (`perDay`), with the shortest, middle or longest of every rest written as a range (new `layout()`, from `@gram-lang/scheduler`)
- - A timer is exact (`~_{12h}` lasts exactly 12 hours); a rest written as a range (`~_{12-24h}`) is planned on its shortest figure unless you pick another, and an active timer written as a range (`~{20-25min}`) on its longest, so dinner is never late. Only an anchor in days (`~{-1d}`) opens a working day
- - New warnings: `DAY_OVERFLOW` flags a working day pushed before its 24 hours by a long rest, `DURATION_OUT_OF_RANGE` flags a duration over 1000 years (capped, instead of breaking the timeline with `0`, `Infinity` or `NaN`), and a `PASSIVE_OVERLAP_SAME_COOKWARE` notice flags two passive timers that overlap on the same cookware with no named track in common
- - An intermediate (`&dough`) is gathered in the section that uses it, and JSON compiled before 1.4.0 still gets a total and idle time in the renderer outputs, the editor hint and `gram diff`
-- **Run sheet**: A new run sheet shows what the scheduler computed, and replaces the Gantt chart as the view of the schedule:
- - `runSheetToText`, `runSheetToMarkdown`, `runSheetToHTML` and `runSheetToPrintHTML` write the plan: the days of the recipe, then for each visit to the kitchen a worksheet in three parts: the mise en place (what to take out, with the weights, the preparations made before and the bases in stock), the execution (the steps of each section, numbered as in the recipe) and what to do on leaving (what goes on afterwards, and when to come back)
- - Each visit says how early it could be done ("Possible from 18:00") or which wait holds it in place, and a wait the plan stretched or shortened is reported on its day
- - A recipe with no serving time is told in days before the service (D-2, D-1, day D); the printed plan has one day per page, with boxes to tick for the mise en place
- - The recipe views no longer carry schedule details: the run sheet is its own view. For developers, `describeRunSheet()` gives the same plan in words
-- **Renderer / Mise en place**: The mise en place can now be planned right before each section, all at the start, or at the start of each working day:
- - New `miseEnPlace` option (`"perSection"` by default, `"upfront"` or `"perDay"`) on the HTML, Markdown and print outputs, and a new `rests` option (`"shortest"` by default, `"balanced"` or `"longest"`) for the waits written as a range (`~_{12-24h}`)
- - The total time follows the chosen schedule, and its tooltip explains how it adds up (preparation, active time and waits), then points to the run sheet for the hour-by-hour plan
- - The recipe no longer shows the waiting time on its own, in any format: it is counted in the total time, and the run sheet is where the waits are planned
-- **CLI / Plan**: A new `gram plan ` command plans a recipe: the days of work, the visits to the kitchen, what to take out and which steps of each section to read:
- - `--serve "2026-10-11 13:00"` plans it backward from the time it is served; without it, the plan is told in days before the service (D-2, D-1, day D) and ends with the earliest time it could be ready if you start now
- - `--tz Europe/Paris` sets the time zone and `--available` says when you can cook (`08:00-22:00` for every day, `fri=18:00-22:00` for a day of the week, `2026-10-09=none` for a date). By default they come from the new `timezone` and `availability` settings of `.gram/config.yaml` (`gram config set availability 08:00-22:00`), and only then from this machine
- - A wait written as a range (`~_{8-16h}`) is made longer or shorter to keep your own work out of the hours you are not available, and the plan says which one and why; what cannot be fixed is listed at the top
- - `--find 2026-10-12/2026-10-15` lists the serving times that work between two moments, at your meal times (`--meal-times 12:30,20:00`, or the new `mealTimes` setting), best first, and why each of the others does not
- - `--format text|md|html|json` picks the output, and `--ics plan.ics` also writes a calendar file with an event and an alarm for every visit to the kitchen
- - `--mise-en-place`, `--rests`, `--scale` and `--stock` work as they do in `gram view`
-- **CLI / Run sheet**: `gram export` and `gram print` can now write the run sheet instead of the recipe:
- - `--view run-sheet` (the recipe remains the default) supports `--serve`, `--tz` and `--available`; without `--serve`, the plan is told in days before the service (`D-2`, `D-1`, `Day D`)
- - `gram export` writes `.run-sheet.md` (or `.html`, `.txt`) next to the recipe unless `--output` is given, and `gram print` puts one day per page
- - Each view offers only the formats it has: asking the recipe for `--format text` says which formats it offers instead of writing something else
-- **CLI / View & Export**: `gram view`, `gram export` and `gram print` accept a new `--mise-en-place ` option, to see the recipe with the mise en place planned right before each section (the default), all at the start, or at the start of each working day:
- - A new `--rests ` option does the same for a wait written as a range (`~_{12-24h}`): the shortest by default, the middle or the longest, in the total time as in the length shown on the step itself
- - `gram cook` accepts both options too, for the total time it shows and the length of the timer of such a wait
-- **VS Code / Run sheet**: The editor shows the run sheet of the recipe in place of the Gantt chart:
- - A new `Gram: Run Sheet` command opens it next to the recipe, in days before the service (D-2, D-1, day D); it follows the `gram.miseEnPlace`, `gram.rests` and `gram.comments` settings
- - A **Served at** field at the top of the run sheet puts it on the calendar, with dates and clock times, in your project's time zone and hours (`timezone` and `availability` in `.gram/config.yaml`); **When to serve?** proposes the times that work over the next seven days, the earliest first, and says why the others do not. The serving time is kept per recipe while VS Code is open, never saved
- - A **Scale and stock** section at the top of the recipe and of the run sheet adjusts this sitting, as `--scale`, `--stock` and `--bakers-reference` do in the CLI: a scale in percent or a target quantity of one ingredient, the baker's reference, and the imports already made. These choices are shared by every panel of the recipe and kept while VS Code is open, never saved
-- **Analyzer / Diff**: `gram diff` now compares the total and idle times of the default schedule, with the mise en place right before each section, so the times it reports match what `gram view` shows by default; the active time is the schedule's too, so changing the range of a cooking time (`~{20-25min}`, planned on its longest figure) shows in the comparison, and the preparation time is compared as before
-- **CLI / Settings**: Every setting of a recipe now has a flag named after it, on every command where it changes something, with the same values and default as in the editor and the playground:
- - `--step-quantities show|hide` and `--nutrition-basis` are the new names of `--no-step-qty` and `--nutrition`, which still work
- - What the analyzer computes can now be turned off on `gram view`, `gram print`, `gram export`, `gram cook`, `gram build`, `gram watch` and `gram shop`: `--no-mass-standardization`, `--no-yield-calculation`, `--no-nutrition-estimation` and `--no-bakers-math`; everything stays on by default
- - An unknown value stops the command and lists the values it accepts, under the name you typed
-- **VS Code / Settings**: The editor now offers every setting of a recipe, with the same values and default as the command line and the playground:
- - `gram.miseEnPlace` (`perSection`, the default, `upfront` or `perDay`) chooses when the mise en place is planned, and `gram.rests` (`shortest`, the default, `balanced` or `longest`) how long a rest written as a range (`~_{12-24h}`) lasts; the preview, the run sheet and the total time hint next to the recipe title all follow them
- - `gram.stepQuantities` writes the quantities in the text of the steps, or leaves them out, `gram.nutritionBasis` pins the basis of the nutrition (`auto` is the default) and `gram.bakersMathOnly` shows only the baker's percentages
- - `gram.bakersMath`, `gram.massStandardization`, `gram.yieldCalculation` and `gram.nutritionEstimation` choose what is computed from the ingredient database; all are on by default
- - Changing a `gram.*` setting now reaches the language server straight away, without reloading the window (this also applies to `gram.ingredientDatabase.path`), updates every open recipe, and a recipe already open when the editor starts follows it too
-- **Renderer / Settings**: The renderer now describes, in one place, every setting a reader can choose about a recipe, so that tools built on Gram can offer the same choices as the command line, the editor and the playground:
- - `VIEW_SETTINGS` lists what the views show (mise en place, rests, comments, nutrition basis, baker's percentages only, quantities in the steps) and `RECIPE_SETTINGS` what the analyzer computes (baker's percentages, weights in grams, preparation losses, nutrition), each with its values, its default and a short description
- - `parseViewSettings()` and `parseRecipeSettings()` read them from any configuration object, and fall back on the default for anything missing or unknown, so a mistyped setting never blanks a view
- - `viewSettingsToRendererOptions()` and `recipeSettingsToAnalyzerOptions()` turn them into the options of the renderer and of the analyzer
-- **Comments**: You can now choose whether the comments of a recipe (`// like this`) are shown or left out, in every view:
- - The renderer takes a new `comments: "show" | "hide"` option (default `"show"`) that the recipe views, the print and the run sheet follow; hiding leaves no empty notes section behind
- - `gram export`, `gram print` and `gram plan` accept `--comments `, and the editor has a new `gram.comments` setting for the preview and the run sheet; the playground gets a **Display** section with a switch
- - In the run sheet, a note alone on a line sits under its step in small muted text, and one at the end of a line stays in the sentence, between parentheses
-- **Renderer / HTML recipe**: The HTML recipe has a new design, and the printed recipe follows it:
- - A better organized header (title, description, author, source, tags), a summary bar with the portions, the yield, the mass and the energy, and a bar for the times
- - Tooltips that stay readable wherever they open in the window, with more practical information: quantity, weight and how it was estimated, preparation, what a part is taken from
- - A more interactive recipe: hover an ingredient or a piece of cookware to see the steps that use it, tick the steps off, and follow what a step makes to the steps that use it
- - The printed recipe (`gram print`, `gram export --format html`) now looks like the one on screen, in black and white, with boxes to tick
- - Each view keeps its own styles (`@gram-lang/renderer/gram.css` is imported as before and relies on the CSS `@scope` rule, supported by every current browser), so one view can no longer change another
-- **Renderer / Nutrition**: The nutrition of the HTML recipe is now a compact table, like a European food label, and easy to reach from the top of the recipe:
- - One column per basis, side by side (per 100 g, then per portion), with the energy as the first row in kJ and kcal and the whole recipe underneath; no more switching between bases
- - A `%RI` column gives each nutrient's share of the reference intake of an average adult (8,400 kJ / 2,000 kcal), per portion
- - The hero bar shows the energy (`493 kcal per portion`, or per 100 g when the recipe declares no portions); clicking it jumps to the table
- - Sodium is now shown as salt, in grams (sodium × 2.5), and calories as energy, in every view and every language
- - With the `nutritionBasis` setting set to one basis, the table and the hero bar show that basis alone
- - The Markdown and plain text recipes show the same table by default, instead of the values per portion only
-- **Renderer / Quantities**: Quantities read the same in every format, on screen and on paper:
- - The quantity is written after its ingredient in the text of each step in the HTML views and the print, as Markdown already did, so a printed recipe shows them too, and the weight in grams is written next to the quantity as written in the recipe whenever it tells something more (`flour (250 ml, ~148 g)`, but `sugar (100 g)`), in Markdown as well
- - Hiding the quantities of the steps (`hideStepQty`) now works in the HTML views and the print, not only in Markdown
-- **Renderer / Durations**: Durations read more naturally, in the reader's language:
- - A duration of a day or more is written in days and hours (a recipe of 25 hours shows `1d 1h`, `1j 1h` in French), and minutes are written `min` (`1h 30min`), in every view; the total time tooltip ends on the exact total (`= 25h 6min`)
- - `formatDuration()` takes the language as an optional second argument and `{ days: false }` as a third, and a new `durationUnits` entry of `@gram-lang/i18n` holds the units of each language
-- **Renderer / Text**: The recipe can now be written as plain text, for a terminal or a plain file:
- - A box with the title, the servings and the times, then the shopping list, the cookware, each section with its numbered steps, the notes and the nutrition, in the reader's language and following the same settings as the other formats
- - `gram export --format text` writes it next to the recipe (`brioche.txt`), and the playground offers it as a format of the recipe; for developers, `toText()` and the `text` format of the recipe view
- - The Markdown, HTML and print versions of the recipe now speak the reader's language too: "Instructions", "Ingredients", "or", "optional" and the other words that were always in English follow the language setting (the English output is unchanged)
-- **CLI / View**: `gram view` now shows the recipe the way every other view of Gram does:
- - The headings, the labels and the nutrition follow the language of your project, instead of always being English
- - The steps repeat the quantity next to each ingredient (`flour (200 g)`), comments are shown as notes (`--comments hide` leaves them out), and a wait written as a range (`8-16 h`) is shown as written
- - The colors follow your terminal: plain text when the output goes to a file or another command, `NO_COLOR` respected, `FORCE_COLOR=1` to keep them in `gram view | less -R`
-- **Renderer / Views**: A new `prepareViews()` gathers everything a view of a recipe is built from, worked out once and only when a view asks for it (the timeline, the run sheet, the serving time search):
- - `views` lists the views of a recipe (the recipe, the run sheet) with the formats each one offers, the settings it follows and what it needs worked out, and `render(view, input, format)` writes one of them; `toHTML`, `runSheetToHTML` and the other functions stay as they are
- - `inspectors` lists the looks at the pipeline (the composed AST as an S-expression, the analyzed recipe as JSON or as a folding tree) and `outputs` lists the views and the inspectors together, for an interface that offers both
- - `describeError()` picks the error to show when a recipe stops compiling and gives its code, message, file, position and a title in the recipe's language, so every interface reports it the same way, and `suggestServeTimes()` puts the serving time search in words
-- **Language Server / Views**: Editors can now request only active views through a dedicated views protocol:
- - A client declaring `initializationOptions.views` specifies open recipe outputs via `gram/setOpenViews` and receives targeted updates in `gram/viewUpdated`: recipe and run sheet views as HTML, or AST and compiled JSON as text or interactive trees. Closed outputs are no longer evaluated
- - When a recipe encounters compilation errors, open outputs are paused rather than replaced by an error card: editors retain their last valid rendered view, while localized error summaries are provided alongside standard LSP diagnostics
- - `gram/setSession` configures transient session parameters for a recipe: target serving time (projecting the run sheet onto the calendar in the project's `timezone` and within its `availability`), scaling factor, pre-prepared imports in stock, and baker's percentage reference. Sessions are held per document in memory, while compiler diagnostics continue evaluating the recipe as written
- - The outputs a client can open are listed in the `initialize` result, each with its name in the editor's language and what it reads from the plan, so an editor shows a new view of Gram without an update of its own, and offers a serving time for any view laid out in time
- - A `gram/serveTimes` request gives the serving times to propose for a recipe, in words: those that work over the next seven days at the project's `mealTimes`, why the others do not, and the earliest one
- - A `gram/sessionChoices` request gives what session controls offer for a recipe as written: its ingredients, its `@use` imports (nested ones included), whether baker's math is on, and why the session's scale could not be applied
- - Editing `.gram/config.yaml` (its `timezone`, `availability` or `paths`) now updates the open recipes and their views right away, instead of at their next edit
-- **VS Code / Views**: Unified view panels and new developer inspectors:
- - A new `Gram: Show View...` command lists all available views and opens the selected one: recipe preview, run sheet, and developer inspectors (composed AST and compiled JSON, as source text or an interactive tree). `Gram: Live Preview`, `Gram: Run Sheet` and `Gram: Macros` remain available as direct shortcuts
- - Open panels follow the active `.gram` editor tab, refresh when brought back into focus, and the language server computes only the panels that are visible
- - When a recipe contains errors, panels keep their last valid rendering, dimmed beneath a banner with a button that jumps to the error, instead of going blank
- - The live preview always shows the nutrition summary, as the playground does: the **Macros** button is gone, and `Gram: Macros` scrolls to the table
- - The **Scale and stock** section has a **Portions** field, shown when the recipe states its portions, that scales the recipe when you change it
-- **Playground**: The views of a recipe are now in front, and the studio offers every setting:
- - The recipe and the run sheet are tabs above the output, always in sight. The inspectors (the AST, the JSON, the JSON tree) sit behind one quieter Inspect tab on the right, and turn into a dropdown when the tabs no longer fit, on a phone or in a narrow output column
- - A slim bar above the view holds what changes with it, starting with a format menu that shows the view as HTML, Markdown or text (the run sheet can now be read and copied in Markdown and in plain text too), and a Print button opens the view in its print layout, to print it or save it as a PDF
- - Every setting of a recipe is now offered, including the quantities in the steps and the nutrition basis, and remembered in the browser (except the serving time, which belongs to the visit); yield management and baker's percentages are on by default, as on the command line and in the editor
- - The "Schedule & Service" settings say what they change (mostly the run sheet, and in the recipe only the total and idle times), and the "Portions & Scale" settings have a Portions field, opened by a click on the portions of the recipe, which replaces the small stepper the recipe used to show
-- **I18n**: A new `fillTemplate(template, values)` fills the `{name}` placeholders of a dictionary string (`"Serve at {time}"` becomes `"Serve at 20:00"`), leaving a name with no value as written.
-
-### Bug fixes and improvements
-- **Kitchen**: Scaling an already compiled recipe (`applyScale`) now also scales the quantity a step quotes for an intermediate (`Use &dough{100g}`), so it gives the same result as compiling the recipe with that scale factor
-- **CLI / Stock**: `gram view`, `gram cook`, `gram check`, `gram scale`, `gram export` and `gram print` now warn on stderr when a `--stock` entry matches none of the recipe's `@use`, as `gram build` and `gram shop` already did, instead of ignoring it silently — most often a relative path typed from another directory, since it is resolved from the current directory
-- **Language Server / Diagnostics**: Fixed diagnostics and previews that could go back to an older version of a recipe until the next edit, when it was edited quickly while its imports were being read.
-- **CLI**: Every command now stops on an unexpected error the same way: a one-line message instead of a stack trace, which `--verbose` still shows.
-- **Renderer / Markdown**: The Markdown recipe is tidier: the headings and alerts have no more emoji prefixes, a blank line separates the notes from the nutrition, and temperatures show a thermometer (`🌡️ 180 °C`, `🌡️ fridge`) instead of a flame.
-- **Playground**: The Recipe Studio drawer is fully translated, in English and French: the scheduling settings, the summary of each section, the explanation of every setting, the physical analysis and the list of serving times that do not work, and the serving time field is called "Serving time" ("Heure de service" in French).
-
-#### Deprecated
-- Renderer: the Gantt chart (`toGanttHTML`, `attachGanttInteractivity`, `formatTime`, `formatAxisTime`, the `Gantt*` types), `@gram-lang/renderer/gantt.css` and the `gantt_*` strings of the playground, removed in 2.0.0. No Gram surface draws it any more. Use the run sheet (`runSheetToHTML`), or build a view of your own from the data of `runSheet()`; `toGanttHTML` warns once on the console. The Deprecated features page shows how: https://gram-lang.org/docs/how-to/deprecations/
-- Kitchen: `steps[].timings` and `steps[].backgroundTasks`, removed in 2.0.0. Read the `step` and `passive` blocks of `schedule.blocks` instead
-- Kitchen: `metrics.totalTime` and `metrics.idleTime`, removed in 2.0.0. Read `schedule.totalTime` and `schedule.idleTime` instead (the old `metrics.totalTime` is the total with every preparation first: `layout(tasks, { miseEnPlace: "upfront" })` gives the same number unless the recipe has intermediates, which it prepares once they exist)
-- Kitchen: `metrics.activeTime`, removed in 2.0.0. Read `schedule.activeTime` instead (a timer written as a range counts as its average in `metrics.activeTime`, and as its longest figure in the schedule)
-- Kitchen: `metrics.activeBreakdown`, `metrics.prepBreakdown` and `metrics.totalBreakdown`, removed in 2.0.0. Use `miseEnPlace` and `schedule` instead
-- Kitchen: the `breakdown` returned by `calculatePreparationTime`, removed in 2.0.0 (the function then returns `{ total }`, so code reading `total` is unaffected). Read the `items` of `computeMiseEnPlace()` instead
-- Kitchen: reading the old `metrics` fields when compiled JSON has no `tasks` (JSON compiled before 1.4.0), removed in 2.0.0. Compile your recipes again with 1.4.0 or later
-- Everything above keeps working, with the same values, until 2.0.0. The Deprecated features page shows what to change for each of them: https://gram-lang.org/docs/how-to/deprecations/
-- VS Code: the `Gram: Gantt Chart` command, removed in 2.0.0. It still works and opens the run sheet, with a notice once. Use `Gram: Run Sheet`
-- Language server: the `gram/ganttUpdated` notification, removed in 2.0.0. It is still sent to clients that do not declare the views protocol, and the VS Code extension no longer reads it. Read `gram/viewUpdated` with the `runSheet` output, or the data of the compiled recipe
-- Renderer: the `interactiveScaling` option of `toHTML()`, and the `decreasePortions`, `increasePortions` and `editPortions` strings of `@gram-lang/i18n`, removed in 2.0.0. The portions stepper they draw only works where the page around the recipe handles its buttons, so it did nothing in an exported file or an editor preview. Scale the recipe before rendering it instead (`applyScale()` of `@gram-lang/kitchen`): the recipe then shows its portions and its scale factor by itself. The option keeps working until 2.0.0
-- Renderer: the `interactiveNutrition` option no longer has any effect, since every basis is shown at once, and is removed in 2.0.0. Remove it from your calls
-- Language Server: the `gram/previewUpdated` notification, sent to clients that do not declare the views protocol, is deprecated and will be removed in 2.0.0. Adopt `gram/viewUpdated` with the `recipe` output instead (see the deprecations page of the docs)
-- `@gram-lang/i18n`: the labels of the old view selector (`playground.viewLabel`, and `playground.views.json`, `ast`, `jsonTree`, `markdown`, `preview` and `runSheet`) are removed in 2.0.0. Use `renderer.outputs` (by output id), `renderer.formats` and `playground.output.views` / `inspect`
-
----
-
-## [1.3.0](https://git.gram-lang.org/gram-lang/gram/compare/v.1.2.1...v.1.3.0) - 2026-09-29
-
-### New features
-- **CLI / Requirements**: The CLI now requires Node.js 22 or later (Bun keeps working as before).
-- **Parser & Kitchen**: Units written with abbreviation dots are now understood:
- - `{1/2 c.à.s}`, `{1 c. à c.}`, `{2 fl. oz.}` and similar spellings now parse and are recognized as the same unit as `càs`, `càc` or `fl oz`
-
-### Bug fixes and improvements
-- **CLI / View**: Fixed several display issues in `gram view` and cook mode:
- - Timers now show their real unit (`~{1h}` is shown as `~1h`, `~{20s}` as `~20s`) instead of always "min".
- - Recipe durations are rounded and readable (`1h 5m`, `25m 5s`) instead of raw decimals like `1h4.5`.
- - The resting time now appears in the recipe header.
- - Common fractions such as `1/4 tsp` stay fractions in the shopping list instead of becoming `0.3`.
-- **Modules**: Fixed a misleading error message: a syntax error in the recipe you are editing was reported as coming from an "imported module", even when the recipe imports nothing. It now shows the plain syntax error, and the "imported module" wording is kept only for errors that really are in an imported file.
-- **Analyzer**: Fixed ingredients being ignored for density conversion and nutrition when their entry in `ingredients.yaml` isn't spelled exactly like the recipe name, such as "Huile d'olive" stored under `huile-dolive`:
- - Volumes like `@Huile d'olive{10ml}` are now converted to grams and no longer trigger "ingredient missing nutrition data"
- - `gram db lint` now reports ingredients whose names or aliases would be confused with each other
-- **Modules & Rendering**: Intermediates declared inside imported modules now show the name you wrote (for example `pressed`) instead of an internal path like `tofu$marinated$pressed`, in `gram view`, HTML and Markdown output.
-
-#### Breaking
-- **CLI**: Node.js 20 reached end of life in April 2026 and is no longer supported: upgrade to Node.js 22+ before updating the CLI
-
-#### Fixed
-- **Parser**: A quantity in braces that can't be read (for example `@salt{1 g/l}` or a missing `}`) is now reported as an error pointing at the brace, instead of being ignored and merging the ingredient with others that share the same first word
-
----
-
-## [1.2.1](https://git.gram-lang.org/gram-lang/gram/compare/v.1.2.0...v.1.2.1) - 2026-08-25
-
-### Bug fixes and improvements
-- **Renderer**: Switched icons to embedded inline SVGs, removing external CDN dependencies (`unpkg.com`) and enabling full offline previews in VS Code.
-- **CLI / Export**: Fixed missing ingredient quantities in `gram print` and HTML exports (`gram export --format html`).
-- **Documentation & Playground**: Improved accessibility and keyboard navigation across the website and interactive playground (ARIA roles, tab navigation, `prefers-reduced-motion`).
-
----
-
-## [1.2.0](https://git.gram-lang.org/gram-lang/gram/compare/v.1.1.0...v.1.2.0) - 2026-08-22
-
-### New features
-- **Parser & Kitchen**: Introduced modular recipes and multi-file imports via the `@use` directive:
- - Import external base recipes directly into a recipe using `@use "./bases/shortcrust-pastry.gram" as &shortcrust`.
- - Imported steps seamlessly interleave into the global ALAP scheduling timeline, preserving resting times and dependencies.
- - Automatically scales imported base quantities when referenced with specific yields (e.g. `&shortcrust{250g}` halves a 500 g base recipe).
- - Supports destructured multi-yield imports (e.g. `@use "./bases/tart-elements.gram" as { &crust, &frangipane }`) scaling each component independently.
- - Supports multi-word bindings using bracket notation (e.g. `@use "..." as &pastry dough{}`).
- - Resolves project-root paths (`@/bases/...`) and custom path aliases defined under `paths:` in `.gram/config.yaml`.
- - Added `--stock` CLI flag to treat pre-made base imports as stock items (zero timeline overhead, single shopping list line, retaining full nutritional totals).
- - Supports retro-planning timeline offsets directly on `@use` import lines (e.g. `@use "./bases/levain-starter.gram" as &starter ~{-2d}`).
- - Spliced sections in HTML, Markdown, and print outputs display origin badges crediting their source module.
- - `gram diff` and `gram watch` now track import additions, removals, rebinding, rescaling, and dependency file changes.
- - Language Server and VS Code extension support live dependency composition, Go to Definition into base files, path auto-completion, and quick-fix diagnostics for missing exports.
- - Exported `createMemoryHost` from `@gram-lang/modules` for browser and in-memory module graph resolution.
- - Corrected whole-recipe mass and nutrition totals to accurately include spliced intermediate (`-> &`) masses.
- - Normalized rescaled ingredient quantities to one decimal place for display consistency across all outputs.
-- **CLI**: Added automatic update checking and a new `gram upgrade` command:
- - gram now checks npm in the background and prints a short "update available" notice after a command finishes (skipped in CI and non-interactive runs).
- - Added `gram upgrade` to check for and install the latest version on demand — it always performs a fresh check and asks for confirmation before running the install.
- - Added an `updateCheck: false` setting in `config.yaml` (or the `GRAM_NO_UPDATE_CHECK` environment variable for a single run) to opt out of the passive notice.
-- **Parser & Kitchen**: Composite ingredients written with a short, generic child name (like `@juice<@lemon`) are now protected against a silent ingredient-database mix-up:
- - The compiler now warns when the same short composite name (e.g. "juice") is drawn from two different parents within one recipe (lemon in one step, orange in another) — until now this went unnoticed and the two usages silently shared one entry in the ingredient database.
- - `gram db sync` reports the same conflict across your whole recipe collection, so two unrelated recipes that happen to use the same generic composite name don't overwrite each other's nutrition and density data.
- - The AI recipe importer (`gram import`) now writes composite ingredients with their full name (e.g. "lemon juice") instead of a short generic one, so newly imported recipes don't create this conflict in the first place.
-
-### Bug fixes and improvements
-- **Parser & Kitchen**: Fixed `gram scale` (and any other caller that re-scales an already-compiled recipe) silently leaving alternative ingredient groups (`@butter|@margarine`) and composite parent-draw quantities (`@egg-yolks{2}<@eggs{3}`) unscaled.
-- **Parser & Kitchen**: Improved clarity and tone for diagnostic messages and revised severity tiers:
- - Reworded compiler and module diagnostic messages to provide actionable guidance and avoid alarmist phrasing for standard culinary approximations.
- - Reclassified non-critical notices (`MISSING_MACROS`, `UNKNOWN_MASS`, `TRACK_CONTENTION`) to `info` severity so they do not clutter warning counters.
- - Enhanced Playground and editor diagnostic styling with dedicated color schemes for errors (red), warnings (amber), and notices (blue).
-- **Language Server**: Normalized error states and unified diagnostic handling across Playground and VSCode extensions:
- - Unified Playground diagnostics into a centralized full-width debug console with filter pills and interactive jump-to-location navigation.
- - Added mobile segmented tab navigation (`[Editor]` / `[Preview]`) and responsive single-row toolbar layout for mobile viewports.
- - Resolved nutrition diagnostics disconnection in the analyzer by merging physical and nutritional warnings into primary compiler warnings — the editor only turns these into squiggles when they carry a real position, so an incomplete-nutrition notice no longer misplaces itself at the top of the file.
- - Markdown and print HTML exports keep their explicit "incomplete data" note next to the affected nutrition figures; the interactive HTML preview conveys the same gap through its coverage badge instead.
- - A scale-target that fails to resolve (e.g. an unconvertible unit) now correctly turns the Playground's status badge and error panel red instead of being undersold as a warning, without marking the file tab as if the recipe itself had a syntax error.
- - The Playground diagnostics console no longer gets stuck filtered on a category that just emptied out (e.g. after fixing the warning it was showing).
- - Resolved silent compilation failures in the Language Server by capturing pipeline exceptions and pushing actionable error notifications to webviews — including when the thrown error carries no message, which previously slipped past the check silently.
- - A compile-time failure (parses fine, but `compile()`/`analyze()` throws) now also surfaces as an editor diagnostic, not only as a webview notification, so it's still visible with the preview panel closed.
- - Added bidirectional webview messaging in the VSCode extension to jump directly to error offsets in the active editor.
- - Localized the Playground diagnostics console's collapse/expand tooltip, previously hardcoded in French regardless of site locale.
-- **Parser & Kitchen**: Fixed a false circular reference warning when multiple sections used percentage-of formulas on same-named ingredients by scoping cycle detection per section.
-
----
-
-## [1.1.0](https://git.gram-lang.org/gram-lang/gram/compare/v.1.0.1...v.1.1.0) - 2026-08-16
-
-### New features
-- **CLI / Import**: Support importing recipes directly from **YouTube videos and Shorts** via `gram import`:
- - Uses Gemini multimodal video understanding to analyze cooking videos and generate structured `.gram` recipes.
- - Automatically populates `title:`, `author:` (channel name), and `source:` metadata from YouTube.
- - Automatically normalizes YouTube Shorts URLs to standard video formats.
- - Added `--max-duration` (default 20 minutes) to prevent accidental token overconsumption on long videos.
- - Displays upfront video duration and estimated token cost when `YOUTUBE_API_KEY` is configured.
-- **CLI / AI**: Explicit AI model and provider selection for all AI commands (`gram import`, `gram db lint`, `gram db enrich`):
- - Added `--model`, `--provider`, and `--pick-model` CLI flags to inspect or override the active model per run without altering persistent config.
- - The CLI now displays the active AI provider, model, and configuration source before execution.
- - Isolated provider API keys so credentials configured for a specific provider are never leaked or reused when switching providers.
- - Fixed `gram import` hanging in non-interactive environments when `--output` was used without `--yes`.
-- **CLI / Database**: Added physical coherence and sanity checks across `gram db validate` and `gram db enrich`:
- - `gram db validate` checks calorie consistency against Atwater estimates (4 kcal/g protein/carbs, 9 kcal/g fat, 7 kcal/g alcohol).
- - `gram db validate` checks sub-macro coherence (sugars exceeding total carbs, fat sub-types exceeding total fat).
- - `gram db validate` enforces category-based density sanity ranges and unit weight bounds.
- - `gram db enrich` constrains AI estimates within physical limits and prompts self-verification of Atwater consistency.
- - `gram db enrich` passes known ingredient categories to the AI to reduce guesswork.
-- **CLI / Database**: `gram db enrich` now walks you through an interactive review before writing AI estimates to `ingredients.yaml`:
- - Preview, accept, edit, or skip AI-proposed density, unit weight, and nutrition values per ingredient.
- - Unedited AI values are tagged with `# [LLM]` in `ingredients.yaml` to track provenance.
- - Added `--report` (`-r`) to preview needed database enrichments without writing changes, matching `gram db lint --report` (replaces `--dry-run` / `-n`).
- - Added `--yes` (`-y`) to accept all estimates automatically for non-interactive scripting.
- - Automatically falls back to accepting values with a warning when executed in non-interactive (non-TTY) environments.
-- **CLI / Import**: Added integrity guardrails and diagnostic reporting to `gram import`:
- - Validates compiled AST tokens against AI output to detect lost ingredients or truncated steps, aborting instead of writing corrupted files (overridable with `--force`).
- - Reports uncorrected AI generation errors with actionable diagnostics.
- - Identifies imported ingredients missing quantities and lists their line numbers for easy manual completion.
- - Reports unknown database ingredients and unweighed units when an ingredient database is present.
- - Prevented hallucinated placeholder metadata in `author:` and `source:` fields.
- - Redirected progress indicators to `stderr` so stdout redirection (`gram import ... > recipe.gram`) produces clean recipe files.
-- **Nutrition & Rendering**: Support flexible nutrition serving bases (per portion and per 100 g) alongside whole-recipe totals:
- - Declaring `portions:` in recipe frontmatter now calculates per-portion nutrition and keeps values constant when scaling recipes.
- - Added a standardized `per-100g` nutrition basis calculated from raw assembled recipe mass.
- - Added the `--nutrition ` option to `gram view`, `gram export`, and `gram print`.
- - Added nutrition basis toggles in the web playground and VS Code live preview.
- - Localized all nutrient names and table headers across supported languages (French and English).
-
-### Bug fixes and improvements
-- **Parser & Kitchen**: Fixed an issue where multi-word composite ingredients marked with `&` (e.g. `@juice{1}<@&unwaxed lemon{}`) were duplicated in the shopping list instead of being combined into a single purchase item.
-- **Analyzer & Language Server**: Improved nutrient calculation completeness and editor hover precision:
- - Saturated, monounsaturated, polyunsaturated fats, and alcohol are now included in recipe nutrition totals instead of being omitted.
- - `gram db enrich` can now propose monounsaturated and polyunsaturated fat values during ingredient enrichment.
- - Fixed the editor hover tooltip incorrectly displaying sodium in grams instead of milligrams.
-- **Analyzer**: Fixed recipe total mass and section weights to include ingredients defined as relative percentages of another ingredient (e.g. `@water{60% @&flour}`).
-
----
-
-## [1.0.1](https://git.gram-lang.org/gram-lang/gram/compare/v.1.0.0...v.1.0.1) - 2026-08-07
-
-### Bug fixes and improvements
-- Fixed the `--help` description of `gram check` to clarify that it also checks database completeness by default, unless `--skip-db` is used.
-- Reduced the AI provider costs of running `gram import`:
- - Prompt caching is now enabled, so retries reuse the cached prompt instead of paying full price.
- - The command now sends a minimized recipe payload instead of the full raw webpage data.
- - The self-correction loop no longer spends retries on informational warnings (like missing database ingredients).
- - Formatting is now handled locally instead of spending an AI call to fix it.
-- Improved the quality and correctness of recipes generated by `gram import`:
- - Fixed an issue where English words would leak into non-English recipes.
- - Fixed grammatical errors (dropped articles) around ingredient and cookware references in non-English output.
- - Descriptive adjectives (like "boneless skinless") are now correctly extracted as preparation steps instead of creating unwieldy ingredient names.
- - Corrected the generated syntax for multi-word cookware references.
- - Fixed an issue where the target language was sometimes incorrectly inferred.
- - Improved decoding of accented characters and punctuation from the source recipe.
-- Improved the CLI guidance printed after running `gram import`:
- - It now correctly points to `gram db sync` as the recommended next step.
- - It accurately reports any remaining compiler warnings (e.g., missing ingredients) instead of silently discarding them.
-- Fixed `gram init` to ensure the interactive AI provider setup accurately offers the currently recommended models (e.g., llama4).
-
----
-
-## [1.0.0](https://git.gram-lang.org/gram-lang/gram/compare/v.1.0.0-beta.5...v.1.0.0) - 2026-08-06
-
-### Breaking changes
-- Gram v1.0.0 Official Launch! 🎉 This milestone release marks the official 1.0.0 launch of Gram:
- - **Brand-New Website & Documentation**: Rebuilt using Astro and Starlight with refined guides and an integrated blog.
- - **Refreshed Visual Identity**: Brand-new logo.
- - **Infrastructure & Stability**: Monorepo stability, test coverage, and migration to new Forgejo (`git.gram-lang.org`) mirrored to GitHub and Codeberg.
-
----
-
-## [1.0.0-beta.5] - 7/26/2026
-
-### New features
-- Introduce `@gram-lang/format`, a standalone canonical code formatting engine for `.gram` files with 13 deterministic rules, used by the CLI and Language Server.
-- `convertUnit`, `standardizeMass`, and `analyze()` now accept an optional `lang` parameter/option, so unit names are resolved against the recipe's own language when there's an ambiguity between languages, instead of always falling back to a single global guess. `UNIT_CONVERSIONS` (the mass/volume conversion table) has moved to `@gram-lang/i18n` — if you imported it from `@gram-lang/analyzer`, import it from `@gram-lang/i18n` instead.
-- The `language:` setting in `.gram/config.yaml` now also affects unit conversion and the shopping list's category order (e.g. a database with French category names like "Légumes" now sorts correctly when `language: "fr"` is set) — previously it only affected AI-generated content.
-- Fixed two bugs in the recipe formatter:
- - A `#cookware` reference at the very start of a line (e.g. `#pan(20cm)`) was incorrectly treated as a malformed section header and got a space inserted after the `#`, turning it into plain text and silently breaking the recipe.
- - Blank-line spacing before a `## Section` header was being promoted to two blank lines instead of Gram's actual convention of exactly one blank line between every step and/or section. The formatter now consistently enforces a single blank line everywhere, including before section headers. As a result, the `sectionSpacing` counter (previously reported alongside `consecutiveBlankLines`) has been removed — this kind of spacing fix is now reported as part of `consecutiveBlankLines`.
-- `@gram-lang/i18n` now also owns the numeric conversion factors for units (grams, milliliters, etc.) and time (minutes, hours, etc.), exported as `UNIT_CONVERSIONS` and `TIME_TO_MINUTES` — previously split across `@gram-lang/analyzer` and hardcoded inside `@gram-lang/kitchen`. No behavior changes; this just puts everything about units and time in one place.
-- Food categories now have stable, language-independent keys (`CATEGORY_KEYS`, `CategoryKey`, `getCategoryLabels`, `isCategoryKey`) instead of only translated display labels. This means `gram db enrich` now stores a category identity that stays consistent regardless of your configured language, rather than a French or English label baked in at write time.
-- The Markdown, HTML, and printable/PDF outputs now show the same information consistently:
- - Markdown recipes now include a nutrition summary (calories, carbs, protein, fat, etc.), which was previously only shown in HTML and print.
- - Recipe comments now appear as numbered footnotes in Markdown and print output too, instead of only in HTML.
- - When a shopping-list ingredient's purchasing weight differs from what actually goes in the bowl (e.g. "1 avocado" vs. its usable flesh), Markdown and print now show the extra "gross weight" note, matching HTML.
- - When the same ingredient appears in incompatible units that can't be combined (e.g. "100g" and "1 cup" with no density available), Markdown and print now group them together with a "mixed units" warning, matching HTML.
-- `gram format` and the editor's "format on save" now share the exact same formatting rules, so a recipe formatted by one always looks identical when opened in the other. This adds a few new automatic cleanups to both: normalizing spacing around composite ingredients (`@a{} < @b{}` → `@a{}<@b{}`), tidying up intermediate-result declarations (`->&name {}` → `->&name{}`), making sure section headers have exactly one space after the `#`s, and converting tabs to spaces.
-- Add an interactive Gantt Chart view to the VS Code extension and export reusable Gantt chart rendering helpers (`toGanttHTML`, `attachGanttInteractivity`) from `@gram-lang/renderer`. Provides a real-time timeline visualization of recipe steps, background timers, and target serving times directly in your editor and the web playground.
-
-### Bug fixes and improvements
-- Fixed a bug where the wrong API key could be sent to the wrong AI provider. If you had, say, `GEMINI_API_KEY` set in your environment but configured `provider: openai` in `.gram/config.yaml`, your Gemini key could be sent to OpenAI instead. Each provider now only ever uses its own key.
-- Baker's Percentage is now shown on an ingredient's inline mention within step text, not just in the recipe's ingredient list and shopping list — a dead type check meant this data was computed but never actually reached the inline token.
-- The ingredient database schema no longer requires `density` on every entry that has a `physical` block — an ingredient described only by `unit_weight` (e.g. "1 avocado") is valid, matching the analyzer's own documented example. Previously, `gram db enrich` could write entries that `gram build`/`gram db validate` would then reject.
-- `gram diff` (and `diffRecipes`) now detects quantity changes inside composite ingredients (`<@parent`) and alternative groups (`@a|@b`), which it previously ignored entirely — a recipe that doubled a composite or alternative's quantities used to be reported as having no changes at all. It also no longer loses one of two same-titled sections, or two same-named timers/temperatures within a single section, when comparing two recipes.
-- Fixed the same ingredient sometimes getting two different `normalizedMass` values in one analyzed recipe (e.g. `250.78328000000002` in a recipe section vs. `250.78` in the shopping list) — the section-level and composite-child mass calculations now go through the same rounding as the shopping list, instead of duplicating the sequence without it.
-- Removed all uses of `any` from the physical/nutrition analysis layer's internal types, typing them against the real shapes already exported by `@gram-lang/kitchen` and this package's own `AnalyzedUsage`/`NutritionItem`. No behavior change for this package beyond the fixes already released separately (see the relative-quantity type changeset). The renderer's printable/PDF view gained one internal `any` to stay compatible with the analyzer's now-stricter shopping-list type — purely a type-level adjustment, no output change.
-- A relative-quantity ingredient's resolved quantity (e.g. `@water{50% @&flour}`) is now tagged with the correct `"single"` type instead of a value that didn't match any of the documented quantity shapes — it happened to still render correctly today only because of an unrelated fallback, so this is a safety fix rather than a visible change.
-- Fixed a major parsing bug where a bare `@ingredient` or `#cookware` mention (one written without its own `{}`) would silently swallow an unrelated timer, temperature, cookware, or ingredient that appeared later on the same line into its own name, if that later element happened to close with a valid quantity — losing that element from the recipe entirely. For example, `Brown the @&chicken for ~{3min}.` used to lose the timer completely, turning it into a single ingredient named "chicken for ~". Both the ingredient and cookware name now stop at the same sigils (`@`, `#`, `~`, `^`, `&`) that a bare reference (`&name`) already correctly stopped at.
-- Warnings about invalid ingredient database entries now go to stderr instead of stdout, so commands like `gram build recipe.gram | jq` no longer break when the database has a bad entry.
-- `gram shop` now groups the shopping list by the same category names used everywhere else in the project (e.g. "Seafood" instead of "Fish", "Vegetables" instead of "Produce") instead of its own inconsistent list.
-- Fixed `gram format` rewriting values inside the recipe's frontmatter (the `---` metadata block at the top of a `.gram` file). For example, an email address like `Jean@Example.com` in `author:` used to get incorrectly lowercased to `Jean@example.com`. Frontmatter is no longer touched by formatting rules meant for the recipe body. File writes are also now atomic and lock-protected, matching the rest of the CLI.
-- Fixed several French unit words silently resolving to the wrong physical quantity:
- - `quart`/`quarts` no longer resolves to the US liquid quart (946 mL) in French recipes — it's a false friend ("un quart d'heure" means "a quarter of an hour", not a unit of volume). It's now reported as an unknown unit instead of silently misinterpreted. The English word `quart`/`quarts` still works in English recipes; only the spelled-out alias was removed, `qt` still works everywhere.
- - `livre` now converts using the French "livre métrique" (500 g) instead of being silently treated as the imperial pound (453.592 g) — a ~10% error.
- - `tasse` now converts using the French cup (250 mL) instead of being silently treated as the US cup (236.588 mL) — a ~6% error.
- - `pinte` no longer resolves at all: the historical French pinte has no single reliable modern value, so an explicit "unknown unit" is better than a confident-looking wrong number.
- - `gallon`/`gallons` now resolve correctly (previously only the abbreviation `gal` worked).
-- The compiler now detects indirect circular dependencies between section intermediates (e.g. section A's result depends on section B's, whose result depends back on section A's) and reports a `CIRCULAR_REFERENCE` warning for each one — previously only a direct self-reference was caught.
-- Removed all uses of `any` from the compiler's internal types, replacing them with the real shapes already exported by the package (`Usage`, `CompositeItem`, `StepToken`, etc.), and cleaned up dead code paths in shopping-list aggregation.
-- Scaling a recipe by an extreme factor now fails with a clear error instead of silently producing `Infinity` (serialized as `null` in the output JSON). Scaled quantities are also rounded consistently, including a composite ingredient's total, so results no longer show float noise like `110.00000000000001`.
-- Scaling a fraction quantity (e.g. `1/2 cup`) no longer produces a malformed value in the compiled JSON (`{"type": "fraction", "value": 1}` with no numerator/denominator) — it's now correctly represented as a plain numeric quantity.
-- Fixed several compiler correctness bugs:
- - An empty section (or one containing only a comment) between two sections with steps used to break ALAP scheduling: the step right after the gap could get scheduled to overlap a timer still running from before the gap. It now correctly chains past the gap.
- - `applyScale()` (used by `gram scale` and the playground) now scales cookware quantities. Previously it only scaled cookware "by accident" when called from inside `compile({ scaleFactor })`, so `applyScale(compile(recipe), factor)` silently left cookware unscaled.
- - A timer with an unrecognized time unit (e.g. `~{3 bananas}`) or a missing unit no longer silently contributes a fabricated duration to the recipe's total/active time. Both now raise a warning instead, matching how temperatures and retro-planning already behave.
- - Timer units are now displayed consistently (e.g. always "min", never a mix of "min"/"mins"/"minutes" for the same physical duration in the same recipe).
-- Fixed a spurious `TRACK_CONTENTION` warning on the ordinary, intended use of named passive tracks (`~_name{...}`) — chaining several steps on the same physical resource (an oven, a fridge shelf) back-to-back no longer warns just because nothing else linked those steps together. The scheduler now understands that shared-track ordering the same way it already understands `&intermediate` dependencies, so the warning only fires when a real, unforeseen conflict remains.
-- Fixed several ways the language server could crash the whole editor session instead of just failing gracefully: a malformed entry in `ingredients.yaml` (e.g. missing `name`) no longer crashes the server, opening a project in a virtual or remote workspace no longer crashes initialization, and a failed background database reload can no longer take down the process. Formatting, rename, and code actions also now always operate on the current document content instead of a possibly-stale cached version.
-- `ASTNode` is now a fully exhaustive, discriminated union that matches what the parser actually produces (`CompositeAST`, `QuantityAST`, `TextQuantityAST`, and `RelativeQuantityAST` were previously missing from it), and composite ingredients (`<@parent`) now carry source location info like every other node. Making these types honest surfaced and fixed three real bugs in the language server: outline (document symbols), syntax highlighting (semantic tokens), and go-to-definition/rename/hover (reference and intermediate lookups) could silently miss or crash on content that isn't wrapped in a `## Section` header — a recipe with no headers at all, or with a comment before the first header.
-- Fixed two silent quantity-corruption bugs in fraction parsing: a decimal numerator (e.g. `1.5/2`) used to be truncated to an integer before dividing, silently turning `1.5/2` into `0.5` instead of `0.75`; a zero denominator (e.g. `1/0`) used to produce `Infinity`, which serializes to `null` in JSON, instead of being rejected outright.
-- The `hideStepQty` rendering option (hides ingredient quantities from step text) now works with `toHTML` and `toMarkdown`, not just `toPrintHTML` — it was previously silently ignored by the other two.
-- Fixed an HTML injection vulnerability (XSS) in `toHTML`'s timing-card tooltips: a section title or named timer containing HTML would render unescaped in the "Active Time" / "Total Time" tooltips, exploitable via the playground or the VS Code preview. Both are now properly escaped like every other text field.
-- `toHTML`, `toMarkdown`, and `toPrintHTML` now type their `data` parameter instead of accepting `any`. Typing it surfaced two real bugs, now fixed: the HTML nutrition panel's "incomplete data" warning was never actually shown (it read a field that never existed, always showing a blank 0-calorie panel instead), and the printable/PDF view displayed sodium in grams instead of milligrams (1000x too high).
-- Fixed syntax highlighting (TextMate grammar): a bare `@ingredient`, `#cookware`, or `<@parent` mention with no `{}` of its own would have its highlighted span incorrectly extend all the way to the next unrelated `{...}` on the line (e.g. a later `&reference{}`), coloring everything in between as if it were part of the same name. The name-matching patterns now stop at `@`, `#`, `~`, `^`, and `&`, the same sigils the compiler itself stops at.
-- `toMarkdown` now neutralizes raw HTML (`<` and `&`) in recipe titles, ingredient names, and step text. Previously, a recipe containing something like `` in its title would pass through untouched, which could run as a script if that Markdown was later converted to HTML — this is now escaped automatically, closing that gap for imported or shared recipes.
-- `gram import ` now refuses to fetch addresses that aren't publicly routable (localhost, private networks, link-local/cloud metadata addresses), including on redirects — closing a way for a malicious or compromised page to make the CLI fetch internal network resources. API keys stored via `gram init`/`gram config set` are now actually picked up when running the CLI under Node (previously only worked when run via Bun). `gram db enrich` now clearly reports when nothing was written to disk instead of claiming success; AI-suggested ingredient values that are physically implausible (like an ingredient density far outside any real food) are now rejected instead of being written to your ingredient database.
-- `QuantityValueAST` (the parser's internal representation of a parsed number/fraction/range) is now a proper discriminated union instead of a flat interface with every field optional. This is an internal type-safety improvement with no behavior change — it's what would have caught, at compile time, a real bug fixed earlier in `diffRecipes` (checking `qty.from`/`qty.to`, fields that never existed on any variant).
-
----
-
-## [1.0.0-beta.4] - 7/23/2026
-
-### Breaking changes
-- Section retro-planning (e.g. `## Section ~{-2h}`) now enforces a strict signed-duration syntax instead of accepting arbitrary free text, preventing invalid timeline calculations. Added support for the `d` (day) time unit.
-
-### New features
-- Added support for ALAP (As Late As Possible) scheduling. Passive timers and their dependencies are now natively pushed backwards from the end of the recipe, ensuring ingredients are prepared just-in-time rather than sitting idle on the counter. Also introduces two new compiler warnings for timeline conflicts: `TIME_PARADOX` and `TRACK_CONTENTION`.
-- Exported the `runPipeline` function alongside its associated types from `@gram-lang/cli` to facilitate library and programmatic usage of the core compiler orchestration.
-- Renamed the `cookTime` metric to `idleTime` across the ecosystem to better reflect hands-off wait time. Additionally, passive timers sharing the same name are now automatically sequenced one after another on the same background track.
-- Added `llms.txt` and `llms-full.txt` to the documentation site, providing a curated index and full concatenated specification tailored for AI assistants and agents.
-
-### Bug fixes and improvements
-- Fixed the display of alternative ingredient and cookware groups (`@egg|@tofu`). They now correctly render inline as a single joined line in shopping and section lists, rather than being dropped or rendered as oddly-wrapped sub-lists.
-- Fixed mass standardization silently failing for alternative ingredient groups. Mass and estimate metrics are now properly computed for each option independently, fixing missing totals in the shopping list.
-- Added support for bare single-word children in composite ingredients (e.g., `@juice<@lemon`), and allowed independent preparation instructions on the parent side. Fixed section ingredient lists silently dropping the parent reference.
-- Fixed bare ingredient names incorrectly absorbing trailing punctuation (like periods). Also fixed multi-word unbraced names breaking alternative group parsing. (An orphan `|` in step text is now correctly flagged as a parse error).
-- Fixed a bug where scaled fractions (e.g., when doubling a recipe) would incorrectly display their original, unscaled text values in section ingredient lists instead of the correctly multiplied amount.
-- Fixed an issue where scaled fractions resulting in values below 1 (e.g., `0.5`) were rendered as raw decimals instead of common fractions (e.g., `1/2`) in the section ingredient list.
-- Updated the AI generation prompt to accurately reflect the latest language syntax, strict retro-planning rules, and active/passive timer terminology.
-- Fixed shopping list ingredient names defaulting to the database's canonical wording when the recipe used a valid alias. The lists now correctly preserve the recipe's original wording or translated alias, ensuring consistent language throughout.
-- Fixed a parser crash that occurred when a section header named the section (`->&name`) before defining its retro-planning (`~{-2h}`).
-- Fixed section and mise-en-place ingredient lists displaying raw database slug IDs (e.g., `oeufs`) instead of their correct, localized display names (e.g., `œufs`).
-- Added detailed per-contribution time breakdowns (Active, Prep, Total) to compiled recipe metrics, and surfaced them as explanatory tooltips on the time summary badges in the HTML renderer.
-
----
-
-## [1.0.0-beta.3] - 7/14/2026
-
-### Bug fixes and improvements
-- `gram check` now resolves syntax error line numbers from the parser's structured `GramParseError.offset` instead of regexing "line N" out of ohm's prose message — line numbers are now always correct, not just when they happened to match that pattern.
-- Downgrade minimum VS Code version requirement to 1.75.0
-- Updated deployment configuration to automate npmjs packages publication
-- Updated docs for clarity and accuracy.
-
----
-
-## [1.0.0-beta.2] - 7/13/2026
-
-### Breaking changes
-- fix!: load valid ingredients even when the database has a bad entry, and fix five correctness bugs
-- fix!: `gram check` only fails on structural errors by default (use `--strict` for the old behavior), fix LSP completion race, and add ingredients.yaml live reload
-- feat!: validate and normalize temperature units, add a shared warning severity map, and fix accented/non-Latin ingredient slugs
-- feat!: replace the `°` temperature sigil with `^`, the `~&` passive timer marker with `~_`, and add mixed/Unicode fraction support
-
-### New features
-- Added a bilingual (EN/FR) "API Reference" section covering the programmatic API of `@gram-lang/parser`, `@gram-lang/kitchen`, `@gram-lang/analyzer`, `@gram-lang/renderer`, and `@gram-lang/i18n` — function signatures, options, JSON data formats, and the full warning-code catalogue. Reference tables (warning codes, AST node types, unit conversions, categories) are generated at build time directly from each package's source, so they can't drift out of sync with the code. Also fixed an incorrect `analyze()` call example in `how-to/build-custom-ui.md`.
-- Export `fetchRecipe` and `validateGram` from the recipe-import service, enabling direct testing and reuse of the import validation pipeline.
-- Add `round2(value: number): number`, exported from `@gram-lang/kitchen`. It centralizes the 2-decimal rounding rule (`parseFloat(x.toFixed(2))`) previously duplicated across kitchen, analyzer, and renderer, giving quantity/mass rounding a single documented implementation. No observable output changes — same rounding rule as before, just in one place.
-- `getAST` now throws `GramParseError` instead of a plain `Error` on syntax errors. This new error type includes structured fields (`offset` and `expected`) while preserving the original human-readable message. The language server now uses the `offset` field to report parse-error diagnostics at their exact location in the document, rather than defaulting to line 1 column 1.
-- The playground now shows a red squiggly marker at the exact location of a syntax error using the new `offset` field. Fixed a crash in the playground on mount in real browsers caused by an aggressive automated lint fix that removed necessary Vue `` bindings and component imports.
-- `toHTML` no longer stamps footnote anchor ids with `Math.random()`. Output is now deterministic by default (ids like `note-1`), which is required for byte-stable golden/conformance testing. If you render multiple recipes on the same page and relied on random ids to avoid anchor collisions, pass a new `renderId` option (e.g. a recipe slug) to disambiguate.
-- Upgraded all monorepo dependencies to their latest versions and implemented a TypeScript 7 dual setup for faster typechecking while preserving compilation toolchain compatibility. Fixed type errors arising from Node 26 and VS Code LSP v10 updates.
-
-### Bug fixes and improvements
-- Added a global `--verbose`/`--debug` flag (works with any subcommand) that prints the full stack trace alongside the usual terse error message — useful when filing a bug report or diagnosing an unexpected failure.
-- Fix `_usageId` leaking a global counter across separate `compile()` calls in the same process (affected the language server and `gram scale`'s parallel compiles, making ids non-deterministic for an unchanged recipe). Fix nutrition analysis always reporting `isEstimate: true` regardless of actual data precision. Fix the section mass badge in HTML output missing its scale icon.
-- Fixed a regression introduced alongside the new `--verbose` flag where `gram -v` stopped printing the version and showed the help text instead (`-v` is citty's own `--version` shorthand — it's no longer swallowed as part of the verbose flag). Also fixed `gram import`'s fetch timeout message not showing up when the timeout fires while reading a slow response body instead of during the initial connection.
-- `.env` is now written with `0600` permissions instead of the OS default, so API keys are no longer group/world-readable on shared machines. `.gram/config.yaml` is now validated at load time (invalid fields fail with a clear error instead of crashing deep in the pipeline). `gram import` now times out after 15s, caps response bodies at 10MB, and asks for confirmation before writing AI-converted content from an untrusted external source to disk (skippable with `--yes`).
-- Performance improvements for CLI tools: - `gram format` now processes files concurrently, significantly speeding up execution on large recipe collections. - `gram db sync` now uses a length-based pre-check for fuzzy matching to speed up similarity comparisons against large databases.
-- Fixed a bug in `applyScale()` where scaled quantities were incorrectly squared instead of multiplied for inline step ingredients, resulting in incorrect values (e.g., displaying `800g` instead of `400g` when using `--scale 2`). The aggregated shopping list was unaffected.
-- chore: declare `sideEffects: false` so bundlers can tree-shake unused exports from these packages No package previously declared this, so third-party bundlers had to assume every module might have side effects and couldn't safely drop unused code.
-- fix: sync TextMate grammar with the `^`/`~_` sigil changes and stop mis-highlighting invalid temperature units - Updated TextMate grammar to use `^` (Temperature) and `~_` (Passive Timer) sigils. - Temperature unit highlighting now mirrors the compiler's whitelist (e.g., `180C`/`180°F`). Invalid units now receive a distinct `invalid.illegal.unit.gram` scope. - Name matching now correctly stops at the new `^` sigil.
-- Compiler warnings (`CompilationResult.warnings`, `NutritionMetrics.warnings`) are now always structured `Warning` objects (`{ code, message, item?, loc?, section? }`) instead of sometimes being plain strings depending on call order — a latent inconsistency that could previously produce `"[object Object]"` in some rendered output. `Usage.composite`, `Usage.options`, and `ProcessedStep.content` are now properly typed instead of `any`. Also fixes range-based timer quantities (e.g. `~{5-10min}`) never displaying correctly in `gram diff` output, due to a pre-existing typo checking non-existent fields.
-
-#### Breaking
-- `validateIngredientDatabase` no longer throws an error on a single malformed entry. It now validates entry-by-entry, returning both valid data and rejected keys. This prevents `gram check` or `gram cook` from hard-failing due to one unrelated bad line.
-- `physical.yield` must now be `> 0` (previously `>= 0`) to prevent producing `Infinity` mass downstream.
-- `gram check` now only fails on structural issues (like undefined references) and uses a shared `warningSeverity` map. Nutritional gaps and incomplete annotations are reported as warnings instead of failing the build. Use `--strict` for the old all-warnings-fail behavior.
-- `GramConfigError` exit code changed from 2 to 1 (user error, not internal crash).
-- The Temperature sigil is now `^` (e.g. `^{180C}`). `°` is no longer a block-opening character, but remains valid inside unit spellings (`°C`).
-- The Timer passive marker is now `~_` (e.g. `~_{45min}`) instead of `~&`.
-- Temperature units now accept bare `C`/`F` in addition to `°C`/`°F`.
-
-#### Fixed
-- Added a guard in `applyYield` against non-positive yield factors.
-- Shopping list aggregation: The `optional` modifier is now treated as an intersection rather than a union.
-- `diffRecipes`: Temperature ranges that change bounds but keep the same average are now correctly detected in the diff. Fixed an issue where identical section titles would drop timer/temperature tokens.
-- `calculateMassMetrics`: Excludes `optional` ingredients from `totalMass` to match nutritional calculations.
-- `calculateNutrition`: Missing nutrient data now propagates as `undefined` rather than an indistinguishable `0`.
-- Language Server: Fixed a race condition where completions immediately after `@` or `&` could return nothing.
-- Language Server: Diagnostics now correctly use the shared `warningSeverity` map.
-- Language Server: `ingredients.yaml` is now actively watched via LSP. External edits instantly refresh diagnostics without restarting the editor.
-
-#### New syntax
-- Added support for mixed-number fractions (`1 1/2`) and Unicode vulgar fraction glyphs (`½`).
-
-#### Kitchen
-- `warningSeverity`: a new exported map to separate structural errors from recoverable warnings.
-- Temperature units are now validated and normalized to canonical `°C`/`°F`.
-- `slugify` now preserves non-Latin letters via `\p{L}`/`\p{N}`.
-
-#### Analyzer
-- Fixed `parseDensityOverrides` name normalization for accented ingredient names.
-
----
-
-## [1.0.0-beta.1] - 7/5/2026
-
-### Breaking changes
-- refactor: rename `isAsync` to `isPassive` to align with domain terminology
-
-To better align the codebase with the actual domain model of a kitchen, the "asynchronous" timer concept has been completely renamed to "passive". This introduces the following breaking changes for tool builders:
-
-- **AST**: The `TimerAST` node property `isAsync: boolean` is now `isPassive: boolean`.
-- **CSS**: The `.timer.async` class generated by the renderer has been renamed to `.timer.passive`.
-- **Kitchen Metrics**: All internal variables and comments referring to `async` background tasks have been updated to `passive`.
-- **Breaking Change: Refactored Physical Engine Nomenclature**
-
-The physical enrichment options and internal APIs have been renamed for clarity and to align with professional culinary terminology.
-
-If you are using `@gram-lang/analyzer` programmatically, please update your configuration:
-- `enableMassNormalization` is now **`enableMassStandardization`**
-- `enableYieldManagement` is now **`enableYieldCalculation`**
-- The exported `normalizeMass` helper is now **`standardizeMass`**
-
-This update ensures total parity with the updated official documentation.
-- Introduction of the official Gram CLI (`@gram-lang/cli`), a comprehensive command-line tool to manage, compile, and interact with your recipes.
-
-**Project & Recipe Management:**
-- **Project Setup**: `gram init` safely scaffolds a `.gram` environment, including interactive AI provider setup (Google, OpenAI, Anthropic, Ollama) and secret management.
-- **Automated Import**: `gram import` scrapes recipes from any URL and uses AI to flawlessly translate and convert them into native `.gram` syntax.
-- **Validation & Compilation**: `gram check` instantly validates syntax and database integrity. `gram build` compiles recipes to robust JSON with full physical and nutritional enrichment.
-- **Smart Scaling & Diff**: `gram scale` dynamically resizes recipes (e.g., `--scale flour=300g`) with a visual before/after comparison. `gram diff` provides a semantic "git diff" for cooking, tracking changes in quantities, timings, and steps.
-- **Export & Print**: `gram print` generates a beautifully typeset A4 HTML recipe card. `gram export` converts recipes to clean Markdown or static HTML.
-- **Auto-formatting & Watcher**: `gram format` automatically enforces `.gram` language styling standards. `gram watch` provides real-time validation upon saving.
-
-**Interactive Cooking & Daily Use:**
-- **Terminal Cooking Assistant (`gram cook`)**: A step-by-step interactive TUI (Terminal User Interface) that guides you through the recipe, featuring a dynamic ingredient checklist and live background timers.
-- **Smart Shopping List (`gram shop`)**: Aggregates ingredients across multiple recipes, automatically converting volumes to masses and sorting them by supermarket aisle.
-- **Recipe Search (`gram suggest`)**: An alias-aware search engine to find recipes based on your available ingredients (e.g., `--with "butter, eggs" --without "milk"`).
-- **Rich Terminal Preview (`gram view`)**: Renders recipes directly in the terminal with color coding, active timers, and nutritional tables.
-
-**AI-Powered Database Management (`gram db`):**
-- **Smart Database Sync & Enrichment**: `gram db sync` automatically tracks new ingredients across your project. `gram db enrich` uses AI to automatically fill in missing densities, unit weights, categories, and nutrition facts.
-- **Semantic Linting & Conflict Resolution**: `gram db lint` uses AI to detect plural mistakes and semantic duplicates (e.g., `scallion` vs `green onion`). `gram db merge` handles conflicts when integrating external community databases.
-
-### New features
-- docs: update timer terminology from synchronous/asynchronous to active/passive
-
-To better align with real-world culinary concepts and eliminate confusion, the terminology for timers has been updated throughout the documentation.
-
-Previously, Gram used computer-science terms (`synchronous` / `asynchronous`) to describe how timers affected the recipe flow. However, in a kitchen environment, almost all timers block the preparation itself, even if they run in the background.
-
-To clarify this, we have shifted the terminology to focus on the cook's availability rather than the execution thread:
-- **Synchronous** timers are now referred to as **Active** timers. These timers require the cook's attention and add to the `activeTime` metric.
-- **Asynchronous** (`~&`) timers are now referred to as **Passive** (or Idle) timers. These timers represent background tasks (like resting or baking) that free up the cook to perform other steps concurrently.
-
-**Note:** This is a purely conceptual nomenclature change to make the documentation and learning curve more intuitive for non-developers. The underlying syntax (`~{}` and `~&{}`) and the compiler's Gantt chart logic remain exactly the same.
-- Major overhaul of the documentation and playground infrastructure:
-
-- **Documentation Rewrite & i18n**: The documentation has been completely rewritten, thoroughly verified, and is now fully translated into French (in addition to the English version).
-- **Advanced Vue 3 Playground**: The legacy playground has been removed and rebuilt from the ground up using Vue 3. This new version is directly integrated into the documentation and introduces powerful new features, including recipe scaling and baker's math.
-- The `@gram-lang/compiler` package has been renamed to `@gram-lang/kitchen` to fully embrace the Gram language's domain identity.
-- docs: integrate new Vitepress documentation site and embedded playground
-
-- **Documentation**: Complete overhaul of the Gram documentation site using Vitepress. Improved layout, better navigation, and comprehensive coverage of the new syntax and APIs.
-- **Playground**: Replaced the legacy standalone playground with a new, fully integrated version directly within the Vitepress documentation site. Features live-reloading, side-by-side editing, and syntax highlighting via Shiki.
-- Complete overhaul of the VS Code Extension with Language Server, Live Preview, and advanced assistance
-
-**Major New Features:**
-- **Full Language Server (LSP)**: The extension now ships with a complete language server. All advanced features activate instantly upon opening a `.gram` file.
-- **Dynamic Live Preview**: A side-by-side WebView panel displaying the real-time HTML render of the recipe as you type.
- - Gracefully handles syntax errors via a visual fallback.
- - Integrates the official Playground styles for perfect consistency.
-- **CodeLens & Inlay Hints**:
- - **Inlay Hints**: Displays the cumulative total time in gray next to section titles.
- - **CodeLens**: Clickable buttons `▶ Preview` and `📊 Macros` above the main recipe title for quick access.
-
-**Ingredient Database & Nutrition:**
-- **Automatic Loading**: Automatically detects and loads `.gram/ingredients.yaml` from the workspace root (or via the path configured in `gram.ingredientDatabase.path` settings). Optimized indexing (O(1)) for maximum performance.
-- **Seamless Plural Management**: The extension silently handles plurals (e.g., `@carrots{3}` will automatically match `carrot`). No error diagnostics are raised, everything is transparent.
-- **Nutritional Hover & Macros Panel**:
- - Hovering over an ingredient displays a complete nutritional table (calories, proteins, carbs, fats, etc.).
- - The Live Preview integrates a Macros panel (hidden by default) that can be shown via CodeLens, featuring clear visual alerts for ingredients missing data.
-- **Fuzzy Matching "Did you mean?"**: Levenshtein algorithm (distance ≤ 2) suggests corrections if an ingredient is misspelled (e.g., `@tomaato` suggests `@tomato`). Directly integrated into Quick Fix code actions.
-- **On-Hover Unit Conversion**: Automatically converts volumes (ml, tbsp, etc.) to grams when hovering over an ingredient if its density is known in the database.
-
-**Editing Assistance & Navigation:**
-- **Advanced Contextual Autocompletion**:
- - After `@`: Suggests ingredients and their aliases from the YAML database. Automatically adds curly braces `{}` for multi-word names.
- - After `&`: Suggests only the existing intermediate declarations in the document.
- - Inside `{}`: Suggests canonical units (mass, volume, time) and their aliases (French/English) as soon as a digit is typed.
-- **Smart Navigation**:
- - **Go to Definition** (`Ctrl+Click` / `F12`) on a `&ref` reference to jump to its `->&ref` declaration.
- - **Find All References** (`Shift+F12`) to list all usages of an intermediate.
- - **Rename Symbol** (`F2`) to atomically rename an intermediate (declaration + references).
- - **Outline Panel** showing the hierarchy of sections and elements, with foldable code in the gutter.
-- **Intermediate Hover**: Displays the full text of the step where the intermediate was created.
-
-**Diagnostics & Code Actions (Quick Fixes):**
-- **Real-Time Diagnostics**:
- - Red underline for an orphaned `&ref` reference.
- - Warning for an unused `->&ref` declaration.
- - Warning if the frontmatter (title) is missing.
-- **Code Actions (💡)**:
- - *Quick Fix*: Insert the missing `title:` in the frontmatter.
- - *Quick Fix*: Remove an unused intermediate declaration.
- - *Quick Fix*: Declare a missing intermediate for an existing reference.
- - *Refactor*: Convert a volume quantity to mass directly in the code.
- - *Refactor*: Replace a misspelled ingredient with the closest Fuzzy match suggestion.
-
-**Semantic Highlighting, Formatting & Snippets:**
-- **Semantic Tokens**: Regex-based syntax highlighting (TextMate) is replaced by **AST-driven** highlighting. Offers surgical precision for ingredients, timers, temperatures, comments, and nested units (e.g., precise separation of value and unit in `{10g}`).
-- **Auto-formatting (`Alt+Shift+F`)**:
- - Normalization of spaces inside curly braces (`{ 200 g }` → `{200g}`).
- - Normalization of composite ingredients (`@a < @b` → `@a<@b`).
- - Alignment of section titles and tab-to-space conversions.
-- **Built-in Snippets**: Keyboard shortcuts for the basic structure (frontmatter, sections, steps), ingredient variants (`@ing`, `@?`, `@-`), cookware (`#cw`), and timers/temperatures.
-- Core language update to enforce new syntax adjustments (breaking changes).
-
-* **Grammar & Parsing**:
- * Made `{}` optional for single-word ingredients.
- * Replaced temperature symbol with `°`.
- * Replaced async timers with `~&{}`.
- * Replaced aliases brackets with `:`.
- * Tightened `<@` with no spaces allowed.
- * Added fixed modifier `=`.
- * Mandatory `@&` inside relative quantities declarations. (e.g: `@water{60% @&flour}`)
- * **Top-Level Support**: Allowed writing comments and recipe steps globally, anywhere in the document (even before the first `## Section`).
-* **Compiler Analysis**:
- * Added `INVALID_MODIFIER_COMBINATION` warnings.
- * Updated AST transformations to support the new modifiers parsing rules and the implicit top-level sections grouping.
-- Aligned visual tooling and test recipes with the new grammar.
-
-* **`GramHighlight.ts` (Playground & VSCode)**: Updated all syntax highlighting regular expressions to accurately match the new syntax (new temperature symbols, updated modifiers, etc.).
-* **Examples (`basquaise_chicken.gram`, `lemon_meringue_pie.gram`, `torture.gram`)**: Fully migrated recipe code to comply with the new grammar.
-- Fixed several correctness bugs found during a documentation audit, and added alias-aware cross-unit shopping list aggregation.
-
-- **@gram-lang/analyzer**: `unit_weight`-based conversions (e.g. `@avocado{1}`) were being double-divided by `yield` — the whole-unit weight is now correctly treated as Gross Mass, with Net Mass derived forward (`Gross × yield`), while explicit mass/volume entries keep deriving Gross backward (`Net ÷ yield`) as before. Optional ingredients (`?`) are no longer counted in nutrition totals. New `resolveCanonicalId()` resolves an ingredient name/alias to its database key, and a new `aggregateShoppingList()` step re-groups the shopping list by canonical id — merging aliased ingredients (e.g. `beurre`/`butter`) and cross-unit quantities (e.g. `100g` + `1 cup`) into a single gram total whenever every entry resolves to a mass, falling back to separate entries flagged `multiUnit: true` when a density is missing.
-- **@gram-lang/renderer**: The HTML shopping list now clusters consecutive `multiUnit`-flagged entries for the same ingredient under one heading with a "⚠️ Mixed units" badge, instead of listing them as unrelated lines.
-- **@gram-lang/cli**: `shopper`'s alias resolution now reuses `@gram-lang/analyzer`'s `resolveCanonicalId()` instead of a separate, duplicated alias map.
-- - **Playground**: Migrated syntax highlighting engine from Highlight.js to Shiki. The playground now natively uses the official VSCode TextMate grammar, ensuring 100% consistency across environments.
-- **VSCode Extension**: Improved syntax coloring by mapping custom Gram tokens (cookware, intermediate ingredients, units) to standard semantic TextMate scopes, restoring vibrant and legible colors across all VSCode themes.
-- Improve ingredient preparation tracking and display.
-
-- **Kitchen**: `aggregateSectionIngredients` now groups ingredients by both `id` and `preparation`, creating separate entries for the same ingredient if it requires different preparations (e.g. cold vs melted).
-- **Renderer**: A new `formatMode` option in the render context controls preparation rendering. Preparations remain visible in inline text to prevent information loss. In the section's ingredient list (Mise-en-place), they are cleanly displayed with an em-dash. In the global shopping list, they remain hidden.
-- Refactor TextMate grammar to `@gram-lang/parser`
-
-The TextMate grammar (`gram.tmLanguage.json`) has been moved from `@gram-lang/vscode-extension` to `@gram-lang/parser` to colocate the structural (Ohm) and lexical (TextMate) definitions of the Gram language.
-
-This resolves architectural issues where consumers like the playground had to perform brittle, deep relative imports into the VSCode extension package. The syntax grammar is now officially exported and accessible via `@gram-lang/parser/textmate`.
-- Added a centralized `ScaleEngine` in `@gram-lang/kitchen` to make recipe scaling (`--scale`) and Baker's Percentage math safer and more consistent everywhere.
-
-- **@gram-lang/kitchen**: New `resolveScaleFactor()`/`applyScale()` API validates a `--scale` target before computing a factor — rejecting fixed (`@=`) ingredients, relative quantities, ingredients only used inside a sub-recipe, ingredients inside an alternative-ingredient group, and ingredients split across incompatible units, with a clear error instead of a silently wrong number. A sub-recipe's own total (e.g. "2 lemons") is itself a valid scale target. Scaling is now a pure operation (never mutates the original recipe), and the compiled recipe now carries an explicit `scaleFactor` field. Covered by a new unit test suite.
-- **@gram-lang/analyzer**: Fixed the `@*` Baker's-reference auto-detection (it silently never matched before), and it now refuses to use a relative-quantity ingredient as the 100% base instead of computing bogus percentages. The enriched JSON AST now natively includes a `bakersPercentage` field for all ingredients if a reference ingredient is declared or passed via the `bakersReference` option. `convertUnit()` now accepts an optional density (g/mL) to bridge mass ↔ volume conversions; new `resolveIngredientDensity()` and `parseDensityOverrides()` helpers resolve that density from a recipe's `densities:` frontmatter. Also includes a critical null-safety fix when parsing recipes containing standalone comments.
-- **@gram-lang/renderer**: Natively supports formatting Baker's Percentages provided by the analyzer (for HTML and Markdown exports, and the Playground), removing its legacy calculation logic. Fixed `gram print --bakers-math-only` having no effect.
-- **@gram-lang/cli**: The CLI now cleanly acts as a presentation layer for Baker's Math, reading percentages directly from the AST. Added `--bakers-math`, `--bakers-reference`, and `--bakers-math-only` flags to the `view`, `print` and `export` commands. `--scale id=value` now supports same-family unit conversion and cross-family conversion when a density is available; suggests the closest matching ingredient name on a typo; no longer shows corrupted comparison rows for an ingredient split across multiple units in `gram scale`.
-- Major architecture refactoring, ESM Migration, performance optimizations and code cleanup
-- Complete overhaul of the documentation to reflect the new syntax changes.
-
-### Bug fixes and improvements
-- **Fix: Allow preparations on bare ingredients and cookware**
-Previously, the parser and the TextMate syntax highlighter required quantity braces `{}` to attach a preparation to an element (e.g. `@butter{}(melted)` or `#pan{}(20cm)`).
-The grammar has been updated to support attaching preparations directly to bare elements without braces. You can now write `@butter(melted)` or `#pan(20cm)` naturally. The AST will correctly extract the `preparation` property, and your editor will highlight it properly.
-- NutritionMetrics output field renamed from `salt` to `sodium` to match the ingredient database schema
-- Refined formatting and mass normalization for relative quantities:
-
-- **Cleaner Display**: Relative quantities are now seamlessly displayed without internal `@` or `&` markers (e.g., `125% of lemon juice`). The redundant formula brackets `[125% of...]` have been removed from inline instructions.
-- **Robust Shopping List Aggregation**: The compiler (`@gram-lang/kitchen`) now strictly tracks ingredient lineage using `_usageIds`. This allows the analyzer (`@gram-lang/analyzer`) to flawlessly compute exact masses for complex items in the shopping list without confusing standard ingredients and their alternatives.
-- **Shopping List Accuracy**: When mass normalization is enabled, the shopping list will now accurately display the fully resolved physical mass for relative quantities (e.g., `sugar (156 g)`) instead of falling back to the formula string.
-- Fixed an issue in the parser where composite ingredients without braces (e.g., `<@lemon,`) would incorrectly consume subsequent text on the same line, causing missing ingredients and breaking relative quantity resolutions.
-- Fix total recipe time calculation when using background timers
-
-Previously, the compiler did not wait for passive tasks (like resting dough in the fridge) to finish before letting you use the result. This caused the estimated "Total Time" to be unrealistically short. The engine now properly understands dependencies and waits for intermediate preparations to be fully ready before proceeding to steps that need them.
-
----
-
-## [1.0.0-beta.0] - 6/29/2026
-
-### Breaking changes
-- Introduction of the official GRAM CLI (`@gram-lang/cli`), a comprehensive command-line tool to manage, compile, and interact with your recipes.
-
-**Project & Recipe Management:**
-- **Project Setup**: `gram init` safely scaffolds a `.gram` environment, including interactive AI provider setup (Google, OpenAI, Anthropic, Ollama) and secret management.
-- **Automated Import**: `gram import` scrapes recipes from any URL and uses AI to flawlessly translate and convert them into native `.gram` syntax.
-- **Validation & Compilation**: `gram check` instantly validates syntax and database integrity. `gram build` compiles recipes to robust JSON with full physical and nutritional enrichment.
-- **Smart Scaling & Diff**: `gram scale` dynamically resizes recipes (e.g., `--scale flour=300g`) with a visual before/after comparison. `gram diff` provides a semantic "git diff" for cooking, tracking changes in quantities, timings, and steps.
-- **Export & Print**: `gram print` generates a beautifully typeset A4 HTML recipe card. `gram export` converts recipes to clean Markdown or static HTML.
-- **Auto-formatting & Watcher**: `gram format` automatically enforces `.gram` language styling standards. `gram watch` provides real-time validation upon saving.
-
-**Interactive Cooking & Daily Use:**
-- **Terminal Cooking Assistant (`gram cook`)**: A step-by-step interactive TUI (Terminal User Interface) that guides you through the recipe, featuring a dynamic ingredient checklist and live background timers.
-- **Smart Shopping List (`gram shop`)**: Aggregates ingredients across multiple recipes, automatically converting volumes to masses and sorting them by supermarket aisle.
-- **Recipe Search (`gram suggest`)**: An alias-aware search engine to find recipes based on your available ingredients (e.g., `--with "butter, eggs" --without "milk"`).
-- **Rich Terminal Preview (`gram view`)**: Renders recipes directly in the terminal with color coding, active timers, and nutritional tables.
-
-**AI-Powered Database Management (`gram db`):**
-- **Smart Database Sync & Enrichment**: `gram db sync` automatically tracks new ingredients across your project. `gram db enrich` uses AI to automatically fill in missing densities, unit weights, categories, and nutrition facts.
-- **Semantic Linting & Conflict Resolution**: `gram db lint` uses AI to detect plural mistakes and semantic duplicates (e.g., `scallion` vs `green onion`). `gram db merge` handles conflicts when integrating external community databases.
-
-### New features
-- The `@gram-lang/compiler` package has been renamed to `@gram-lang/kitchen` to fully embrace the Gram language's domain identity.
-- Complete **overhaul of the VS Code Extension** with Language Server, Live Preview, and advanced assistance
-
-**Major New Features:**
-- **Full Language Server (LSP)**: The extension now ships with a complete language server. All advanced features activate instantly upon opening a `.gram` file.
-- **Dynamic Live Preview**: A side-by-side WebView panel displaying the real-time HTML render of the recipe as you type.
- - Gracefully handles syntax errors via a visual fallback.
- - Integrates the official Playground styles for perfect consistency.
-- **CodeLens & Inlay Hints**:
- - **Inlay Hints**: Displays the cumulative total time in gray next to section titles.
- - **CodeLens**: Clickable buttons `▶ Preview` and `📊 Macros` above the main recipe title for quick access.
-
-**Ingredient Database & Nutrition:**
-- **Automatic Loading**: Automatically detects and loads `.gram/ingredients.yaml` from the workspace root (or via the path configured in `gram.ingredientDatabase.path` settings). Optimized indexing (O(1)) for maximum performance.
-- **Seamless Plural Management**: The extension silently handles plurals (e.g., `@carrots{3}` will automatically match `carrot`). No error diagnostics are raised, everything is transparent.
-- **Nutritional Hover & Macros Panel**:
- - Hovering over an ingredient displays a complete nutritional table (calories, proteins, carbs, fats, etc.).
- - The Live Preview integrates a Macros panel (hidden by default) that can be shown via CodeLens, featuring clear visual alerts for ingredients missing data.
-- **Fuzzy Matching "Did you mean?"**: Levenshtein algorithm (distance ≤ 2) suggests corrections if an ingredient is misspelled (e.g., `@tomaato` suggests `@tomato`). Directly integrated into Quick Fix code actions.
-- **On-Hover Unit Conversion**: Automatically converts volumes (ml, tbsp, etc.) to grams when hovering over an ingredient if its density is known in the database.
-
-**Editing Assistance & Navigation:**
-- **Advanced Contextual Autocompletion**:
- - After `@`: Suggests ingredients and their aliases from the YAML database. Automatically adds curly braces `{}` for multi-word names.
- - After `&`: Suggests only the existing intermediate declarations in the document.
- - Inside `{}`: Suggests canonical units (mass, volume, time) and their aliases (French/English) as soon as a digit is typed.
-- **Smart Navigation**:
- - **Go to Definition** (`Ctrl+Click` / `F12`) on a `&ref` reference to jump to its `->&ref` declaration.
- - **Find All References** (`Shift+F12`) to list all usages of an intermediate.
- - **Rename Symbol** (`F2`) to atomically rename an intermediate (declaration + references).
- - **Outline Panel** showing the hierarchy of sections and elements, with foldable code in the gutter.
-- **Intermediate Hover**: Displays the full text of the step where the intermediate was created.
-
-**Diagnostics & Code Actions (Quick Fixes):**
-- **Real-Time Diagnostics**:
- - Red underline for an orphaned `&ref` reference.
- - Warning for an unused `->&ref` declaration.
- - Warning if the frontmatter (title) is missing.
-- **Code Actions (💡)**:
- - *Quick Fix*: Insert the missing `title:` in the frontmatter.
- - *Quick Fix*: Remove an unused intermediate declaration.
- - *Quick Fix*: Declare a missing intermediate for an existing reference.
- - *Refactor*: Convert a volume quantity to mass directly in the code.
- - *Refactor*: Replace a misspelled ingredient with the closest Fuzzy match suggestion.
-
-**Semantic Highlighting, Formatting & Snippets:**
-- **Semantic Tokens**: Regex-based syntax highlighting (TextMate) is replaced by **AST-driven** highlighting. Offers surgical precision for ingredients, timers, temperatures, comments, and nested units (e.g., precise separation of value and unit in `{10g}`).
-- **Auto-formatting (`Alt+Shift+F`)**:
- - Normalization of spaces inside curly braces (`{ 200 g }` → `{200g}`).
- - Normalization of composite ingredients (`@a < @b` → `@a<@b`).
- - Alignment of section titles and tab-to-space conversions.
-- **Built-in Snippets**: Keyboard shortcuts for the basic structure (frontmatter, sections, steps), ingredient variants (`@ing`, `@?`, `@-`), cookware (`#cw`), and timers/temperatures.
-- Core language update to enforce new syntax adjustments (breaking changes).
-
-* **Grammar & Parsing**:
- * Made `{}` optional for single-word ingredients.
- * Replaced temperature symbol with `°`.
- * Replaced async timers with `~&{}`.
- * Replaced aliases brackets with `:`.
- * Tightened `<@` with no spaces allowed.
- * Added fixed modifier `=`.
- * Mandatory `@&` inside relative quantities declarations. (e.g: `@water{60% @&flour}`)
- * **Top-Level Support**: Allowed writing comments and recipe steps globally, anywhere in the document (even before the first `## Section`).
-* **Compiler Analysis**:
- * Added `INVALID_MODIFIER_COMBINATION` warnings.
- * Updated AST transformations to support the new modifiers parsing rules and the implicit top-level sections grouping.
-- Aligned visual tooling and test recipes with the new grammar.
-
-* **`GramHighlight.ts` (Playground & VSCode)**: Updated all syntax highlighting regular expressions to accurately match the new syntax (new temperature symbols, updated modifiers, etc.).
-
-- Major architecture refactoring, ESM Migration, performance optimizations and code cleanup
-- Complete overhaul of the documentation to reflect the new syntax changes.
-
-### Bug fixes and improvements
-- NutritionMetrics output field renamed from `salt` to `sodium` to match the ingredient database schema
-
----
-
-## [0.10.1] - 6/14/2026
-
-### Bug fixes and improvements
-
-- Cleaned up and updated dependencies.
-- Implemented Turborepo to optimize and simplify project building.
-
-## [0.10.0] - 6/14/2026
-
-### New features
-- Added Bun snapshot testing to the development environment for compiler validation.
-- Created a new shared @gram-lang/renderer package to handle HTML and Markdown generation.
-- Refactored unit translation and normalization into a new centralized @gram-lang/i18n package to remove redundancy between the compiler and analyzer.
-
-### Bug fixes and improvements
-- Refactored the analyzer to reuse the compiler's getNumericQty utility, improving code DRYness and type safety.
-- Migrated to full Bun environment using 'workspace:\*' dependencies
-- Added Zod to automatically catch invalid data and prevent crashes.
-- Improved code safety in the compiler by adding strict type checking for recipe elements.
-- Introduce a unified `getNumericQty` utility in `utils.ts` to safely extract numeric values from AST Quantity structures (including fractions, ranges, and nested nodes). This fixes a bug where composite child ingredient quantities using fractions (e.g. `@zest{1/2}`) aggregated to zero in the shopping list.
-- Format decimal values strictly below 1 (e.g. `0.5`, `0.25`) as clean culinary fractions (`1/2`, `1/4`) in the shopping list, while keeping standard decimal formatting for values greater than or equal to 1 (e.g. `1.5`).
-- Cleaned up repetitive code that manages and saves ingredients and cookware.
-- Standardized the warning system to provide consistent and reliable error messages across all tools.
-- Improved parser stability and removed complex build workarounds for web environments.
-- Refactored AST processing for improved maintainability.
-- Standardized how recipe elements are identified across the system to prevent typos and errors.
-
----
-
-## [0.9.0] - 6/7/2026
-
-### New features
-- Ingredients states (`@ingredient:state{}`) are removed. While the idea was to better organize the ingredient's database, it just happened to be too confusing to use.
-- Updated unit resolution to allow for french aliases (e.g: tsp = càc)
-- Ingredient references without quantities (`@&ingredient{}`) are now excluded from section ingredients summaries. This keeps section-level mise en place lists clean by filtering out pure flow instructions (like removing or re-inserting) while preserving separate measured portions.
-- Fixed multiple issues with mass calculations
-- Extracted analyzer logic (mass normalization, yield management, nutritional estimation) into its own package. Ingredients database must now be provided by the user.
-- GRAM syntax now also accepts semantic temperatures (e.g: Cook on !{low heat})
-
-### Bug fixes and improvements
-- Cleaned repo with removal of /dist folders
-- Using changesets to simplify changelog management
-- Clarification of global comments for a recipe, to be declared in the front matter as "notes"
-- Removed unwanted spaces from default playground input
-- Empty ingredient masses now count as zero.
-
----
diff --git a/packages/docs/src/content/docs/docs/explanation/alap-scheduling.mdx b/packages/docs/src/content/docs/docs/explanation/alap-scheduling.mdx
index 56b5808a..fd50f5d6 100644
--- a/packages/docs/src/content/docs/docs/explanation/alap-scheduling.mdx
+++ b/packages/docs/src/content/docs/docs/explanation/alap-scheduling.mdx
@@ -3,7 +3,6 @@ title: "ALAP scheduling"
description: "How Gram's As Late As Possible (ALAP) reverse scheduling eliminates downtime, keeps ingredients fresh, and handles shared cookware tracks."
---
-import Since from '../../../../components/Since.astro';
import { Steps, LinkCard, CardGrid } from '@astrojs/starlight/components';
import Term from '../../../../components/Term.astro';
diff --git a/packages/docs/src/content/docs/docs/explanation/engine/kitchen.mdx b/packages/docs/src/content/docs/docs/explanation/engine/kitchen.mdx
index 9ec9de53..8912c0c7 100644
--- a/packages/docs/src/content/docs/docs/explanation/engine/kitchen.mdx
+++ b/packages/docs/src/content/docs/docs/explanation/engine/kitchen.mdx
@@ -20,12 +20,12 @@ The processor traverses every section and step within the AST sequentially to bu
- **Variable Resolution**: Every intermediate declaration (`->&dough`) is registered in the global symbol scope and linked to subsequent consuming steps (`&dough`).
- **Structural Diagnostics**: The processor catches logical inconsistencies. Rather than throwing uncaught exceptions, it collects structured warning objects in `CompilationResult.warnings`, allowing renderers and tooling to display usable partial output. Referencing an undeclared intermediate emits an `UNDEFINED_REFERENCE` diagnostic. Multi-hop circular dependencies (`&a -> &b -> &a`) are identified via depth-first search (`graph.ts`) and reported as `CIRCULAR_REFERENCE`. Under `gram check --strict`, these warnings become fatal build errors.
-- **ALAP Reverse Scheduling**: The compiler applies **ALAP (*As Late As Possible*)** scheduling, delegated since version 1.4.0 to the dedicated `@gram-lang/scheduler` package (see [The scheduling engine](/docs/explanation/engine/scheduler/)). Multiple passes guarantee a deterministic and optimized schedule:
+- **ALAP Reverse Scheduling**: The compiler applies **ALAP (*As Late As Possible*)** scheduling, delegated to the dedicated `@gram-lang/scheduler` package (see [The scheduling engine](/docs/explanation/engine/scheduler/)). Multiple passes guarantee a deterministic and optimized schedule:
- **Phase 1 (Forward Pass)**: The compiler computes active durations and passive tasks to establish production durations for intermediate variables (`->&name`) in each section.
- **Phase 2 (Backward Pass)**: It walks backward from the end of the recipe (`alap.ts`). When an intermediate is consumed (`&name`), the engine determines its latest allowable completion deadline, honoring explicit section retro-planning anchors (`~{-1d}`). The producing step is then scheduled *just-in-time*.
- **Phase 3 (Serialization)**: Dedicated equipment tracks (*named tracks*, `tracks.ts`) are serialized to ensure passive timers sharing a constrained hardware resource (e.g. `~_oven`) do not collide physically. Start times are adjusted sequentially without idle gaps.
- **Phase 4 (Positive Rebasing)**: Final chronological normalization (`rebase.ts`). If any preparation steps shifted into negative time relative to serving, the entire timeline is translated forward. The final timeline strictly starts at 0 with positive timestamps, simplifying frontend consumption.
- - **Phase 5 (Task Graph and Default Schedule)** : Kitchen encapsulates forward pass results into an agnostic **task graph** (`tasks`): preparation tasks per section (`prep`), active steps (`step`), passive timers (`passive`) with elastic ranges (`{ nominal, min, max }`), and explicit dependency links (`after`). The `@gram-lang/scheduler` engine then calculates the **default schedule** (`schedule`: mise en place by section, shortest passive durations). Any alternative timeline (upfront preparation, per working day, longer passive durations) is computed on demand from this same graph via `layout()`, without recompiling. Section working days are derived from `~{-Nd}` day anchors.
+ - **Phase 5 (Task Graph and Default Schedule)**: Kitchen encapsulates forward pass results into an agnostic **task graph** (`tasks`): preparation tasks per section (`prep`), active steps (`step`), passive timers (`passive`) with elastic ranges (`{ nominal, min, max }`), and explicit dependency links (`after`). The `@gram-lang/scheduler` engine then calculates the **default schedule** (`schedule`: mise en place by section, shortest passive durations). Any alternative timeline (upfront preparation, per working day, longer passive durations) is computed on demand from this same graph via `layout()`, without recompiling. Section working days are derived from `~{-Nd}` day anchors.
```mermaid
flowchart LR
@@ -49,7 +49,7 @@ Kitchen calculates four core time metrics, combined in `core.ts`:
- **Preparation Time (`preparationTime`)**: Baseline *mise en place* allowance, independent of timers. It assigns 1 minute per unique ingredient and cookware item, plus 2 minutes for items requiring preliminary preparation notes (e.g. `@onion(peeled and chopped)`). Each ingredient is counted once in the first section using it; intermediates (`&dough`) are counted in the section that consumes them.
- **Total Time (`totalTime`)**: Sum of `preparationTime + activeTime + idleTime`. This is also read from `schedule`, as it varies depending on whether mise en place is absorbed in masked time or performed upfront.
- Preparation time is broken down by section in `miseEnPlace`, describing item categorization (gathering ingredients, gathering cookware, slicing/prepping). The sum of all entries equals `preparationTime`.
+Preparation time is broken down by section in `miseEnPlace`, describing item categorization (gathering ingredients, gathering cookware, slicing/prepping). The sum of all entries equals `preparationTime`.
:::note[Deprecated Fields]
Legacy timing fields (`timings` and `backgroundTasks` on steps, along with `metrics.totalTime`, `idleTime`, `activeBreakdown`, `prepBreakdown`, and `totalBreakdown`) are deprecated and will be removed in version 2.0.0. Read `schedule` and `miseEnPlace` instead. See the [Kitchen API reference](/docs/reference/api/kitchen).
diff --git a/packages/docs/src/content/docs/docs/explanation/engine/lifecycle.mdx b/packages/docs/src/content/docs/docs/explanation/engine/lifecycle.mdx
index c4cea523..18f25a48 100644
--- a/packages/docs/src/content/docs/docs/explanation/engine/lifecycle.mdx
+++ b/packages/docs/src/content/docs/docs/explanation/engine/lifecycle.mdx
@@ -3,7 +3,6 @@ title: "The Gram lifecycle"
description: "An overview of Gram's compilation pipeline from parser to renderer, and the modular architecture of its packages."
---
-import Since from '../../../../../components/Since.astro';
import { Steps, LinkCard, CardGrid } from '@astrojs/starlight/components';
import Term from '../../../../../components/Term.astro';
@@ -50,7 +49,6 @@ Compiling a Gram recipe flows through a deterministic, one-way pipeline:
### The scheduling engine (`@gram-lang/scheduler`)
-
`@gram-lang/scheduler` sits beneath the Kitchen: Kitchen depends on it, never the reverse. The scheduler operates without knowledge of the AST or `.gram` syntax, processing only an agnostic task graph. It fulfills two primary roles:
- **`layout()`** arranges the task graph along a relative timeline, tailored to chosen mise en place placement and passive duration elasticity.
diff --git a/packages/docs/src/content/docs/docs/explanation/engine/modules.mdx b/packages/docs/src/content/docs/docs/explanation/engine/modules.mdx
index eb9f413d..301c7e5d 100644
--- a/packages/docs/src/content/docs/docs/explanation/engine/modules.mdx
+++ b/packages/docs/src/content/docs/docs/explanation/engine/modules.mdx
@@ -3,12 +3,9 @@ title: "Module resolution & composition (@gram-lang/modules)"
description: "How @gram-lang/modules resolves dependency graphs, isolates intermediate variable scopes, computes yield-based scaling, and composes multi-file ASTs."
---
-import Since from '../../../../../components/Since.astro';
import { LinkCard, CardGrid } from '@astrojs/starlight/components';
import Term from '../../../../../components/Term.astro';
-
-
The `@gram-lang/modules` package forms the second stage in the Gram pipeline. It takes an entry `RecipeAST` containing `@use` import directives and transforms the multi-file dependency graph into a single, self-contained **composed AST** ready for compilation.
```mermaid
diff --git a/packages/docs/src/content/docs/docs/explanation/engine/renderer.mdx b/packages/docs/src/content/docs/docs/explanation/engine/renderer.mdx
index 1401c416..de446be0 100644
--- a/packages/docs/src/content/docs/docs/explanation/engine/renderer.mdx
+++ b/packages/docs/src/content/docs/docs/explanation/engine/renderer.mdx
@@ -3,13 +3,12 @@ title: "Rendering and output formats (@gram-lang/renderer)"
description: "How @gram-lang/renderer transforms compiled recipe JSON into Markdown, HTML, print documents and run sheets: views of the engine's data."
---
-import Since from '../../../../../components/Since.astro';
import { LinkCard, CardGrid } from '@astrojs/starlight/components';
import Term from '../../../../../components/Term.astro';
Once a recipe has been parsed by `@gram-lang/parser`, scheduled by `@gram-lang/kitchen`, and enriched by `@gram-lang/analyzer`, it is ready for visual presentation.
-The `@gram-lang/renderer` package consumes this complete JSON object and formats it into structured Markdown or semantic HTML markup.
+The `@gram-lang/renderer` package consumes this complete JSON object and formats it into structured Markdown, semantic HTML, plain text, or a standalone print document.
## Output formats
@@ -24,17 +23,20 @@ Produces clean, semantic HTML markup. The HTML formatter employs an **inversion
### 3. Print-ready HTML (`toPrintHTML`)
Generates a complete, self-contained `` document featuring an inlined print stylesheet (A4 format, page-break-aware sections) and standalone vector icons. Designed for direct browser printing without external stylesheet or asset dependencies. While custom classes cannot be injected into `toPrintHTML`, formatting helpers (`formatDuration`, `formatFraction`, `hideStepQty`) remain fully supported.
-### 4. The run sheet (`runSheetToText`, `runSheetToMarkdown`, `runSheetToHTML`, `runSheetToPrintHTML`)
+### 4. Plain text (`toText`)
+Formats the recipe for terminals and plain-text exports (`gram view`, `gram export --format text`), with a title box, portions and timing summary, shopping list, cookware, and numbered steps. All labels come from `@gram-lang/i18n`, and callers can pass `textStyle` hooks to apply ANSI colors without altering alignment width.
+
+### 5. The run sheet (`runSheetToText`, `runSheetToMarkdown`, `runSheetToHTML`, `runSheetToPrintHTML`)
The canonical **view of the schedule**, just as the recipe view is the canonical view of cooking instructions. It faithfully presents the structures computed by the engine (`runSheet()` from `@gram-lang/scheduler`): the calendar breakdown of days, and for each active kitchen visit, the mise en place, the steps of each section written out with their temperatures and timers, and ongoing passive processes, alongside anticipation margins and adjusted rest periods. Text labels follow the configured `lang` option.
-This renderer serves as a reference implementation without prescribing a single UI approach. Some display rules are view-level choices: a visit ends when a passive rest reaches at least one hour (`VISIT_GAP_MINUTES`, defined in the scheduler because it shapes schedule data), an anticipation margin is displayed only when reaching at least 15 minutes, and the mise en place and the steps are extracted directly from the compiled recipe. To allow custom interfaces to reuse this logic without duplicating it, three helper utilities are exported:
+This renderer serves as a reference implementation without prescribing a single UI approach. Some display rules are view-level choices: a visit ends when a passive rest reaches at least one hour (`VISIT_GAP_MINUTES`, defined in the scheduler because it shapes schedule data), an anticipation margin is displayed only when reaching at least 15 minutes, and the mise en place and the steps are extracted directly from the compiled recipe. To allow custom interfaces to reuse this logic without duplicating it, four helper utilities are exported:
- **`visitKit(data, sections, options)`**: extracts and aggregates ingredients required by the sections (with sum breakdowns), preparations from earlier visits, in-stock bases, and necessary cookware. The itself composes it from three parts, following the mise en place mode carried by the sheet.
- **`sectionProgram(data, section, stepIndexes)`**: gives, for a section during a visit, its title and the first and last step it covers, as well as the source file for imported sections.
- **`sectionSteps(data, section, stepIndexes, options)`**: writes out the steps a section does in a visit, numbered as the recipe view numbers them, as HTML, Markdown and plain text, without icons. A standalone note goes with the step that follows it.
- **`describeRunSheet()`**: converts the complete schedule into a structured text representation (`RunSheetModel`), powering the four formatters and the CLI calendar export.
-Standard recipe views (`toHTML`, `toMarkdown`, `toPrintHTML`) focus exclusively on culinary execution (the *how*) without exposing the timeline. With the `runSheet` option enabled, they append the run sheet right after the recipe in a single unified document. See [Build a custom UI](/docs/how-to/build-custom-ui/) to render a custom planning view directly from the underlying data.
+Standard recipe views (`toHTML`, `toMarkdown`, `toPrintHTML`, `toText`) focus exclusively on culinary execution (the *how*) without exposing the timeline; to render the schedule as a dedicated view, call the `runSheetTo*` formatters (or `render("runSheet", ...)`). See [Build a custom UI](/docs/how-to/build-custom-ui/) to render a custom planning view directly from the underlying data.
The `miseEnPlace` option (`"perSection"` by default, `"upfront"`, or `"perDay"`) and the `rests` option (`"shortest"` by default, `"balanced"`, `"longest"`) choose the timeline whose total and idle durations the document headers show (see [The three mise en place strategies](/docs/explanation/planning/#the-three-mise-en-place-strategies)).
@@ -44,7 +46,7 @@ The `toGanttHTML` and `attachGanttInteractivity` functions are deprecated since
## Unified traversal (`RenderBackend`)
-Internally, document formatters (Markdown, HTML, Print HTML) delegate content iteration to a central orchestrator (`renderRecipe` in `traversal.ts`), which interfaces with each format's `RenderBackend` implementation. This architecture guarantees strict structural parity: titles, metadata, ingredient lists, cookware, instructions, footnotes, and nutritional breakdowns are traversed in the exact same sequence across all output targets. The run sheet has its own dedicated traversal, as it follows chronological time rather than the recipe's section sequence.
+Internally, the recipe formatters (Markdown, HTML, Print HTML, Plain Text) delegate content iteration to a central orchestrator (`renderRecipe` in `traversal.ts`), which interfaces with each format's `RenderBackend` implementation. This architecture guarantees strict structural parity: titles, metadata, ingredient lists, cookware, instructions, footnotes, and nutritional breakdowns are traversed in the exact same sequence across all output targets. The run sheet has its own dedicated traversal, as it follows chronological time rather than the recipe's section sequence.
## Usage example
@@ -95,7 +97,7 @@ const html = toHTML(recipe, {
});
```
-The `RendererOptions` interface also provides `bakersReference`/`bakersMathOnly` (baker's percentages), `hideStepQty` (hiding in-step ingredient quantities), and `renderId`. The latter prefixes anchor identifiers (e.g. `"note-1"`) to prevent HTML ID collisions when multiple recipes share a single web page.
+The `RendererOptions` interface also provides `bakersMathOnly` (displaying baker's percentages without absolute quantities), `hideStepQty` (hiding in-step ingredient quantities), and `renderId`. The latter prefixes anchor identifiers (e.g. `"note-1"`) to prevent HTML ID collisions when multiple recipes share a single web page.
## Cross-cutting features
diff --git a/packages/docs/src/content/docs/docs/explanation/engine/scheduler.mdx b/packages/docs/src/content/docs/docs/explanation/engine/scheduler.mdx
index 7096856f..709d1a71 100644
--- a/packages/docs/src/content/docs/docs/explanation/engine/scheduler.mdx
+++ b/packages/docs/src/content/docs/docs/explanation/engine/scheduler.mdx
@@ -3,13 +3,10 @@ title: "The scheduling engine (@gram-lang/scheduler)"
description: "How @gram-lang/scheduler lays a task graph out on a timeline and places it on the calendar: neutral input, two levels, pure functions."
---
-import Since from '../../../../../components/Since.astro';
import { Steps, LinkCard, CardGrid } from '@astrojs/starlight/components';
import Term from '../../../../../components/Term.astro';
-
-
-`@gram-lang/scheduler` is the component in Gram responsible for the temporal dimension: it determines **precisely when** each task must be executed. Until version 1.4.0, this logic was part of the Kitchen compiler. It is now isolated in its own package, allowing the same engine to serve the compiler, renderer, CLI, Language Server (LSP), and your custom integrations.
+`@gram-lang/scheduler` is the component in Gram responsible for the temporal dimension: it determines **precisely when** each task must be executed. Isolated in its own package, it allows the same engine to serve the compiler, renderer, CLI, Language Server (LSP), and custom integrations.
The scheduler sits **beneath** the Kitchen: `@gram-lang/kitchen` depends on it, never the other way around. It has no knowledge of the AST, the `.gram` syntax, or the compiled recipe. Its only input is an agnostic **task graph**, and architecture tests strictly forbid importing any other Gram package into it.
diff --git a/packages/docs/src/content/docs/docs/explanation/mass-and-yield.mdx b/packages/docs/src/content/docs/docs/explanation/mass-and-yield.mdx
index 6ccb9cb8..25418c30 100644
--- a/packages/docs/src/content/docs/docs/explanation/mass-and-yield.mdx
+++ b/packages/docs/src/content/docs/docs/explanation/mass-and-yield.mdx
@@ -8,7 +8,6 @@ Gram is deeply rooted in physical reality. Unlike basic markdown parsers that ju
This page explains the physics engine behind Gram's mass and yield calculations.
import { Steps, LinkCard, CardGrid } from '@astrojs/starlight/components';
-import Since from '../../../../components/Since.astro';
## The three pillars of physics
@@ -35,16 +34,15 @@ When the Analyzer encounters an ingredient, it runs it through a strict priority
1. **Precise Mass**: If you wrote `@flour{200g}` or `@beef{1kg}`, the Analyzer does no work. It simply converts it to grams.
2. **User Override**: If you provided a specific density override in the recipe's YAML frontmatter (e.g., `densities: { flour: 0.55 }`), it uses this explicit value to convert the volume you requested into mass.
3. **Database Density**: If you requested a known volume (`ml`, `cup`, `tbsp`, `tsp`) and your `ingredients.yaml` has a `density` field for that ingredient, it calculates `Volume * Density = Mass`.
-4. **Database Unit Weight**: If you requested a count (`@egg{3}` or `@garlic{2 cloves}`) and your database has a `unit_weight` field, it calculates `Count * Unit Weight = Mass`. Not when the unit holds a quantity of its own, as in `@tomatoes{1 tin of 400 g}` or `@tomatoes{2 8oz tins}`: a tin is not one tomato, and the unit weight gave a wrong mass. Gram does not read the quantity inside a unit yet, so the mass stays incomplete (next step) rather than wrong.
+4. **Database Unit Weight**: If you requested a count (`@egg{3}` or `@garlic{2 cloves}`) and your database has a `unit_weight` field, it calculates `Count * Unit Weight = Mass`. Not when the unit holds a quantity of its own, as in `@tomatoes{1 tin of 400 g}` or `@tomatoes{2 8oz tins}`: a tin is not one tomato, and the unit weight gave a wrong mass. Gram does not read the quantity inside a unit yet, so the mass stays incomplete (next step) rather than wrong.
5. **Incomplete**: If a volume has no density available (no override, no database entry) or a count has no `unit_weight`, the Analyzer refuses to guess. It will **not** assume a default density (e.g. treating everything as water) — doing so would silently corrupt shopping-list totals. The mass calculation fails, the ingredient is marked as "incomplete", and it is listed in its raw, unconverted unit.
### Weighing a sum of quantities
-
-A [sum of quantities](/docs/reference/syntax/ingredients/#sums-of-quantities) is weighed kind by kind. The terms of one kind are added up first, then converted with the algorithm above: `@sugar{1 cup - 2 tbsp}` weighs exactly what `@sugar{14 tbsp}` weighs, and `@butter{1 cup + 30 g}` adds the weight of a cup (through the density) to 30 g. The yield applies kind by kind too, since a unit weight is a gross mass and grams written in the recipe are net.
+A [sum of quantities](/docs/reference/syntax/ingredients/#sums-of-quantities) is weighed by unit family. Terms in the same family are summed first, then converted using the priority order above: `@sugar{1 cup - 2 tbsp}` weighs the same as `@sugar{14 tbsp}`, while `@butter{1 cup + 30 g}` adds the converted cup weight to 30 g. Yield applies per family as well, since a `unit_weight` reflects gross mass whereas explicit grams are net.
-If one kind can't be weighed (`@rice{1 cup + 20 g}` with no density for rice), the whole sum gets **no** mass rather than a partial one: the shopping list merges entries by mass, and a partial mass would have you buy 20 g of rice and forget the cup. The grams still count where they are bought, in their own shopping-list entry. A sum Gram refuses (`INVALID_QUANTITY`) counts for nothing in the nutrition, like a missing quantity.
+If any family cannot be weighed (such as `@rice{1 cup + 20 g}` without a density for rice), the sum receives **no** total mass rather than a partial one—otherwise shopping-list merging could keep the 20 g and lose the cup. The gram term still appears in its own shopping-list entry, while invalid sums (`INVALID_QUANTITY`) are excluded from nutrition totals.
## Yield calculation (the waste factor)
diff --git a/packages/docs/src/content/docs/docs/explanation/nutrition.mdx b/packages/docs/src/content/docs/docs/explanation/nutrition.mdx
index dac42a35..b6b71d98 100644
--- a/packages/docs/src/content/docs/docs/explanation/nutrition.mdx
+++ b/packages/docs/src/content/docs/docs/explanation/nutrition.mdx
@@ -10,7 +10,6 @@ However, because nutritional data is highly sensitive and impacts dietary choice
## The calculation flow
import { Steps, LinkCard, CardGrid } from '@astrojs/starlight/components';
-import Since from '../../../../components/Since.astro';
@@ -18,7 +17,7 @@ import Since from '../../../../components/Since.astro';
2. **Database Lookup**: The Analyzer queries your `ingredients.yaml` database for the `nutrition` block of each ingredient. The database values must always represent the nutrients **per 100g** of the raw ingredient.
3. **Proportional Scaling**: The Analyzer scales the per-100g database values to match the actual mass used in the recipe.
4. **Aggregation**: The scaled values for all ingredients are summed to calculate the Total Recipe Nutrition.
-5. **Serving Bases** : The Total Recipe Nutrition is then expressed on the bases a cook actually reads. If the recipe's frontmatter defines `portions: 4`, it is divided by 4 to give `perPortion`. It is also divided by the mass it was computed from to give `per100g` — which needs no `portions` at all, so an unportioned recipe still gets a standardized figure.
+5. **Serving Bases**: The Total Recipe Nutrition is then expressed on the bases a cook actually reads. If the recipe's frontmatter defines `portions: 4`, it is divided by 4 to give `perPortion`. It is also divided by the mass it was computed from to give `per100g` — which needs no `portions` at all, so an unportioned recipe still gets a standardized figure.
## Transparent partial data reporting
@@ -34,7 +33,7 @@ Rather than withholding the total outright, Gram surfaces it alongside the infor
The reference HTML renderer reflects this directly: it always shows the nutrition panel whenever there is any data (or any warning) to show, with a `Coverage: X%` badge next to it. This gives the cook a genuinely useful number immediately, while making it clear at a glance how much of the recipe that number actually accounts for — rather than replacing a "90% accurate estimate" with nothing at all.
-## What "per 100 g" means here
+## What "per 100 g" means here
Gram models **no cooking loss**. There is no evaporation, no reduction, no bake loss — the `yield` field in the ingredient database is about trimming waste (peels, stems, bones), not about what happens in the pan.
diff --git a/packages/docs/src/content/docs/docs/explanation/philosophy.mdx b/packages/docs/src/content/docs/docs/explanation/philosophy.mdx
index a1792750..4800cb1e 100644
--- a/packages/docs/src/content/docs/docs/explanation/philosophy.mdx
+++ b/packages/docs/src/content/docs/docs/explanation/philosophy.mdx
@@ -73,7 +73,7 @@ portions: 10
[Mix] In a #mixing bowl{}, combine the @flour{300 g}, @sugar{500 g}, and @salt{3 g}. ->&dry ingredients{}
-[Heat] In a #large saucepan{}, bring the @milk{1 l}, @butter{100 g}, and @vanilla bean{1}(split and scraped) to ^{85C}. ->&hot milk{}
+[Heat] In a #large saucepan{}, bring the @milk{1 l}, @butter{100 g}, and @vanilla bean{1}(split and scraped) to ^{185°F}. ->&hot milk{}
[Mix] Pour the &hot milk{} over the &dry ingredients{} all at once. Whisk vigorously.
@@ -85,10 +85,10 @@ portions: 10
{
"title": "Cannelés",
"meta": { "portions": "10" },
- "generator": "@gram-lang/kitchen@1.4.0",
+ "generator": "@gram-lang/kitchen@1.5.0",
"metrics": {
- "preparationTime": 24,
- "activeTime": 41,
+ "preparationTime": 9,
+ "activeTime": 56,
"totalMass": 2132,
"nutrition": {
"total": {
diff --git a/packages/docs/src/content/docs/docs/explanation/planning.mdx b/packages/docs/src/content/docs/docs/explanation/planning.mdx
index 4847354d..99ff10a2 100644
--- a/packages/docs/src/content/docs/docs/explanation/planning.mdx
+++ b/packages/docs/src/content/docs/docs/explanation/planning.mdx
@@ -3,12 +3,9 @@ title: "Planning and run sheets"
description: "How Gram turns recipe facts into an organized schedule: mise en place modes, multi-day structure, real-time calendar projection, and run sheet generation."
---
-import Since from '../../../../components/Since.astro';
import { Steps, LinkCard, CardGrid } from '@astrojs/starlight/components';
import Term from '../../../../components/Term.astro';
-
-
A recipe describes **what it requires** and **how each step is carried out**: ingredients, cookware, active steps, and timings. However, it does not dictate how you organize your time in the kitchen.
Switching planning strategies never changes the required ingredients, the shopping list, estimated preparation times, or actual active cooking work. It solely rearranges the timeline of tasks to match your schedule and availability.
@@ -146,7 +143,7 @@ title: Layered tart
[Whisk] @milk{500ml} and @eggs{4}.
-[Chill] Chill at ^{4C} for ~_{24h}.
+[Chill] Chill at ^{39°F} for ~_{24h}.
## Crust ->&crust
diff --git a/packages/docs/src/content/docs/docs/explanation/scaling.mdx b/packages/docs/src/content/docs/docs/explanation/scaling.mdx
index d8de112a..8b7ef5b4 100644
--- a/packages/docs/src/content/docs/docs/explanation/scaling.mdx
+++ b/packages/docs/src/content/docs/docs/explanation/scaling.mdx
@@ -20,7 +20,7 @@ Reverse scaling looks simple — divide the target quantity by the ingredient's
- Scaling against a relative quantity (`@water{70% @&flour}`) is circular: its value is *derived* from another ingredient, so it can't also be the reference.
- An ingredient split across two incompatible units in the same recipe only has a "primary" quantity in the aggregated shopping list — deriving a factor from it silently ignores the rest.
-`resolveScaleFactor()` (exported from `@gram-lang/kitchen`) validates all of this up front and throws a specific, typed error instead of returning a wrong number. Every consumer — the CLI's `--scale` flag today, the Playground tomorrow — calls the same function and gets the same guarantees for free.
+`resolveScaleFactor()` (exported from `@gram-lang/kitchen`) validates all of this up front and throws a specific, typed error instead of returning a wrong number. Every consumer — the CLI's `--scale` flag, the VS Code preview, and the Playground — calls the same function and gets the same guarantees for free.
## The request/resolution contract
@@ -55,10 +55,18 @@ function resolveScaleFactor(
| `UNIT_MISMATCH` | Units belong to different physical families (mass vs. volume) and no density could be resolved | Add a density via `gram db enrich`, declare one in the recipe's `densities:` frontmatter, or match units |
| `INVALID_FACTOR` | Non-positive, non-finite, zero-quantity reference, etc. | — |
-## Scaling sums of quantities
-
+## Immutability
-A [sum of quantities](/docs/reference/syntax/ingredients/#sums-of-quantities) scales term by term: `applyScale` multiplies each of its `parts`, then works out the total again. Showing it is the renderer's job, and it follows one rule: an unscaled recipe shows each sum as written; once scaled, an amount is written the way a cook measures it.
+`applyScale(result, factor)` — the function that actually multiplies every quantity — is a pure function: it `structuredClone`s the input before mutating anything, and returns a new `CompilationResult`. Two things fall out of that for free:
+
+- **No compounding.** Re-applying a different factor always starts from the same untouched original, so there's no risk of a factor being applied twice onto an already-scaled `portions` value.
+- **No shared-reference corruption.** `compile()` itself defensively clones the AST's `meta` object before handing it to the result, so scaling a compiled recipe never mutates the parser's AST — safe even when a caller (such as the Playground) caches the parsed AST and recompiles on slider ticks.
+
+The resulting `CompilationResult` carries an honest `scaleFactor` field (default `1`) recording how it relates to the unscaled original — this is what interactive UIs (like the Playground or a custom portions slider) read to compute a baseline, instead of a hidden/underscored field.
+
+## Scaling sums of quantities
+
+A [sum of quantities](/docs/reference/syntax/ingredients/#sums-of-quantities) scales term by term: `applyScale` multiplies each entry in `parts` and recomputes the total. The renderer preserves sums as written when unscaled, and recomposes scaled amounts into practical kitchen measures:
| Written | Scaled | Shown |
| :--- | :--- | :--- |
@@ -70,28 +78,18 @@ A [sum of quantities](/docs/reference/syntax/ingredients/#sums-of-quantities) sc
| `{1 kg + 200 g}` | × 2 | `2.4 kg` |
| `{1 cup + 50 ml}` | × 2 | `2 cup + 100 ml` |
-- **US and imperial units are recomposed** only when needed, into fractions a measuring cup or spoon actually has (¼, ⅓, ½, ⅔, ¾ of a cup; ½ tbsp; ⅛, ¼, ½ tsp…), never above the largest unit written, with spoons (`cup → tbsp → tsp`) and liquid measures (`gal → qt → pt → fl oz`) kept apart. Terms that can already be measured as they are stay.
-- **Metric units stay in the largest unit written**, in decimals: you weigh in grams, so `{800 g + 200 g}` reads `1000 g`, not `1 kg`. Only the shopping list moves up to the unit you buy in (`1500 g` → `1.5 kg`).
-- **A range** keeps the part both bounds share, and the spread goes on the last term.
-- **Two systems** (`cup` and `ml`) stay term by term.
+- **US and imperial units** are recomposed only when needed into standard measuring fractions (`¼`, `⅓`, `½`, `⅔`, `¾` cup; `½` tbsp; `⅛`, `¼`, `½` tsp…), staying within the largest unit written and keeping spoons (`cup → tbsp → tsp`) separate from liquid measures (`gal → qt → pt → fl oz`).
+- **Metric units** keep the largest unit written using decimals (`{800 g + 200 g}` renders as `1000 g`, not `1 kg`); only the shopping list promotes totals to buying units (`1500 g` → `1.5 kg`).
+- **Ranges** factor out the shared base and keep the spread on the final term.
+- **Mixed systems** (`cup` and `ml`) scale term by term.
-**Reverse scaling against a sum** (`--scale flour=500g`) uses its total when every term is of one kind; a volume next to a weight leaves two shopping-list entries, which raises `AMBIGUOUS_MULTI_UNIT`, as two separate mentions would.
+**Reverse scaling against a sum** (`--scale flour=500g`) uses the combined total when all terms belong to the same family; mixing a volume and a weight produces two shopping-list entries and raises `AMBIGUOUS_MULTI_UNIT`.
## Scaling ratios and proportional times
-
-A [ratio with units](/docs/reference/syntax/relative-quantities/#ratios-with-units) is never multiplied by the factor: `applyScale` scales the targets, then resolves every ratio again from what was written (`resolveRatios`, the same pass `compile` runs), so `@eggs{1 / 100 g @&flour}` follows the flour, and a ratio of a fixed target (`@=pepper{2 g}`) does not move. The shopping list is then built again from the scaled sections, so a fixed and a ratio use of one ingredient merge as they do at compile time.
+A [ratio with units](/docs/reference/syntax/relative-quantities/#ratios-with-units) is never multiplied directly by the scale factor: `applyScale` scales the targets first, then re-runs `resolveRatios` from the original formula so `@eggs{1 / 100 g @&flour}` follows the scaled flour while a ratio pointing to a fixed target (`@=pepper{2 g}`) stays unchanged. The shopping list is rebuilt from the scaled sections so fixed and ratio-based uses merge just as they do at compile time.
-When a [proportional time](/docs/reference/syntax/times/#proportional-times) changes (`~{15 min / 500 g @&roast}` for twice the roast), the schedule is laid out again by the same functions as `compile`: the `schedule`, the task graph, `metrics` and the deprecated `timings` describe the scaled recipe exactly as the rewritten source would compile. A recipe with no ratio scales as before. The warnings still describe the recipe as written.
-
-## Immutability
-
-`applyScale(result, factor)` — the function that actually multiplies every quantity — is a pure function: it `structuredClone`s the input before mutating anything, and returns a new `CompilationResult`. Two things fall out of that for free:
-
-- **No compounding.** Re-applying a different factor always starts from the same untouched original, so there's no risk of a factor being applied twice onto an already-scaled `portions` value.
-- **No shared-reference corruption.** `compile()` itself defensively clones the AST's `meta` object before handing it to the result, so scaling a compiled recipe never mutates the parser's AST — safe even if a future caller (e.g. a Playground that caches the parsed AST and only recompiles on a scale-slider tick, instead of reparsing on every tick) reuses the same AST across multiple calls.
-
-The resulting `CompilationResult` carries an honest `scaleFactor` field (default `1`) recording how it relates to the unscaled original — this is what interactive UIs (like the renderer's HTML portions widget) read to compute a baseline, instead of a hidden/underscored field.
+When a [proportional time](/docs/reference/syntax/times/#proportional-times) changes (`~{15 min / 500 g @&roast}` for twice the roast), the schedule, task graph, `metrics`, and deprecated `timings` are recomputed by the same scheduling functions used by `compile()`, matching what the rescaled source would produce. Compiler warnings still reflect the unscaled source as written.
## Baker's percentage validation
@@ -114,7 +112,6 @@ When a recipe imports an external base via `@use` (such as `@use "./bases/crust.
## Consuming this from a new frontend
import { Steps, LinkCard, CardGrid } from '@astrojs/starlight/components';
-import Since from '../../../../components/Since.astro';
diff --git a/packages/docs/src/content/docs/docs/explanation/shopping-list-aggregation.mdx b/packages/docs/src/content/docs/docs/explanation/shopping-list-aggregation.mdx
index 8ca78929..30633fda 100644
--- a/packages/docs/src/content/docs/docs/explanation/shopping-list-aggregation.mdx
+++ b/packages/docs/src/content/docs/docs/explanation/shopping-list-aggregation.mdx
@@ -28,7 +28,6 @@ flowchart TD
```
import { Steps, LinkCard, CardGrid } from '@astrojs/starlight/components';
-import Since from '../../../../components/Since.astro';
import Term from '../../../../components/Term.astro';
@@ -38,13 +37,13 @@ import Term from '../../../../components/Term.astro';
Alias resolution happens one layer up, in `@gram-lang/analyzer`, which does have access to the ingredient database. If `beurre` is listed as an alias of `butter` in `ingredients.yaml`, the analyzer re-groups kitchen's raw entries by this canonical id, merging `@butter` and `@beurre` into a single `butter` entry. **This step only runs when an ingredient database is supplied** — without one (compiling with `@gram-lang/kitchen` alone, or a CLI command run without a database), aliases are not resolved and the two ingredients stay separate.
2. ### Unit merging
- `@gram-lang/kitchen` merges what it can add up exactly, with no database, at three levels:
+ `@gram-lang/kitchen` merges exact quantities without a database across three levels:
- - **Same unit**: `100g` and `50g` are summed (`150g`). Spellings of one unit count as one (`cup` and `cups`, `tbsp` and `tablespoon`).
- - **Same scale**: units that convert by a whole ratio add up in the smallest unit written. US spoons and cups (`tsp`, `tbsp`, `fl oz`, `cup`, `pt`, `qt`, `gal`), ounces and pounds, grams and kilograms, milliliters and liters each form a scale: `1 cup` and `2 tbsp` give `18 tbsp` (shown as `1 cup + 2 tbsp`), `1 kg` and `200 g` give `1200 g` (shown as `1.2 kg`).
- - **Different systems or kinds** (`cup` and `ml`, a volume and a weight): separate entries, flagged `multiUnit: true`. `pinch` and `dash` stay off every scale, since they are not exact measures.
+ - **Same unit**: `100g` and `50g` sum to `150g`, and spelling variants (`cup`/`cups`, `tbsp`/`tablespoon`) collapse together.
+ - **Same scale**: units with exact integer conversions sum in the smallest unit written. US kitchen measures (`tsp`, `tbsp`, `fl oz`, `cup`, `pt`, `qt`, `gal`), imperial weights (`oz`, `lb`), metric weights (`mg`, `g`, `kg`), and metric volumes (`ml`, `cl`, `dl`, `l`) each form a scale: `1 cup` and `2 tbsp` sum to `18 tbsp` (formatted as `1 cup + 2 tbsp`), and `1 kg` and `200 g` sum to `1200 g` (formatted as `1.2 kg`).
+ - **Different systems or kinds** (`cup` and `ml`, or volume and weight): kept as separate entries flagged `multiUnit: true`. Imprecise measures like `pinch` and `dash` stay off every scale.
- A [sum of quantities](/docs/reference/syntax/ingredients/#sums-of-quantities) counts as separate mentions: `@milk{1 cup + 50 ml}` is bought as `1 cup` and `50 ml`, exactly like `@milk{1 cup}` then `@&milk{50 ml}`, so the shopping list never depends on how the author grouped the amounts. Ranges add up bound by bound (`2-3 g` and `200 g` give `202-203 g`, no longer the middle `202.5 g`). A unit Gram doesn't know is kept as written: `clove` and `cloves` stay two entries.
+ A [sum of quantities](/docs/reference/syntax/ingredients/#sums-of-quantities) behaves like separate mentions (`@milk{1 cup + 50 ml}` acts just like `@milk{1 cup}` followed by `@&milk{50 ml}`), so shopping lists never depend on how quantities were grouped. Ranges sum bound by bound (`2-3 g` and `200 g` yield `202-203 g`), while unrecognized units stay as written (`clove` and `cloves` remain distinct).
Entries in different kinds of units (e.g., `100g` and `1 cup`) can only be summed converting through mass, which — like aliasing — depends on the ingredient database and therefore happens in `@gram-lang/analyzer`. If every contributing quantity resolves to a mass (density known, from the database or a recipe-level override), the analyzer converts them all to grams and merges them into a single entry.
@@ -54,7 +53,7 @@ import Term from '../../../../components/Term.astro';
The canonical id (e.g. `butter`) exists purely so entries can be grouped and merged — it's an internal key, not the label shown to the cook. The **name** displayed in a shopping-list entry follows one rule, applied identically everywhere (the Playground, `gram view`, `gram shop`, `gram export`):
| In Recipe | Matched ID | Database `name` | Displayed Name | Why? |
- | --- | --- | --- | --- | --- | --- |
+ | --- | --- | --- | --- | --- |
| `@flour` | `flour` (Exact) | Wheat Flour | **Wheat Flour** | Exact match = prefer database's enriched name. |
| `@farine` (FR) | `flour` (Alias) | Wheat Flour | **farine** | Alias match = keep recipe's wording to preserve language. |
| `@harina` (ES) | `flour` (Alias) | Wheat Flour | **harina** | The trick works with any language configured in your aliases. |
@@ -65,10 +64,10 @@ import Term from '../../../../components/Term.astro';
**No database, or no matching entry?** There's simply no canonical `name` to prefer, so the recipe's own wording is always used — this works with an empty database (`{}`), a database that has no entry at all for that ingredient, and with `@gram-lang/kitchen`'s `compile()` used on its own without ever calling `@gram-lang/analyzer`.
:::
-3. ### Ghosting relative quantities
- Relative quantities (like `@water{50% @&flour}`) pose a unique problem for shopping lists, especially in multi-recipe batch processing.
+3. ### Relative quantities and unresolved formulas
+ When a [relative quantity](/docs/reference/syntax/relative-quantities/) (`@water{50% @&flour}`) or a ratio with units (`@eggs{1 / 100 g @&flour}`) resolves to a concrete amount—using a known mass, matching unit, or database density—it merges directly into the shopping list alongside static ingredients.
- If you scale the batch, the water quantity depends on a flour quantity that might belong to a specific recipe. To prevent mathematical paradoxes, the Kitchen **ghosts** relative quantities in the shopping list. This means they are excluded from the main aggregation and listed separately as unresolvable dependencies, ensuring the static weights remain mathematically pure.
+ If the target's mass or unit conversion cannot be resolved (for instance, missing density in `ingredients.yaml`), Gram keeps the static entries separate and preserves the unresolved formula (`50% of flour`) instead of guessing or dropping it, ensuring static totals stay accurate.
4. ### Resolving composites (MAX vs SUM)
The most complex part of the aggregation pipeline is handling Composite Ingredients (`<@`).
@@ -86,8 +85,6 @@ The result is a highly optimized, deduplicated, and mathematically sound array o
## Kilograms to buy, grams to weigh
-
-
The same amount is formatted differently depending on how you use it:
- **What you buy, or read as a total**: starting at 1000 g (or 1000 ml), shopping lists, recipe and section totals, and nutrition reference weights switch to kilograms (`3.9 kg` instead of `3900 g`) and liters (`2.25 l` of milk), the units you actually buy at the store.
diff --git a/packages/docs/src/content/docs/docs/how-to/build-custom-ui.mdx b/packages/docs/src/content/docs/docs/how-to/build-custom-ui.mdx
index 6810d1f1..1b099dae 100644
--- a/packages/docs/src/content/docs/docs/how-to/build-custom-ui.mdx
+++ b/packages/docs/src/content/docs/docs/how-to/build-custom-ui.mdx
@@ -4,7 +4,6 @@ description: "Consume Gram's compiled JSON directly in React, Vue, or Svelte to
---
import { Steps, LinkCard, CardGrid } from '@astrojs/starlight/components';
-import Since from '../../../../components/Since.astro';
If you are developing a modern web application (using React, Vue, Svelte, or Next.js, for instance), you can directly consume the compiled **JSON** data produced by Gram and connect it to your own user interface components.
@@ -176,8 +175,6 @@ While the parser initially produces a raw Abstract Syntax Tree (AST), `@gram-lan
#### Option A: Relative timeline (minutes from start)
-
-
To render a continuous timeline, use the blocks in `recipe.schedule.blocks`. If you want to explore different scheduling strategies dynamically without recompiling the recipe, pass `recipe.tasks` directly to `layout()`:
```typescript
@@ -210,8 +207,6 @@ While the parser initially produces a raw Abstract Syntax Tree (AST), `@gram-lan
#### Option B: Real-world calendar schedule (dates and clock times)
-
-
When you have a target serving time and cooking availability (such as cooking only between 8 a.m. and 10 p.m.), the engine projects the recipe onto a real-world calendar using `project()`, then organizes visits by day and visit using `runSheet()` :
```typescript
diff --git a/packages/docs/src/content/docs/docs/how-to/configure-ai.mdx b/packages/docs/src/content/docs/docs/how-to/configure-ai.mdx
index adb99194..69a65269 100644
--- a/packages/docs/src/content/docs/docs/how-to/configure-ai.mdx
+++ b/packages/docs/src/content/docs/docs/how-to/configure-ai.mdx
@@ -8,7 +8,6 @@ The Gram CLI (`@gram-lang/cli`) can leverage Large Language Models (LLMs) to aut
This guide explains how to set up and configure your preferred AI provider step by step.
import { Steps, LinkCard, CardGrid } from '@astrojs/starlight/components';
-import Since from '../../../../components/Since.astro';
## What AI powers in the Gram CLI
@@ -154,8 +153,6 @@ Ollama requires no API key. You can also specify a custom base URL via the `OLLA
### Dynamic overrides via flags
-
-
You can override your default provider or model on the fly for any single command without editing your configuration:
```bash
diff --git a/packages/docs/src/content/docs/docs/how-to/deprecations.mdx b/packages/docs/src/content/docs/docs/how-to/deprecations.mdx
index a24a9891..7d50f961 100644
--- a/packages/docs/src/content/docs/docs/how-to/deprecations.mdx
+++ b/packages/docs/src/content/docs/docs/how-to/deprecations.mdx
@@ -278,7 +278,7 @@ When writing TypeScript, deprecated properties and functions from `@gram-lang/ki
-
-:::tip[See it in the playground]
-The [playground](/play) shows the database its examples use, in its `ingredients.yaml` tab, beside the recipe files. It is the same format as your own file, read-only: an ingredient you add to a recipe there has no mass and no nutrition until it is in such a database.
-:::
## The database workflow
@@ -57,7 +50,6 @@ The recommended workflow consists of three steps, to be run in this exact order:
:::
3. ### Enriching data
-
Now that your database has clean, deduplicated entries, you need to fill in their physical (density, unit weight, yield) and nutritional (calories, macros) data.
@@ -78,8 +70,6 @@ The recommended workflow consists of three steps, to be run in this exact order:
## Validating your database
-
-
Before committing your `ingredients.yaml` to version control, it is good practice to validate it against the Gram schema to ensure there are no formatting errors (like overlapping aliases).
```bash
@@ -96,6 +86,10 @@ gram db merge ~/Downloads/community-db.yaml
If there are conflicts (e.g., the community database says butter has 717 kcal, but yours says 740 kcal), the CLI will ask you interactively how to resolve them.
+## Inspecting an example database in the playground
+
+If you want to see how a working `ingredients.yaml` looks alongside real recipes before setting up your own workspace, open the [playground](/play): it shows the example database in a read-only tab next to the recipe files. Note that any new ingredient you type there will have no mass or nutrition estimates unless it already exists in that database.
+
## Related resources
diff --git a/packages/docs/src/content/docs/docs/how-to/organize-modular-recipes.mdx b/packages/docs/src/content/docs/docs/how-to/organize-modular-recipes.mdx
index a556fa47..1bf63994 100644
--- a/packages/docs/src/content/docs/docs/how-to/organize-modular-recipes.mdx
+++ b/packages/docs/src/content/docs/docs/how-to/organize-modular-recipes.mdx
@@ -4,23 +4,20 @@ description: "A practical guide to splitting recipes into reusable modules, orga
---
import { Steps, Tabs, TabItem, FileTree, CardGrid, LinkCard } from '@astrojs/starlight/components';
-import Since from '../../../../components/Since.astro';
import Term from '../../../../components/Term.astro';
-
-
As your collection of `.gram` recipes grows, decomposing complex dishes into reusable components — pastries, sauces, stocks, infusions — saves time and ensures consistency across your culinary repertoire. Extracting these core components into their own dedicated files eliminates repetitive copy-pasting: whenever you refine your dough (a dialed-in resting time, a tweaked flour ratio), every recipe in your collection immediately benefits from the improvement.
This guide walks you through practical patterns for structuring, organizing, and executing modular Gram projects with `@use`.
## Step-by-step: extracting and importing your first module
-If you followed [Your First Recipe](/docs/tutorials/first-recipe), the **Lemon Meringue Tart** was written from start to finish in a single `.gram` file. Here is how to extract the sweet pastry dough into a reusable component and import it with `@use`.
-
1. **Extract the base into its own file**
+ If you followed [Your First Recipe](/docs/tutorials/first-recipe), the **Lemon Tart** was written from start to finish in a single `.gram` file. Here is how to extract the sweet pastry dough into a reusable component and import it with `@use`.
+
Start from the dough section in your recipe:
```gram title="Original section"
@@ -28,9 +25,9 @@ If you followed [Your First Recipe](/docs/tutorials/first-recipe), the **Lemon M
[Process] In a #food processor{}, @flour{180g}, @icing sugar{55g}, and @salt{1/4 tsp}.
- [Crumble] Add the @butter{115g}(cold, cut into small cubes) and mix for ~{1-2min} until sandy.
+ [Crumble] Add the @butter{115g}(cold, cut into small cubes) and mix for ~{1-2min} until ={sandy}.
- [Combine] Add the @egg{1}, @?vanilla extract{1/2 tsp} and mix until the dough comes together.
+ [Combine] Add the @egg{1}, @?vanilla extract{1/2 tsp} and mix until ={the dough comes together}.
[Rest] Wrap in #plastic wrap{} and let it rest in the fridge for ~_{1h}.
```
@@ -46,9 +43,9 @@ If you followed [Your First Recipe](/docs/tutorials/first-recipe), the **Lemon M
[Process] In a #food processor{}, @flour{180g}, @icing sugar{55g}, and @salt{1/4 tsp}.
- [Crumble] Add the @butter{115g}(cold, cut into small cubes) and mix for ~{1-2min} until sandy.
+ [Crumble] Add the @butter{115g}(cold, cut into small cubes) and mix for ~{1-2min} until ={sandy}.
- [Combine] Add the @egg{1}, @?vanilla extract{1/2 tsp} and mix until the dough comes together.
+ [Combine] Add the @egg{1}, @?vanilla extract{1/2 tsp} and mix until ={the dough comes together}.
[Rest] Wrap in #plastic wrap{} and let it rest in the fridge for ~_{1h}.
```
@@ -62,7 +59,7 @@ If you followed [Your First Recipe](/docs/tutorials/first-recipe), the **Lemon M
```gram title="lemon-tart.gram"
---
- title: Lemon Meringue Tart
+ title: Lemon Tart
portions: 8
---
@@ -72,15 +69,15 @@ If you followed [Your First Recipe](/docs/tutorials/first-recipe), the **Lemon M
[Whisk] In a #saucepan{}, @lemon zest{1 tbsp}<@lemon, @lemon juice{120g}<@lemon{2}, @sugar{125% @&lemon juice}, and @eggs{3}.
- [Cook] Over ^{medium heat} for ~{8min} until thickened.
+ [Cook] Over ^{medium heat} for ~{8min} until ={thickened}(a finger drawn across the back of the spoon leaves a clean line).
## Baking the Tart Shell ->&baked shell{}
- [Preheat] The #oven to ^{350F}.
+ [Preheat] The #oven to ^{350°F}.
[Roll out] The &dough{450g} for ~{5min} and place it in a #tart ring{}.
- [Bake] For ~_{20min} until golden. Let cool.
+ [Bake] For ~_{20min} until ={golden}. Let cool.
## Assembly
@@ -104,7 +101,7 @@ If you followed [Your First Recipe](/docs/tutorials/first-recipe), the **Lemon M
[Divide] The &dough{450g} into 12 small tart tins.
- [Bake] At ^{180C} for ~_{15min} until golden.
+ [Bake] At ^{350°F} for ~_{15min} until golden.
[Fill] Each shell with a spoonful of @jam{15g}.
```
@@ -205,7 +202,7 @@ In your main recipe, destructured imports let you bind both components cleanly i
[Spread] The &frangipane{400g} evenly over the base.
-[Top] With sliced @pears{3} and bake at ^{180C} for ~_{35min}.
+[Top] With sliced @pears{3} and bake at ^{350°F} for ~_{35min}.
```
:::tip[Local renaming]
@@ -291,11 +288,7 @@ The web-based [Playground](/play) supports editing multi-file recipes: open the
## Planning with imports
-When generating a [run sheet](/docs/how-to/plan-a-meal/), every base imported via `@use` is fully integrated into the global schedule: its preparation steps and mise en place are coordinated alongside the host recipe.
-
-- **Multi-day scheduling:** Adding a day anchor to an import directive (for example `@use "./bases/sponge.gram" as &sponge ~{-2d}`) automatically schedules the preparation of that sub-recipe two days before the service.
-- **Stocked bases (`--stock`):** If you mark a base as already on hand in your freezer or pantry (`--stock ./bases/sponge.gram`), no cooking visit is scheduled for it. It simply appears annotated as "in stock" in the mise en place of the visit where the host recipe needs it.
-- **Step traceability:** In the execution part of a visit, a section that comes from an imported module explicitly displays its source file name next to its title (for example: `SPONGE — sponge.gram`).
+When generating a [run sheet](/docs/how-to/plan-a-meal/), imported sections are fully coordinated with the host recipe and keep their origin visible right next to their title (for example: `SPONGE — sponge.gram`). Stocked bases (`--stock`) skip production and appear as "in stock" in the mise en place of the visit that uses them.
## Related resources
diff --git a/packages/docs/src/content/docs/docs/how-to/plan-a-meal.mdx b/packages/docs/src/content/docs/docs/how-to/plan-a-meal.mdx
index 96d56911..961cd94f 100644
--- a/packages/docs/src/content/docs/docs/how-to/plan-a-meal.mdx
+++ b/packages/docs/src/content/docs/docs/how-to/plan-a-meal.mdx
@@ -3,12 +3,9 @@ title: "Plan a meal"
description: "Choose when to serve, get the run sheet of a recipe (the days, the visits to the kitchen, what to take out), print it with the recipe and send it to your calendar."
---
-import Since from '../../../../components/Since.astro';
import { Steps, LinkCard, CardGrid } from '@astrojs/starlight/components';
import Term from '../../../../components/Term.astro';
-
-
You want to serve a pistachio and raspberry entremets on Saturday at 8 p.m. It needs three days of work, a sponge and an insert made two days before, a glaze you may already have in the freezer, and you can cook between 8 a.m. and 10 p.m. This guide shows you how to turn a recipe into an actionable plan to follow in the kitchen or integrate into your calendar.
The recipe says **how** to do things. The says **when to come** and **what to take out**. Gram computes it directly from the recipe, so there is nothing to write twice.
@@ -54,7 +51,7 @@ The recipe says **how** to do things. The sa
[Mix] Mix @pistachios{80g}, @eggs{3} and @sugar{60g}.
- [Bake] Bake at ^{180C} for ~{12min}.
+ [Bake] Bake at ^{350°F} for ~{12min}.
```
```gram title="bases/raspberry-insert.gram"
diff --git a/packages/docs/src/content/docs/docs/how-to/scale-recipes.mdx b/packages/docs/src/content/docs/docs/how-to/scale-recipes.mdx
index 46d5861a..8fb7de59 100644
--- a/packages/docs/src/content/docs/docs/how-to/scale-recipes.mdx
+++ b/packages/docs/src/content/docs/docs/how-to/scale-recipes.mdx
@@ -3,9 +3,12 @@ title: "How to scale recipes dynamically"
description: "Use Relative Quantities and Baker's Math to write ratio-based recipes that recalculate themselves automatically."
---
-Gram is designed to ensure that recipes scale mathematically across its entire ecosystem. Whether you are using the interactive Playground, rendering HTML/Markdown documents, or running CLI commands, Gram natively supports two powerful features for ratio-based cooking (like pastry or bread): **Relative Quantities** and **Baker's Math**.
+import { Steps, LinkCard, CardGrid } from '@astrojs/starlight/components';
+import Term from '../../../../components/Term.astro';
-This guide shows you how to use **Relative Quantities** to build dynamic, self-documenting recipes based on ratios, and how to use **Baker's Math** to display traditional recipes in percentage format.
+Gram is designed to ensure that recipes scale mathematically across its entire ecosystem. Whether you are using the interactive Playground, rendering HTML/Markdown documents, or running CLI commands, Gram natively supports two powerful features for ratio-based cooking (like pastry, bread, or roasting): **relative quantities** (percentages and the `a / b`) and **Baker's Math**.
+
+This guide shows you how to use **Relative Quantities** (`%` and `a / b`) to build dynamic, self-documenting recipes based on ratios, and how to use **Baker's Math** to display traditional recipes in percentage format.
## The limit of static quantities
@@ -25,9 +28,7 @@ What if you want to increase the hydration from 70% to 75%? You would have to ma
Some recipes are fundamentally built around the mathematical relationship between ingredients, rather than strict absolute quantities (e.g., a bread dough defined by its 70% hydration).
-In Gram, you can express these relationships directly in the source code using **Relative Quantities** (`% @&target` for ingredients, or `% &target` for intermediate variables). This allows the recipe to recalculate itself dynamically when you tweak a single percentage.
-
-import { Steps, LinkCard, CardGrid } from '@astrojs/starlight/components';
+In Gram, you can express these relationships directly in the source code using **Relative Quantities**: mass percentages (`% @&target`) when both ingredients are weighed, or **ratios with units** (`a / b @&target`) when a count, volume, or cooking time depends on another ingredient's weight or count. This allows the recipe to recalculate itself dynamically when you tweak a single figure.
1. ### Define the anchor (target)
@@ -51,6 +52,16 @@ import { Steps, LinkCard, CardGrid } from '@astrojs/starlight/components';
:::
+### Ratios with units
+
+Percentages always work in grams of mass—great for hydration or salt, less natural when a recipe says "1 egg per 100 g of flour" or "15 minutes per 500 g of roast". Write a ratio with units (`amount / targetAmount @&target`) instead to preserve the target unit or count:
+
+```gram
+[Mix] @flour{500g} with @eggs{1 / 100 g @&flour}. // 5 eggs
+
+[Roast] Season @beef{1.2 kg} and roast ~{15 min / 500 g @&beef}. // 36 min
+```
+
## Scaling the dynamic recipe
Because the relationships are encoded directly in the recipe, Gram handles the math dynamically. Any baker reading your `.gram` file immediately sees that this is a 70% hydration dough.
@@ -69,9 +80,7 @@ You can scale recipes visually in the Playground, or from the CLI using the `--s
gram view bread.gram --scale flour=400g
```
-Gram will compute the global factor (400/500 = 0.8), scale the anchor (flour) to 400g, and the relative ingredients will perfectly evaluate against this new base (Water: 70% of 400g = 280g).
-
-Ratios with units scale the same way (since 1.5.0): `@eggs{1 / 100 g @&flour}` gives 4 eggs for 400 g of flour, and a proportional time such as `~{15 min / 500 g @&roast}` follows the roast, the schedule with it.
+Gram will compute the global factor (400/500 = 0.8), scale the anchor (flour) to 400g, and any relative ingredients or proportional timers will evaluate against this new base (Water: 70% of 400g = 280g; `@eggs{1 / 100 g @&flour}` becomes 4 eggs; `~{15 min / 500 g @&roast}` updates both duration and schedule).
### Limits of reference scaling
@@ -79,7 +88,7 @@ Since scaling by reference derives the factor from an ingredient's own quantity,
| You tried to scale by... | Why it's rejected | What to do instead |
| :--- | :--- | :--- |
-| A **relative quantity** (e.g. `water`, defined as `70% @&flour`) | Its value is *derived* from another ingredient — it can't also be the reference | Scale the anchor ingredient instead (`--scale flour=400g`) |
+| A **relative quantity or ratio** (e.g. `water` as `70% @&flour`, or `eggs` as `1 / 100 g @&flour`) | Its value is *derived* from another ingredient — it can't also be the reference | Scale the anchor ingredient instead (`--scale flour=400g`) |
| A **fixed ingredient** (`@=`) or a text quantity like `a pinch` | It never scales, by definition, so it can't describe a scale factor either | Pick a different ingredient that actually changes with the recipe |
| An ingredient only used **inside** a sub-recipe (e.g. `lemon-zest`, part of a `<@lemon` composite) | It's not directly declared with its own quantity — only the composite parent has one | Scale the composite parent instead (e.g. `--scale lemon=4`) — its own total is a valid target |
| One option inside an **alternative-ingredient** group (`@butter{100g}\|@margarine{100g}`) | Picking one option in isolation doesn't represent the either/or choice the recipe expresses | Scale a different, unambiguous ingredient elsewhere in the recipe |
@@ -136,7 +145,7 @@ Sometimes, a recipe contains ingredients that **should never scale**, regardless
You can use the **Fixed Modifier** (`=`) to protect an ingredient from scaling:
```gram
-Heat @=frying oil{1L} in a deep pan.
+[Heat] @=frying oil{1L} in a deep pan.
```
If you run `gram build --scale 2`, the `frying oil` will remain at `1L`.
diff --git a/packages/docs/src/content/docs/docs/how-to/weekly-shopping-list.mdx b/packages/docs/src/content/docs/docs/how-to/weekly-shopping-list.mdx
index 8ad95d9f..6979618e 100644
--- a/packages/docs/src/content/docs/docs/how-to/weekly-shopping-list.mdx
+++ b/packages/docs/src/content/docs/docs/how-to/weekly-shopping-list.mdx
@@ -9,7 +9,7 @@ Generating a single, consolidated shopping list across multiple recipes is one o
## The `gram shop` command
-Use the CLI `gram shop` command and pass a glob pattern targeting your recipes.
+Run `gram shop` from a Gram workspace initialized with `gram init` (so your `ingredients.yaml` can provide aliases, densities, and aisle categories) and pass a glob pattern targeting your recipes.
```bash
# Target a specific folder
@@ -53,7 +53,7 @@ gram shop "menus/*.gram" --format md --output shopping-list.md
gram shop "menus/*.gram" --format json --output shopping-list.json
```
-Besides the amount as you read it (`qty`), the JSON gives each ingredient's amount as numbers (`amount`, `unit`), so a script or an app can sort, add up or compare them without reading the text. The [CLI reference](/docs/reference/tooling/cli/#gram-shop-pattern) describes every field.
+Alongside the formatted `qty` string, `--format json` exports numeric fields (`amount`, `unit`, `range`, `parts`) so scripts and apps can sort, sum, or compare quantities without parsing text. See the [CLI reference](/docs/reference/tooling/cli/#gram-shop-pattern) for the full schema.
## Related resources
diff --git a/packages/docs/src/content/docs/docs/index.mdx b/packages/docs/src/content/docs/docs/index.mdx
new file mode 100644
index 00000000..13c60fc6
--- /dev/null
+++ b/packages/docs/src/content/docs/docs/index.mdx
@@ -0,0 +1,9 @@
+---
+title: "Gram documentation"
+description: "Learn the Gram recipe markup language, explore the CLI and editor tools, or integrate the compiler and scheduler APIs."
+tableOfContents: false
+---
+
+import DocsHome from '../../../components/DocsHome.astro';
+
+
diff --git a/packages/docs/src/content/docs/docs/reference/api/analyzer.mdx b/packages/docs/src/content/docs/docs/reference/api/analyzer.mdx
index 3d307354..081022fc 100644
--- a/packages/docs/src/content/docs/docs/reference/api/analyzer.mdx
+++ b/packages/docs/src/content/docs/docs/reference/api/analyzer.mdx
@@ -132,7 +132,7 @@ function diffRecipes(a: CompilationResult, b: CompilationResult): DiffResult
Computes the structural diff between two compiled recipes (e.g. two revisions of the same recipe file, or an unscaled baseline compared to its scaled counterpart). It tracks changes in ingredient quantities and units (with `percentChange`), preparation updates, schedule deltas (`totalTime`, `idleTime`, `activeTime`, `preparationTime`), added, removed, or modified sections, timer and temperature adjustments, and frontmatter (`meta`) changes. The `hasChanges` property evaluates to `true` whenever any diff category is non-empty.
-The timing deltas compare durations from the default schedule (`schedule`): `totalTime`, `idleTime`, `activeTime`, and `preparationTime` all originate from `schedule`. An active timer defined as a range (`~{20-25min}`) counts on its longest bound for safety. These baseline metrics are identical on both sides of the comparison and match the default layout shown in `gram view`. *(Since 1.4.0. Earlier versions read the deprecated `metrics.totalTime` and `metrics.idleTime`, which reflected the legacy "all prep upfront" plan).*
+The timing deltas compare durations from the default schedule (`schedule`): `totalTime`, `idleTime`, `activeTime`, and `preparationTime` all originate from `schedule`. An active timer defined as a range (`~{20-25min}`) counts on its longest bound for safety. These baseline metrics are identical on both sides of the comparison and match the default layout shown in `gram view`.
A section spliced in from a modular `@use` import (`ProcessedSection.module` populated) is isolated from step-level section comparisons — preventing a single imported module from offsetting subsequent section indices and reporting false-positive diffs. Its import statement is compared independently by `(uri, binding, scale factor)` inside the `modules: ModuleDelta[]` array — any re-bound or rescaled module is flagged with `"changed"`.
diff --git a/packages/docs/src/content/docs/docs/reference/api/data-formats.mdx b/packages/docs/src/content/docs/docs/reference/api/data-formats.mdx
index 4683f152..9687ce68 100644
--- a/packages/docs/src/content/docs/docs/reference/api/data-formats.mdx
+++ b/packages/docs/src/content/docs/docs/reference/api/data-formats.mdx
@@ -90,7 +90,7 @@ Mix @flour{200g} and @milk{200ml}.
```json
{
- "generator": "@gram-lang/kitchen@1.4.0",
+ "generator": "@gram-lang/kitchen@1.5.0",
"title": "Crepes",
"slug": "crepes",
"meta": { "title": "Crepes" },
@@ -175,7 +175,7 @@ Mix @flour{200g} and @milk{200ml}.
```json
{
- "generator": "@gram-lang/kitchen@1.4.0",
+ "generator": "@gram-lang/kitchen@1.5.0",
"title": "Crepes",
"slug": "crepes",
"meta": { "title": "Crepes" },
@@ -279,7 +279,7 @@ Mix @flour{200g} and @milk{200ml}.
- The compiled recipe exposes `generator` (which compiler generated it), `miseEnPlace` (operational prep tasks and durations per section), `tasks` (the neutral task graph), and `schedule` (the default theoretical schedule laid out from it; alternative schedules are generated via `layout(tasks, options)`).
+The compiled recipe exposes `generator` (which compiler generated it), `miseEnPlace` (operational prep tasks and durations per section), `tasks` (the neutral task graph), and `schedule` (the default theoretical schedule laid out from it; alternative schedules are generated via `layout(tasks, options)`).
:::note[Deprecated timing fields]
Legacy per-step `timings` and `backgroundTasks`, along with `metrics.totalTime`, `metrics.idleTime`, and time breakdowns are deprecated: they remain populated until removed in version 2.0.0, but are omitted from the example above for clarity. The [Kitchen API reference](/docs/reference/api/kitchen) documents each field and its modern counterpart.
@@ -287,7 +287,7 @@ Mix @flour{200g} and @milk{200ml}.
Note the compiler's `StepToken` vocabulary inside `content`: narrative text is a bare `string`; ingredients, cookware, and intermediate references share the `Usage` structure (no `type` field, identified by the presence of an `id`); timers, temperatures, target states (`checkpoint`, since 1.5.0: `{ type, state, note? }`), comments, and declarations each carry an explicit lowercase `type`. This distinction from the parser's PascalCase `ASTNodeType` is intentional: it describes compiled *output*, not parsed source syntax. See [How to build a custom UI](/docs/how-to/build-custom-ui) for a tutorial on consuming this structure in frontend frameworks.
- A timer token carries `raw`, the duration as written between the braces, and `minutes`, the duration the schedule uses (the middle of a range). `quantity` and `unit` stay, in the smallest unit written (`1h20` gives `80` `min`), so a program that reads them stays right; a duration written as before 1.5 (`1.5h`) keeps them unchanged. A timer Gram does not read keeps only `raw` (and `name`, `isPassive`): show it as written.
+ A timer token carries `raw` (the duration as written inside the braces) and `minutes` (the scheduled duration, or the midpoint of a range). `quantity` and `unit` remain populated in the smallest written unit (`1h20` produces `80` `min`) for backwards compatibility, while pre-1.5 single-unit formats (`1.5h`) stay unchanged. Unrecognized timers keep only `raw` (plus `name` and `isPassive`) so views can display them as written.
```json
{ "type": "timer", "raw": "1h30", "quantity": { "type": "single", "value": 90 }, "unit": "min", "minutes": 90 }
@@ -295,11 +295,11 @@ Note the compiler's `StepToken` vocabulary inside `content`: narrative text is a
{ "type": "timer", "raw": "1:30" }
```
- A [sum of quantities](/docs/reference/syntax/ingredients/#sums-of-quantities) (`@flour{1 cup + 1 tbsp}`) adds `parts` to its `Usage`: each term as written, with its `qty` (a number or a `QuantityValue`) and `unit`, and `minus: true` on a term taken away. **`parts` is the only source of truth**; `qty` and `unit` are a total kept so that a program reading them stays right:
+ A [sum of quantities](/docs/reference/syntax/ingredients/#sums-of-quantities) (`@flour{1 cup + 1 tbsp}`) adds `parts` to its `Usage`: each written term with `qty` (a number or `QuantityValue`), `unit`, and `minus: true` for subtracted terms. **`parts` is the source of truth**; `qty` and `unit` retain a compatibility summary:
-- **One kind of unit**: `qty` / `unit` hold the total, in the smallest unit written when the units share a scale (`{1 cup + 1 tbsp}` gives `17` `tbsp`), in `ml` or `g` otherwise. A range in a term makes the total a range.
-- **Several kinds** (a volume and a weight, or units Gram doesn't know): no `qty`, and `unit` holds the sum written out (`"1 cup + 20 g"`), like a quantity in words (`{a pinch}`). Read `parts` rather than parsing it.
-- **Refused** (an `INVALID_QUANTITY` warning): `parts` alone, no `qty` nor `unit`.
+- **Single unit family**: `qty` and `unit` hold the total, in the smallest written unit when terms share a scale (`{1 cup + 1 tbsp}` → `17` `tbsp`), or in `ml` / `g` otherwise. Any range term makes the total a range.
+- **Multiple families** (a volume and a weight, or unknown units): `qty` is omitted and `unit` holds the written expression (`"1 cup + 20 g"`), similar to text quantities (`{a pinch}`). Read `parts` instead of parsing this string.
+- **Invalid** (`INVALID_QUANTITY`): `parts` only, with neither `qty` nor `unit`.
```json
{ "id": "flour", "_usageId": "1", "qty": 17, "unit": "tbsp", "parts": [ { "qty": 1, "unit": "cup" }, { "qty": 1, "unit": "tbsp" } ] }
diff --git a/packages/docs/src/content/docs/docs/reference/api/i18n.mdx b/packages/docs/src/content/docs/docs/reference/api/i18n.mdx
index bc9fb7f4..e1efc83c 100644
--- a/packages/docs/src/content/docs/docs/reference/api/i18n.mdx
+++ b/packages/docs/src/content/docs/docs/reference/api/i18n.mdx
@@ -47,11 +47,11 @@ resolveTimeUnit('minutes'); // "m"
resolveTimeUnit('heures', 'fr'); // "h"
```
-### Reading a duration
+### Parsing a duration
-`parseDuration` reads a duration as a timer writes it (`1h30`, `1 hr 30 mins`, `1:30 h`, `5'30"`, `45 min - 1 h`), in any language of `TIME_DICTIONARIES`, into minutes. It never guesses: a text it cannot read comes back with the reason, which kitchen turns into `MISSING_UNIT`, `INVALID_UNIT` or `INVALID_DURATION`. Each side keeps its terms (`parts`, in the unit written) and its form (`units`, `clock` or `prime`). It has no ceiling and no sign: the caller checks both.
+`parseDuration` parses timer durations (`1h30`, `1 hr 30 mins`, `1:30 h`, `5'30"`, `45 min - 1 h`) into minutes across every language in `TIME_DICTIONARIES`. Unrecognized inputs return a failure reason—which `@gram-lang/kitchen` maps to `MISSING_UNIT`, `INVALID_UNIT`, or `INVALID_DURATION`—without guessing. Each side preserves its parsed `parts` and `form` (`units`, `clock`, or `prime`), with sign and upper-bound checks left to the caller.
```typescript
function parseDuration(text: string): DurationResult
@@ -108,8 +108,6 @@ TIME_TO_MINUTES.h; // 60 (minutes)
### Numbers in the reader's language
-
-
`formatNumber` writes a number as a reader of the language does (`1.5` in English, `1,5` in French), rounded to two decimals by default and with no thousands separator, as a recipe writes `1500 g`. `localizeDecimals` does the same for a quantity already written as text (a range, a timer), and `decimalSeparator` gives the separator itself. Every view and the CLI write the numbers they show through these; a number read back by a script or a file (a `data-*` attribute, JSON, `.gram` source) keeps its point.
```typescript
diff --git a/packages/docs/src/content/docs/docs/reference/api/index.mdx b/packages/docs/src/content/docs/docs/reference/api/index.mdx
index 9bc33a36..a48b8d0f 100644
--- a/packages/docs/src/content/docs/docs/reference/api/index.mdx
+++ b/packages/docs/src/content/docs/docs/reference/api/index.mdx
@@ -31,8 +31,8 @@ All packages are ESM-only, side-effect free, and run in any JavaScript runtime
| [`@gram-lang/kitchen`](/docs/reference/api/kitchen) | Compiles the AST into a structured, render-ready payload (shopping list, task graph, default schedule, cookware registry) | `compile(ast, options?)` |
| [`@gram-lang/scheduler`](/docs/reference/api/scheduler) | Computes theoretical ALAP scheduling and projects recipes onto a real-world calendar based on target serving time and availability | `layout(graph, options?)`, `project(recipes, context)`, `runSheet(plan)`, `findServeTimes()`, `earliestServe()` |
| [`@gram-lang/analyzer`](/docs/reference/api/analyzer) | Enriches a compiled recipe with physical properties (mass, yield, nutrition, baker's percentages) using an ingredient database | `analyze(compiled, database, options?)` |
-| [`@gram-lang/renderer`](/docs/reference/api/renderer) | Renders a (compiled or analyzed) recipe to Markdown or HTML, and the of a schedule | `toMarkdown` / `toHTML` / `toPrintHTML` |
-| [`@gram-lang/format`](/docs/reference/api/format) | Canonical code formatter for `.gram` files (13 unified formatting rules) | `formatGram(source, options?)` |
+| [`@gram-lang/renderer`](/docs/reference/api/renderer) | Renders a (compiled or analyzed) recipe to Markdown, HTML, or plain text, and the of a schedule | `toMarkdown`, `toHTML`, `toPrintHTML`, `toText`, `runSheetTo*` |
+| [`@gram-lang/format`](/docs/reference/api/format) | Canonical code formatter for `.gram` files (13 unified formatting rules) | `formatGram(source)` |
| [`@gram-lang/i18n`](/docs/reference/api/i18n) | Shared unit/time normalization and UI dictionaries used internally by the pipeline packages | `normalizeUnit`, `getDictionary` |
Analysis is optional: `compile()` alone provides a complete, renderable recipe (with raw, un-standardized quantities). You only need `@gram-lang/analyzer` when you require volume-to-mass conversion, nutrition estimation, or baker's math, which rely on an ingredient database.
diff --git a/packages/docs/src/content/docs/docs/reference/api/modules.mdx b/packages/docs/src/content/docs/docs/reference/api/modules.mdx
index e20c5b4a..e45c8fa3 100644
--- a/packages/docs/src/content/docs/docs/reference/api/modules.mdx
+++ b/packages/docs/src/content/docs/docs/reference/api/modules.mdx
@@ -3,11 +3,8 @@ title: "@gram-lang/modules"
description: "Reference for loadModuleGraph, composeRecipe, ModuleHost, and utilities that resolve and compose multi-file @use recipes."
---
-import Since from '../../../../../components/Since.astro';
import { LinkCard, CardGrid } from '@astrojs/starlight/components';
-
-
Resolves and composes multi-file `@use` import directives into a single unified AST before compilation. This package handles dependency graph traversal, cycle detection, hygienic intermediate variable renaming, yield-based scaling, and stocked (`--stock`) leaf integration.
Like all packages in the core pipeline, `@gram-lang/modules` is pure and environment-agnostic: it defines the `ModuleHost` interface for reading files and resolving paths, but never touches the filesystem directly.
diff --git a/packages/docs/src/content/docs/docs/reference/api/parser.mdx b/packages/docs/src/content/docs/docs/reference/api/parser.mdx
index 9cb457d4..779a8cb5 100644
--- a/packages/docs/src/content/docs/docs/reference/api/parser.mdx
+++ b/packages/docs/src/content/docs/docs/reference/api/parser.mdx
@@ -120,7 +120,7 @@ interface IngredientAST {
type: ASTNodeType.Ingredient;
name: string;
modifiers: Modifier[]; // Sigil modifiers present on the ingredient
- quantity: QuantityAST | RelativeQuantityAST | TextQuantityAST | null;
+ quantity: QuantityAST | CompoundQuantityAST | RelativeQuantityAST | RatioQuantityAST | TextQuantityAST | null;
alias?: string | null;
preparation?: string | null;
composite?: CompositeAST | null; // set for "<@parent" composite ingredients
@@ -147,9 +147,9 @@ The remaining node interfaces (`CookwareAST`, `ReferenceAST`, `TimerAST`, `Tempe
## Type guards
-13 type guards are exported for safely narrowing `ASTNode | StepAST | ... | null | undefined` inputs without manual `.type` checks:
+17 type guards are exported for safely narrowing `ASTNode | StepAST | ... | null | undefined` inputs without manual `.type` checks:
-`isIngredient`, `isCookware`, `isTimer`, `isTemperature`, `isCheckpoint`, `isReference`, `isIntermediateDecl`, `isAlternative`, `isComment`, `isStep`, `isSection`, `isQuantity`, `isTextQuantity`, `isRelativeQuantity`.
+`isIngredient`, `isCookware`, `isTimer`, `isTemperature`, `isCheckpoint`, `isReference`, `isIntermediateDecl`, `isAlternative`, `isComment`, `isStep`, `isSection`, `isImportDecl`, `isQuantity`, `isCompoundQuantity`, `isTextQuantity`, `isRatioQuantity`, `isRelativeQuantity`.
```typescript
import { getAST, isIngredient, isTimer } from '@gram-lang/parser';
diff --git a/packages/docs/src/content/docs/docs/reference/api/renderer.mdx b/packages/docs/src/content/docs/docs/reference/api/renderer.mdx
index 0979435a..a08c3fa4 100644
--- a/packages/docs/src/content/docs/docs/reference/api/renderer.mdx
+++ b/packages/docs/src/content/docs/docs/reference/api/renderer.mdx
@@ -30,7 +30,7 @@ const html = toHTML(compiled, { lang: 'en' });
`toPrintHTML` produces a complete, standalone HTML document (with inline `