From 550b6c8c2b46a2374cabfbf7c7c8ad9a02431bb9 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 2 Dec 2026 07:30:04 +0000 Subject: [PATCH 1/4] chore(vale): release Vale 3.29.0 --- .changeset/vale-3-29-0.md | 5 ++ packages/cli/package.json | 14 ++-- .../src/generated/vale-vocabulary-report.md | 12 ++-- packages/cli/src/generated/vale-vocabulary.ts | 14 ++-- packages/cli/src/rules/capabilities.ts | 2 +- pnpm-lock.yaml | 70 +++++++++---------- 6 files changed, 61 insertions(+), 56 deletions(-) create mode 100644 .changeset/vale-3-29-0.md diff --git a/.changeset/vale-3-29-0.md b/.changeset/vale-3-29-0.md new file mode 100644 index 000000000..d6e00f3dd --- /dev/null +++ b/.changeset/vale-3-29-0.md @@ -0,0 +1,5 @@ +--- +"@taskless/cli": patch +--- + +Update the bundled Vale to 3.29.0. diff --git a/packages/cli/package.json b/packages/cli/package.json index 5bff3bf70..a80b72690 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -56,7 +56,7 @@ "node": ">=22.22.0" }, "dependencies": { - "@taskless/vale-grammars": "3.27.0-20261117230017", + "@taskless/vale-grammars": "3.29.0-20261202070856", "tsx": "^4.21.0" }, "devDependencies": { @@ -93,11 +93,11 @@ "@ast-grep/cli-win32-arm64-msvc": "0.51.3", "@ast-grep/cli-win32-ia32-msvc": "0.51.3", "@ast-grep/cli-win32-x64-msvc": "0.51.3", - "@taskless/vale-darwin-arm64": "3.27.0-20261117230017", - "@taskless/vale-darwin-x64": "3.27.0-20261117230017", - "@taskless/vale-linux-arm64": "3.27.0-20261117230017", - "@taskless/vale-linux-x64": "3.27.0-20261117230017", - "@taskless/vale-win32-arm64": "3.27.0-20261117230017", - "@taskless/vale-win32-x64": "3.27.0-20261117230017" + "@taskless/vale-darwin-arm64": "3.29.0-20261202070856", + "@taskless/vale-darwin-x64": "3.29.0-20261202070856", + "@taskless/vale-linux-arm64": "3.29.0-20261202070856", + "@taskless/vale-linux-x64": "3.29.0-20261202070856", + "@taskless/vale-win32-arm64": "3.29.0-20261202070856", + "@taskless/vale-win32-x64": "3.29.0-20261202070856" } } diff --git a/packages/cli/src/generated/vale-vocabulary-report.md b/packages/cli/src/generated/vale-vocabulary-report.md index 75f82a4a9..5d03376c1 100644 --- a/packages/cli/src/generated/vale-vocabulary-report.md +++ b/packages/cli/src/generated/vale-vocabulary-report.md @@ -1,10 +1,10 @@ -# Vale 3.27.0 vocabulary: divergence report +# Vale 3.29.0 vocabulary: divergence report GENERATED FILE — DO NOT EDIT. Produced by `pnpm generate:vale-schema` alongside `vale-vocabulary.ts`. Every value in the vocabulary is the recorded answer of the vendored Vale -3.27.0 binary. This file is what the binary said that its own +3.29.0 binary. This file is what the binary said that its own documentation does not, in both directions. A generator that dropped these would be quietly deciding which of the two to believe. @@ -28,25 +28,25 @@ the worse failure. ### `scope: meta` -Vale 3.27.0 documents this operand and it never fired, on any fixture probed (.md). +Vale 3.29.0 documents this operand and it never fired, on any fixture probed (.md). **Consequence.** It is omitted from the vocabulary, so `validate` rejects it. A rule written from the documentation would otherwise load, run, and match nothing, with no error reported anywhere. ### `scope: meta.class.title` -Vale 3.27.0 documents this operand and it never fired, on any fixture probed (.md). +Vale 3.29.0 documents this operand and it never fired, on any fixture probed (.md). **Consequence.** It is omitted from the vocabulary, so `validate` rejects it. A rule written from the documentation would otherwise load, run, and match nothing, with no error reported anywhere. ### `scope: frontmatter` -This operand fired and Vale 3.27.0 documents it nowhere. +This operand fired and Vale 3.29.0 documents it nowhere. **Consequence.** It is included in the vocabulary. It is also the standing counterexample to trusting the candidate list: a real operand nobody proposes is simply absent, and the schema then rejects a rule the binary honors. ### `scope: frontmatter.title` -This operand fired and Vale 3.27.0 documents it nowhere. +This operand fired and Vale 3.29.0 documents it nowhere. **Consequence.** It is included in the vocabulary. It is also the standing counterexample to trusting the candidate list: a real operand nobody proposes is simply absent, and the schema then rejects a rule the binary honors. diff --git a/packages/cli/src/generated/vale-vocabulary.ts b/packages/cli/src/generated/vale-vocabulary.ts index 51e42650e..9e664fad3 100644 --- a/packages/cli/src/generated/vale-vocabulary.ts +++ b/packages/cli/src/generated/vale-vocabulary.ts @@ -6,7 +6,7 @@ * `scripts/generate-vale-schema.ts`, and its header explains what each value * below was measured with and what it is worth. * - * Derived against Vale 3.27.0. Every value here is the recorded answer + * Derived against Vale 3.29.0. Every value here is the recorded answer * of that binary to a rule the generator wrote and ran; nothing is transcribed * from documentation. Where the binary and the documentation disagree, the * disagreement is in `vale-vocabulary-report.md` rather than dropped. @@ -15,7 +15,7 @@ */ /** The binary this vocabulary was derived from. */ -export const VALE_VOCABULARY_VERSION = "3.27.0"; +export const VALE_VOCABULARY_VERSION = "3.29.0"; /** * Vale's check types, self-enumerated: an unknown `extends` makes the binary @@ -199,7 +199,7 @@ export const VALE_SCOPE_PREFIXES = [ ] as const; /** - * Where Vale 3.27.0 and its documentation disagree. + * Where Vale 3.29.0 and its documentation disagree. * * Carried in the artifact rather than only in the report, so that a consumer * can render them and a reviewer cannot miss them in a diff. @@ -208,26 +208,26 @@ export const VALE_DIVERGENCES = [ { subject: "scope: meta", finding: - "Vale 3.27.0 documents this operand and it never fired, on any fixture probed (.md).", + "Vale 3.29.0 documents this operand and it never fired, on any fixture probed (.md).", consequence: "It is omitted from the vocabulary, so `validate` rejects it. A rule written from the documentation would otherwise load, run, and match nothing, with no error reported anywhere.", }, { subject: "scope: meta.class.title", finding: - "Vale 3.27.0 documents this operand and it never fired, on any fixture probed (.md).", + "Vale 3.29.0 documents this operand and it never fired, on any fixture probed (.md).", consequence: "It is omitted from the vocabulary, so `validate` rejects it. A rule written from the documentation would otherwise load, run, and match nothing, with no error reported anywhere.", }, { subject: "scope: frontmatter", - finding: "This operand fired and Vale 3.27.0 documents it nowhere.", + finding: "This operand fired and Vale 3.29.0 documents it nowhere.", consequence: "It is included in the vocabulary. It is also the standing counterexample to trusting the candidate list: a real operand nobody proposes is simply absent, and the schema then rejects a rule the binary honors.", }, { subject: "scope: frontmatter.title", - finding: "This operand fired and Vale 3.27.0 documents it nowhere.", + finding: "This operand fired and Vale 3.29.0 documents it nowhere.", consequence: "It is included in the vocabulary. It is also the standing counterexample to trusting the candidate list: a real operand nobody proposes is simply absent, and the schema then rejects a rule the binary honors.", }, diff --git a/packages/cli/src/rules/capabilities.ts b/packages/cli/src/rules/capabilities.ts index 657365807..b64f01d84 100644 --- a/packages/cli/src/rules/capabilities.ts +++ b/packages/cli/src/rules/capabilities.ts @@ -212,7 +212,7 @@ export const AST_GREP_TSX_SPLIT: Readonly< * Pinned against the binary by `test/vale-vendor-contract.test.ts` * ("engine capabilities" → "reports the pinned version"). */ -export const VALE_VERSION = "3.27.0"; +export const VALE_VERSION = "3.29.0"; /** * Which tier Vale routes an extension to. diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c961643bd..8e68933c3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -75,8 +75,8 @@ importers: packages/cli: dependencies: '@taskless/vale-grammars': - specifier: 3.27.0-20261117230017 - version: 3.27.0-20261117230017 + specifier: 3.29.0-20261202070856 + version: 3.29.0-20261202070856 tsx: specifier: ^4.21.0 version: 4.21.0 @@ -167,23 +167,23 @@ importers: specifier: 0.51.3 version: 0.51.3 '@taskless/vale-darwin-arm64': - specifier: 3.27.0-20261117230017 - version: 3.27.0-20261117230017 + specifier: 3.29.0-20261202070856 + version: 3.29.0-20261202070856 '@taskless/vale-darwin-x64': - specifier: 3.27.0-20261117230017 - version: 3.27.0-20261117230017 + specifier: 3.29.0-20261202070856 + version: 3.29.0-20261202070856 '@taskless/vale-linux-arm64': - specifier: 3.27.0-20261117230017 - version: 3.27.0-20261117230017 + specifier: 3.29.0-20261202070856 + version: 3.29.0-20261202070856 '@taskless/vale-linux-x64': - specifier: 3.27.0-20261117230017 - version: 3.27.0-20261117230017 + specifier: 3.29.0-20261202070856 + version: 3.29.0-20261202070856 '@taskless/vale-win32-arm64': - specifier: 3.27.0-20261117230017 - version: 3.27.0-20261117230017 + specifier: 3.29.0-20261202070856 + version: 3.29.0-20261202070856 '@taskless/vale-win32-x64': - specifier: 3.27.0-20261117230017 - version: 3.27.0-20261117230017 + specifier: 3.29.0-20261202070856 + version: 3.29.0-20261202070856 packages/vale-darwin-arm64: {} @@ -894,36 +894,36 @@ packages: '@standard-schema/spec@1.1.0': resolution: {integrity: sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==} - '@taskless/vale-darwin-arm64@3.27.0-20261117230017': - resolution: {integrity: sha512-O4zVJ57nleFPhdpIMUC6pGDBdmNmlrHwyZgXOQo9/8dlQv2cXEuj9Wa9fWUmDcia//+T5Teh8jC0qVG6Quzqkg==} + '@taskless/vale-darwin-arm64@3.29.0-20261202070856': + resolution: {integrity: sha512-2qOHUYFGGbYN2NKbUVrTPilGC2VbkkAdVul4HPZoRqDHLhokhhlCkZxgmt2RZSO+ZV0IoqQinY+no3/80EobLA==} cpu: [arm64] os: [darwin] - '@taskless/vale-darwin-x64@3.27.0-20261117230017': - resolution: {integrity: sha512-ct+yVvRqxny3En5q+nz3gwUm5cRtwo5Za2cjgqhrks31ss0qn8TB8uzkZ6L7G1NodEgeupnlYuyxAPrdgJkIXg==} + '@taskless/vale-darwin-x64@3.29.0-20261202070856': + resolution: {integrity: sha512-Tq8obDrxNOYLSjCJn8jxbqQHwzW4ZcomrVVoeHYR13yrOSJk7joWRJaOrzlSKGVkmObqry9oEqWM1bX+AqXAXw==} cpu: [x64] os: [darwin] - '@taskless/vale-grammars@3.27.0-20261117230017': - resolution: {integrity: sha512-8NMJzgnFjA4UyOCZD/Wjw1lb/gfKKHMeXVQaAV5n+W2uolOeef75mvDnapsLrjifRjz9S4LcCtRd6JqAnT94Nw==} + '@taskless/vale-grammars@3.29.0-20261202070856': + resolution: {integrity: sha512-ySvPsgO/VjfWyB8jvt5gW79Q26ViomTEoqkGAeKKfVWyWVyrcUj2t6LwC5ZUJJ9vqEkQujbAUTqYIztaAuronQ==} - '@taskless/vale-linux-arm64@3.27.0-20261117230017': - resolution: {integrity: sha512-xePLv6AYtEHu0P1taxFsjIlXkQ8P9XbZqsqRMZpoKKUXU/938/muo7SIRNXHzIQPBAGBCUpDOXyAyGr0tvQzfA==} + '@taskless/vale-linux-arm64@3.29.0-20261202070856': + resolution: {integrity: sha512-3Bs575BSJFKv05YZy3+xoV9eTte+nSy/SaL0aqkdQVInJ53FXR8ldxedNib90rBiykgJvmkAz5FKFEzh9vKyFg==} cpu: [arm64] os: [linux] - '@taskless/vale-linux-x64@3.27.0-20261117230017': - resolution: {integrity: sha512-QN+7lYUQ96+HBZ2bpQ1LkV7w1ILNTziVp1fZ7Bnez4W6dQT0cMGx9adTBQmS/qdrt4v1tHGGF6TmueM4EUGTSQ==} + '@taskless/vale-linux-x64@3.29.0-20261202070856': + resolution: {integrity: sha512-bP0u6YekPbdxJSvtys14VYO5EZwck0Ul2P+2GCSIC196BOoDunLSWzyZa6OcBIq13Sjodb38wUKNgRGAHTw+Lg==} cpu: [x64] os: [linux] - '@taskless/vale-win32-arm64@3.27.0-20261117230017': - resolution: {integrity: sha512-IfAuEEXv1VIPaZL5wmQUYURnmfSH7hmUtfk7mpl49Qtm0Xrqj92YjqWwUmePdQvH/NFhYT/XJsfDnvmZtr2jIA==} + '@taskless/vale-win32-arm64@3.29.0-20261202070856': + resolution: {integrity: sha512-yedhupVU2JZu1Y7NzXJfWKM574XxygJIleoBhUaGEO5wGfT+e5PspQbs3hojb/B0aufy9e8fk13ma+Kxqqhf2Q==} cpu: [arm64] os: [win32] - '@taskless/vale-win32-x64@3.27.0-20261117230017': - resolution: {integrity: sha512-RQxtyT1I3H432HNR1SToLsyjKmKkFnFjP5jFrkTJY8Y536fbsJieWgRAUBPK8MeDHkbjc4J7dali3a/cVhuMFw==} + '@taskless/vale-win32-x64@3.29.0-20261202070856': + resolution: {integrity: sha512-8kBVU6QmUiVCSFu7eOndisxXuLzSO4yp9h82iHe0aD6ePO2ZkuHtFIvESFpqfrubufYZiM4nrgAvDaEyJammkQ==} cpu: [x64] os: [win32] @@ -3382,24 +3382,24 @@ snapshots: '@standard-schema/spec@1.1.0': {} - '@taskless/vale-darwin-arm64@3.27.0-20261117230017': + '@taskless/vale-darwin-arm64@3.29.0-20261202070856': optional: true - '@taskless/vale-darwin-x64@3.27.0-20261117230017': + '@taskless/vale-darwin-x64@3.29.0-20261202070856': optional: true - '@taskless/vale-grammars@3.27.0-20261117230017': {} + '@taskless/vale-grammars@3.29.0-20261202070856': {} - '@taskless/vale-linux-arm64@3.27.0-20261117230017': + '@taskless/vale-linux-arm64@3.29.0-20261202070856': optional: true - '@taskless/vale-linux-x64@3.27.0-20261117230017': + '@taskless/vale-linux-x64@3.29.0-20261202070856': optional: true - '@taskless/vale-win32-arm64@3.27.0-20261117230017': + '@taskless/vale-win32-arm64@3.29.0-20261202070856': optional: true - '@taskless/vale-win32-x64@3.27.0-20261117230017': + '@taskless/vale-win32-x64@3.29.0-20261202070856': optional: true '@tybys/wasm-util@0.10.4': From bde0dbff2f05b33331da5d67dfdefff2ee112889 Mon Sep 17 00:00:00 2001 From: Jakob Heuser Date: Tue, 1 Dec 2026 23:42:21 -0800 Subject: [PATCH 2/4] fix(vale): adopt Vale 3.29.0 Vale 3.29.0 reads AsciiDoc and reStructuredText in process and embeds typst2vast, so .adoc, .asc, .asciidoc, .rst, .rest and .typ no longer abort a run on a host without the converter. Measured with none of asciidoctor, rst2html or typst2vast on PATH, each is markup now: prose lints, and a listing or literal block and a comment do not. It also reads LaTeX (.tex left the plaintext list; .ltx and .latex are new rows) and Markdoc (.mdoc, .markdoc) as markup. Every other row measured unchanged, and .dita and .xml remain the converter tier. Move the rows in VALE_FORMAT_TIERS and pin them with markup fixtures in the vendor contract. The converter-skip tests and the recipes' hazard glob used AsciiDoc and Typst as their example; they now use DITA and XML, which still crash the same way, measured. Bump the route and create-vale-rule topics, add the 0.13.9 update ledger entry, and grow the changeset. --- .changeset/vale-3-29-0.md | 4 + packages/cli/src/agent/create-vale-rule.md | 15 ++- packages/cli/src/agent/route.md | 12 +- packages/cli/src/agent/update.md | 25 ++++ packages/cli/src/rules/capabilities.ts | 59 +++++---- packages/cli/src/rules/vale/formats.ts | 23 ++-- packages/cli/src/rules/vale/run.ts | 8 +- packages/cli/test/legacy-ladder.test.ts | 4 +- .../cli/test/recipe-cross-references.test.ts | 14 +- packages/cli/test/reconcile-marker.test.ts | 9 ++ packages/cli/test/vale-formats.test.ts | 122 ++++++++++-------- packages/cli/test/vale-orchestration.test.ts | 18 ++- .../cli/test/vale-vendor-contract.test.ts | 60 ++++++++- 13 files changed, 257 insertions(+), 116 deletions(-) diff --git a/.changeset/vale-3-29-0.md b/.changeset/vale-3-29-0.md index d6e00f3dd..b41242dc4 100644 --- a/.changeset/vale-3-29-0.md +++ b/.changeset/vale-3-29-0.md @@ -3,3 +3,7 @@ --- Update the bundled Vale to 3.29.0. + +Vale rules now check AsciiDoc (`.adoc`, `.asc`, `.asciidoc`), reStructuredText (`.rst`, `.rest`) and Typst (`.typ`) files. Vale reads them without an external program, so `check` no longer leaves them out of the run with a skipped-files notice, and a rule that reaches them can report findings it did not before. + +LaTeX (`.tex`, `.ltx`, `.latex`) and Markdoc (`.mdoc`, `.markdoc`) are read as markup: prose is linted, and math, `\verb`, comments and code fences are not. A rule that reached `.tex` used to fire on commands and math, so some findings there disappear. diff --git a/packages/cli/src/agent/create-vale-rule.md b/packages/cli/src/agent/create-vale-rule.md index 0339752ae..01a3b1df3 100644 --- a/packages/cli/src/agent/create-vale-rule.md +++ b/packages/cli/src/agent/create-vale-rule.md @@ -1,4 +1,4 @@ -# Topic: create-vale-rule (CLI v%(CLI_VERSION)s / topic v23) +# Topic: create-vale-rule (CLI v%(CLI_VERSION)s / topic v24) %(ONE_COMMAND_PER_CALL)s @@ -911,9 +911,9 @@ track the shipped binary. **A single unreadable file fails the whole Vale pass.** Vale exits 2 with an `E100` runtime error and abandons the run, `--no-exit` does not suppress it, so every other Vale rule over every other file goes -unreported. `[*.{md,typ}]` is not a slightly wider `[*.md]`; it is a +unreported. `[*.{md,dita}]` is not a slightly wider `[*.md]`; it is a matcher that takes `check` down the first time the repo grows a -`.typ` file. Never put one of those extensions in a glob. +`.dita` file. Never put one of those extensions in a glob. **A large file is linted, not skipped.** Vale's cost is linear in a file's size as of 3.21.0 (a 3MB single-block document measures @@ -926,14 +926,17 @@ it. That example changed with Vale v3.18.0, which is the point: the dangerous extension is whichever one the list above says needs a program, not the one you remember. `.mdx` was the example until that -release parsed it natively, and `.typ` took its place. +release parsed it natively, and `.typ` took its place until Vale +v3.29.0 embedded the Typst reader. **`.mdx` is supported** as of Vale v3.18.0, which parses it natively rather than shelling out. `[*.{md,mdx}]` is a legitimate matcher again, the example this recipe used to warn about is no longer the broken one. Check the lists above rather than reaching for that -memory: `.typ` moved the opposite way in the same release, so a -matcher covering Typst is now the one that takes the run down. +memory: `.typ` moved the opposite way in the same release, and back +again in v3.29.0, which also reads AsciiDoc, reStructuredText, LaTeX +and Markdoc natively. A rule over `.adoc`, `.rst`, `.typ` or `.tex` +is an ordinary markup rule now. **In `.mdx`, a component's children are prose as of v3.19.0.** Vale reads a JSX element's children as the Markdown they are, so text diff --git a/packages/cli/src/agent/route.md b/packages/cli/src/agent/route.md index abc5dcbc8..70af811d4 100644 --- a/packages/cli/src/agent/route.md +++ b/packages/cli/src/agent/route.md @@ -1,4 +1,4 @@ -# Topic: route (CLI v%(CLI_VERSION)s / topic v12) +# Topic: route (CLI v%(CLI_VERSION)s / topic v13) %(ONE_COMMAND_PER_CALL)s @@ -283,7 +283,7 @@ and hard-fails on a fourth.** The tier is decided by the file's extension: **One such file fails the entire Vale pass, not just that file.** Vale exits 2 with an `E100` runtime error, `--no-exit` does not suppress it, and every other Vale rule over every other file goes - unreported. A matcher written as `[*.{md,typ}]` is not a wider + unreported. A matcher written as `[*.{md,dita}]` is not a wider `[*.md]`. It is a broken one. **`.mdx` is supported** as of Vale v3.18.0, which parses it @@ -293,6 +293,14 @@ and hard-fails on a fourth.** The tier is decided by the file's extension: file is excluded rather than read as prose the way it was before. Both are measured, not assumed. + **Vale v3.29.0 brought AsciiDoc, reStructuredText and Typst + back.** It reads AsciiDoc and reStructuredText itself and embeds + `typst2vast`, so `.adoc`, `.asc`, `.asciidoc`, `.rst`, `.rest` and + `.typ` are markup now and safe to match. It also reads LaTeX + (`.tex`, `.ltx`, `.latex`) and Markdoc (`.mdoc`, `.markdoc`) as + markup, where `.tex` used to be linted straight through its + commands and math. + As of v3.19.0 an MDX component's children are read as Markdown too, so prose wrapped in `` or `