mirror of
https://github.com/headroomlabs-ai/headroom.git
synced 2026-11-22 13:29:19 +08:00
feat/https-compose-caddy
93
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
6182b5fe06 |
deps: bump the npm-minor-patch group across 3 directories with 10 updates (#4813)
Bumps the npm-minor-patch group with 1 update in the /plugins/openclaw directory: [headroom-ai](https://github.com/headroomlabs-ai/headroom/tree/HEAD/sdk/typescript). Bumps the npm-minor-patch group with 3 updates in the /plugins/opencode directory: [headroom-ai](https://github.com/headroomlabs-ai/headroom/tree/HEAD/sdk/typescript), [effect](https://github.com/Effect-TS/effect/tree/HEAD/packages/effect) and [@opencode/plugin](https://github.com/anomalyco/opencode/tree/HEAD/packages/plugin). Bumps the npm-minor-patch group with 7 updates in the /sdk/typescript directory: | Package | From | To | | --- | --- | --- | | [@ai-sdk/anthropic](https://github.com/vercel/ai/tree/HEAD/packages/anthropic) | `4.0.94` | `4.0.99` | | [@ai-sdk/openai](https://github.com/vercel/ai/tree/HEAD/packages/openai) | `4.0.106` | `4.0.111` | | [@ai-sdk/provider](https://github.com/vercel/ai/tree/HEAD/packages/provider) | `4.0.35` | `4.0.37` | | [@anthropic-ai/sdk](https://github.com/anthropics/anthropic-sdk-typescript) | `1.3.0` | `1.6.0` | | [ai](https://github.com/vercel/ai/tree/HEAD/packages/ai) | `7.0.159` | `7.0.166` | | [dotenv](https://github.com/motdotla/dotenv) | `18.0.9` | `18.0.10` | | [openai](https://github.com/openai/openai-node) | `7.47.0` | `7.53.0` | Updates `headroom-ai` from 0.42.0 to 0.43.1 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/headroomlabs-ai/headroom/releases">headroom-ai's releases</a>.</em></p> <blockquote> <h2>Release v0.43.1</h2> <h2><a href="https://github.com/headroomlabs-ai/headroom/compare/v0.43.0...v0.43.1">0.43.1</a> (2026-11-05)</h2> <h3>Bug Fixes</h3> <ul> <li><strong>ccr:</strong> keep the in-memory order queue from evicting re-stored entries (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4545">#4545</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/c6f5bf9549e9b357e9c2369d4e04bc437f5e180d">c6f5bf9</a>)</li> <li><strong>memory:</strong> read the relation key the memory_save schema advertises (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4647">#4647</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/7592e681459f14a2041eb5f524a658cb6ad1dd92">7592e68</a>)</li> <li><strong>memory:</strong> replace the HNSW vector when a memory is re-indexed (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4649">#4649</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/ee638f9532b3788bacd13ed8d26dd0faf0740baf">ee638f9</a>)</li> <li><strong>openclaw:</strong> accept 12-character hashes in headroom_retrieve (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4640">#4640</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/8d3e9e5ca7cd645eb73084b848edbea5fc796e1a">8d3e9e5</a>)</li> <li><strong>ort:</strong> avoid implicit runtime discovery from the workspace (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4570">#4570</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/69fbd2390d9c8b0fa1f59fb8314bc9b8f01b1a55">69fbd23</a>)</li> <li><strong>proxy:</strong> bound the model-keyed tokenizer, beacon and litellm caches (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4497">#4497</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/e51b8065a4a2aa3a3c7f266c1cb8d8bde6b568d0">e51b806</a>)</li> <li><strong>proxy:</strong> use HTTP/1.1 client for ChatGPT streaming and model metadata (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4006">#4006</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/e1becdf7329bf4ca03874b9f512ac19837ca29c2">e1becdf</a>)</li> <li><strong>release:</strong> normalize damaged release PR envelopes before detection (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4664">#4664</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/917edc62230c3c4a8a415e2053da68dab1f003dd">917edc6</a>)</li> <li><strong>router:</strong> keep tagged blocks out of the lossy size-gate fallback (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4543">#4543</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/f333edf20f0d7acf5ea67e040c1f58539a0edd4d">f333edf</a>)</li> <li><strong>router:</strong> log the ONNX fallbacks at info instead of warning (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4535">#4535</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/db30d82dfffdb3bbe4d60a0e0bfe88640e58470f">db30d82</a>)</li> </ul> <h3>Dependencies</h3> <ul> <li>bump the npm-minor-patch group across 3 directories with 6 updates (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4662">#4662</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/8f104f8e298c85ff0005f2fd4848eea95f32b7c7">8f104f8</a>)</li> </ul> <!-- raw HTML omitted --> <hr /> <p><strong>Want more savings?</strong> Headroom Enterprise saves more for teams and enterprises. Talk to us at <a href="https://github.com/headroomlabs-ai/headroom/tree/HEAD/sdk/typescript/blob/HEAD/mailto:hello@headroomlabs.ai">hello@headroomlabs.ai</a> or <a href="https://headroomlabs.ai">headroomlabs.ai</a>.</p> <h2>Release v0.43.0</h2> <h2><a href="https://github.com/headroomlabs-ai/headroom/compare/v0.42.0...v0.43.0">0.43.0</a> (2026-11-05)</h2> <h3>⚠ BREAKING CHANGES</h3> <ul> <li><strong>mcp:</strong> port MCP servers to SDK 2.x (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4603">#4603</a>)</li> </ul> <h3>Features</h3> <ul> <li><strong>ccr:</strong> answer headroom_retrieve on streaming chat completions (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4631">#4631</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/31dcaf41f7fafaebec0838a05ff328da456faef0">31dcaf4</a>)</li> <li><strong>mcp:</strong> port MCP servers to SDK 2.x (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4603">#4603</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/ee2252a3155c87e948c8893b79af5824eb30e64c">ee2252a</a>)</li> <li><strong>plugins:</strong> headroom skill for Claude Code, Codex, Copilot and skills.sh (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4533">#4533</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/66e14676827366c2bf8d15e252f8766cb27b1a98">66e1467</a>)</li> <li><strong>savings:</strong> show the proxy's model-routing savings in headroom savings (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4304">#4304</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/aaab338b64cb55929de904411db65db126e22ec0">aaab338</a>)</li> </ul> <h3>Bug Fixes</h3> <ul> <li>[BUG] A timeout in one image compression call resets the shared worker pool and affects concurrent requests (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4528">#4528</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/e9bcfe73fadf69f0b27b7bc338ea7d2380931054">e9bcfe7</a>)</li> <li>[BUG] DirectMem0Adapter.search_memories calls removed mem0 search API (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4518">#4518</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/d9cee452681c79d6f13919e9e651e88a774c0874">d9cee45</a>)</li> <li>[BUG] Saved request metrics lose their cache optimization fields (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4584">#4584</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/b4c9bdf100d97fb038beba95de6d4ad6a8786090">b4c9bdf</a>)</li> <li>[BUG] Volatile SQLite metrics stores lose their schema before the first save (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4633">#4633</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/d8ff0fe9d2cb2477f6662a90f8fcd7e030a52666">d8ff0fe</a>)</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/headroomlabs-ai/headroom/blob/main/CHANGELOG.md">headroom-ai's changelog</a>.</em></p> <blockquote> <h2><a href="https://github.com/headroomlabs-ai/headroom/compare/v0.43.0...v0.43.1">0.43.1</a> (2026-11-05)</h2> <h3>Bug Fixes</h3> <ul> <li><strong>ccr:</strong> keep the in-memory order queue from evicting re-stored entries (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4545">#4545</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/c6f5bf9549e9b357e9c2369d4e04bc437f5e180d">c6f5bf9</a>)</li> <li><strong>memory:</strong> read the relation key the memory_save schema advertises (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4647">#4647</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/7592e681459f14a2041eb5f524a658cb6ad1dd92">7592e68</a>)</li> <li><strong>memory:</strong> replace the HNSW vector when a memory is re-indexed (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4649">#4649</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/ee638f9532b3788bacd13ed8d26dd0faf0740baf">ee638f9</a>)</li> <li><strong>openclaw:</strong> accept 12-character hashes in headroom_retrieve (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4640">#4640</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/8d3e9e5ca7cd645eb73084b848edbea5fc796e1a">8d3e9e5</a>)</li> <li><strong>ort:</strong> avoid implicit runtime discovery from the workspace (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4570">#4570</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/69fbd2390d9c8b0fa1f59fb8314bc9b8f01b1a55">69fbd23</a>)</li> <li><strong>proxy:</strong> bound the model-keyed tokenizer, beacon and litellm caches (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4497">#4497</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/e51b8065a4a2aa3a3c7f266c1cb8d8bde6b568d0">e51b806</a>)</li> <li><strong>proxy:</strong> use HTTP/1.1 client for ChatGPT streaming and model metadata (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4006">#4006</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/e1becdf7329bf4ca03874b9f512ac19837ca29c2">e1becdf</a>)</li> <li><strong>release:</strong> normalize damaged release PR envelopes before detection (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4664">#4664</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/917edc62230c3c4a8a415e2053da68dab1f003dd">917edc6</a>)</li> <li><strong>router:</strong> keep tagged blocks out of the lossy size-gate fallback (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4543">#4543</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/f333edf20f0d7acf5ea67e040c1f58539a0edd4d">f333edf</a>)</li> <li><strong>router:</strong> log the ONNX fallbacks at info instead of warning (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4535">#4535</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/db30d82dfffdb3bbe4d60a0e0bfe88640e58470f">db30d82</a>)</li> </ul> <h3>Dependencies</h3> <ul> <li>bump the npm-minor-patch group across 3 directories with 6 updates (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4662">#4662</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/8f104f8e298c85ff0005f2fd4848eea95f32b7c7">8f104f8</a>)</li> </ul> <h2><a href="https://github.com/headroomlabs-ai/headroom/compare/v0.42.0...v0.43.0">0.43.0</a> (2026-11-05)</h2> <h3>⚠ BREAKING CHANGES</h3> <ul> <li><strong>mcp:</strong> port MCP servers to SDK 2.x (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4603">#4603</a>)</li> </ul> <h3>Features</h3> <ul> <li><strong>ccr:</strong> answer headroom_retrieve on streaming chat completions (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4631">#4631</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/31dcaf41f7fafaebec0838a05ff328da456faef0">31dcaf4</a>)</li> <li><strong>mcp:</strong> port MCP servers to SDK 2.x (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4603">#4603</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/ee2252a3155c87e948c8893b79af5824eb30e64c">ee2252a</a>)</li> <li><strong>plugins:</strong> headroom skill for Claude Code, Codex, Copilot and skills.sh (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4533">#4533</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/66e14676827366c2bf8d15e252f8766cb27b1a98">66e1467</a>)</li> <li><strong>savings:</strong> show the proxy's model-routing savings in headroom savings (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4304">#4304</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/aaab338b64cb55929de904411db65db126e22ec0">aaab338</a>)</li> </ul> <h3>Bug Fixes</h3> <ul> <li>[BUG] A timeout in one image compression call resets the shared worker pool and affects concurrent requests (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4528">#4528</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/e9bcfe73fadf69f0b27b7bc338ea7d2380931054">e9bcfe7</a>)</li> <li>[BUG] DirectMem0Adapter.search_memories calls removed mem0 search API (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4518">#4518</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/d9cee452681c79d6f13919e9e651e88a774c0874">d9cee45</a>)</li> <li>[BUG] Saved request metrics lose their cache optimization fields (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4584">#4584</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/b4c9bdf100d97fb038beba95de6d4ad6a8786090">b4c9bdf</a>)</li> <li>[BUG] Volatile SQLite metrics stores lose their schema before the first save (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4633">#4633</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/d8ff0fe9d2cb2477f6662a90f8fcd7e030a52666">d8ff0fe</a>)</li> <li>Add info about apply to README.md (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/1592">#1592</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/4d34680c34ad379d693820869e77d4a2a6be2cdf">4d34680</a>)</li> <li><strong>backends/litellm:</strong> keep cache_control on text blocks for Bedrock prompt caching (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4565">#4565</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/23a5bb1c81dc943398f9271f068a02487207f2e7">23a5bb1</a>)</li> <li><strong>backends:</strong> forward the standard service_tier param (litellm + anyllm) (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/2468">#2468</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/62cc38a6b09dbcf723681a0ff56acd02131ad1f1">62cc38a</a>)</li> <li><strong>cache:</strong> build semantic entry before evicting so a failed embedding keeps live entries (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4581">#4581</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/0d4c450d774691568b850f0d22ce17e087405281">0d4c450</a>)</li> <li><strong>cache:</strong> count a tool_result with no text as replayable in the frozen prefix (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4523">#4523</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/fba09f674c8a9c91b39a563a70ab7727b44d1dbc">fba09f6</a>)</li> <li><strong>cache:</strong> fail closed on SQLite corruption instead of deleting the store online (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4361">#4361</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/98018333f997783487af15efe4d9e631ecd85939">9801833</a>)</li> <li><strong>cache:</strong> invalidate configured registry instances on replacement (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4363">#4363</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/1bcdca2d9dd279f49aa4276d523d93c2cfeb5a51">1bcdca2</a>)</li> <li><strong>cache:</strong> namespace SemanticCacheLayer by provider, model and metadata (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4473">#4473</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/99cdaaf1c7de2bd81a8e64f198462fd1ceec3a17">99cdaaf</a>)</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/headroomlabs-ai/headroom/commit/2d3ee51846435ef5b320eea4806af14e602b0d8c"><code>2d3ee51</code></a> chore: release 0.43.1 (<a href="https://github.com/headroomlabs-ai/headroom/tree/HEAD/sdk/typescript/issues/4661">#4661</a>)</li> <li><a href="https://github.com/headroomlabs-ai/headroom/commit/8f104f8e298c85ff0005f2fd4848eea95f32b7c7"><code>8f104f8</code></a> deps: bump the npm-minor-patch group across 3 directories with 6 updates (<a href="https://github.com/headroomlabs-ai/headroom/tree/HEAD/sdk/typescript/issues/4662">#4662</a>)</li> <li><a href="https://github.com/headroomlabs-ai/headroom/commit/81fa4bdda613f6a37f6f430eda9f728e1458f3ce"><code>81fa4bd</code></a> chore: release 0.43.0 (<a href="https://github.com/headroomlabs-ai/headroom/tree/HEAD/sdk/typescript/issues/4643">#4643</a>)</li> <li><a href="https://github.com/headroomlabs-ai/headroom/commit/a26faaeee34ecfde57608aea4a1ec7ea2b33272f"><code>a26faae</code></a> fix(sdk): carry Vercel AI SDK reasoning parts and provider options through co...</li> <li><a href="https://github.com/headroomlabs-ai/headroom/commit/e666fd8e35dbe7c0433739297873b6a0a51c26cf"><code>e666fd8</code></a> deps: Bump tsup from 8.5.1 to 9.0.0 in /sdk/typescript (<a href="https://github.com/headroomlabs-ai/headroom/tree/HEAD/sdk/typescript/issues/4386">#4386</a>)</li> <li><a href="https://github.com/headroomlabs-ai/headroom/commit/74277d47ecfbca349ddb99f81094c4dd30539d43"><code>74277d4</code></a> deps: Bump <code>@anthropic-ai/sdk</code> from 0.133.0 to 1.3.0 in /sdk/typescript (<a href="https://github.com/headroomlabs-ai/headroom/tree/HEAD/sdk/typescript/issues/4554">#4554</a>)</li> <li><a href="https://github.com/headroomlabs-ai/headroom/commit/5e4827de12c9fdf33d7d36b1939eee73a18fe6c5"><code>5e4827d</code></a> deps: Bump the npm-minor-patch group across 1 directory with 6 updates (<a href="https://github.com/headroomlabs-ai/headroom/tree/HEAD/sdk/typescript/issues/4621">#4621</a>)</li> <li><a href="https://github.com/headroomlabs-ai/headroom/commit/cd5e2b9e73eb8bd783ab872bdda71263b941e2d3"><code>cd5e2b9</code></a> fix(sdk): send Anthropic messages to /v1/compress natively so thinking blocks...</li> <li><a href="https://github.com/headroomlabs-ai/headroom/commit/6c3d7475077b2e09e8cff5ba2352bda4064d86d3"><code>6c3d747</code></a> chore(sdk-typescript): npm metadata and the proxy requirement up front (<a href="https://github.com/headroomlabs-ai/headroom/tree/HEAD/sdk/typescript/issues/4536">#4536</a>)</li> <li><a href="https://github.com/headroomlabs-ai/headroom/commit/f36772805178e3fed1a95313e8211c57a291b953"><code>f367728</code></a> deps: Bump the npm-minor-patch group across 3 directories with 9 updates (<a href="https://github.com/headroomlabs-ai/headroom/tree/HEAD/sdk/typescript/issues/4495">#4495</a>)</li> <li>See full diff in <a href="https://github.com/headroomlabs-ai/headroom/commits/v0.43.1/sdk/typescript">compare view</a></li> </ul> </details> <br /> Updates `headroom-ai` from 0.42.0 to 0.43.1 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/headroomlabs-ai/headroom/releases">headroom-ai's releases</a>.</em></p> <blockquote> <h2>Release v0.43.1</h2> <h2><a href="https://github.com/headroomlabs-ai/headroom/compare/v0.43.0...v0.43.1">0.43.1</a> (2026-11-05)</h2> <h3>Bug Fixes</h3> <ul> <li><strong>ccr:</strong> keep the in-memory order queue from evicting re-stored entries (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4545">#4545</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/c6f5bf9549e9b357e9c2369d4e04bc437f5e180d">c6f5bf9</a>)</li> <li><strong>memory:</strong> read the relation key the memory_save schema advertises (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4647">#4647</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/7592e681459f14a2041eb5f524a658cb6ad1dd92">7592e68</a>)</li> <li><strong>memory:</strong> replace the HNSW vector when a memory is re-indexed (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4649">#4649</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/ee638f9532b3788bacd13ed8d26dd0faf0740baf">ee638f9</a>)</li> <li><strong>openclaw:</strong> accept 12-character hashes in headroom_retrieve (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4640">#4640</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/8d3e9e5ca7cd645eb73084b848edbea5fc796e1a">8d3e9e5</a>)</li> <li><strong>ort:</strong> avoid implicit runtime discovery from the workspace (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4570">#4570</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/69fbd2390d9c8b0fa1f59fb8314bc9b8f01b1a55">69fbd23</a>)</li> <li><strong>proxy:</strong> bound the model-keyed tokenizer, beacon and litellm caches (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4497">#4497</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/e51b8065a4a2aa3a3c7f266c1cb8d8bde6b568d0">e51b806</a>)</li> <li><strong>proxy:</strong> use HTTP/1.1 client for ChatGPT streaming and model metadata (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4006">#4006</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/e1becdf7329bf4ca03874b9f512ac19837ca29c2">e1becdf</a>)</li> <li><strong>release:</strong> normalize damaged release PR envelopes before detection (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4664">#4664</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/917edc62230c3c4a8a415e2053da68dab1f003dd">917edc6</a>)</li> <li><strong>router:</strong> keep tagged blocks out of the lossy size-gate fallback (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4543">#4543</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/f333edf20f0d7acf5ea67e040c1f58539a0edd4d">f333edf</a>)</li> <li><strong>router:</strong> log the ONNX fallbacks at info instead of warning (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4535">#4535</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/db30d82dfffdb3bbe4d60a0e0bfe88640e58470f">db30d82</a>)</li> </ul> <h3>Dependencies</h3> <ul> <li>bump the npm-minor-patch group across 3 directories with 6 updates (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4662">#4662</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/8f104f8e298c85ff0005f2fd4848eea95f32b7c7">8f104f8</a>)</li> </ul> <!-- raw HTML omitted --> <hr /> <p><strong>Want more savings?</strong> Headroom Enterprise saves more for teams and enterprises. Talk to us at <a href="https://github.com/headroomlabs-ai/headroom/tree/HEAD/sdk/typescript/blob/HEAD/mailto:hello@headroomlabs.ai">hello@headroomlabs.ai</a> or <a href="https://headroomlabs.ai">headroomlabs.ai</a>.</p> <h2>Release v0.43.0</h2> <h2><a href="https://github.com/headroomlabs-ai/headroom/compare/v0.42.0...v0.43.0">0.43.0</a> (2026-11-05)</h2> <h3>⚠ BREAKING CHANGES</h3> <ul> <li><strong>mcp:</strong> port MCP servers to SDK 2.x (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4603">#4603</a>)</li> </ul> <h3>Features</h3> <ul> <li><strong>ccr:</strong> answer headroom_retrieve on streaming chat completions (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4631">#4631</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/31dcaf41f7fafaebec0838a05ff328da456faef0">31dcaf4</a>)</li> <li><strong>mcp:</strong> port MCP servers to SDK 2.x (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4603">#4603</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/ee2252a3155c87e948c8893b79af5824eb30e64c">ee2252a</a>)</li> <li><strong>plugins:</strong> headroom skill for Claude Code, Codex, Copilot and skills.sh (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4533">#4533</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/66e14676827366c2bf8d15e252f8766cb27b1a98">66e1467</a>)</li> <li><strong>savings:</strong> show the proxy's model-routing savings in headroom savings (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4304">#4304</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/aaab338b64cb55929de904411db65db126e22ec0">aaab338</a>)</li> </ul> <h3>Bug Fixes</h3> <ul> <li>[BUG] A timeout in one image compression call resets the shared worker pool and affects concurrent requests (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4528">#4528</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/e9bcfe73fadf69f0b27b7bc338ea7d2380931054">e9bcfe7</a>)</li> <li>[BUG] DirectMem0Adapter.search_memories calls removed mem0 search API (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4518">#4518</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/d9cee452681c79d6f13919e9e651e88a774c0874">d9cee45</a>)</li> <li>[BUG] Saved request metrics lose their cache optimization fields (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4584">#4584</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/b4c9bdf100d97fb038beba95de6d4ad6a8786090">b4c9bdf</a>)</li> <li>[BUG] Volatile SQLite metrics stores lose their schema before the first save (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4633">#4633</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/d8ff0fe9d2cb2477f6662a90f8fcd7e030a52666">d8ff0fe</a>)</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/headroomlabs-ai/headroom/blob/main/CHANGELOG.md">headroom-ai's changelog</a>.</em></p> <blockquote> <h2><a href="https://github.com/headroomlabs-ai/headroom/compare/v0.43.0...v0.43.1">0.43.1</a> (2026-11-05)</h2> <h3>Bug Fixes</h3> <ul> <li><strong>ccr:</strong> keep the in-memory order queue from evicting re-stored entries (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4545">#4545</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/c6f5bf9549e9b357e9c2369d4e04bc437f5e180d">c6f5bf9</a>)</li> <li><strong>memory:</strong> read the relation key the memory_save schema advertises (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4647">#4647</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/7592e681459f14a2041eb5f524a658cb6ad1dd92">7592e68</a>)</li> <li><strong>memory:</strong> replace the HNSW vector when a memory is re-indexed (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4649">#4649</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/ee638f9532b3788bacd13ed8d26dd0faf0740baf">ee638f9</a>)</li> <li><strong>openclaw:</strong> accept 12-character hashes in headroom_retrieve (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4640">#4640</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/8d3e9e5ca7cd645eb73084b848edbea5fc796e1a">8d3e9e5</a>)</li> <li><strong>ort:</strong> avoid implicit runtime discovery from the workspace (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4570">#4570</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/69fbd2390d9c8b0fa1f59fb8314bc9b8f01b1a55">69fbd23</a>)</li> <li><strong>proxy:</strong> bound the model-keyed tokenizer, beacon and litellm caches (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4497">#4497</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/e51b8065a4a2aa3a3c7f266c1cb8d8bde6b568d0">e51b806</a>)</li> <li><strong>proxy:</strong> use HTTP/1.1 client for ChatGPT streaming and model metadata (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4006">#4006</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/e1becdf7329bf4ca03874b9f512ac19837ca29c2">e1becdf</a>)</li> <li><strong>release:</strong> normalize damaged release PR envelopes before detection (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4664">#4664</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/917edc62230c3c4a8a415e2053da68dab1f003dd">917edc6</a>)</li> <li><strong>router:</strong> keep tagged blocks out of the lossy size-gate fallback (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4543">#4543</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/f333edf20f0d7acf5ea67e040c1f58539a0edd4d">f333edf</a>)</li> <li><strong>router:</strong> log the ONNX fallbacks at info instead of warning (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4535">#4535</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/db30d82dfffdb3bbe4d60a0e0bfe88640e58470f">db30d82</a>)</li> </ul> <h3>Dependencies</h3> <ul> <li>bump the npm-minor-patch group across 3 directories with 6 updates (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4662">#4662</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/8f104f8e298c85ff0005f2fd4848eea95f32b7c7">8f104f8</a>)</li> </ul> <h2><a href="https://github.com/headroomlabs-ai/headroom/compare/v0.42.0...v0.43.0">0.43.0</a> (2026-11-05)</h2> <h3>⚠ BREAKING CHANGES</h3> <ul> <li><strong>mcp:</strong> port MCP servers to SDK 2.x (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4603">#4603</a>)</li> </ul> <h3>Features</h3> <ul> <li><strong>ccr:</strong> answer headroom_retrieve on streaming chat completions (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4631">#4631</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/31dcaf41f7fafaebec0838a05ff328da456faef0">31dcaf4</a>)</li> <li><strong>mcp:</strong> port MCP servers to SDK 2.x (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4603">#4603</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/ee2252a3155c87e948c8893b79af5824eb30e64c">ee2252a</a>)</li> <li><strong>plugins:</strong> headroom skill for Claude Code, Codex, Copilot and skills.sh (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4533">#4533</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/66e14676827366c2bf8d15e252f8766cb27b1a98">66e1467</a>)</li> <li><strong>savings:</strong> show the proxy's model-routing savings in headroom savings (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4304">#4304</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/aaab338b64cb55929de904411db65db126e22ec0">aaab338</a>)</li> </ul> <h3>Bug Fixes</h3> <ul> <li>[BUG] A timeout in one image compression call resets the shared worker pool and affects concurrent requests (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4528">#4528</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/e9bcfe73fadf69f0b27b7bc338ea7d2380931054">e9bcfe7</a>)</li> <li>[BUG] DirectMem0Adapter.search_memories calls removed mem0 search API (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4518">#4518</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/d9cee452681c79d6f13919e9e651e88a774c0874">d9cee45</a>)</li> <li>[BUG] Saved request metrics lose their cache optimization fields (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4584">#4584</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/b4c9bdf100d97fb038beba95de6d4ad6a8786090">b4c9bdf</a>)</li> <li>[BUG] Volatile SQLite metrics stores lose their schema before the first save (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4633">#4633</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/d8ff0fe9d2cb2477f6662a90f8fcd7e030a52666">d8ff0fe</a>)</li> <li>Add info about apply to README.md (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/1592">#1592</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/4d34680c34ad379d693820869e77d4a2a6be2cdf">4d34680</a>)</li> <li><strong>backends/litellm:</strong> keep cache_control on text blocks for Bedrock prompt caching (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4565">#4565</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/23a5bb1c81dc943398f9271f068a02487207f2e7">23a5bb1</a>)</li> <li><strong>backends:</strong> forward the standard service_tier param (litellm + anyllm) (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/2468">#2468</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/62cc38a6b09dbcf723681a0ff56acd02131ad1f1">62cc38a</a>)</li> <li><strong>cache:</strong> build semantic entry before evicting so a failed embedding keeps live entries (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4581">#4581</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/0d4c450d774691568b850f0d22ce17e087405281">0d4c450</a>)</li> <li><strong>cache:</strong> count a tool_result with no text as replayable in the frozen prefix (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4523">#4523</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/fba09f674c8a9c91b39a563a70ab7727b44d1dbc">fba09f6</a>)</li> <li><strong>cache:</strong> fail closed on SQLite corruption instead of deleting the store online (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4361">#4361</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/98018333f997783487af15efe4d9e631ecd85939">9801833</a>)</li> <li><strong>cache:</strong> invalidate configured registry instances on replacement (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4363">#4363</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/1bcdca2d9dd279f49aa4276d523d93c2cfeb5a51">1bcdca2</a>)</li> <li><strong>cache:</strong> namespace SemanticCacheLayer by provider, model and metadata (<a href="https://redirect.github.com/headroomlabs-ai/headroom/issues/4473">#4473</a>) (<a href="https://github.com/headroomlabs-ai/headroom/commit/99cdaaf1c7de2bd81a8e64f198462fd1ceec3a17">99cdaaf</a>)</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/headroomlabs-ai/headroom/commit/2d3ee51846435ef5b320eea4806af14e602b0d8c"><code>2d3ee51</code></a> chore: release 0.43.1 (<a href="https://github.com/headroomlabs-ai/headroom/tree/HEAD/sdk/typescript/issues/4661">#4661</a>)</li> <li><a href="https://github.com/headroomlabs-ai/headroom/commit/8f104f8e298c85ff0005f2fd4848eea95f32b7c7"><code>8f104f8</code></a> deps: bump the npm-minor-patch group across 3 directories with 6 updates (<a href="https://github.com/headroomlabs-ai/headroom/tree/HEAD/sdk/typescript/issues/4662">#4662</a>)</li> <li><a href="https://github.com/headroomlabs-ai/headroom/commit/81fa4bdda613f6a37f6f430eda9f728e1458f3ce"><code>81fa4bd</code></a> chore: release 0.43.0 (<a href="https://github.com/headroomlabs-ai/headroom/tree/HEAD/sdk/typescript/issues/4643">#4643</a>)</li> <li><a href="https://github.com/headroomlabs-ai/headroom/commit/a26faaeee34ecfde57608aea4a1ec7ea2b33272f"><code>a26faae</code></a> fix(sdk): carry Vercel AI SDK reasoning parts and provider options through co...</li> <li><a href="https://github.com/headroomlabs-ai/headroom/commit/e666fd8e35dbe7c0433739297873b6a0a51c26cf"><code>e666fd8</code></a> deps: Bump tsup from 8.5.1 to 9.0.0 in /sdk/typescript (<a href="https://github.com/headroomlabs-ai/headroom/tree/HEAD/sdk/typescript/issues/4386">#4386</a>)</li> <li><a href="https://github.com/headroomlabs-ai/headroom/commit/74277d47ecfbca349ddb99f81094c4dd30539d43"><code>74277d4</code></a> deps: Bump <code>@anthropic-ai/sdk</code> from 0.133.0 to 1.3.0 in /sdk/typescript (<a href="https://github.com/headroomlabs-ai/headroom/tree/HEAD/sdk/typescript/issues/4554">#4554</a>)</li> <li><a href="https://github.com/headroomlabs-ai/headroom/commit/5e4827de12c9fdf33d7d36b1939eee73a18fe6c5"><code>5e4827d</code></a> deps: Bump the npm-minor-patch group across 1 directory with 6 updates (<a href="https://github.com/headroomlabs-ai/headroom/tree/HEAD/sdk/typescript/issues/4621">#4621</a>)</li> <li><a href="https://github.com/headroomlabs-ai/headroom/commit/cd5e2b9e73eb8bd783ab872bdda71263b941e2d3"><code>cd5e2b9</code></a> fix(sdk): send Anthropic messages to /v1/compress natively so thinking blocks...</li> <li><a href="https://github.com/headroomlabs-ai/headroom/commit/6c3d7475077b2e09e8cff5ba2352bda4064d86d3"><code>6c3d747</code></a> chore(sdk-typescript): npm metadata and the proxy requirement up front (<a href="https://github.com/headroomlabs-ai/headroom/tree/HEAD/sdk/typescript/issues/4536">#4536</a>)</li> <li><a href="https://github.com/headroomlabs-ai/headroom/commit/f36772805178e3fed1a95313e8211c57a291b953"><code>f367728</code></a> deps: Bump the npm-minor-patch group across 3 directories with 9 updates (<a href="https://github.com/headroomlabs-ai/headroom/tree/HEAD/sdk/typescript/issues/4495">#4495</a>)</li> <li>See full diff in <a href="https://github.com/headroomlabs-ai/headroom/commits/v0.43.1/sdk/typescript">compare view</a></li> </ul> </details> <br /> Updates `effect` from 4.0.0-beta.103 to 4.1.2 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/Effect-TS/effect/releases">effect's releases</a>.</em></p> <blockquote> <h2>effect@4.1.2</h2> <h3>Patch Changes</h3> <ul> <li> <p><a href="https://redirect.github.com/Effect-TS/effect/pull/10217">#10217</a> <a href="https://github.com/Effect-TS/effect/commit/52166841177ca39d32cc4c06ac5fcdd660656748"><code>5216684</code></a> Thanks <a href="https://github.com/devangpratap"><code>@devangpratap</code></a>! - Fix <code>ByteSize</code> decimal unit constructors such as <code>megabytes(2.01)</code> throwing or returning the wrong byte count, and reject fractional-byte quantities instead of rounding them.</p> </li> <li> <p><a href="https://redirect.github.com/Effect-TS/effect/pull/10261">#10261</a> <a href="https://github.com/Effect-TS/effect/commit/b707ad1bce3cbf1613fd97622901d7e81e2a34c7"><code>b707ad1</code></a> Thanks <a href="https://github.com/effect-bot"><code>@effect-bot</code></a>! - Fix cluster entity defect restart backoff being shared by all entities of a type and never resetting.</p> </li> <li> <p><a href="https://redirect.github.com/Effect-TS/effect/pull/10249">#10249</a> <a href="https://github.com/Effect-TS/effect/commit/46f48afc88b4b4df3cc1c470ae01f31cc7f8d77c"><code>46f48af</code></a> Thanks <a href="https://github.com/effect-bot"><code>@effect-bot</code></a>! - Prevent an interrupted cluster request that keeps defecting from stalling message delivery to other entities.</p> </li> <li> <p><a href="https://redirect.github.com/Effect-TS/effect/pull/10218">#10218</a> <a href="https://github.com/Effect-TS/effect/commit/92201bcd47f1789590ff884542051e2123fdb529"><code>92201bc</code></a> Thanks <a href="https://github.com/sbking"><code>@sbking</code></a>! - Defer the runner notification for a discarded persisted send made inside a <code>ClusterSchema.WithTransaction</code> handler until the transaction commits. The message was invisible to the runner before the commit, so delivery waited for the next storage poll.</p> </li> <li> <p><a href="https://redirect.github.com/Effect-TS/effect/pull/10260">#10260</a> <a href="https://github.com/Effect-TS/effect/commit/cf329f3b694ba8659946ee74dbbb6cdb6e5535de"><code>cf329f3</code></a> Thanks <a href="https://github.com/effect-bot"><code>@effect-bot</code></a>! - Fix <code>ClusterWorkflowEngine</code> turning transient storage failures while saving durable clocks or deferred completions into workflow defects; they are now retried.</p> </li> <li> <p><a href="https://redirect.github.com/Effect-TS/effect/pull/10262">#10262</a> <a href="https://github.com/Effect-TS/effect/commit/1d25d78d9639e2725f4ea8d056a77b3bde9afd78"><code>1d25d78</code></a> Thanks <a href="https://github.com/effect-bot"><code>@effect-bot</code></a>! - Fix <code>ClusterWorkflowEngine</code> blocking shard reacquisition indefinitely after a forced shard release interrupted a workflow resume waiting on its active run.</p> </li> <li> <p><a href="https://redirect.github.com/Effect-TS/effect/pull/10226">#10226</a> <a href="https://github.com/Effect-TS/effect/commit/d190d973a7fb2ebb71bfaf1a01adbffef1833555"><code>d190d97</code></a> Thanks <a href="https://github.com/tim-smart"><code>@tim-smart</code></a>! - Fix <code>ClusterWorkflowEngine</code> letting a runner that lost its shard delete a newer activity result, which could run the activity again and change the workflow's history.</p> </li> <li> <p><a href="https://redirect.github.com/Effect-TS/effect/pull/10241">#10241</a> <a href="https://github.com/Effect-TS/effect/commit/d7b3b6bd6be4d96babda9d191538fe25c7124f44"><code>d7b3b6b</code></a> Thanks <a href="https://github.com/Marve10s"><code>@Marve10s</code></a>! - Fix <code>HttpClient.withCookiesRef</code> not sending cookies when the request URL is completed after it, for example by the <code>baseUrl</code> of <code>HttpApiClient</code>. Cookies are now selected for the final URL of each request, including redirect hops.</p> </li> <li> <p><a href="https://redirect.github.com/Effect-TS/effect/pull/10211">#10211</a> <a href="https://github.com/Effect-TS/effect/commit/a4787453be8e4f360f0212fb0b25bc4a0e18fc72"><code>a478745</code></a> Thanks <a href="https://github.com/effect-bot"><code>@effect-bot</code></a>! - Keep <code>EventLogServer</code> session auth challenges on their RPC connection, so a challenge is released when its client disconnects instead of being retained by the server after an unauthenticated disconnect.</p> </li> <li> <p><a href="https://redirect.github.com/Effect-TS/effect/pull/10221">#10221</a> <a href="https://github.com/Effect-TS/effect/commit/69eaa29dfe5c33547ad12068f65d31b2123194c3"><code>69eaa29</code></a> Thanks <a href="https://github.com/clean99"><code>@clean99</code></a>! - Fix <code>Iterable.filterMapWhile</code> iterators yielding values or pulling from the source after they have returned <code>done</code>.</p> </li> <li> <p><a href="https://redirect.github.com/Effect-TS/effect/pull/10233">#10233</a> <a href="https://github.com/Effect-TS/effect/commit/3711ba65343a0932840478aa758a2612be0327a7"><code>3711ba6</code></a> Thanks <a href="https://github.com/clean99"><code>@clean99</code></a>! - Fix <code>Iterable.unfold</code> iterators calling the generating function again after they have returned <code>done</code>.</p> </li> <li> <p><a href="https://redirect.github.com/Effect-TS/effect/pull/9972">#9972</a> <a href="https://github.com/Effect-TS/effect/commit/715c5e4b4528889be2ce30163b130d422e7ab68f"><code>715c5e4</code></a> Thanks <a href="https://github.com/eugene1g"><code>@eugene1g</code></a>! - Add <code>Json5.parse</code> and <code>Jsonc.parse</code> to <code>effect/encoding</code>, returning a <code>Result</code> that fails with an <code>EncodingError</code> on invalid input.</p> </li> <li> <p><a href="https://redirect.github.com/Effect-TS/effect/pull/10257">#10257</a> <a href="https://github.com/Effect-TS/effect/commit/b0a1ceebcd053d73dbd4fdf836c4d3471dc18f3c"><code>b0a1cee</code></a> Thanks <a href="https://github.com/tim-smart"><code>@tim-smart</code></a>! - Use a <code>ClientCapabilities</code> instance for the fallback MCP client profile in <code>McpServer</code>.</p> </li> <li> <p><a href="https://redirect.github.com/Effect-TS/effect/pull/10242">#10242</a> <a href="https://github.com/Effect-TS/effect/commit/2a10622e906caccd7a9b4a90d1aaef090e8e00cc"><code>2a10622</code></a> Thanks <a href="https://github.com/Marve10s"><code>@Marve10s</code></a>! - Fix <code>McpServer</code> running middleware provided outside a combined middleware inside it.</p> </li> <li> <p><a href="https://redirect.github.com/Effect-TS/effect/pull/10243">#10243</a> <a href="https://github.com/Effect-TS/effect/commit/6bccdd54e1bc5d7f182972811d6827d1ad10f1aa"><code>6bccdd5</code></a> Thanks <a href="https://github.com/Marve10s"><code>@Marve10s</code></a>! - Encode declared <code>McpServer</code> tool failures with their JSON codec, so values such as <code>bigint</code>, <code>Map</code> and <code>Option</code> no longer cause an internal error or lossy output</p> </li> <li> <p><a href="https://redirect.github.com/Effect-TS/effect/pull/10244">#10244</a> <a href="https://github.com/Effect-TS/effect/commit/60be01136a530ec10d8b67efc812eee94804444c"><code>60be011</code></a> Thanks <a href="https://github.com/Marve10s"><code>@Marve10s</code></a>! - Fix 2026-07-28 MCP listings failing for resources, resource templates and prompts registered as plain objects.</p> </li> <li> <p><a href="https://redirect.github.com/Effect-TS/effect/pull/10235">#10235</a> <a href="https://github.com/Effect-TS/effect/commit/e1edcdc8d60bef515a2c5fa97706d4baaf0c0290"><code>e1edcdc</code></a> Thanks <a href="https://github.com/schutzelaars"><code>@schutzelaars</code></a>! - Stop OTLP log and trace exporters from keeping a timer pending while idle. A Node program kept alive only by an idle exporter now exits.</p> </li> <li> <p><a href="https://redirect.github.com/Effect-TS/effect/pull/10210">#10210</a> <a href="https://github.com/Effect-TS/effect/commit/ef81e9dbd1221ab8a9c38ce50f96129054e3b6e2"><code>ef81e9d</code></a> Thanks <a href="https://github.com/effect-bot"><code>@effect-bot</code></a>! - Fix <code>RateLimiter.layerStoreRedis</code> sharing state between different keys. A key ending in <code>:refill</code> or <code>:adaptive</code> no longer reads or writes another key's token-bucket refill time or adaptive state.</p> </li> <li> <p><a href="https://redirect.github.com/Effect-TS/effect/pull/10223">#10223</a> <a href="https://github.com/Effect-TS/effect/commit/013fb34f88f3451ede7e7333f205563f07716b13"><code>013fb34</code></a> Thanks <a href="https://github.com/effect-bot"><code>@effect-bot</code></a>! - Fix <code>RpcServer</code> returning an empty HTTP 500 for requests with malformed headers; such requests now fail with a defect <code>Exit</code>, and malformed notifications are dropped.</p> </li> <li> <p><a href="https://redirect.github.com/Effect-TS/effect/pull/10251">#10251</a> <a href="https://github.com/Effect-TS/effect/commit/113dbc74b259b7e56e618a506dc67e85794c36ed"><code>113dbc7</code></a> Thanks <a href="https://github.com/wmaurer"><code>@wmaurer</code></a>! - Fix <code>Schedule.fixed</code>, <code>Schedule.windowed</code> and <code>Schedule.cron</code> returning a zero delay when the clock is a fraction of a nanosecond before the next run.</p> </li> <li> <p><a href="https://redirect.github.com/Effect-TS/effect/pull/10230">#10230</a> <a href="https://github.com/Effect-TS/effect/commit/519d66eb5972ef3c801fb164dd652f25a71e0511"><code>519d66e</code></a> Thanks <a href="https://github.com/effect-bot"><code>@effect-bot</code></a>! - Add <code>SchemaBinary.int32</code>, <code>uint32</code>, <code>int64</code> and <code>uint64</code>, opt-in schemas that write integers as fixed-width little-endian payloads. The 32-bit schemas decode to <code>number</code> and the 64-bit schemas to <code>bigint</code>. Out-of-range and non-integer values are rejected instead of wrapped.</p> </li> <li> <p><a href="https://redirect.github.com/Effect-TS/effect/pull/10213">#10213</a> <a href="https://github.com/Effect-TS/effect/commit/e7a6ea43fe8ac77f68329b84d26dc2d1e136d745"><code>e7a6ea4</code></a> Thanks <a href="https://github.com/effect-bot"><code>@effect-bot</code></a>! - SQL transactions now trace <code>BEGIN</code>, <code>COMMIT</code>, <code>ROLLBACK</code> and savepoint statements as child spans of <code>sql.transaction</code>, replacing its <code>effect.sql.transaction.commit</code>, <code>savepoint</code> and <code>rollback</code> events; with <code>Statement.SpanPropagationEnabled</code>, the transaction also parents connection spans and records its connection wait time.</p> </li> <li> <p><a href="https://redirect.github.com/Effect-TS/effect/pull/10240">#10240</a> <a href="https://github.com/Effect-TS/effect/commit/019f35e0a7ebe050eae01d68cc14ae63158fd8e4"><code>019f35e</code></a> Thanks <a href="https://github.com/clean99"><code>@clean99</code></a>! - Fix <code>Stream.groupAdjacentBy</code> dropping its last group when the stream fails. The group is now emitted before the error.</p> </li> <li> <p><a href="https://redirect.github.com/Effect-TS/effect/pull/10278">#10278</a> <a href="https://github.com/Effect-TS/effect/commit/2a0d16cd1ff63a69baf5d19a13dc2051b500150c"><code>2a0d16c</code></a> Thanks <a href="https://github.com/tim-smart"><code>@tim-smart</code></a>! - Fix <code>AnthropicStructuredOutput.toCodecAnthropic</code>, <code>OpenAiStructuredOutput.toCodecOpenAI</code>, and MCP tool schemas returning or rejecting a root <code>$ref</code> when the schema is an identified alias of another identified schema.</p> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/Effect-TS/effect/blob/main/packages/effect/CHANGELOG.md">effect's changelog</a>.</em></p> <blockquote> <h2>4.1.2</h2> <h3>Patch Changes</h3> <ul> <li> <p><a href="https://redirect.github.com/Effect-TS/effect/pull/10217">#10217</a> <a href="https://github.com/Effect-TS/effect/commit/52166841177ca39d32cc4c06ac5fcdd660656748"><code>5216684</code></a> Thanks <a href="https://github.com/devangpratap"><code>@devangpratap</code></a>! - Fix <code>ByteSize</code> decimal unit constructors such as <code>megabytes(2.01)</code> throwing or returning the wrong byte count, and reject fractional-byte quantities instead of rounding them.</p> </li> <li> <p><a href="https://redirect.github.com/Effect-TS/effect/pull/10261">#10261</a> <a href="https://github.com/Effect-TS/effect/commit/b707ad1bce3cbf1613fd97622901d7e81e2a34c7"><code>b707ad1</code></a> Thanks <a href="https://github.com/effect-bot"><code>@effect-bot</code></a>! - Fix cluster entity defect restart backoff being shared by all entities of a type and never resetting.</p> </li> <li> <p><a href="https://redirect.github.com/Effect-TS/effect/pull/10249">#10249</a> <a href="https://github.com/Effect-TS/effect/commit/46f48afc88b4b4df3cc1c470ae01f31cc7f8d77c"><code>46f48af</code></a> Thanks <a href="https://github.com/effect-bot"><code>@effect-bot</code></a>! - Prevent an interrupted cluster request that keeps defecting from stalling message delivery to other entities.</p> </li> <li> <p><a href="https://redirect.github.com/Effect-TS/effect/pull/10218">#10218</a> <a href="https://github.com/Effect-TS/effect/commit/92201bcd47f1789590ff884542051e2123fdb529"><code>92201bc</code></a> Thanks <a href="https://github.com/sbking"><code>@sbking</code></a>! - Defer the runner notification for a discarded persisted send made inside a <code>ClusterSchema.WithTransaction</code> handler until the transaction commits. The message was invisible to the runner before the commit, so delivery waited for the next storage poll.</p> </li> <li> <p><a href="https://redirect.github.com/Effect-TS/effect/pull/10260">#10260</a> <a href="https://github.com/Effect-TS/effect/commit/cf329f3b694ba8659946ee74dbbb6cdb6e5535de"><code>cf329f3</code></a> Thanks <a href="https://github.com/effect-bot"><code>@effect-bot</code></a>! - Fix <code>ClusterWorkflowEngine</code> turning transient storage failures while saving durable clocks or deferred completions into workflow defects; they are now retried.</p> </li> <li> <p><a href="https://redirect.github.com/Effect-TS/effect/pull/10262">#10262</a> <a href="https://github.com/Effect-TS/effect/commit/1d25d78d9639e2725f4ea8d056a77b3bde9afd78"><code>1d25d78</code></a> Thanks <a href="https://github.com/effect-bot"><code>@effect-bot</code></a>! - Fix <code>ClusterWorkflowEngine</code> blocking shard reacquisition indefinitely after a forced shard release interrupted a workflow resume waiting on its active run.</p> </li> <li> <p><a href="https://redirect.github.com/Effect-TS/effect/pull/10226">#10226</a> <a href="https://github.com/Effect-TS/effect/commit/d190d973a7fb2ebb71bfaf1a01adbffef1833555"><code>d190d97</code></a> Thanks <a href="https://github.com/tim-smart"><code>@tim-smart</code></a>! - Fix <code>ClusterWorkflowEngine</code> letting a runner that lost its shard delete a newer activity result, which could run the activity again and change the workflow's history.</p> </li> <li> <p><a href="https://redirect.github.com/Effect-TS/effect/pull/10241">#10241</a> <a href="https://github.com/Effect-TS/effect/commit/d7b3b6bd6be4d96babda9d191538fe25c7124f44"><code>d7b3b6b</code></a> Thanks <a href="https://github.com/Marve10s"><code>@Marve10s</code></a>! - Fix <code>HttpClient.withCookiesRef</code> not sending cookies when the request URL is completed after it, for example by the <code>baseUrl</code> of <code>HttpApiClient</code>. Cookies are now selected for the final URL of each request, including redirect hops.</p> </li> <li> <p><a href="https://redirect.github.com/Effect-TS/effect/pull/10211">#10211</a> <a href="https://github.com/Effect-TS/effect/commit/a4787453be8e4f360f0212fb0b25bc4a0e18fc72"><code>a478745</code></a> Thanks <a href="https://github.com/effect-bot"><code>@effect-bot</code></a>! - Keep <code>EventLogServer</code> session auth challenges on their RPC connection, so a challenge is released when its client disconnects instead of being retained by the server after an unauthenticated disconnect.</p> </li> <li> <p><a href="https://redirect.github.com/Effect-TS/effect/pull/10221">#10221</a> <a href="https://github.com/Effect-TS/effect/commit/69eaa29dfe5c33547ad12068f65d31b2123194c3"><code>69eaa29</code></a> Thanks <a href="https://github.com/clean99"><code>@clean99</code></a>! - Fix <code>Iterable.filterMapWhile</code> iterators yielding values or pulling from the source after they have returned <code>done</code>.</p> </li> <li> <p><a href="https://redirect.github.com/Effect-TS/effect/pull/10233">#10233</a> <a href="https://github.com/Effect-TS/effect/commit/3711ba65343a0932840478aa758a2612be0327a7"><code>3711ba6</code></a> Thanks <a href="https://github.com/clean99"><code>@clean99</code></a>! - Fix <code>Iterable.unfold</code> iterators calling the generating function again after they have returned <code>done</code>.</p> </li> <li> <p><a href="https://redirect.github.com/Effect-TS/effect/pull/9972">#9972</a> <a href="https://github.com/Effect-TS/effect/commit/715c5e4b4528889be2ce30163b130d422e7ab68f"><code>715c5e4</code></a> Thanks <a href="https://github.com/eugene1g"><code>@eugene1g</code></a>! - Add <code>Json5.parse</code> and <code>Jsonc.parse</code> to <code>effect/encoding</code>, returning a <code>Result</code> that fails with an <code>EncodingError</code> on invalid input.</p> </li> <li> <p><a href="https://redirect.github.com/Effect-TS/effect/pull/10257">#10257</a> <a href="https://github.com/Effect-TS/effect/commit/b0a1ceebcd053d73dbd4fdf836c4d3471dc18f3c"><code>b0a1cee</code></a> Thanks <a href="https://github.com/tim-smart"><code>@tim-smart</code></a>! - Use a <code>ClientCapabilities</code> instance for the fallback MCP client profile in <code>McpServer</code>.</p> </li> <li> <p><a href="https://redirect.github.com/Effect-TS/effect/pull/10242">#10242</a> <a href="https://github.com/Effect-TS/effect/commit/2a10622e906caccd7a9b4a90d1aaef090e8e00cc"><code>2a10622</code></a> Thanks <a href="https://github.com/Marve10s"><code>@Marve10s</code></a>! - Fix <code>McpServer</code> running middleware provided outside a combined middleware inside it.</p> </li> <li> <p><a href="https://redirect.github.com/Effect-TS/effect/pull/10243">#10243</a> <a href="https://github.com/Effect-TS/effect/commit/6bccdd54e1bc5d7f182972811d6827d1ad10f1aa"><code>6bccdd5</code></a> Thanks <a href="https://github.com/Marve10s"><code>@Marve10s</code></a>! - Encode declared <code>McpServer</code> tool failures with their JSON codec, so values such as <code>bigint</code>, <code>Map</code> and <code>Option</code> no longer cause an internal error or lossy output</p> </li> <li> <p><a href="https://redirect.github.com/Effect-TS/effect/pull/10244">#10244</a> <a href="https://github.com/Effect-TS/effect/commit/60be01136a530ec10d8b67efc812eee94804444c"><code>60be011</code></a> Thanks <a href="https://github.com/Marve10s"><code>@Marve10s</code></a>! - Fix 2026-07-28 MCP listings failing for resources, resource templates and prompts registered as plain objects.</p> </li> <li> <p><a href="https://redirect.github.com/Effect-TS/effect/pull/10235">#10235</a> <a href="https://github.com/Effect-TS/effect/commit/e1edcdc8d60bef515a2c5fa97706d4baaf0c0290"><code>e1edcdc</code></a> Thanks <a href="https://github.com/schutzelaars"><code>@schutzelaars</code></a>! - Stop OTLP log and trace exporters from keeping a timer pending while idle. A Node program kept alive only by an idle exporter now exits.</p> </li> <li> <p><a href="https://redirect.github.com/Effect-TS/effect/pull/10210">#10210</a> <a href="https://github.com/Effect-TS/effect/commit/ef81e9dbd1221ab8a9c38ce50f96129054e3b6e2"><code>ef81e9d</code></a> Thanks <a href="https://github.com/effect-bot"><code>@effect-bot</code></a>! - Fix <code>RateLimiter.layerStoreRedis</code> sharing state between different keys. A key ending in <code>:refill</code> or <code>:adaptive</code> no longer reads or writes another key's token-bucket refill time or adaptive state.</p> </li> <li> <p><a href="https://redirect.github.com/Effect-TS/effect/pull/10223">#10223</a> <a href="https://github.com/Effect-TS/effect/commit/013fb34f88f3451ede7e7333f205563f07716b13"><code>013fb34</code></a> Thanks <a href="https://github.com/effect-bot"><code>@effect-bot</code></a>! - Fix <code>RpcServer</code> returning an empty HTTP 500 for requests with malformed headers; such requests now fail with a defect <code>Exit</code>, and malformed notifications are dropped.</p> </li> <li> <p><a href="https://redirect.github.com/Effect-TS/effect/pull/10251">#10251</a> <a href="https://github.com/Effect-TS/effect/commit/113dbc74b259b7e56e618a506dc67e85794c36ed"><code>113dbc7</code></a> Thanks <a href="https://github.com/wmaurer"><code>@wmaurer</code></a>! - Fix <code>Schedule.fixed</code>, <code>Schedule.windowed</code> and <code>Schedule.cron</code> returning a zero delay when the clock is a fraction of a nanosecond before the next run.</p> </li> <li> <p><a href="https://redirect.github.com/Effect-TS/effect/pull/10230">#10230</a> <a href="https://github.com/Effect-TS/effect/commit/519d66eb5972ef3c801fb164dd652f25a71e0511"><code>519d66e</code></a> Thanks <a href="https://github.com/effect-bot"><code>@effect-bot</code></a>! - Add <code>SchemaBinary.int32</code>, <code>uint32</code>, <code>int64</code> and <code>uint64</code>, opt-in schemas that write integers as fixed-width little-endian payloads. The 32-bit schemas decode to <code>number</code> and the 64-bit schemas to <code>bigint</code>. Out-of-range and non-integer values are rejected instead of wrapped.</p> </li> <li> <p><a href="https://redirect.github.com/Effect-TS/effect/pull/10213">#10213</a> <a href="https://github.com/Effect-TS/effect/commit/e7a6ea43fe8ac77f68329b84d26dc2d1e136d745"><code>e7a6ea4</code></a> Thanks <a href="https://github.com/effect-bot"><code>@effect-bot</code></a>! - SQL transactions now trace <code>BEGIN</code>, <code>COMMIT</code>, <code>ROLLBACK</code> and savepoint statements as child spans of <code>sql.transaction</code>, replacing its <code>effect.sql.transaction.commit</code>, <code>savepoint</code> and <code>rollback</code> events; with <code>Statement.SpanPropagationEnabled</code>, the transaction also parents connection spans and records its connection wait time.</p> </li> <li> <p><a href="https://redirect.github.com/Effect-TS/effect/pull/10240">#10240</a> <a href="https://github.com/Effect-TS/effect/commit/019f35e0a7ebe050eae01d68cc14ae63158fd8e4"><code>019f35e</code></a> Thanks <a href="https://github.com/clean99"><code>@clean99</code></a>! - Fix <code>Stream.groupAdjacentBy</code> dropping its last group when the stream fails. The group is now emitted before the error.</p> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/Effect-TS/effect/commit/506eef143bcc1750ce58920aac1e45da7265d103"><code>506eef1</code></a> Version Packages (<a href="https://github.com/Effect-TS/effect/tree/HEAD/packages/effect/issues/10212">#10212</a>)</li> <li><a href="https://github.com/Effect-TS/effect/commit/b0a1ceebcd053d73dbd4fdf836c4d3471dc18f3c"><code>b0a1cee</code></a> Update repository dependencies (<a href="https://github.com/Effect-TS/effect/tree/HEAD/packages/effect/issues/10257">#10257</a>)</li> <li><a href="https://github.com/Effect-TS/effect/commit/2a4ce2e3638e5543f1355ae671bcb20e00f45ffe"><code>2a4ce2e</code></a> Make load-sensitive Data, sql-d1 and sqlite-node tests robust under load (<a href="https://github.com/Effect-TS/effect/tree/HEAD/packages/effect/issues/10">#10</a>...</li> <li><a href="https://github.com/Effect-TS/effect/commit/e5b1bcfa48a9e4d0d78de255f5ff3b0a7e2e9727"><code>e5b1bcf</code></a> Consolidate redundant Data, Chunk.getUnsafe and Metric.track tests (<a href="https://github.com/Effect-TS/effect/tree/HEAD/packages/effect/issues/10280">#10280</a>)</li> <li><a href="https://github.com/Effect-TS/effect/commit/4a4491d60c9db1cf43a2346fc49329961512f849"><code>4a4491d</code></a> Fix flaky DurableDeferred.raceAll unprocessed-result replay test (<a href="https://github.com/Effect-TS/effect/tree/HEAD/packages/effect/issues/10265">#10265</a>)</li> <li><a href="https://github.com/Effect-TS/effect/commit/7a0da6300449d4806a25cbd1dde86dc1ef3cf300"><code>7a0da63</code></a> Report the stuck step when an McpServer list change test hangs (<a href="https://github.com/Effect-TS/effect/tree/HEAD/packages/effect/issues/10275">#10275</a>)</li> <li><a href="https://github.com/Effect-TS/effect/commit/2a0d16cd1ff63a69baf5d19a13dc2051b500150c"><code>2a0d16c</code></a> Follow chained root references in structured-output schema conversion (<a href="https://github.com/Effect-TS/effect/tree/HEAD/packages/effect/issues/10278">#10278</a>)</li> <li><a href="https://github.com/Effect-TS/effect/commit/e1edcdc8d60bef515a2c5fa97706d4baaf0c0290"><code>e1edcdc</code></a> Stop idle OTLP log and trace exporters from keeping a timer pending (<a href="https://github.com/Effect-TS/effect/tree/HEAD/packages/effect/issues/10235">#10235</a>)</li> <li><a href="https://github.com/Effect-TS/effect/commit/cf329f3b694ba8659946ee74dbbb6cdb6e5535de"><code>cf329f3</code></a> Retry transient persistence failures for durable clocks and deferreds (<a href="https://github.com/Effect-TS/effect/tree/HEAD/packages/effect/issues/10260">#10260</a>)</li> <li><a href="https://github.com/Effect-TS/effect/commit/46f48afc88b4b4df3cc1c470ae01f31cc7f8d77c"><code>46f48af</code></a> Prevent interrupted defecting cluster requests from stalling other entities (...</li> <li>Additional commits viewable in <a href="https://github.com/Effect-TS/effect/commits/effect@4.1.2/packages/effect">compare view</a></li> </ul> </details> <br /> Updates `@opencode/plugin` from 2.2.5 to 2.2.6 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/anomalyco/opencode/releases">@opencode/plugin's releases</a>.</em></p> <blockquote> <h2>v2.2.6</h2> <h3>Highlights</h3> <ul> <li><strong>Shared MCP Connections</strong>: Turn on pooling for an MCP server to share one connection across projects with the same setup, so you run fewer processes and start faster. (<a href="https://redirect.github.com/anomalyco/opencode/pull/61185">#61185</a>)</li> <li><strong>GUI Plugin Themes and New Slots</strong>: GUI plugins can now add color themes, render or add actions to code blocks, and use native settings and menu components. (<a href="https://redirect.github.com/anomalyco/opencode/pull/61485">#61485</a>, <a href="https://redirect.github.com/anomalyco/opencode/pull/61533">#61533</a>, <a href="https://redirect.github.com/anomalyco/opencode/pull/61527">#61527</a>, <a href="https://redirect.github.com/anomalyco/opencode/pull/61509">#61509</a>)</li> <li><strong>Mobile Composer Dock</strong>: On phones and tablets, composer actions now sit in a touch dock above the keyboard with larger buttons. (<a href="https://redirect.github.com/anomalyco/opencode/pull/61773">#61773</a>)</li> <li><strong>S... _Description has been truncated_ ## Real Behavior Proof - Fix pushed: migrated `dependency-compat.test.ts` to `effect/cli` `Primitive.FileParse` (module path change in Effect 4.x). - Observed: `bun run typecheck` clean; plugin suite 96/96 pass incl. the compat test (3/3). - Assessment of `toml@0.0.5`: not imported by repo code — the compat test exercises Effect's own TOML parsing, so the dep can be dropped in a follow-up if confirmed unused. - Not tested: other plugins' Effect API surface (only the opencode plugin touches effect/cli). --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: JerrettDavis <mxjerrett@gmail.com> |
||
|
|
e602e4cfb5 |
fix(sdk): throw typed proxy 4xx errors from compress instead of retrying (#4751)
## Description `HeadroomClient.compress` only stopped retrying on a `HeadroomCompressError` below 500. When the proxy's error body has a typed `error.type`, `mapProxyError` returns `ConfigurationError`, `ValidationError` and so on, so those 4xx responses were retried and, with the default `fallback: true`, turned into an uncompressed result. The caller never saw the 400. `mapProxyError` also indexed a plain object with the untrusted `error.type`, so `constructor`, `toString` or `__proto__` hit inherited properties (a `String` object returned, or `TypeError: ErrorClass is not a constructor`). Closes #4742 ## Type of Change - [x] Bug fix (non-breaking change that fixes an issue) - [ ] New feature (non-breaking change that adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] Documentation update - [ ] Performance improvement - [ ] Code refactoring (no functional changes) ## Changes Made - `sdk/typescript/src/client.ts`: new `isClientError()` reads the status from any `HeadroomError` (`statusCode` on `HeadroomCompressError`, `details.statusCode` on the typed classes, which `mapProxyError` already sets). `compress` rethrows when it is below 500, the same threshold as before. 5xx and connection errors still retry and fall back. - `sdk/typescript/src/errors.ts`: `mapProxyError` looks up `error.type` with `Object.hasOwn`, so inherited keys fall through to `HeadroomCompressError`. - Tests: `test/client.test.ts` checks that typed 400s (`configuration_error`, `validation_error`) are thrown as their class after one request with `retries: 1, fallback: true`, and that a typed 502 (`provider_error`) is still retried. `test/errors.test.ts` checks that `constructor`, `toString`, `__proto__` and `hasOwnProperty` map to `HeadroomCompressError`. ## Testing - [ ] Unit tests pass (`pytest`) - [ ] Linting passes (`ruff check .`) - [ ] Type checking passes (`mypy headroom`) - [x] New tests added for new functionality - [x] Manual testing performed TypeScript-only change, so I ran the `sdk-typescript.yml` steps instead of the Python ones: `npm test`, `npm run typecheck` and `npm run build` in `sdk/typescript` all pass. No Python files changed. ### Test Output Before the fix (new tests only, `src/` at `1da8930a`): ```text $ npx vitest run test/client.test.ts test/errors.test.ts × ignores inherited object keys such as constructor × ignores inherited object keys such as toString × ignores inherited object keys such as __proto__ × ignores inherited object keys such as hasOwnProperty × throws typed configuration_error 4xx errors without retry or fallback × throws typed validation_error 4xx errors without retry or fallback Tests 6 failed | 41 passed (47) ``` After the fix: ```text $ npm test Test Files 19 passed | 5 skipped (24) Tests 456 passed | 33 skipped (489) $ npm run typecheck # tsc --noEmit, exit 0 $ npm run build # tsup, exit 0 ``` ## Real Behavior Proof - Environment: Ubuntu Linux, Node v24.22.2, `sdk/typescript` built with `npm run build`, `main` at `1da8930a` plus this change. A local Node `http` server on `127.0.0.1` answers `POST /v1/compress` with `{"error":{"type":T,"message":"msg-T"}}` and counts requests. No proxy or provider credentials. - Exact command / steps: build the SDK, start the stub, call `new HeadroomClient({ baseUrl }).compress([{ role: "user", content: "hello" }])` (defaults: `retries: 1`, `fallback: true`) for each status/type, then call `mapProxyError(400, T, "x")` for the inherited keys. Same script against the build of `1da8930a` for comparison. - Observed result: with this change, typed 4xx errors (`validation_error`, `configuration_error`) throw their typed error after 1 request, prototype keys (`constructor`, `toString`, `__proto__`) map to `HeadroomCompressError`, and 5xx still retries then falls back. Before, those 4xx types retried and silently fell back, and `toString` crashed with `TypeError`. Full output: After: ```text status=400 type=bad_request threw HeadroomCompressError: msg-bad_request requests=1 status=400 type=validation_error threw ValidationError: msg-validation_error requests=1 status=400 type=configuration_error threw ConfigurationError: msg-configuration_error requests=1 status=400 type=constructor threw HeadroomCompressError: msg-constructor requests=1 status=400 type=toString threw HeadroomCompressError: msg-toString requests=1 status=400 type=__proto__ threw HeadroomCompressError: msg-__proto__ requests=1 status=502 type=provider_error resolved compressed=false requests=2 mapProxyError(400,'constructor') -> HeadroomCompressError instanceof Error=true mapProxyError(400,'toString') -> HeadroomCompressError instanceof Error=true mapProxyError(400,'__proto__') -> HeadroomCompressError instanceof Error=true ``` Before (`1da8930a`): ```text status=400 type=bad_request threw HeadroomCompressError: msg-bad_request requests=1 status=400 type=validation_error resolved compressed=false requests=2 status=400 type=configuration_error resolved compressed=false requests=2 status=400 type=constructor resolved compressed=false requests=2 status=400 type=toString resolved compressed=false requests=2 status=400 type=__proto__ resolved compressed=false requests=2 status=502 type=provider_error resolved compressed=false requests=2 mapProxyError(400,'constructor') -> undefined instanceof Error=false TypeError: ErrorClass is not a constructor (at mapProxyError for 'toString') ``` - Not tested: a real Headroom proxy (I did not check which typed errors it sends with a 4xx); other SDK methods that use `rawFetch` (they do not retry, so only the lookup change affects them). With `fallback: false`, a typed 5xx that exhausts retries is still wrapped in `HeadroomConnectionError`, as before; this PR does not change that path. ## Runtime Rollout Safety - Rollout-managed feature(s): none - Minimum rollout channel: n/a (TypeScript SDK client behavior only) - Stable/default behavior changed: yes, narrowly: `compress` now throws typed 4xx proxy errors (e.g. `ConfigurationError`, `ValidationError`) on the first attempt instead of retrying and returning the uncompressed fallback. This matches the existing behavior for untyped 4xx and the README's `err instanceof ConfigurationError` example. - Kill switch / disable path: none needed; callers that want the old result can catch the error and use the original messages. - Unsafe override required: no - Qualification impact: none - Rollback path: revert this commit ## Review Readiness - [x] I have performed a self-review - [ ] This PR is ready for human review ## Checklist - [x] My code follows the project's style guidelines - [x] I have performed a self-review of my code - [x] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [x] I did **not** edit `CHANGELOG.md` — it is generated by release-please from my Conventional Commit PR title (a CI guard enforces this) ## Screenshots (if applicable) N/A ## Additional Notes - Documentation: no change needed; the README already shows `err instanceof ConfigurationError` after `compress`, which this makes reachable. - Python `pytest` / `ruff` / `mypy` boxes are unticked because no Python code changed; the TypeScript SDK CI steps were run instead (above). - The issue suggested both fixes are independent; they are in one small commit here but I can split them if you prefer. AI assistance: this change was prepared with Claude and Codex (AI coding assistants) and tested as described above. Co-authored-by: JD Davis <mxjerrett@gmail.com> |
||
|
|
622df2962b |
fix(sdk): keep Gemini thought signatures and call ids through the compress round trip (#4777)
## Description The TypeScript Gemini adapter lost three part fields on every compressed request: `thought`, `thoughtSignature`, and the provider-assigned `functionCall.id` / `functionResponse.id`. Gemini 3 answers a function-call turn whose first `functionCall` lost its `thoughtSignature` with a `400 INVALID_ARGUMENT`, so compression could break an otherwise valid thinking-enabled tool loop. The compress round trip is Gemini → OpenAI → `/v1/compress` → OpenAI → Gemini, and the OpenAI shape has no slot for those fields, so both converters dropped them. `openAIToGemini` also rebuilt the tool call id as `gemini_<name>`, which no longer matched the id Gemini issued. Closes #4770 ## Type of Change - [x] Bug fix (non-breaking change that fixes an issue) ## Changes Made - `geminiToOpenAI` carries the extra fields on a private `_headroomGemini` key on the OpenAI message, content block or tool call that the part becomes — the same "hide it in an extra key" pattern the SDK already uses for `mime_type` (media) and `providerOptions` (Vercel). Turns that carry per-part fields stay as separate content blocks instead of being joined, because a joined string has nowhere to keep them; plain turns still collapse exactly as before. - `geminiToOpenAI` uses the real `functionCall.id` (`gemini_<name>` only as a fallback), and pairs a `functionResponse` that omits its own id with the still-unanswered call of the same name, so both OpenAI ids match and the tool result keeps whatever per-call handling the proxy applies. - `openAIToGemini` restores `thought` / `thoughtSignature` on text, image and `functionResponse` parts, `functionCall.id` on tool calls, and `id` + `name` on `functionResponse`. - No change to `src/adapters/gemini.ts`: it was only ever handed lossy contents. ## Testing - [x] Unit tests pass (`npx vitest run`) - [x] Type checking passes (`npm run typecheck`) - [x] Build passes (`npm run build`) - [x] New tests added for new functionality - [x] Manual testing performed ### Test Output ```text sdk/typescript$ npx vitest run Test Files 19 passed | 5 skipped (24) Tests 468 passed | 33 skipped (501) Type Errors no errors sdk/typescript$ npm run typecheck > headroom-ai@0.44.0 typecheck > tsc --noEmit (no output) sdk/typescript$ npm run build ESM Build success in 338ms DTS Build success in 338ms ``` The new `format.test.ts` cases under "Gemini part fields survive the compress round trip (issue #4770)" fail on `upstream/main` and pass with this change: ```text # with only the test file added, source reverted to upstream/main Tests 5 failed | 115 passed (120) AssertionError: expected { text: 'Let me look that up.' } to deeply equal { text: 'Let me look that up.', …(2) } AssertionError: expected 'gemini_get_weather' to be 'call_abc123' ``` ## Real Behavior Proof - Environment: Windows 11, Node v26.10.0, repo at `200c838c`, proxy run locally with `HEADROOM_OFFLINE=1 headroom proxy --port 8899 --no-http2`, SDK built with `npm run build`. - Exact command / steps: a script calls `withHeadroom(model, { baseUrl: "http://127.0.0.1:8899" })` from the built `dist/adapters/gemini.js` with a three-turn Gemini conversation — user question, model turn with a `thought` part plus a signed `functionCall` carrying `id: "call_abc123"`, user turn with the matching `functionResponse` (once carrying the id, once omitting it). The wrapped model records the params it is finally called with, so the recorded value is what the real SDK would send after a genuine `/v1/compress` round trip. - Observed result: `upstream/main` loses all four fields and the ids stop matching; this branch keeps every one of them. Recorded output: ```text # upstream/main signature kept: false thought flag kept: false functionCall id kept: false functionResponse: false deep equal: false # this branch signature kept: true thought flag kept: true functionCall id kept: true functionResponse: true deep equal: true # id-less functionResponse, signed response part call signature: true response signature: true response has no id: true response name: get_weather ``` - Not tested: no live Gemini 3 call — I have no API key here, so the `400` itself is unverified (the issue notes the same caveat). The proxy leg is real, not mocked; the "before" run is the same script against `upstream/main`. ## Runtime Rollout Safety - Rollout-managed feature(s): none - Minimum rollout channel: all channels (npm `headroom-ai` release) - Stable/default behavior changed: no — the change is contained in the two format converters; a Gemini turn with no extra fields produces byte-identical output to before - Kill switch / disable path: none needed; the converters are pure functions with no flag - Unsafe override required: no - Qualification impact: none - Rollback path: revert this commit; nothing is persisted ## Review Readiness - [x] I have performed a self-review - [x] This PR is ready for human review ## Checklist - [x] My code follows the project's style guidelines - [x] I have performed a self-review of my code - [x] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation — no user-facing docs describe the Gemini round trip - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [x] I did **not** edit `CHANGELOG.md` — it is generated by release-please from my Conventional Commit PR title (a CI guard enforces this) ## Screenshots (if applicable) Not applicable — no UI change. ## Additional Notes Reviewers should know the private key is deliberately provider-specific: `_headroomGemini` only ever appears on messages the Gemini converter produced, and the OpenAI/Anthropic/Vercel converters never read or emit it. If a future Gemini part field needs preserving, add it in `geminiPartExtras` / `withGeminiPartExtras` rather than in the call sites. |
||
|
|
3c66c91eea |
fix(sdk): encode the signature hash in client.telemetry.getTool (#4772)
## Description `client.telemetry.getTool(signatureHash)` in `sdk/typescript/src/client.ts` (line 461 on `200c838c`) put its argument into the URL path unencoded. The `feedback` method (line 473) and the `toin` method (line 489) in the same file wrap theirs in `encodeURIComponent`. A value containing `/`, `?` or `#` changed which route was requested; for example `"../../v1/feedback?x=1#f"` reached a real HTTP server as `GET /v1/v1/feedback?x=1`. This PR wraps the argument in `encodeURIComponent`, the same way. Real hash values are hex digests, so they are unchanged. Closes #4769 ## Type of Change - [x] Bug fix (non-breaking change that fixes an issue) - [ ] New feature (non-breaking change that adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] Documentation update - [ ] Performance improvement - [ ] Code refactoring (no functional changes) ## Changes Made - `sdk/typescript/src/client.ts`: `getTool` uses `encodeURIComponent(signatureHash)`. - `sdk/typescript/test/client-expanded.test.ts`: one test, `telemetry.getTool encodes the signature hash like feedback and toin do`, with a stubbed `fetch`. ## Testing - [ ] Unit tests pass (`pytest`) - [ ] Linting passes (`ruff check .`) - [ ] Type checking passes (`mypy headroom`) - [x] New tests added for new functionality - [x] Manual testing performed This is a TypeScript-only change, so the Python checks above do not apply; the SDK equivalents were run (Node v24.22.2, vitest 5.1.0, `npm ci --ignore-scripts` from the committed lockfile, Ubuntu on WSL2). ### Test Output Fail before (`client.ts` from `200c838c`, new test kept): ```text vitest run test/client-expanded.test.ts -t "telemetry.getTool" × telemetry.getTool encodes the signature hash like feedback and toin do AssertionError: expected 'http://test:8787/v1/telemetry/tools/.…' to be 'http://test:8787/v1/telemetry/tools/.…' Tests 1 failed | 34 skipped (35) ``` Pass after (this branch): ```text vitest run test/client-expanded.test.ts -t "telemetry.getTool" Tests 1 passed | 34 skipped (35) vitest run (whole sdk/typescript suite) Test Files 19 passed | 5 skipped (24) Tests 460 passed | 33 skipped (493) tsc --noEmit -> exit 0 ``` ## Real Behavior Proof - Environment: Ubuntu on WSL2, Node v24.22.2, the built package (`npm ci --ignore-scripts && npx tsup` in `sdk/typescript`) and a real `node:http` server on 127.0.0.1, not a mock. - Exact command / steps: `git checkout <branch>` (or `origin/main` for "before"); build as above; start a `node:http` server that records `req.method` and `req.url` and answers `{}`; create `new HeadroomClient({ baseUrl, fallback: false })` from `dist/index.js` and call `client.telemetry.getTool("../../v1/feedback?x=1#f")` and `client.telemetry.getTool("abc123def456")`. - Observed result: before (`200c838c`) the server saw `GET /v1/v1/feedback?x=1` and `GET /v1/telemetry/tools/abc123def456`. After (this branch) it saw `GET /v1/telemetry/tools/..%2F..%2Fv1%2Ffeedback%3Fx%3D1%23f` and `GET /v1/telemetry/tools/abc123def456`; a normal hex hash is unchanged. - Not tested: a real Headroom proxy (the server is a recorder), so how the proxy answers the encoded path is not checked. ## Runtime Rollout Safety - Rollout-managed feature(s): none; TypeScript SDK client only. - Minimum rollout channel: n/a - Stable/default behavior changed: only for a value with `/`, `?` or `#`; hex hashes request the same URL as before. - Kill switch / disable path: n/a - Unsafe override required: no - Qualification impact: none - Rollback path: revert this commit. ## Review Readiness - [x] I have performed a self-review - [x] This PR is ready for human review ## Checklist - [x] My code follows the project's style guidelines - [x] I have performed a self-review of my code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [x] I did **not** edit `CHANGELOG.md` — it is generated by release-please from my Conventional Commit PR title (a CI guard enforces this) ## Additional Notes - No documentation change. I did not add a code comment either: the one-line change follows the neighbouring `feedback` and `toin` methods. AI assistance: this change, its tests and the runs above were done with Claude (Sonnet 5.5), operated by me (HetCreep). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
99ef4eec82 |
fix(sdk): reject "." ".." and NUL plugin names like the python twin (#4771)
## Description
`assertPluginName` in `sdk/typescript/src/paths.ts` (line 250 on
`200c838c`) rejected only an empty name, `/` and `\`.
`pluginConfigDir(".")` returned a path ending in `plugins/.`,
`pluginConfigDir("..")` one ending in `plugins/..` (which resolves to
the config directory), `pluginWorkspaceDir("..")` the same under the
workspace root, and a name containing NUL was accepted. The Python twin,
`headroom/paths.py` (`_validate_plugin_name`), already rejects `"."`,
`".."` and NUL; its docstring explains the guard keeps one plugin away
from the others' state.
This PR applies the same rule in TypeScript. It changes nothing else.
Closes #4768
## Type of Change
- [x] Bug fix (non-breaking change that fixes an issue)
- [ ] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] Documentation update
- [ ] Performance improvement
- [ ] Code refactoring (no functional changes)
## Changes Made
- `sdk/typescript/src/paths.ts`: `assertPluginName` also throws for
`"."`, `".."` and a name containing `"\0"`, with a comment pointing at
the Python twin.
- `sdk/typescript/test/paths.test.ts`: the existing `rejects invalid
plugin name` cases now include `"."`, `".."` and `"a\0b"`.
## Testing
- [ ] Unit tests pass (`pytest`)
- [ ] Linting passes (`ruff check .`)
- [ ] Type checking passes (`mypy headroom`)
- [x] New tests added for new functionality
- [x] Manual testing performed
This is a TypeScript-only change, so the Python checks above do not
apply; the SDK equivalents were run (Node v24.22.2, vitest 5.1.0, `npm
ci --ignore-scripts` from the committed lockfile, Ubuntu on WSL2).
### Test Output
Fail before (`paths.ts` from `200c838c`, new test cases kept):
```text
vitest run test/paths.test.ts -t "rejects invalid plugin name"
× rejects invalid plugin name "."
× rejects invalid plugin name ".."
× rejects invalid plugin name "a\u0000b"
AssertionError: expected [Function] to throw an error
Tests 3 failed | 3 passed | 57 skipped (63)
```
Pass after (this branch):
```text
vitest run test/paths.test.ts -t "rejects invalid plugin name"
Tests 6 passed | 57 skipped (63)
vitest run (whole sdk/typescript suite)
Test Files 19 passed | 5 skipped (24)
Tests 462 passed | 33 skipped (495)
tsc --noEmit -> exit 0
```
## Real Behavior Proof
- Environment: Ubuntu on WSL2, Node v24.22.2, `HOME` default, the built
package (`npm ci --ignore-scripts && npx tsup` in `sdk/typescript`), not
vitest.
- Exact command / steps: `git checkout <branch>` (or `origin/main` for
"before"); `cd sdk/typescript && npm ci --ignore-scripts && npx tsup`; a
small ESM script imports `pluginConfigDir` and `pluginWorkspaceDir` from
`dist/index.js` and prints the result, or the thrown message, for
`"realplugin"`, `"."`, `".."` and `"a\u0000b"`.
- Observed result: before (`200c838c`): `pluginConfigDir(".")` ->
`/home/zxc59/.headroom/config/plugins/.`, `pluginConfigDir("..")` ->
`/home/zxc59/.headroom/config/plugins/..`, `pluginWorkspaceDir("..")` ->
`/home/zxc59/.headroom/plugins/..`, and the NUL name returned a path
containing it. After (this branch): all of these throw `invalid plugin
name: "."`, `".."` and `"a\u0000b"`; `"realplugin"` still returns
`/home/zxc59/.headroom/config/plugins/realplugin`.
- Not tested: a real plugin installed through the package manager,
Windows paths, and the browser build (where these helpers return an
empty string).
## Runtime Rollout Safety
- Rollout-managed feature(s): none; TypeScript SDK path helpers only.
- Minimum rollout channel: n/a
- Stable/default behavior changed: yes, narrowly. `pluginConfigDir` and
`pluginWorkspaceDir` now throw for `"."`, `".."` and a NUL name, as the
Python twin already did.
- Kill switch / disable path: n/a
- Unsafe override required: no
- Qualification impact: none
- Rollback path: revert this commit.
## Review Readiness
- [x] I have performed a self-review
- [x] This PR is ready for human review
## Checklist
- [x] My code follows the project's style guidelines
- [x] I have performed a self-review of my code
- [x] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [x] I did **not** edit `CHANGELOG.md` — it is generated by
release-please from my Conventional Commit PR title (a CI guard enforces
this)
## Additional Notes
- No documentation change: the SDK README does not describe the
plugin-name rule.
AI assistance: this change, its tests and the runs above were done with
Claude (Sonnet 5.5), operated by me (HetCreep).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
|
||
|
|
200c838c73 |
fix(sdk): accept string contents and functionCall without args in the Gemini adapter (#4756)
## Description Two inputs made the TypeScript SDK's Gemini path throw instead of compressing or passing through. Both are fixed, and the shorthand-prompt handling was hardened following Devin Review feedback. Closes #4741 1. **Plain-string contents.** `withHeadroom(model).generateContent("text")` (or a part array) reached `detectFormat`, which evaluates `"parts" in msg` on a primitive and threw `TypeError: Cannot use 'in' operator to search for 'parts' in text`. 2. **`functionCall` without `args`.** `args` is optional in the Gemini API. `geminiToOpenAI` wrote `JSON.stringify(undefined)`, and `compress()` always ran `fromOpenAI()` — even when the proxy was unreachable and the fallback returned the input unchanged — so `openAIToGemini` threw `SyntaxError: "undefined" is not valid JSON` on `JSON.parse(tc.function.arguments)`. ## Type of Change - [x] Bug fix (non-breaking change that fixes an issue) - [ ] New feature (non-breaking change that adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] Documentation update - [ ] Performance improvement - [ ] Code refactoring (no functional changes) ## Changes Made - `sdk/typescript/src/adapters/gemini.ts` - `toContents()` wraps a shorthand prompt. The Gemini SDK reads a bare string — or a top-level array of strings/Parts — as the **parts of a single user turn**, so it becomes one `{ role: "user", parts: [...] }` Content before format detection. Treating each array element as its own turn would split turns and drop a bare media Part. - The duplicated generate/stream bodies are one `compressParams()`, which returns the original `params` untouched when `result.compressed` is false — the guard `anthropic.ts` and `vercel-ai.ts` already use. - A compressed shorthand prompt returns `{ contents: result.messages }`; handing the bare Contents array to the SDK would make it read them as the parts of one turn. Real request objects keep their other settings. - `sdk/typescript/src/compress.ts` - A request containing a non-object entry now passes through untouched (`compressed: false`, proxy not called) instead of being converted and silently losing those entries — CONTRIBUTING: "malformed content passes through unchanged". - `sdk/typescript/src/utils/format.ts` - `detectFormat()` skips non-object entries instead of throwing on them. - `geminiToOpenAI()` uses `JSON.stringify(args ?? {})`. - `openAIToGemini()` parses `arguments ?? "{}"` in a `try/catch`; a malformed value falls back to the raw string rather than `{}`, so no tool input is discarded (matching the Vercel conversion). - Tests: `test/adapters/gemini.test.ts` (string and `["describe", { inlineData }]` prompts reach the proxy as one user turn with the image intact; a compressed string prompt comes back as a request object; string params pass through on an unreachable proxy) and `test/compress.test.ts` (round-trip of a `functionCall` with no `args` through an unreachable `HeadroomClient`; a mixed non-object array passes through untouched). ## Testing - [ ] Unit tests pass (`pytest`) — N/A, TypeScript SDK only - [ ] Linting passes (`ruff check .`) — N/A, TypeScript SDK only - [ ] Type checking passes (`mypy headroom`) — N/A, TypeScript SDK only - [x] New tests added for new functionality - [x] Manual testing performed ### Test Output ```text $ cd sdk/typescript && npx vitest run RUN v5.1.0 G:/.../sdk/typescript Test Files 19 passed | 5 skipped (24) Tests 459 passed | 33 skipped (492) Type Errors no errors ``` The reported `TypeError` and `SyntaxError` reproduced exactly as in the issue before the fix, and each new test was confirmed to fail first. ## Real Behavior Proof - Environment: Windows 11, Node v26.10.0, `sdk/typescript` on this branch. No Gemini API key, no real proxy. - Exact command / steps: `cd sdk/typescript && npx vitest run test/adapters/gemini.test.ts test/compress.test.ts` - Observed result: `generateContent("text")` now reaches the proxy as `[{ role: "user", content: "text" }]` and returns `{ contents: [...] }` to the model; `generateContent(["describe", { inlineData }])` keeps text and image in one turn. A Gemini `functionCall` with no `args` goes out as `arguments: "{}"` and comes back as `{ functionCall: { name: "f", args: {} } }` instead of throwing. On an unreachable proxy with `fallback: true`, the original params/messages are returned unchanged. - Not tested: a live Gemini API call, and a real proxy request carrying a `functionCall` with omitted `args`. ## Runtime Rollout Safety - Rollout-managed feature(s): none - Minimum rollout channel: N/A - Stable/default behavior changed: no — only previously-throwing inputs change behavior - Kill switch / disable path: N/A - Unsafe override required: no - Qualification impact: none - Rollback path: revert the commit ## Review Readiness - [x] I have performed a self-review - [x] This PR is ready for human review --- ### CI note `npm audit (plugins/opencode)` is red but **pre-existing on `main`**, not caused by this PR: `effect` (`GHSA-chp3-j5qr-2vfr`, cookie attribute injection in `@effect/platform` `makeCookie()`) via `@opencode-ai/plugin`. It reproduces on a clean `8f04221b` checkout, `plugins/opencode/package-lock.json` is untouched here, and `npm audit (sdk/typescript)` passes. Left alone per CONTRIBUTING ("Test/CI-only PR chasing a known `main` failure — **Don't.**"); happy to take it separately. ### Out of scope The issue's "Additional Context" deserves its own issue: `geminiToOpenAI` / `openAIToGemini` still drop `thoughtSignature`, `thought` and `functionCall.id`, and synthesize call ids as `gemini_${name}`, so two calls to the same function in one conversation collide. Fixing it changes the conversion contract, so it is kept separate from these crashes. --------- Co-authored-by: JD Davis <mxjerrett@gmail.com> |
||
|
|
4b6529fc14 |
fix(sdk): reject sharedcontext maxentries below 1 (#4743)
## Description `SharedContext` in the TypeScript SDK has an infinite loop when `maxEntries` is 0 (or negative). `evictIfFull` (`sdk/typescript/src/shared-context.ts:182` on `1da8930a`) is `while (this.entries.size >= this.maxEntries)` and only deletes when the map has a key. With `maxEntries <= 0` and an empty map the condition stays true, nothing is deleted, and the loop never exits. It is synchronous, so the whole Node event loop stops. The constructor keeps `0` because it uses `??` (`shared-context.ts:47`). With this PR the constructor throws a `RangeError` when `maxEntries` is not at least 1 (this also covers `NaN`), and `evictIfFull` stops when there is nothing left to delete, so the loop cannot spin even if the field is changed later. This is one of three eviction defects in `SharedContext` described in #4740. This PR fixes only the infinite loop; the other two (updating an existing key at capacity evicts an unrelated entry, and the bound is not held under concurrent `put`) are not touched. Part of #4740 ## Type of Change - [x] Bug fix (non-breaking change that fixes an issue) - [ ] New feature (non-breaking change that adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] Documentation update - [ ] Performance improvement - [ ] Code refactoring (no functional changes) ## Changes Made - `sdk/typescript/src/shared-context.ts`: the constructor throws `RangeError("SharedContext maxEntries must be at least 1, got N")` when `!(maxEntries >= 1)`; `evictIfFull` breaks when `keys().next().value` is `undefined`. - `sdk/typescript/test/shared-context.test.ts`: new `SharedContext maxEntries validation` block: `0`, `-1` and `NaN` are rejected; `1` is accepted and keeps only the last key; `evictIfFull` returns on an empty map even when the field is forced to 0 (guards the loop on its own). ## Testing - [ ] Unit tests pass (`pytest`) - [ ] Linting passes (`ruff check .`) - [ ] Type checking passes (`mypy headroom`) - [x] New tests added for new functionality - [x] Manual testing performed This is a TypeScript-only change, so the Python checks above do not apply; the SDK equivalents were run (Node v24.22.2, vitest 5.1.0, `npm ci --ignore-scripts` from the committed lockfile, Ubuntu on WSL2). ### Test Output ```text vitest run test/shared-context.test.ts (origin/main src, original tests) Tests 15 passed (15) vitest run (this branch, whole sdk/typescript suite) Test Files 19 passed | 5 skipped (24) Tests 454 passed | 33 skipped (487) tsc --noEmit -> exit 0 ``` Fail before (`shared-context.ts` from `1da8930a`, new tests kept): ```text vitest run test/shared-context.test.ts -t "rejects|accepts" × rejects maxEntries 0 × rejects maxEntries -1 × rejects maxEntries NaN AssertionError: expected function to throw an error, but it didn't Tests 3 failed | 1 passed | 16 skipped (20) timeout 20 vitest run test/shared-context.test.ts -t "returns on an empty map" (no result; killed by timeout, rc=124, the test never returns) ``` The last test hangs on `1da8930a` by design (it is the loop); I ran it alone under `timeout 20` so it cannot stall the run. Pass after: ```text vitest run test/shared-context.test.ts Tests 20 passed (20) ``` ## Real Behavior Proof - Environment: Node v24.22.2 on Ubuntu (WSL2), `node --experimental-transform-types` on the real SDK source, no network. - Exact command / steps: `new SharedContext({ maxEntries: 0, baseUrl: "http://127.0.0.1:9", retries: 0, timeout: 500 })`, then `await ctx.put("k", "v")`. - Observed result: on `1da8930a` it prints `constructed; calling put`, then never returns and is killed by `timeout 10` (rc=124). On this branch it prints `threw RangeError: SharedContext maxEntries must be at least 1, got 0` and exits 0. - Not tested: a Python-side change (none made). ## Runtime Rollout Safety - Rollout-managed feature(s): none. - Minimum rollout channel: n/a (no new feature) - Stable/default behavior changed: yes, narrowly: `maxEntries` of 0, a negative number or `NaN` now throws at construction instead of freezing on the first `put`. The default (100) and every valid value are unchanged. - Kill switch / disable path: none; not needed. - Unsafe override required: no - Qualification impact: none expected. - Rollback path: revert this commit. ## Review Readiness - [x] I have performed a self-review - [x] This PR is ready for human review ## Checklist - [x] My code follows the project's style guidelines - [x] I have performed a self-review of my code - [x] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes (see Testing) - [x] I did **not** edit `CHANGELOG.md` — it is generated by release-please from my Conventional Commit PR title (a CI guard enforces this) ## Additional Notes - The Python twin (`headroom/shared_context.py`) does not validate `max_entries` either; with `max_entries=0` its `min()` over an empty dict would raise `ValueError` (read, not run: the module's package imports need `opentelemetry`, which is not installed here). This PR does not touch Python. - `RangeError` was chosen as the standard JS error for an out-of-range number; a maintainer may prefer clamping to 1 instead. Produced with AI assistance (Claude Code) operated by me (HetCreep); the tests and proof above were run on my machine against a clone of the repository. 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- devin-review-badge-begin --> --- <a href="https://app.devin.ai/review/headroomlabs-ai/headroom/pull/4743" target="_blank"><picture><source media="(prefers-color-scheme: dark)" srcset="https://static.devin.ai/assets/gh-devin-review-dark.svg?v=4"><img src="https://static.devin.ai/assets/gh-devin-review-light.svg?v=4" alt="Devin Review"></picture></a> <!-- devin-review-badge-end --> Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
b21479e0fa |
chore: release 0.44.0 (#4665)
🤖 I have created a release *beep* *boop* --- ## [0.44.0](https://github.com/headroomlabs-ai/headroom/compare/v0.43.1...v0.44.0) (2026-11-09) ### ⚠ BREAKING CHANGES * **packaging:** keep PyTorch extras out of all ([#4067](https://github.com/headroomlabs-ai/headroom/issues/4067)) ### Features * **pipeline:** say whose request an OutcomeSnapshot is ([#4698](https://github.com/headroomlabs-ai/headroom/issues/4698)) ([ |
||
|
|
33f067a243 |
feat(proxy): add lossless /v1/compress mode and detect provider by wire shape (#4617)
## Description Two gaps stop a gateway from using `/v1/compress` well. Both showed up while fixing LiteLLM's `headroom` guardrail, which is the follow-up PR that needs this one. 1. **No mode compresses messages losslessly without markers.** A gateway with no retrieval loop can't resolve a marker or call `headroom_retrieve`, so it needs a mode with nothing to retrieve. The existing marker-free modes still run lossy compressors. 2. **Hooks guess the provider from the model name.** A gateway can send any client's shape to any model. Claude Code's Anthropic body routed to Gemini looked like OpenAI, so skill condensing found nothing to change. ## Type of Change - [x] Bug fix (non-breaking change that fixes an issue) - [x] New feature (non-breaking change that adds functionality) ## Changes Made **`config.mode="lossless"`** - Runs format-native folds only, with no markers and no CCR store writes. A registered lossless provider still applies. - Turns off stale-Read pointers, which drop the file body and need the retrieval tool. - Turns off cross-turn dedup pointers, which a client that never numbers its messages can't resolve. - Scope: the guarantee covers message compression (lossless codecs, no CCR). On a gateway turn, tool schema compaction and registered turn hooks still run as configured, as in every other mode; description truncation only happens when an operator sets `HEADROOM_TOOL_DESC_MAX_CHARS`. **`provider_for_body`** - Hooks and the session tracker now use the body's wire shape, and fall back to the model name when the shape proves nothing, such as plain text with no system prompt or tools. - Anthropic's own tool types (server tools such as `web_search_20250305`, client tools such as `bash_20250124`) end in an eight-digit date and count as the Anthropic shape, so a first-turn body whose only tool is a server tool is read correctly. - `route.provider` still follows the model. - The cache breakpoint budget runs when either the shape or the model is Anthropic, and never on a Responses body. - `gateway_response_fields` loses its unused `provider` parameter, and `RESPONSE_RECEIVED` keeps reporting the model's provider. ## Testing - [x] Unit tests pass (`pytest`) - [x] Linting passes (`ruff check .`, `ruff format --check .`, on the pinned 0.17.0) - [ ] Type checking passes (`mypy headroom`): one error, in `headroom/integrations/langchain/chat_model.py`, which this PR doesn't touch (local mypy 1.19.1) - [x] New tests added for new functionality - [x] Manual testing performed ### Test Output ```text pytest tests/test_proxy_compress_endpoint.py tests/gateway tests/test_gateway_turn_unit.py tests/test_compress_route_tokenizer_by_model.py 425 passed, 4 skipped Regression tests with the fixes removed: 8 failed, 7 passed ``` ## Real Behavior Proof - **Environment:** LiteLLM main with the follow-up guardrail change, this branch as the sidecar, and a fake upstream that simulates prompt caching. No real provider API was called. - **Exact command / steps:** replayed a scripted 17-call agent session with exact-duplicate outputs removed, once direct to the fake upstream and once through LiteLLM and `/v1/compress`. - **Observed result:** 0 errors, 0 rewrites of already-sent results, `Read` and `Edit` results unchanged, about 1.3s added in total. | Client | Prompt cost vs direct | |---|---| | Anthropic Messages, Claude Code cache markers | −3.9% | | Chat Completions | −3.8% | | Responses | −4.1% | The script's outputs are synthetic, so treat these as a comparison between setups, not a forecast for real traffic. ## Known limits - The default mode and `lossy_inline` can still return a stale-Read `Retrieve original: hash=` marker, although the docs call them marker-free. This predates the PR and needs a separate fix. Proxy `--lossless` has no read-lifecycle guard either, from reading the code. - With no `ContentRouter`, `_derived_compress_pipeline` falls back to the default pipeline, so `lossless` wouldn't hold. Production always has a router, so only test stubs reach this. 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- devin-review-badge-begin --> --- <a href="https://app.devin.ai/review/headroomlabs-ai/headroom/pull/4617" target="_blank"><picture><source media="(prefers-color-scheme: dark)" srcset="https://static.devin.ai/assets/gh-devin-review-dark.svg?v=4"><img src="https://static.devin.ai/assets/gh-devin-review-light.svg?v=4" alt="Devin Review"></picture></a> <!-- devin-review-badge-end --> ## Maintainer post-merge revisit: main |
||
|
|
ce42754912 |
fix(sdk): keep Vercel AI SDK tool-result output kinds through compression (#4670)
## Description
`headroomMiddleware` / `withHeadroom` convert the Vercel AI SDK prompt
to OpenAI chat shape for `/v1/compress` and back. A `tool-result` part's
`output` is one of six kinds (`@ai-sdk/provider`, LanguageModelV3 and V4
alike): `text`, `json`, `error-text`, `error-json`, `execution-denied`,
and `content` (a list of text, file and custom members). The converters
flattened every kind to one string and the reverse side guessed the kind
back by trying `JSON.parse`. So after a round trip:
- **`error-text` / `error-json` came back as `text` / `json`.** The AI
SDK produces the error kinds for every tool that throws
(`createToolModelOutput`, `errorMode` text/json). `@ai-sdk/anthropic`
sets `is_error: true` only for those two kinds and `@ai-sdk/openai`
wraps them as `{"error": ...}`; both were gone, so a failed tool read as
a successful one.
- **`execution-denied` came back as a `json` value holding the denial
object** (`{ type: "json", value: { type: "execution-denied", reason }
}`), because it has no `value` and the whole output was stringified. The
providers send its `reason` (or "Tool call execution denied."), and
`@ai-sdk/openai` reads `output.providerOptions.openai.approvalId` from
it.
- **A `content` output** — what a tool's `toModelOutput` returns for a
screenshot, a PDF or an MCP result — **was JSON-stringified, compressed
as text (base64 included) and restored as `json`**, so the provider sent
the base64 as text instead of the `image` / `document` blocks
(`@ai-sdk/anthropic`) or `input_image` / `input_file` items
(`@ai-sdk/openai`, Responses) it builds from the members.
- Output-level `providerOptions` were dropped, and the guess flipped
kinds on its own: `text` `"42"` became `json` `42`, `json` `"ok"` became
`text` `"ok"`.
Captured on `main` (`ecbaf86d`) by the new tests before the change:
```text
error-text "ECONNREFUSED 10.0.0.7:443" -> { type: "text", value: "ECONNREFUSED 10.0.0.7:443" }
error-json { code: 7 } -> { type: "json", value: { code: 7 } }
execution-denied "Not from CI." -> { type: "json", value: { type: "execution-denied", reason: "Not from CI." } }
content [text, file, custom] -> { type: "json", value: [ ...the members as JSON... ] }
text "42" -> { type: "json", value: 42 }
json "ok" -> { type: "text", value: "ok" }
output providerOptions -> dropped
```
Same carrier pattern as #4564. The output's `value` still travels as the
OpenAI tool message `content`, so the proxy compresses it exactly as
before; the rest of the output object (`type`, `reason`,
`providerOptions`) rides on the message under `output` and rebuilds the
same kind on the way back. A `content` output goes out as the tool
message's content array: `/v1/compress` compresses the top-level `text`
blocks of a tool message as fragments of one tool result and passes
every other block through untouched (the same block walk that already
carries the `reasoning` parts), so text members shrink and file / custom
members come back byte for byte, with no per-version mapping (V3
`image-data` / `file-url` / `file-id` and V4 `file` / `custom` members
alike). A JSON body the proxy no longer returned as JSON would come back
as the kind's text twin (`json` → `text`, `error-json` → `error-text`);
in practice the proxy keeps JSON tool bodies parseable (see the proof).
Closes # (none — follow-up to #4564, which listed this under "Not in
this PR")
## Type of Change
- [x] Bug fix (non-breaking change that fixes an issue)
- [ ] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [x] Documentation update
- [ ] Performance improvement
- [ ] Code refactoring (no functional changes)
## Changes Made
- **`sdk/typescript/src/utils/format.ts`**
- `vercelToOpenAI`: a `tool-result` whose `output` is an object sends
its `value` as `content` — `text` / `error-text` as the string, `json` /
`error-json` JSON-encoded, `execution-denied` as `""`, `content` as the
member array — and the rest of the output under `output`. A bare
`output` value or the pre-v6 `result` field behaves as before.
- `openAIToVercel`: with the carrier present, rebuilds an output of that
kind from the returned content (`execution-denied` without a value;
`content` from the array; `json` / `error-json` parsed, text twin if the
body no longer parses; any other kind as the string). Without it, the
old JSON.parse guess stays for OpenAI-native tool messages.
- `openAIToGemini`: reads the tool body as text whichever shape it has
(follows the type widening; Gemini input never produces the array).
- **`sdk/typescript/src/types.ts`** — `ToolMessage.content` is `string |
Array<TextContentPart | ToolResultMediaPart>`, `ToolMessage.output?` is
the carrier, `ToolResultMediaPart` is the verbatim member type.
- **Tests** — `test/utils/format.test.ts` (13): a round trip per kind
including output-level `providerOptions` and the V4 and V3 member
shapes; the wire shape for `error-text`, `content` and
`execution-denied`; the `error-json` → `error-text` twin when a body
stops parsing, and a guard for the `json` → `text` twin.
`test/adapters/vercel-ai.test.ts` (1): a typed `LanguageModelV4Prompt`
with a denied, a multi-part and an error result through
`transformParams`, asserting on the restored results (one OpenAI tool
message is one result, so a multi-result tool message comes back as one
message per result, as before this PR).
- **Docs** — `docs/content/docs/vercel-ai-sdk.mdx`: one sentence on what
the output kinds keep.
**Not in this PR.** Regrouping the split tool messages into the AI SDK's
one-message-per-step shape (pre-existing; the providers group
consecutive tool messages themselves). The Gemini-native converter's
`thought` parts and `thoughtSignature` (separate PR).
## Testing
- [x] Unit tests pass (`npm test` — vitest, incl. typecheck)
- [x] Type checking passes (`npm run typecheck` — tsc --noEmit)
- [x] Build passes (`npm run build` — tsup)
- [x] New tests added for new functionality
- [x] Manual testing performed (below)
### Test Output
```text
$ cd sdk/typescript && npm test
Test Files 19 passed | 5 skipped (24)
Tests 449 passed | 33 skipped (482)
Type Errors no errors
$ npm run typecheck # tsc --noEmit — clean
$ npm run build # tsup — ESM and DTS built
```
## Real Behavior Proof
- Environment: published proxy `headroom-ai 0.43.1` (`uvx --from
'headroom-ai[proxy]==0.43.1' headroom proxy --host 127.0.0.1 --port
8799`), this branch built with `npm run build`, `ai` 7.0.137 /
`@ai-sdk/provider` 4.0.26 types, Node v22.16.0, macOS.
- Exact command / steps: a LanguageModelV4 prompt whose one tool message
carries five results — `execution-denied` with a reason and
`openai.approvalId`; a `content` result with a 56 KB text member, a 24
KB base64 `file` member and a `custom` member; an `error-text` and an
`error-json` with 56 KB bodies; a 56 KB `json` — passed through
`headroomMiddleware().transformParams` against the live proxy, with the
request the proxy received and its answer captured.
- Observed result: every kind came back as itself, the text bodies
shrank by about 44%, the file and custom members and the denial came
back byte-identical. Full output:
```text
== wire shape the proxy received (tool messages) ==
call_1: content=string(0) output={"type":"execution-denied","reason":"Not from CI.","providerOptions":{"openai":{"approvalId":"apr_1"}}}
call_2: content=[text, file, custom] output={"type":"content"}
call_3: content=string(56064) output={"type":"error-text"}
call_4: content=string(56043) output={"type":"error-json"}
call_5: content=string(56002) output={"type":"json"} messageProviderOptions=yes
== proxy answer: tokens 81695 -> 57772, transforms=["router:protected:system_message","router:text_block:mixed","router:mixed:0.45","router:smart_crusher:0.57","router:smart_crusher:0.45"]
== what the AI SDK gets back ==
system/user/assistant byte-identical: true
results back: call_1=execution-denied, call_2=content, call_3=error-text, call_4=error-json, call_5=json; toolNames kept: true
call_1 execution-denied byte-identical (reason + output providerOptions): true
call_2 content: members back [text, file, custom]; text member 56022 -> 31308 chars; file member byte-identical: true; custom member byte-identical: true
call_3 error-text: type=error-text, 56064 -> 31350 chars, still starts with the error line: true
call_4 error-json: type=error-json, 56043 -> 31731 chars, value is an object with keys error/last_rows, last_rows now a string
call_5 json: type=json, 56002 -> 31690 chars, value is a JSON string (the proxy returned the compact table as a JSON string literal): "[400]{id:int,level:string,msg:string,path:string,service:str"...
message-level providerOptions on the last tool message only: -,-,-,-,yes
```
The JSON kinds: the proxy keeps a JSON tool body parseable — the array
body came back as a JSON string holding the compact table and the object
body kept its shape with the nested array compacted — so both parse and
keep their kind; the text-twin fallback did not trigger. The same prompt
through the converters on `main` loses every item listed in the
Description (the new tests, run before the change).
- Not tested: an end-to-end multi-step `generateText` with a denied
approval or an image-returning tool against a provider (no provider keys
in this environment); the provider behaviour is taken from the installed
`@ai-sdk/anthropic` 4.0.78 and `@ai-sdk/openai` 4.0.91 sources and the
`ai` 7.0.137 core cited above.
## Runtime Rollout Safety
- Rollout-managed feature(s): none (TypeScript SDK only, no proxy
change)
- Minimum rollout channel: n/a
- Stable/default behavior changed: for SDK users, a Vercel tool result's
OpenAI-shaped message now carries an `output` key, and a `content`
result sends its member array instead of a JSON string; `/v1/compress`
already passes both through. `ToolMessage.content` widens to `string |
array` (additive).
- Kill switch / disable path: unchanged — `fallback: true` returns the
original prompt when the proxy is unreachable; unwrap the model to
disable compression.
- Unsafe override required: no
- Qualification impact: none
- Rollback path: revert this PR
## Review Readiness
- [x] I have performed a self-review
- [x] This PR is ready for human review
## Checklist
- [x] My code follows the project's style guidelines
- [x] I have performed a self-review of my code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [x] I did **not** edit `CHANGELOG.md` — it is generated by
release-please from my Conventional Commit PR title (a CI guard enforces
this)
## Screenshots (if applicable)
N/A
## Additional Notes
- The `output` carrier never reaches an OpenAI endpoint through the
SDK's own paths, like the #4564 carriers: the universal `compress()`
returns messages in the input format, and the OpenAI adapter never sees
Vercel input.
- Enumerated before writing: `LanguageModelV3ToolResultOutput` and
`LanguageModelV4ToolResultOutput` in `@ai-sdk/provider` 4.0.26. `ai` 7's
`LanguageModelMiddleware` is V4-based while the SDK's peer range (`ai >=
6.0.0`) still includes V3 prompts; both member shapes are carried the
same way, which is why the members are not mapped.
<!-- devin-review-badge-begin -->
---
<a href="https://app.devin.ai/review/headroomlabs-ai/headroom/pull/4670"
target="_blank"><picture><source media="(prefers-color-scheme: dark)"
srcset="https://static.devin.ai/assets/gh-devin-review-dark.svg?v=4"><img
src="https://static.devin.ai/assets/gh-devin-review-light.svg?v=4"
alt="Devin Review"></picture></a>
<!-- devin-review-badge-end -->
### Maintainer current-main requalification
Exact head `e26525d382a135f1fe2a7f0b8671bfbae1f2d64a`, upstream main
`c01cf07d943d816cfd9d97e6838ed4e38f1ff9a4`.
Reviewed the five-file SDK delta, adjacent conversion/middleware paths,
existing discussion and Devin no-issues result. The output carrier
retains denial/error/content kinds and output-level providerOptions;
JSON parse failures retain the error flag via error-text. Mixed content
members stay in the tool-message array. Current proxy route accepts
message dictionaries and returns pipeline messages; no new schema
stripping is introduced. Author runtime proof and its provider-inference
limitations were considered. Fresh verification on the clean mechanical
main merge: 449 tests passed, 33 skipped; typecheck and SDK build
passed; main-relative whitespace passed. No contributor logic changed.
Hosted CI must qualify the published merge head; no new provider-runtime
test or inference claim.
Exact-head hosted checks are being handled by maintainers. No new
finding in the reviewed scope; formal approval awaits exact-head hosted
qualification; nothing merged.
Co-authored-by: JerrettDavis <mxjerrett@gmail.com>
|
||
|
|
2d3ee51846 |
chore: release 0.43.1 (#4661)
🤖 I have created a release *beep* *boop* --- ## [0.43.1](https://github.com/headroomlabs-ai/headroom/compare/v0.43.0...v0.43.1) (2026-11-05) ### Bug Fixes * **ccr:** keep the in-memory order queue from evicting re-stored entries ([#4545](https://github.com/headroomlabs-ai/headroom/issues/4545)) ([ |
||
|
|
8f104f8e29 |
deps: bump the npm-minor-patch group across 3 directories with 6 updates (#4662)
Bumps the npm-minor-patch group with 3 updates in the /plugins/openclaw directory: headroom-ai, [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) and [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest). Bumps the npm-minor-patch group with 5 updates in the /plugins/opencode directory: | Package | From | To | | --- | --- | --- | | headroom-ai | `0.41.0` | `0.42.0` | | [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `26.6.5` | `26.6.6` | | [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) | `5.0.5` | `5.1.0` | | @opencode-ai/plugin | `1.19.4` | `1.19.5` | | headroom-ai | `0.41.0` | `0.42.0` | | [@opencode/plugin](https://github.com/anomalyco/opencode/tree/HEAD/packages/plugin) | `2.1.4` | `2.2.5` | | [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `26.6.5` | `26.6.6` | | [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) | `5.0.5` | `5.1.0` | | [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `26.6.5` | `26.6.6` | | [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) | `5.0.5` | `5.1.0` | Bumps the npm-minor-patch group with 2 updates in the /sdk/typescript directory: [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) and [openai](https://github.com/openai/openai-node). Updates `headroom-ai` from 0.41.0 to 0.42.0 Updates `@types/node` from 26.6.5 to 26.6.6 <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node">compare view</a></li> </ul> </details> <br /> Updates `vitest` from 5.0.5 to 5.1.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/vitest-dev/vitest/releases">vitest's releases</a>.</em></p> <blockquote> <h2>v5.1.0</h2> <h3> 🚀 Features</h3> <ul> <li>Add <code>--last-failed</code> to run only failed tests - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11558">vitest-dev/vitest#11558</a> <a href="https://github.com/vitest-dev/vitest/commit/82f634220"><!-- raw HTML omitted -->(82f63)<!-- raw HTML omitted --></a></li> <li>Support <code>Temporal.Instant</code> and <code>Temporal.ZonedDateTime</code> in <code>vi.setSystemTime()</code> - by <a href="https://github.com/Prajwal2246"><code>@Prajwal2246</code></a>, <strong>Prajwal2246</strong>, <strong>Claude Opus 5.5 (1M context)</strong>, <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Codex (GPT-6)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11321">vitest-dev/vitest#11321</a> <a href="https://github.com/vitest-dev/vitest/commit/f150f5108"><!-- raw HTML omitted -->(f150f)<!-- raw HTML omitted --></a></li> <li>Introduce <code>--since-last-run</code> flag - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11516">vitest-dev/vitest#11516</a> <a href="https://github.com/vitest-dev/vitest/commit/08bd93b7e"><!-- raw HTML omitted -->(08bd9)<!-- raw HTML omitted --></a></li> <li>Expose per-retry/repeat attempt result - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Codex (GPT-6)</strong> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11232">vitest-dev/vitest#11232</a> <a href="https://github.com/vitest-dev/vitest/commit/21be412ed"><!-- raw HTML omitted -->(21be4)<!-- raw HTML omitted --></a></li> <li>Support fake timers for <code>node:timers</code> and <code>node:timers/promise</code> - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>OpenCode</strong> and <strong>Codex (GPT-6)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/10899">vitest-dev/vitest#10899</a> <a href="https://github.com/vitest-dev/vitest/commit/fbe973cae"><!-- raw HTML omitted -->(fbe97)<!-- raw HTML omitted --></a></li> <li>Allow coverage providers to store data in fs module cache - by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11747">vitest-dev/vitest#11747</a> <a href="https://github.com/vitest-dev/vitest/commit/54a2bdb81"><!-- raw HTML omitted -->(54a2b)<!-- raw HTML omitted --></a></li> <li>Interactively review failed snapshots - by <a href="https://github.com/macarie"><code>@macarie</code></a> and <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11325">vitest-dev/vitest#11325</a> <a href="https://github.com/vitest-dev/vitest/commit/54e5b8a8a"><!-- raw HTML omitted -->(54e5b)<!-- raw HTML omitted --></a></li> <li><strong>browser</strong>: <ul> <li>Mock modules through an import map - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11534">vitest-dev/vitest#11534</a> <a href="https://github.com/vitest-dev/vitest/commit/707f8adf4"><!-- raw HTML omitted -->(707f8)<!-- raw HTML omitted --></a></li> <li>Drop experimental label from trace view - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11518">vitest-dev/vitest#11518</a> <a href="https://github.com/vitest-dev/vitest/commit/44c3c2fcf"><!-- raw HTML omitted -->(44c3c)<!-- raw HTML omitted --></a></li> <li>Introduce experimental <code>pointer</code> API - by <a href="https://github.com/macarie"><code>@macarie</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/10780">vitest-dev/vitest#10780</a> <a href="https://github.com/vitest-dev/vitest/commit/5dc09f0ea"><!-- raw HTML omitted -->(5dc09)<!-- raw HTML omitted --></a></li> <li>Capture aria snapshot in trace view - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11492">vitest-dev/vitest#11492</a> <a href="https://github.com/vitest-dev/vitest/commit/0cc39fb90"><!-- raw HTML omitted -->(0cc39)<!-- raw HTML omitted --></a></li> <li>Show trace steps timeline on terminal on test failure - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11594">vitest-dev/vitest#11594</a> <a href="https://github.com/vitest-dev/vitest/commit/973dc84be"><!-- raw HTML omitted -->(973dc)<!-- raw HTML omitted --></a></li> <li>Add failure-only trace view mode - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11612">vitest-dev/vitest#11612</a> <a href="https://github.com/vitest-dev/vitest/commit/d5d7d2f06"><!-- raw HTML omitted -->(d5d7d)<!-- raw HTML omitted --></a></li> <li>Enable failure-only trace view by default - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11766">vitest-dev/vitest#11766</a> <a href="https://github.com/vitest-dev/vitest/commit/f37b6b707"><!-- raw HTML omitted -->(f37b6)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>coverage</strong>: <ul> <li>V8 to support <code>ignoreNode</code> option - by <a href="https://github.com/erickserra"><code>@erickserra</code></a> and <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11688">vitest-dev/vitest#11688</a> <a href="https://github.com/vitest-dev/vitest/commit/e02db0869"><!-- raw HTML omitted -->(e02db)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>experimental</strong>: <ul> <li>Add trace timeline for node - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11753">vitest-dev/vitest#11753</a> <a href="https://github.com/vitest-dev/vitest/commit/4e9855151"><!-- raw HTML omitted -->(4e985)<!-- raw HTML omitted --></a></li> <li>Add message option to vi.waitFor and vi.waitUntil - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11754">vitest-dev/vitest#11754</a> <a href="https://github.com/vitest-dev/vitest/commit/fd145d8d6"><!-- raw HTML omitted -->(fd145)<!-- raw HTML omitted --></a></li> </ul> </li> </ul> <h3> 🐞 Bug Fixes</h3> <ul> <li>Rerun setup files after <code>--changed</code> filtering - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11621">vitest-dev/vitest#11621</a> <a href="https://github.com/vitest-dev/vitest/commit/3a39cfc54"><!-- raw HTML omitted -->(3a39c)<!-- raw HTML omitted --></a></li> <li>Return the mock to concurrent imports - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11623">vitest-dev/vitest#11623</a> <a href="https://github.com/vitest-dev/vitest/commit/1453ba690"><!-- raw HTML omitted -->(1453b)<!-- raw HTML omitted --></a></li> <li>Don&<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/39">#39</a>;t fail on console log pending at teardown - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11619">vitest-dev/vitest#11619</a> <a href="https://github.com/vitest-dev/vitest/commit/a60b8e132"><!-- raw HTML omitted -->(a60b8)<!-- raw HTML omitted --></a></li> <li>Reference chai types in every d.ts chunk - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11618">vitest-dev/vitest#11618</a> <a href="https://github.com/vitest-dev/vitest/commit/fb150158b"><!-- raw HTML omitted -->(fb150)<!-- raw HTML omitted --></a></li> <li>Detect mock factory cycles that form later - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11642">vitest-dev/vitest#11642</a> <a href="https://github.com/vitest-dev/vitest/commit/e95541584"><!-- raw HTML omitted -->(e9554)<!-- raw HTML omitted --></a></li> <li>Skip fs module cache for typed import.meta.glob - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11666">vitest-dev/vitest#11666</a> <a href="https://github.com/vitest-dev/vitest/commit/79501f3a1"><!-- raw HTML omitted -->(79501)<!-- raw HTML omitted --></a></li> <li>Run tests that import a deleted file - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11669">vitest-dev/vitest#11669</a> <a href="https://github.com/vitest-dev/vitest/commit/80aa13dd6"><!-- raw HTML omitted -->(80aa1)<!-- raw HTML omitted --></a></li> <li>Keep syntax highlighting in code frames - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11705">vitest-dev/vitest#11705</a> <a href="https://github.com/vitest-dev/vitest/commit/d39f51548"><!-- raw HTML omitted -->(d39f5)<!-- raw HTML omitted --></a></li> <li>Respect CLI filters when prewarming browsers - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> and <strong>Benjamin Tang</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11706">vitest-dev/vitest#11706</a> <a href="https://github.com/vitest-dev/vitest/commit/109474892"><!-- raw HTML omitted -->(10947)<!-- raw HTML omitted --></a></li> <li>Read cached source as utf-8 - by <a href="https://github.com/juan-fernandez"><code>@juan-fernandez</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11682">vitest-dev/vitest#11682</a> and <a href="https://redirect.github.com/vitest-dev/vitest/issues/11709">vitest-dev/vitest#11709</a> <a href="https://github.com/vitest-dev/vitest/commit/867a5e41c"><!-- raw HTML omitted -->(867a5)<!-- raw HTML omitted --></a></li> <li>Inherit <code>watch</code> from the root config in projects - by <a href="https://github.com/nstepien"><code>@nstepien</code></a> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11724">vitest-dev/vitest#11724</a> <a href="https://github.com/vitest-dev/vitest/commit/77c122c6b"><!-- raw HTML omitted -->(77c12)<!-- raw HTML omitted --></a></li> <li>Prefix expect.poll message to all errors - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11756">vitest-dev/vitest#11756</a> <a href="https://github.com/vitest-dev/vitest/commit/cab5877db"><!-- raw HTML omitted -->(cab58)<!-- raw HTML omitted --></a></li> <li>Support api.port 0 - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11641">vitest-dev/vitest#11641</a> <a href="https://github.com/vitest-dev/vitest/commit/3667cf8a3"><!-- raw HTML omitted -->(3667c)<!-- raw HTML omitted --></a></li> <li>Show attempts in test error logs of retried tests - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11696">vitest-dev/vitest#11696</a> <a href="https://github.com/vitest-dev/vitest/commit/77a94328a"><!-- raw HTML omitted -->(77a94)<!-- raw HTML omitted --></a></li> <li>Preserve rootDir in project paths - by <a href="https://github.com/btea"><code>@btea</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11816">vitest-dev/vitest#11816</a> <a href="https://github.com/vitest-dev/vitest/commit/bf96dad6a"><!-- raw HTML omitted -->(bf96d)<!-- raw HTML omitted --></a></li> <li><strong>browser</strong>: <ul> <li>Change default port to 23315 - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11640">vitest-dev/vitest#11640</a> <a href="https://github.com/vitest-dev/vitest/commit/a2ec4166d"><!-- raw HTML omitted -->(a2ec4)<!-- raw HTML omitted --></a></li> <li>Advance fake timers in actions and expect.element - by <a href="https://github.com/julienw"><code>@julienw</code></a>, <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11242">vitest-dev/vitest#11242</a> <a href="https://github.com/vitest-dev/vitest/commit/6819008ce"><!-- raw HTML omitted -->(68190)<!-- raw HTML omitted --></a></li> <li>Drop trace view warning without html reporter - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11665">vitest-dev/vitest#11665</a> <a href="https://github.com/vitest-dev/vitest/commit/e64075ef5"><!-- raw HTML omitted -->(e6407)<!-- raw HTML omitted --></a></li> <li>Detect shared chunks via the optimizer - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11661">vitest-dev/vitest#11661</a> <a href="https://github.com/vitest-dev/vitest/commit/e2e9c64b0"><!-- raw HTML omitted -->(e2e9c)<!-- raw HTML omitted --></a></li> <li>Clear screenshot stability timeout - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11659">vitest-dev/vitest#11659</a> <a href="https://github.com/vitest-dev/vitest/commit/fbe37c083"><!-- raw HTML omitted -->(fbe37)<!-- raw HTML omitted --></a></li> <li>Measure prepare duration with one clock - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11667">vitest-dev/vitest#11667</a> <a href="https://github.com/vitest-dev/vitest/commit/a3ed42a14"><!-- raw HTML omitted -->(a3ed4)<!-- raw HTML omitted --></a></li> <li>Keep failure screenshot per attempt - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11694">vitest-dev/vitest#11694</a> <a href="https://github.com/vitest-dev/vitest/commit/a5022655d"><!-- raw HTML omitted -->(a5022)<!-- raw HTML omitted --></a></li> <li>Print trace timeline of each attempt - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11695">vitest-dev/vitest#11695</a> <a href="https://github.com/vitest-dev/vitest/commit/272296e5d"><!-- raw HTML omitted -->(27229)<!-- raw HTML omitted --></a></li> </ul> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/vitest-dev/vitest/commit/7a3844954d8753fc0d5bed76a96ffd3a21716c22"><code>7a38449</code></a> chore: release v5.1.0 (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11838">#11838</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/a5ec316f8e8bf133154a5d5cf43fd5437319e455"><code>a5ec316</code></a> fix(vm): keep assignable accessor globals writable in node environment (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11834">#11834</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/e46c6c1847462d62f9ff5ea4c351fe510a4edf2e"><code>e46c6c1</code></a> refactor: share trace types and utils (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11825">#11825</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/9e23ce57cc112205126b7d37d68126860126b953"><code>9e23ce5</code></a> refactor(snapshot): unify review update with <code>SnapshotState</code> update (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11790">#11790</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/a0e33cc8b063b4bd8ccd95235532d072d83f75ad"><code>a0e33cc</code></a> chore: eliminate lint error (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11822">#11822</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/fd145d8d60fd877a2eb9622b6771edc08ef26372"><code>fd145d8</code></a> feat(experimental): add message option to vi.waitFor and vi.waitUntil (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11754">#11754</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/4e985515109b4fd9fcdc2e81d2b1c5f264799cf7"><code>4e98551</code></a> feat(experimental): add trace timeline for node (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11753">#11753</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/bf96dad6ab66fe01a1a2c008754f999399309c85"><code>bf96dad</code></a> fix: preserve rootDir in project paths (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11816">#11816</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/54e5b8a8a0d7f007ec69b604fec3446b0e88f2c6"><code>54e5b8a</code></a> feat: interactively review failed snapshots (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11325">#11325</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/42770759fcca4ff82ab4df49e4ee241f4f680e99"><code>4277075</code></a> fix(expect): keep soft .resolves/.rejects error location (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11792">#11792</a>)</li> <li>Additional commits viewable in <a href="https://github.com/vitest-dev/vitest/commits/v5.1.0/packages/vitest">compare view</a></li> </ul> </details> <br /> Updates `headroom-ai` from 0.41.0 to 0.42.0 Updates `@types/node` from 26.6.5 to 26.6.6 <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node">compare view</a></li> </ul> </details> <br /> Updates `vitest` from 5.0.5 to 5.1.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/vitest-dev/vitest/releases">vitest's releases</a>.</em></p> <blockquote> <h2>v5.1.0</h2> <h3> 🚀 Features</h3> <ul> <li>Add <code>--last-failed</code> to run only failed tests - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11558">vitest-dev/vitest#11558</a> <a href="https://github.com/vitest-dev/vitest/commit/82f634220"><!-- raw HTML omitted -->(82f63)<!-- raw HTML omitted --></a></li> <li>Support <code>Temporal.Instant</code> and <code>Temporal.ZonedDateTime</code> in <code>vi.setSystemTime()</code> - by <a href="https://github.com/Prajwal2246"><code>@Prajwal2246</code></a>, <strong>Prajwal2246</strong>, <strong>Claude Opus 5.5 (1M context)</strong>, <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Codex (GPT-6)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11321">vitest-dev/vitest#11321</a> <a href="https://github.com/vitest-dev/vitest/commit/f150f5108"><!-- raw HTML omitted -->(f150f)<!-- raw HTML omitted --></a></li> <li>Introduce <code>--since-last-run</code> flag - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11516">vitest-dev/vitest#11516</a> <a href="https://github.com/vitest-dev/vitest/commit/08bd93b7e"><!-- raw HTML omitted -->(08bd9)<!-- raw HTML omitted --></a></li> <li>Expose per-retry/repeat attempt result - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Codex (GPT-6)</strong> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11232">vitest-dev/vitest#11232</a> <a href="https://github.com/vitest-dev/vitest/commit/21be412ed"><!-- raw HTML omitted -->(21be4)<!-- raw HTML omitted --></a></li> <li>Support fake timers for <code>node:timers</code> and <code>node:timers/promise</code> - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>OpenCode</strong> and <strong>Codex (GPT-6)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/10899">vitest-dev/vitest#10899</a> <a href="https://github.com/vitest-dev/vitest/commit/fbe973cae"><!-- raw HTML omitted -->(fbe97)<!-- raw HTML omitted --></a></li> <li>Allow coverage providers to store data in fs module cache - by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11747">vitest-dev/vitest#11747</a> <a href="https://github.com/vitest-dev/vitest/commit/54a2bdb81"><!-- raw HTML omitted -->(54a2b)<!-- raw HTML omitted --></a></li> <li>Interactively review failed snapshots - by <a href="https://github.com/macarie"><code>@macarie</code></a> and <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11325">vitest-dev/vitest#11325</a> <a href="https://github.com/vitest-dev/vitest/commit/54e5b8a8a"><!-- raw HTML omitted -->(54e5b)<!-- raw HTML omitted --></a></li> <li><strong>browser</strong>: <ul> <li>Mock modules through an import map - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11534">vitest-dev/vitest#11534</a> <a href="https://github.com/vitest-dev/vitest/commit/707f8adf4"><!-- raw HTML omitted -->(707f8)<!-- raw HTML omitted --></a></li> <li>Drop experimental label from trace view - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11518">vitest-dev/vitest#11518</a> <a href="https://github.com/vitest-dev/vitest/commit/44c3c2fcf"><!-- raw HTML omitted -->(44c3c)<!-- raw HTML omitted --></a></li> <li>Introduce experimental <code>pointer</code> API - by <a href="https://github.com/macarie"><code>@macarie</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/10780">vitest-dev/vitest#10780</a> <a href="https://github.com/vitest-dev/vitest/commit/5dc09f0ea"><!-- raw HTML omitted -->(5dc09)<!-- raw HTML omitted --></a></li> <li>Capture aria snapshot in trace view - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11492">vitest-dev/vitest#11492</a> <a href="https://github.com/vitest-dev/vitest/commit/0cc39fb90"><!-- raw HTML omitted -->(0cc39)<!-- raw HTML omitted --></a></li> <li>Show trace steps timeline on terminal on test failure - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11594">vitest-dev/vitest#11594</a> <a href="https://github.com/vitest-dev/vitest/commit/973dc84be"><!-- raw HTML omitted -->(973dc)<!-- raw HTML omitted --></a></li> <li>Add failure-only trace view mode - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11612">vitest-dev/vitest#11612</a> <a href="https://github.com/vitest-dev/vitest/commit/d5d7d2f06"><!-- raw HTML omitted -->(d5d7d)<!-- raw HTML omitted --></a></li> <li>Enable failure-only trace view by default - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11766">vitest-dev/vitest#11766</a> <a href="https://github.com/vitest-dev/vitest/commit/f37b6b707"><!-- raw HTML omitted -->(f37b6)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>coverage</strong>: <ul> <li>V8 to support <code>ignoreNode</code> option - by <a href="https://github.com/erickserra"><code>@erickserra</code></a> and <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11688">vitest-dev/vitest#11688</a> <a href="https://github.com/vitest-dev/vitest/commit/e02db0869"><!-- raw HTML omitted -->(e02db)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>experimental</strong>: <ul> <li>Add trace timeline for node - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11753">vitest-dev/vitest#11753</a> <a href="https://github.com/vitest-dev/vitest/commit/4e9855151"><!-- raw HTML omitted -->(4e985)<!-- raw HTML omitted --></a></li> <li>Add message option to vi.waitFor and vi.waitUntil - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11754">vitest-dev/vitest#11754</a> <a href="https://github.com/vitest-dev/vitest/commit/fd145d8d6"><!-- raw HTML omitted -->(fd145)<!-- raw HTML omitted --></a></li> </ul> </li> </ul> <h3> 🐞 Bug Fixes</h3> <ul> <li>Rerun setup files after <code>--changed</code> filtering - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11621">vitest-dev/vitest#11621</a> <a href="https://github.com/vitest-dev/vitest/commit/3a39cfc54"><!-- raw HTML omitted -->(3a39c)<!-- raw HTML omitted --></a></li> <li>Return the mock to concurrent imports - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11623">vitest-dev/vitest#11623</a> <a href="https://github.com/vitest-dev/vitest/commit/1453ba690"><!-- raw HTML omitted -->(1453b)<!-- raw HTML omitted --></a></li> <li>Don&<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/39">#39</a>;t fail on console log pending at teardown - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11619">vitest-dev/vitest#11619</a> <a href="https://github.com/vitest-dev/vitest/commit/a60b8e132"><!-- raw HTML omitted -->(a60b8)<!-- raw HTML omitted --></a></li> <li>Reference chai types in every d.ts chunk - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11618">vitest-dev/vitest#11618</a> <a href="https://github.com/vitest-dev/vitest/commit/fb150158b"><!-- raw HTML omitted -->(fb150)<!-- raw HTML omitted --></a></li> <li>Detect mock factory cycles that form later - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11642">vitest-dev/vitest#11642</a> <a href="https://github.com/vitest-dev/vitest/commit/e95541584"><!-- raw HTML omitted -->(e9554)<!-- raw HTML omitted --></a></li> <li>Skip fs module cache for typed import.meta.glob - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11666">vitest-dev/vitest#11666</a> <a href="https://github.com/vitest-dev/vitest/commit/79501f3a1"><!-- raw HTML omitted -->(79501)<!-- raw HTML omitted --></a></li> <li>Run tests that import a deleted file - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11669">vitest-dev/vitest#11669</a> <a href="https://github.com/vitest-dev/vitest/commit/80aa13dd6"><!-- raw HTML omitted -->(80aa1)<!-- raw HTML omitted --></a></li> <li>Keep syntax highlighting in code frames - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11705">vitest-dev/vitest#11705</a> <a href="https://github.com/vitest-dev/vitest/commit/d39f51548"><!-- raw HTML omitted -->(d39f5)<!-- raw HTML omitted --></a></li> <li>Respect CLI filters when prewarming browsers - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> and <strong>Benjamin Tang</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11706">vitest-dev/vitest#11706</a> <a href="https://github.com/vitest-dev/vitest/commit/109474892"><!-- raw HTML omitted -->(10947)<!-- raw HTML omitted --></a></li> <li>Read cached source as utf-8 - by <a href="https://github.com/juan-fernandez"><code>@juan-fernandez</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11682">vitest-dev/vitest#11682</a> and <a href="https://redirect.github.com/vitest-dev/vitest/issues/11709">vitest-dev/vitest#11709</a> <a href="https://github.com/vitest-dev/vitest/commit/867a5e41c"><!-- raw HTML omitted -->(867a5)<!-- raw HTML omitted --></a></li> <li>Inherit <code>watch</code> from the root config in projects - by <a href="https://github.com/nstepien"><code>@nstepien</code></a> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11724">vitest-dev/vitest#11724</a> <a href="https://github.com/vitest-dev/vitest/commit/77c122c6b"><!-- raw HTML omitted -->(77c12)<!-- raw HTML omitted --></a></li> <li>Prefix expect.poll message to all errors - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11756">vitest-dev/vitest#11756</a> <a href="https://github.com/vitest-dev/vitest/commit/cab5877db"><!-- raw HTML omitted -->(cab58)<!-- raw HTML omitted --></a></li> <li>Support api.port 0 - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11641">vitest-dev/vitest#11641</a> <a href="https://github.com/vitest-dev/vitest/commit/3667cf8a3"><!-- raw HTML omitted -->(3667c)<!-- raw HTML omitted --></a></li> <li>Show attempts in test error logs of retried tests - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11696">vitest-dev/vitest#11696</a> <a href="https://github.com/vitest-dev/vitest/commit/77a94328a"><!-- raw HTML omitted -->(77a94)<!-- raw HTML omitted --></a></li> <li>Preserve rootDir in project paths - by <a href="https://github.com/btea"><code>@btea</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11816">vitest-dev/vitest#11816</a> <a href="https://github.com/vitest-dev/vitest/commit/bf96dad6a"><!-- raw HTML omitted -->(bf96d)<!-- raw HTML omitted --></a></li> <li><strong>browser</strong>: <ul> <li>Change default port to 23315 - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11640">vitest-dev/vitest#11640</a> <a href="https://github.com/vitest-dev/vitest/commit/a2ec4166d"><!-- raw HTML omitted -->(a2ec4)<!-- raw HTML omitted --></a></li> <li>Advance fake timers in actions and expect.element - by <a href="https://github.com/julienw"><code>@julienw</code></a>, <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11242">vitest-dev/vitest#11242</a> <a href="https://github.com/vitest-dev/vitest/commit/6819008ce"><!-- raw HTML omitted -->(68190)<!-- raw HTML omitted --></a></li> <li>Drop trace view warning without html reporter - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11665">vitest-dev/vitest#11665</a> <a href="https://github.com/vitest-dev/vitest/commit/e64075ef5"><!-- raw HTML omitted -->(e6407)<!-- raw HTML omitted --></a></li> <li>Detect shared chunks via the optimizer - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11661">vitest-dev/vitest#11661</a> <a href="https://github.com/vitest-dev/vitest/commit/e2e9c64b0"><!-- raw HTML omitted -->(e2e9c)<!-- raw HTML omitted --></a></li> <li>Clear screenshot stability timeout - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11659">vitest-dev/vitest#11659</a> <a href="https://github.com/vitest-dev/vitest/commit/fbe37c083"><!-- raw HTML omitted -->(fbe37)<!-- raw HTML omitted --></a></li> <li>Measure prepare duration with one clock - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11667">vitest-dev/vitest#11667</a> <a href="https://github.com/vitest-dev/vitest/commit/a3ed42a14"><!-- raw HTML omitted -->(a3ed4)<!-- raw HTML omitted --></a></li> <li>Keep failure screenshot per attempt - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11694">vitest-dev/vitest#11694</a> <a href="https://github.com/vitest-dev/vitest/commit/a5022655d"><!-- raw HTML omitted -->(a5022)<!-- raw HTML omitted --></a></li> <li>Print trace timeline of each attempt - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11695">vitest-dev/vitest#11695</a> <a href="https://github.com/vitest-dev/vitest/commit/272296e5d"><!-- raw HTML omitted -->(27229)<!-- raw HTML omitted --></a></li> </ul> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/vitest-dev/vitest/commit/7a3844954d8753fc0d5bed76a96ffd3a21716c22"><code>7a38449</code></a> chore: release v5.1.0 (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11838">#11838</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/a5ec316f8e8bf133154a5d5cf43fd5437319e455"><code>a5ec316</code></a> fix(vm): keep assignable accessor globals writable in node environment (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11834">#11834</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/e46c6c1847462d62f9ff5ea4c351fe510a4edf2e"><code>e46c6c1</code></a> refactor: share trace types and utils (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11825">#11825</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/9e23ce57cc112205126b7d37d68126860126b953"><code>9e23ce5</code></a> refactor(snapshot): unify review update with <code>SnapshotState</code> update (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11790">#11790</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/a0e33cc8b063b4bd8ccd95235532d072d83f75ad"><code>a0e33cc</code></a> chore: eliminate lint error (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11822">#11822</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/fd145d8d60fd877a2eb9622b6771edc08ef26372"><code>fd145d8</code></a> feat(experimental): add message option to vi.waitFor and vi.waitUntil (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11754">#11754</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/4e985515109b4fd9fcdc2e81d2b1c5f264799cf7"><code>4e98551</code></a> feat(experimental): add trace timeline for node (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11753">#11753</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/bf96dad6ab66fe01a1a2c008754f999399309c85"><code>bf96dad</code></a> fix: preserve rootDir in project paths (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11816">#11816</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/54e5b8a8a0d7f007ec69b604fec3446b0e88f2c6"><code>54e5b8a</code></a> feat: interactively review failed snapshots (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11325">#11325</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/42770759fcca4ff82ab4df49e4ee241f4f680e99"><code>4277075</code></a> fix(expect): keep soft .resolves/.rejects error location (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11792">#11792</a>)</li> <li>Additional commits viewable in <a href="https://github.com/vitest-dev/vitest/commits/v5.1.0/packages/vitest">compare view</a></li> </ul> </details> <br /> Updates `@types/node` from 26.6.5 to 26.6.6 <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node">compare view</a></li> </ul> </details> <br /> Updates `vitest` from 5.0.5 to 5.1.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/vitest-dev/vitest/releases">vitest's releases</a>.</em></p> <blockquote> <h2>v5.1.0</h2> <h3> 🚀 Features</h3> <ul> <li>Add <code>--last-failed</code> to run only failed tests - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11558">vitest-dev/vitest#11558</a> <a href="https://github.com/vitest-dev/vitest/commit/82f634220"><!-- raw HTML omitted -->(82f63)<!-- raw HTML omitted --></a></li> <li>Support <code>Temporal.Instant</code> and <code>Temporal.ZonedDateTime</code> in <code>vi.setSystemTime()</code> - by <a href="https://github.com/Prajwal2246"><code>@Prajwal2246</code></a>, <strong>Prajwal2246</strong>, <strong>Claude Opus 5.5 (1M context)</strong>, <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Codex (GPT-6)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11321">vitest-dev/vitest#11321</a> <a href="https://github.com/vitest-dev/vitest/commit/f150f5108"><!-- raw HTML omitted -->(f150f)<!-- raw HTML omitted --></a></li> <li>Introduce <code>--since-last-run</code> flag - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11516">vitest-dev/vitest#11516</a> <a href="https://github.com/vitest-dev/vitest/commit/08bd93b7e"><!-- raw HTML omitted -->(08bd9)<!-- raw HTML omitted --></a></li> <li>Expose per-retry/repeat attempt result - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Codex (GPT-6)</strong> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11232">vitest-dev/vitest#11232</a> <a href="https://github.com/vitest-dev/vitest/commit/21be412ed"><!-- raw HTML omitted -->(21be4)<!-- raw HTML omitted --></a></li> <li>Support fake timers for <code>node:timers</code> and <code>node:timers/promise</code> - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>OpenCode</strong> and <strong>Codex (GPT-6)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/10899">vitest-dev/vitest#10899</a> <a href="https://github.com/vitest-dev/vitest/commit/fbe973cae"><!-- raw HTML omitted -->(fbe97)<!-- raw HTML omitted --></a></li> <li>Allow coverage providers to store data in fs module cache - by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11747">vitest-dev/vitest#11747</a> <a href="https://github.com/vitest-dev/vitest/commit/54a2bdb81"><!-- raw HTML omitted -->(54a2b)<!-- raw HTML omitted --></a></li> <li>Interactively review failed snapshots - by <a href="https://github.com/macarie"><code>@macarie</code></a> and <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11325">vitest-dev/vitest#11325</a> <a href="https://github.com/vitest-dev/vitest/commit/54e5b8a8a"><!-- raw HTML omitted -->(54e5b)<!-- raw HTML omitted --></a></li> <li><strong>browser</strong>: <ul> <li>Mock modules through an import map - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11534">vitest-dev/vitest#11534</a> <a href="https://github.com/vitest-dev/vitest/commit/707f8adf4"><!-- raw HTML omitted -->(707f8)<!-- raw HTML omitted --></a></li> <li>Drop experimental label from trace view - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11518">vitest-dev/vitest#11518</a> <a href="https://github.com/vitest-dev/vitest/commit/44c3c2fcf"><!-- raw HTML omitted -->(44c3c)<!-- raw HTML omitted --></a></li> <li>Introduce experimental <code>pointer</code> API - by <a href="https://github.com/macarie"><code>@macarie</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/10780">vitest-dev/vitest#10780</a> <a href="https://github.com/vitest-dev/vitest/commit/5dc09f0ea"><!-- raw HTML omitted -->(5dc09)<!-- raw HTML omitted --></a></li> <li>Capture aria snapshot in trace view - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11492">vitest-dev/vitest#11492</a> <a href="https://github.com/vitest-dev/vitest/commit/0cc39fb90"><!-- raw HTML omitted -->(0cc39)<!-- raw HTML omitted --></a></li> <li>Show trace steps timeline on terminal on test failure - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11594">vitest-dev/vitest#11594</a> <a href="https://github.com/vitest-dev/vitest/commit/973dc84be"><!-- raw HTML omitted -->(973dc)<!-- raw HTML omitted --></a></li> <li>Add failure-only trace view mode - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11612">vitest-dev/vitest#11612</a> <a href="https://github.com/vitest-dev/vitest/commit/d5d7d2f06"><!-- raw HTML omitted -->(d5d7d)<!-- raw HTML omitted --></a></li> <li>Enable failure-only trace view by default - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11766">vitest-dev/vitest#11766</a> <a href="https://github.com/vitest-dev/vitest/commit/f37b6b707"><!-- raw HTML omitted -->(f37b6)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>coverage</strong>: <ul> <li>V8 to support <code>ignoreNode</code> option - by <a href="https://github.com/erickserra"><code>@erickserra</code></a> and <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11688">vitest-dev/vitest#11688</a> <a href="https://github.com/vitest-dev/vitest/commit/e02db0869"><!-- raw HTML omitted -->(e02db)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>experimental</strong>: <ul> <li>Add trace timeline for node - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11753">vitest-dev/vitest#11753</a> <a href="https://github.com/vitest-dev/vitest/commit/4e9855151"><!-- raw HTML omitted -->(4e985)<!-- raw HTML omitted --></a></li> <li>Add message option to vi.waitFor and vi.waitUntil - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11754">vitest-dev/vitest#11754</a> <a href="https://github.com/vitest-dev/vitest/commit/fd145d8d6"><!-- raw HTML omitted -->(fd145)<!-- raw HTML omitted --></a></li> </ul> </li> </ul> <h3> 🐞 Bug Fixes</h3> <ul> <li>Rerun setup files after <code>--changed</code> filtering - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11621">vitest-dev/vitest#11621</a> <a href="https://github.com/vitest-dev/vitest/commit/3a39cfc54"><!-- raw HTML omitted -->(3a39c)<!-- raw HTML omitted --></a></li> <li>Return the mock to concurrent imports - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11623">vitest-dev/vitest#11623</a> <a href="https://github.com/vitest-dev/vitest/commit/1453ba690"><!-- raw HTML omitted -->(1453b)<!-- raw HTML omitted --></a></li> <li>Don&<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/39">#39</a>;t fail on console log pending at teardown - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11619">vitest-dev/vitest#11619</a> <a href="https://github.com/vitest-dev/vitest/commit/a60b8e132"><!-- raw HTML omitted -->(a60b8)<!-- raw HTML omitted --></a></li> <li>Reference chai types in every d.ts chunk - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11618">vitest-dev/vitest#11618</a> <a href="https://github.com/vitest-dev/vitest/commit/fb150158b"><!-- raw HTML omitted -->(fb150)<!-- raw HTML omitted --></a></li> <li>Detect mock factory cycles that form later - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11642">vitest-dev/vitest#11642</a> <a href="https://github.com/vitest-dev/vitest/commit/e95541584"><!-- raw HTML omitted -->(e9554)<!-- raw HTML omitted --></a></li> <li>Skip fs module cache for typed import.meta.glob - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11666">vitest-dev/vitest#11666</a> <a href="https://github.com/vitest-dev/vitest/commit/79501f3a1"><!-- raw HTML omitted -->(79501)<!-- raw HTML omitted --></a></li> <li>Run tests that import a deleted file - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11669">vitest-dev/vitest#11669</a> <a href="https://github.com/vitest-dev/vitest/commit/80aa13dd6"><!-- raw HTML omitted -->(80aa1)<!-- raw HTML omitted --></a></li> <li>Keep syntax highlighting in code frames - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11705">vitest-dev/vitest#11705</a> <a href="https://github.com/vitest-dev/vitest/commit/d39f51548"><!-- raw HTML omitted -->(d39f5)<!-- raw HTML omitted --></a></li> <li>Respect CLI filters when prewarming browsers - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> and <strong>Benjamin Tang</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11706">vitest-dev/vitest#11706</a> <a href="https://github.com/vitest-dev/vitest/commit/109474892"><!-- raw HTML omitted -->(10947)<!-- raw HTML omitted --></a></li> <li>Read cached source as utf-8 - by <a href="https://github.com/juan-fernandez"><code>@juan-fernandez</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11682">vitest-dev/vitest#11682</a> and <a href="https://redirect.github.com/vitest-dev/vitest/issues/11709">vitest-dev/vitest#11709</a> <a href="https://github.com/vitest-dev/vitest/commit/867a5e41c"><!-- raw HTML omitted -->(867a5)<!-- raw HTML omitted --></a></li> <li>Inherit <code>watch</code> from the root config in projects - by <a href="https://github.com/nstepien"><code>@nstepien</code></a> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11724">vitest-dev/vitest#11724</a> <a href="https://github.com/vitest-dev/vitest/commit/77c122c6b"><!-- raw HTML omitted -->(77c12)<!-- raw HTML omitted --></a></li> <li>Prefix expect.poll message to all errors - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11756">vitest-dev/vitest#11756</a> <a href="https://github.com/vitest-dev/vitest/commit/cab5877db"><!-- raw HTML omitted -->(cab58)<!-- raw HTML omitted --></a></li> <li>Support api.port 0 - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11641">vitest-dev/vitest#11641</a> <a href="https://github.com/vitest-dev/vitest/commit/3667cf8a3"><!-- raw HTML omitted -->(3667c)<!-- raw HTML omitted --></a></li> <li>Show attempts in test error logs of retried tests - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11696">vitest-dev/vitest#11696</a> <a href="https://github.com/vitest-dev/vitest/commit/77a94328a"><!-- raw HTML omitted -->(77a94)<!-- raw HTML omitted --></a></li> <li>Preserve rootDir in project paths - by <a href="https://github.com/btea"><code>@btea</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11816">vitest-dev/vitest#11816</a> <a href="https://github.com/vitest-dev/vitest/commit/bf96dad6a"><!-- raw HTML omitted -->(bf96d)<!-- raw HTML omitted --></a></li> <li><strong>browser</strong>: <ul> <li>Change default port to 23315 - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11640">vitest-dev/vitest#11640</a> <a href="https://github.com/vitest-dev/vitest/commit/a2ec4166d"><!-- raw HTML omitted -->(a2ec4)<!-- raw HTML omitted --></a></li> <li>Advance fake timers in actions and expect.element - by <a href="https://github.com/julienw"><code>@julienw</code></a>, <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11242">vitest-dev/vitest#11242</a> <a href="https://github.com/vitest-dev/vitest/commit/6819008ce"><!-- raw HTML omitted -->(68190)<!-- raw HTML omitted --></a></li> <li>Drop trace view warning without html reporter - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11665">vitest-dev/vitest#11665</a> <a href="https://github.com/vitest-dev/vitest/commit/e64075ef5"><!-- raw HTML omitted -->(e6407)<!-- raw HTML omitted --></a></li> <li>Detect shared chunks via the optimizer - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11661">vitest-dev/vitest#11661</a> <a href="https://github.com/vitest-dev/vitest/commit/e2e9c64b0"><!-- raw HTML omitted -->(e2e9c)<!-- raw HTML omitted --></a></li> <li>Clear screenshot stability timeout - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11659">vitest-dev/vitest#11659</a> <a href="https://github.com/vitest-dev/vitest/commit/fbe37c083"><!-- raw HTML omitted -->(fbe37)<!-- raw HTML omitted --></a></li> <li>Measure prepare duration with one clock - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11667">vitest-dev/vitest#11667</a> <a href="https://github.com/vitest-dev/vitest/commit/a3ed42a14"><!-- raw HTML omitted -->(a3ed4)<!-- raw HTML omitted --></a></li> <li>Keep failure screenshot per attempt - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11694">vitest-dev/vitest#11694</a> <a href="https://github.com/vitest-dev/vitest/commit/a5022655d"><!-- raw HTML omitted -->(a5022)<!-- raw HTML omitted --></a></li> <li>Print trace timeline of each attempt - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11695">vitest-dev/vitest#11695</a> <a href="https://github.com/vitest-dev/vitest/commit/272296e5d"><!-- raw HTML omitted -->(27229)<!-- raw HTML omitted --></a></li> </ul> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/vitest-dev/vitest/commit/7a3844954d8753fc0d5bed76a96ffd3a21716c22"><code>7a38449</code></a> chore: release v5.1.0 (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11838">#11838</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/a5ec316f8e8bf133154a5d5cf43fd5437319e455"><code>a5ec316</code></a> fix(vm): keep assignable accessor globals writable in node environment (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11834">#11834</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/e46c6c1847462d62f9ff5ea4c351fe510a4edf2e"><code>e46c6c1</code></a> refactor: share trace types and utils (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11825">#11825</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/9e23ce57cc112205126b7d37d68126860126b953"><code>9e23ce5</code></a> refactor(snapshot): unify review update with <code>SnapshotState</code> update (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11790">#11790</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/a0e33cc8b063b4bd8ccd95235532d072d83f75ad"><code>a0e33cc</code></a> chore: eliminate lint error (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11822">#11822</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/fd145d8d60fd877a2eb9622b6771edc08ef26372"><code>fd145d8</code></a> feat(experimental): add message option to vi.waitFor and vi.waitUntil (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11754">#11754</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/4e985515109b4fd9fcdc2e81d2b1c5f264799cf7"><code>4e98551</code></a> feat(experimental): add trace timeline for node (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11753">#11753</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/bf96dad6ab66fe01a1a2c008754f999399309c85"><code>bf96dad</code></a> fix: preserve rootDir in project paths (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11816">#11816</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/54e5b8a8a0d7f007ec69b604fec3446b0e88f2c6"><code>54e5b8a</code></a> feat: interactively review failed snapshots (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11325">#11325</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/42770759fcca4ff82ab4df49e4ee241f4f680e99"><code>4277075</code></a> fix(expect): keep soft .resolves/.rejects error location (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11792">#11792</a>)</li> <li>Additional commits viewable in <a href="https://github.com/vitest-dev/vitest/commits/v5.1.0/packages/vitest">compare view</a></li> </ul> </details> <br /> Updates `headroom-ai` from 0.41.0 to 0.42.0 Updates `@types/node` from 26.6.5 to 26.6.6 <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node">compare view</a></li> </ul> </details> <br /> Updates `vitest` from 5.0.5 to 5.1.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/vitest-dev/vitest/releases">vitest's releases</a>.</em></p> <blockquote> <h2>v5.1.0</h2> <h3> 🚀 Features</h3> <ul> <li>Add <code>--last-failed</code> to run only failed tests - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11558">vitest-dev/vitest#11558</a> <a href="https://github.com/vitest-dev/vitest/commit/82f634220"><!-- raw HTML omitted -->(82f63)<!-- raw HTML omitted --></a></li> <li>Support <code>Temporal.Instant</code> and <code>Temporal.ZonedDateTime</code> in <code>vi.setSystemTime()</code> - by <a href="https://github.com/Prajwal2246"><code>@Prajwal2246</code></a>, <strong>Prajwal2246</strong>, <strong>Claude Opus 5.5 (1M context)</strong>, <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Codex (GPT-6)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11321">vitest-dev/vitest#11321</a> <a href="https://github.com/vitest-dev/vitest/commit/f150f5108"><!-- raw HTML omitted -->(f150f)<!-- raw HTML omitted --></a></li> <li>Introduce <code>--since-last-run</code> flag - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11516">vitest-dev/vitest#11516</a> <a href="https://github.com/vitest-dev/vitest/commit/08bd93b7e"><!-- raw HTML omitted -->(08bd9)<!-- raw HTML omitted --></a></li> <li>Expose per-retry/repeat attempt result - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Codex (GPT-6)</strong> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11232">vitest-dev/vitest#11232</a> <a href="https://github.com/vitest-dev/vitest/commit/21be412ed"><!-- raw HTML omitted -->(21be4)<!-- raw HTML omitted --></a></li> <li>Support fake timers for <code>node:timers</code> and <code>node:timers/promise</code> - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>OpenCode</strong> and <strong>Codex (GPT-6)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/10899">vitest-dev/vitest#10899</a> <a href="https://github.com/vitest-dev/vitest/commit/fbe973cae"><!-- raw HTML omitted -->(fbe97)<!-- raw HTML omitted --></a></li> <li>Allow coverage providers to store data in fs module cache - by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11747">vitest-dev/vitest#11747</a> <a href="https://github.com/vitest-dev/vitest/commit/54a2bdb81"><!-- raw HTML omitted -->(54a2b)<!-- raw HTML omitted --></a></li> <li>Interactively review failed snapshots - by <a href="https://github.com/macarie"><code>@macarie</code></a> and <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11325">vitest-dev/vitest#11325</a> <a href="https://github.com/vitest-dev/vitest/commit/54e5b8a8a"><!-- raw HTML omitted -->(54e5b)<!-- raw HTML omitted --></a></li> <li><strong>browser</strong>: <ul> <li>Mock modules through an import map - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11534">vitest-dev/vitest#11534</a> <a href="https://github.com/vitest-dev/vitest/commit/707f8adf4"><!-- raw HTML omitted -->(707f8)<!-- raw HTML omitted --></a></li> <li>Drop experimental label from trace view - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11518">vitest-dev/vitest#11518</a> <a href="https://github.com/vitest-dev/vitest/commit/44c3c2fcf"><!-- raw HTML omitted -->(44c3c)<!-- raw HTML omitted --></a></li> <li>Introduce experimental <code>pointer</code> API - by <a href="https://github.com/macarie"><code>@macarie</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/10780">vitest-dev/vitest#10780</a> <a href="https://github.com/vitest-dev/vitest/commit/5dc09f0ea"><!-- raw HTML omitted -->(5dc09)<!-- raw HTML omitted --></a></li> <li>Capture aria snapshot in trace view - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11492">vitest-dev/vitest#11492</a> <a href="https://github.com/vitest-dev/vitest/commit/0cc39fb90"><!-- raw HTML omitted -->(0cc39)<!-- raw HTML omitted --></a></li> <li>Show trace steps timeline on terminal on test failure - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>Claude Opus 5.5 (1M context)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11594">vites... _Description has been truncated_ ### Maintainer current-main requalification Exact head `23848c2414aef92de4e6ab05f736271bb6385fd9`, upstream main `8d3e9e5ca7cd645eb73084b848edbea5fc796e1a`. Clean mechanical sync with upstream main8d3e9e5ca7cd645eb73084b848edbea5fc796e1a. Reviewed manifests, full lock deltas, existing author/Devin discussion and install surface. No contributor runtime code changed. The runtime headroom-ai dependency advances0.41to0.42 in the plugins; maintained by this repository's team, it keeps the existing compression/retrieval client and existing proxy network surface. The OpenCode plugin/protocol dependency refreshes remain on their declared major ranges and were tested against the integration adapter. OpenAI7.47 is a dev/test dependency used by SDK compatibility coverage. DefinitelyTyped Node definitions and Vitest5.1 are dev/test refreshes; associated rolldown platform-native bindings already existed in the build graph. No new hasInstallScript declarations appear in the lock delta. This is a tested compatible maintenance update, not a claimed security fix or newly required feature. Real behavior proof: Windows,Node22.22.0/npm10.9.4; npm ci --ignore-scripts followed by test,typecheck,build in sdk/typescript,plugins/openclaw,plugins/opencode. SDK435pass33skip;OpenClaw153pass2skip;OpenCode66pass. All3typechecks/builds pass. Installation fetched registry artifacts; lifecycle scripts were disabled during install, then package builds executed explicitly. Whitespace checks pass. This verifies local package/adapter/build compatibility, not live OpenClaw/OpenCode host sessions or provider calls. Exact-head hosted/security checks remain maintainer-owned and must qualify before formal approval. Nothing merged. Exact-head hosted checks are being handled by maintainers. No new finding in the reviewed scope; formal approval awaits exact-head hosted qualification; nothing merged. Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: JerrettDavis <mxjerrett@gmail.com> |
||
|
|
81fa4bdda6 |
chore: release 0.43.0 (#4643)
🤖 I have created a release *beep* *boop* --- ## [0.43.0](https://github.com/headroomlabs-ai/headroom/compare/v0.42.0...v0.43.0) (2026-11-05) ### ⚠ BREAKING CHANGES * **mcp:** port MCP servers to SDK 2.x ([#4603](https://github.com/headroomlabs-ai/headroom/issues/4603)) ### Features * **ccr:** answer headroom_retrieve on streaming chat completions ([#4631](https://github.com/headroomlabs-ai/headroom/issues/4631)) ([ |
||
|
|
a26faaeee3 |
fix(sdk): carry Vercel AI SDK reasoning parts and provider options through compression (#4564)
## Description
`headroomMiddleware` / `withHeadroom` for the Vercel AI SDK convert the
prompt to OpenAI chat shape before `/v1/compress` and back afterwards.
The converters only model `text`, `file`/`image`, `tool-call` and
`tool-result` parts, so everything else the AI SDK puts on a prompt is
dropped: **`reasoning` parts**, and **`providerOptions`** on every
message and part (`providerExecuted` on tool calls too).
That is the state the providers need back on the next step of a tool
loop:
- `@ai-sdk/anthropic` rebuilds `thinking` / `redacted_thinking` blocks
from `reasoning` parts' `providerOptions.anthropic.signature` /
`redactedData`; without them the request reaches Anthropic with
`tool_use` and no thinking block, which its docs say "triggers a 400
error". Message- and part-level `anthropic.cacheControl` breakpoints are
read from `providerOptions` as well.
- `@ai-sdk/google` carries Gemini thought signatures as
`providerOptions.google.thoughtSignature` on text, tool-call, file and
reasoning parts. Its current release injects a sentinel for Gemini 3 "to
keep the request from failing with HTTP 400" and names the cause:
"application code that drops `providerOptions.google.thoughtSignature`
when persisting or serializing assistant tool-call messages" — which is
what this middleware did.
- `@ai-sdk/openai` keeps Responses `itemId` /
`reasoningEncryptedContent` the same way.
Captured on `main` (`a2d4fe72`) by running a LanguageModelV3 step-2
prompt through the public converters, which is the middleware's exact
path — every message changed:
```text
[0] system : providerOptions (anthropic.cacheControl) dropped
[1] user : text part providerOptions (anthropic.cacheControl) dropped
[2] assistant: both reasoning parts dropped (signature + redactedData); text and tool-call
providerOptions (google.thoughtSignature, openai.itemId) dropped
[3] tool : tool-result providerOptions (anthropic.cacheControl) dropped
```
The proxy does not need any of this removed. `/v1/compress` copies
messages with their extra keys, keeps extra keys on text parts even when
it rewrites the text, and passes unknown content parts through (verified
live, below). So the converters now carry the AI SDK state as-is and the
reverse conversion hands it back verbatim.
Closes # (none — follow-up to #4489; same converter sweep)
## Type of Change
- [x] Bug fix (non-breaking change that fixes an issue)
- [ ] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [x] Documentation update
- [ ] Performance improvement
- [ ] Code refactoring (no functional changes)
## Changes Made
- **`sdk/typescript/src/utils/format.ts`**
- `vercelToOpenAI` / `openAIToVercel`: `providerOptions` on a
system/user/assistant message stays on the OpenAI message under the same
key; on text parts it stays on the part; on `image`/`file` parts it
rides inside the existing `image_url` carrier object. Assistant parts
the converter does not model — `reasoning`, `reasoning-file`, `custom`,
provider-executed `tool-result` — keep their place in the OpenAI
`content[]` verbatim (text-only turns still collapse to a string unless
a text part carries options; same for user turns). `tool-call` →
`tool_calls[i]` plus `providerOptions` / `providerExecuted`, and
`position` (how many content parts preceded the call), so
`openAIToVercel` puts each call back in its place among reasoning / text
/ provider-executed parts instead of appending it; a turn whose text
follows a tool call keeps the content array for the same reason. One
OpenAI tool message is one `tool-result` part, so the part's options
take `providerOptions` and the Vercel message's go under
`messageProviderOptions` on the last split message only (a copy on each
would multiply an Anthropic cache breakpoint); a
`tool-approval-response` part (no OpenAI equivalent) is carried on
`part` and restored as-is. All of it restored on the way back.
- `detectFormat`: `reasoning` / `reasoning-file` / `custom` /
`tool-approval-*` parts are Vercel markers (Anthropic spells its block
`thinking`); `image_url` / `input_audio` / `refusal` / `file`-object
parts are OpenAI markers. A message-level `providerOptions` key is
Vercel evidence only once no message carries a structural marker,
because the public OpenAI message types allow the key too.
- `toOpenAI(messages, format?)` accepts a declared format.
- **`sdk/typescript/src/types.ts`, `src/index.ts`** — `ProviderOptions`;
`providerOptions?` on `TextContentPart`, `ToolCall` (plus
`providerExecuted?`) and the four message types; `ReasoningContentPart`
and a literal-typed `PassthroughContentPart` join `ContentPart`, so
`part.type === "text"` narrowing stays exact; `CompressOptions.format`.
- **`sdk/typescript/src/compress.ts`** — `format` (declared input
format) skips autodetection and is passed to `toOpenAI`.
- **`sdk/typescript/src/adapters/vercel-ai.ts`** — the middleware and
`compressVercelMessages` call `compress(prompt, { format: "vercel" })`
and use `result.messages`, instead of converting themselves and then
handing OpenAI-shaped messages to `compress()`, which re-detects the
format. That re-detection is why `format` exists: reasoning parts are
not OpenAI-shaped, so a converted conversation whose first marker is a
reasoning part would have been read as Vercel input again and lost its
tool calls; and a text-only prompt is indistinguishable from OpenAI
messages, which the middleware could never declare before.
- **Tests** — `test/utils/format.test.ts`: the original "skips reasoning
parts" expectation becomes a carry-verbatim one; a step-2 prompt
(system/user/assistant/tool with options everywhere, two reasoning
parts, tool-call options) round-trips exactly; tool-call
`providerOptions`/`providerExecuted`; provider-executed `tool-result`
and `tool-approval-response` parts verbatim; user text with options kept
as a part; text-only assistant turns still a string; file-part options
through the media carrier. `test/adapters/vercel-ai.test.ts`: a typed
`LanguageModelV3Prompt` through `transformParams` with the proxy
rewriting only the tool message. `test/compress.test.ts`: `format:
"vercel"` on a text-only prompt. `test/utils/detect-format.test.ts`: the
new markers, and OpenAI `image_url` / `file` / `input_audio` parts
outranking `providerOptions` (the review repro included).
`test/types.test-d.ts`: the public type changes. Review round 1 added:
`compress()` with no `format` keeping an OpenAI user message with
`providerOptions`, `image_url` and `file`; round trips for `[tool-call,
reasoning, tool-call]`, a provider-executed search turn and `[tool-call,
text]`; the `text, tool-call` wire shape unchanged; message-level
options once per split tool message; the search turn through
`transformParams`.
- **Docs** — `docs/content/docs/vercel-ai-sdk.mdx` (what is carried),
`docs/content/docs/api-reference.mdx` and `sdk/typescript/README.md`
(the `format` option).
**Not in this PR.** Tool-result `output` kinds: every output is still
flattened to a string and restored as `json`/`text`, so `error-text` /
`error-json` lose their error-ness and `content` outputs with media
become JSON text. Same converter, different defect — next PR. The
Gemini-native converter's `thought` parts and `thoughtSignature` are
also a separate PR.
## Testing
- [x] Unit tests pass (`npm test` — vitest, incl. typecheck)
- [x] Type checking passes (`npm run typecheck` — tsc --noEmit)
- [x] Build passes (`npm run build` — tsup)
- [x] New tests added for new functionality
- [x] Manual testing performed (below)
### Test Output
```text
$ cd sdk/typescript && npm test
Test Files 19 passed | 5 skipped (24)
Tests 435 passed | 33 skipped (468)
Type Errors no errors
$ npm run typecheck # tsc --noEmit — clean
$ npm run build # tsup — ESM, CJS and DTS built
```
## Real Behavior Proof
- Environment: published proxy `headroom-ai 0.42.0` (`uvx --from
'headroom-ai[proxy]' headroom proxy --port 8799`), this branch built
with `npm run build`, Node v22.16.0, macOS.
- Exact command / steps: a LanguageModelV3 step-2 prompt — system and
user with `anthropic.cacheControl`, assistant with two `reasoning` parts
(signature, redactedData), a text part and a tool call carrying
`google.thoughtSignature` / `openai.itemId`, message-level options, and
a `tool-result` carrying a 72 KB JSON log plus `cacheControl` — passed
through `headroomMiddleware().transformParams` against the live proxy;
the returned prompt compared message by message with the input.
- Observed result: every message other than the tool result came back
byte-identical, the tool result kept its options and shrank from 72 432
to 34 916 chars. Full output:
```text
system byte-identical (cacheControl kept): true
user byte-identical (text providerOptions kept): true
assistant byte-identical (2 reasoning parts, text + tool-call providerOptions, message providerOptions): true
tool-result output: 72432 -> 34916 chars, type=text, toolName=fetch_gateway_metrics, providerOptions kept: true
tool-result output head: "[400]{id:int,level:string,msg:string,path:string,service:string,status:int,ts:string}\n0,WA"
```
Review round 1, same proxy: an interleaved provider-executed turn
(`reasoning, tool-call, tool-result, reasoning, text, tool-call`)
through `headroomMiddleware`, then an OpenAI user message with
`providerOptions` + `image_url` + `file` (and a 56 KB tool result)
through `compress()` with no `format`:
```text
assistant byte-identical (order back: reasoning, tool-call, tool-result, reasoning, text, tool-call): true
tool-result output: 56002 -> 31287 chars, type=text, toolName=fetch_gateway_metrics; message providerOptions kept: true
detectFormat: openai
user message byte-identical (image_url and file kept): true
tool message: 56002 -> 31690 chars; compressed=true
```
The same payload through the converters on `main` loses every item
listed in the Description (captured before the change with the same
script).
- Not tested: an end-to-end multi-step `generateText` against Anthropic
/ Gemini with thinking enabled (no provider keys in this environment);
the provider behaviour is taken from the `@ai-sdk/anthropic` and
`@ai-sdk/google` sources and Anthropic's docs quoted above.
## Runtime Rollout Safety
- Rollout-managed feature(s): none (TypeScript SDK only, no proxy
change)
- Minimum rollout channel: n/a
- Stable/default behavior changed: for SDK users, OpenAI-shaped messages
sent to `/v1/compress` now carry the AI SDK's `providerOptions` keys and
reasoning parts, which the proxy already passes through; the public
`ContentPart` union grows (additive).
- Kill switch / disable path: unchanged — `fallback: true` returns the
original prompt when the proxy is unreachable; unwrap the model to
disable compression.
- Unsafe override required: no
- Qualification impact: none
- Rollback path: revert this PR
## Review Readiness
- [x] I have performed a self-review
- [x] This PR is ready for human review
## Checklist
- [x] My code follows the project's style guidelines
- [x] I have performed a self-review of my code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [x] I did **not** edit `CHANGELOG.md` — it is generated by
release-please from my Conventional Commit PR title (a CI guard enforces
this)
## Screenshots (if applicable)
N/A
## Additional Notes
- The carried keys never reach an OpenAI endpoint through the SDK's own
paths: the universal `compress()` returns messages in the input format,
and the OpenAI adapter never sees Vercel input.
- Enumerated before writing: the V3 and V4 prompt unions
(`@ai-sdk/provider` 4.0.26) and the `ModelMessage` unions
(`@ai-sdk/provider-utils` 5.0.58); every assistant and tool part type in
them is either modelled or carried verbatim.
<!-- devin-review-badge-begin -->
---
<a href="https://app.devin.ai/review/headroomlabs-ai/headroom/pull/4564"
target="_blank"><picture><source media="(prefers-color-scheme: dark)"
srcset="https://static.devin.ai/assets/gh-devin-review-dark.svg?v=4"><img
src="https://static.devin.ai/assets/gh-devin-review-light.svg?v=4"
alt="Devin Review"></picture></a>
<!-- devin-review-badge-end -->
---------
Co-authored-by: JerrettDavis <mxjerrett@gmail.com>
|
||
|
|
e666fd8e35 |
deps: Bump tsup from 8.5.1 to 9.0.0 in /sdk/typescript (#4386)
Build the SDK with Headroom's patched esbuild release inside the bundler's supported dependency range. Headroom already overrides esbuild to the 0.28 series as part of dependency-CVE remediation ([#1509](https://github.com/headroomlabs-ai/headroom/pull/1509)); tsup 8.5.1 declares ^0.27.0, so that combination relies on an out-of-range override. Tsup 9 declares ^0.28.2. Upgrade the bundler and raise the override floor from ^0.28.1 to ^0.28.2 so the selected secure-build inputs agree with the upstream-supported range. The original tsup 9 lock still selected esbuild 0.28.1 through the override. This maintainer follow-up corrects that mismatch, regenerates the lock and documents the actual source-build Node requirement. It does not claim that 0.28.1 introduces a new advisory or that the old bundler's emitted SDK was demonstrated broken. ## Dependency assessment - **Why tsup/version:** existing ESM/CJS/declaration builder; version 9 provides the upstream-supported esbuild 0.28 build combination needed by the existing security override. This avoids introducing a new bundler or relying indefinitely on tsup 8's incompatible declared dependency range. [Official v9 changes](https://github.com/egoist/tsup/releases/tag/v9.0.0). - **Maintenance/security:** tsup's published 9.0.0 release/source and installed manifest were reviewed, including esbuild/chokidar upgrades, the debug-to-obug change, and the Node floor. Security expectations are evaluated on the resolved dependency tree, not inferred from the major number. Fresh Windows and Linux audits report zero vulnerabilities; this does not assert a clean history for every upstream project. - **Build/runtime boundary:** tsup 9 requires `^22.18.0 || ^24.11.0 || >=26.0.0`. The source-build README now recommends Node 24 LTS >=24.11 and documents the alternatives. The published SDK's Node >=18 engines field and optional peer requirements are unchanged. Built ESM/CJS entrypoints load and construct the SDK client on Node 18.20.8; current Vercel peers have their own higher runtime floor, qualified separately on Node 22. - **Transitive/native/install surface:** the lock adds Rollup's optional Linux-x64 GNU LZMA binding and Android-x64 parser binding. It removes debug, ms, source-map and a nested tinyexec entry while updating the bundler's declared toolchain. No new install-script flag is introduced. Existing esbuild/Rollup platform-native components and installation scripts remain development inputs. The Linux LZMA package is a legitimate Rollup optional dependency, not an unreferenced lock entry. It was installed and resolvable in the Linux qualification; its compression functions and Android bindings were not independently exercised. Fresh installs with scripts enabled and actual builds were run on Windows x64 and Linux x64 GNU. No build tooling/native binary is added to the SDK's published runtime dependency list. - **Network surface:** npm registry/package downloads and any existing build-tool setup behavior remain install-time network surfaces. Normal SDK/provider HTTP behavior is unchanged; the proof uses an isolated local proxy/provider fixture and no real vendor credential. No release or production rollout is performed. ## Real behavior proof Windows/Node 22.22.0 and Linux/Debian bookworm/Node 24.22.2, with the resolved tsup 9.0.0 and esbuild 0.28.2. The Linux run copies the SDK source into an ephemeral container, keeping its install/build separate from the Windows tree. From `sdk/typescript`, on each environment: ```bash npm ci --ignore-scripts=false --no-audit --no-fund npm run typecheck npm test -- --reporter=dot npm run build npm audit --audit-level=low ``` Both report **406 tests passed, 33 skipped**, no type errors, successful ESM/CJS/declaration builds, and zero audit findings. Linux resolves `@napi-rs/lzma-linux-x64-gnu` and loads Rollup 4.67.2. These are fresh installs with scripts enabled, rather than relying only on a scripts-disabled install. Against the Windows-built artifacts, `python scripts/verify_sdk_provider_peers.py` runs the real Headroom HTTP compression path (isolated temporary state, stateless mode, no subscription tracking/upstream discovery) and actual provider/native SDK clients with loopback provider responses. It verifies final JSON text preservation, per-request async credential resolution, and native chat completion through the generated adapters. Observed exit 0 with four `/v1/compress` responses of 200. The local run reused an existing Headroom native extension and does not claim a fresh local Rust build or live model inference. From `sdk/typescript`, `npm exec --yes --package=node@18.20.8 -- node ../../scripts/verify_sdk_dist_compat.mjs .` reports that the built ESM and CJS SDK entrypoints load and construct the client. This tests the core entrypoint boundary, not all optional provider peers or every SDK call on Node 18. `git diff --check` and the new Node proof's syntax check pass. The branch is synchronized with main, including the already-qualified dependency/security updates. After main gained the native Anthropic 1.3 update, the SDK lock was combined again without dropping that update or any of the six provider-group targets. The final tree retains tsup 9.0.0, esbuild 0.28.2 and native Anthropic 1.3.0, preserving unrelated platform metadata. Fresh scripts-enabled install, 406 tests/33 skips, types/build/audit and Node 18 entrypoint loading pass again on Windows. Both `verify_sdk_provider_peers.py` (four compression HTTP calls) and `verify_anthropic_peer.py` (native thinking/cache/tool/system/metadata preservation) also pass against these newly built artifacts. The earlier Linux qualification used the same bundler/esbuild graph before that native-peer merge; final-head hosted platform CI supplies the combined-tree platform coverage. Untested: other operating systems/architectures, Android or musl native bindings, LZMA compression behavior, watch-mode filesystem events, live vendor models/credentials, streaming, production publishing, and the 33 skipped tests. Hosted CI must qualify the current head. --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: JerrettDavis <mxjerrett@gmail.com> |
||
|
|
74277d47ec |
deps: Bump @anthropic-ai/sdk from 0.133.0 to 1.3.0 in /sdk/typescript (#4554)
Qualify the TypeScript SDK's native Anthropic adapter against Anthropic's stable 1.3.0 client, rather than testing only the old 0.133.0 development peer. Current-peer compatibility is a required qualification target for this SDK maintenance work, including the native Anthropic client admitted by the existing `@anthropic-ai/sdk >=0.30.0` range. The README installs Headroom only; Anthropic is an optional, separately installed peer, not an automatically installed dependency. This PR makes the selected 1.3.0 qualification concrete with actual HTTP transport and Headroom compression, including the native blocks that must survive unchanged. ## Dependency assessment - **Why package/version:** retain Anthropic's official client as an optional integration peer instead of duplicating its authentication, request serialization, retries and response API. Version 1.3.0 is the selected stable peer qualification target for the native adapter under the required current-client compatibility scope. The broad peer range permits 1.x but is not itself evidence that it was tested, nor a requirement for users to install it. This is deliberate compatibility qualification, not a claim that Enterprise Claude Tag endpoints are used by Headroom or that an unrelated upstream feature fixes compression. [Official release](https://github.com/anthropics/anthropic-sdk-typescript/releases/tag/sdk-v1.3.0). - **Maintenance/security:** maintained by Anthropic, with the reviewed release/source history covering the stable client and request-layer changes. Fresh SDK audit reports zero vulnerabilities; this is not a guarantee about all past/future upstream security issues. Actual transport, build and test results support acceptance rather than the major version number alone. - **Install surface:** the only added lock package is `@opentelemetry/api` 1.9.0 (SDK requirement ^1.4.1). Existing standardwebhooks and json-schema-to-ts dependencies remain. No new install-script flag, native package or exporter is introduced. The Anthropic SDK remains a development/test dependency here; published optional peer ranges are unchanged. A registry install and the client's existing provider HTTP requests remain network surfaces. Node 22.22.0 was tested; the distribution has no engines field, so this result is not a claim of qualification on every Node version. - **Tracing/privacy:** the new client can emit API-call spans when the application has registered an OpenTelemetry tracer provider. Defaults use metadata-only content mode and permit trace-context propagation; prompt/response content capture requires content mode selection. `openTelemetry: false` or the documented ANTHROPIC_OPEN_TELEMETRY environment setting disables spans. The API package supplies no exporter itself, but an application's existing tracer/exporter can receive the new spans. This behavior and configuration are part of the upgrade's surface, not assumed absent because the dependency is JavaScript-only. Exporter/propagation behavior was inspected but not exercised by the transport proof. The branch is synchronized with main, including the merged #4599 glob/minimatch audit remediation and its existing exact bundled exceptions/November 15 expiry. The SDK lock conflict with merged #4621 is resolved by retaining all six of that group's updates and applying the Anthropic 1.3.0 change to that combined lock. A parsed comparison with main confirms the only package-version difference is Anthropic and the only added package is the telemetry API. ## Real behavior proof Windows, Node 22.22.0, Python 3.12.13, the actual 1.3.0 client from the PR lock, and Headroom's built native Anthropic adapter. The local proxy used an existing native Headroom extension, isolated temporary workspace/config storage, stateless operation, disabled subscription tracking, and skipped upstream discovery. A loopback provider fixture sends a valid SDK response. No cloud credential, real model inference, or genuine thinking signature was used. ```powershell cd sdk/typescript npm ci --ignore-scripts --no-audit --no-fund npm run build cd ../.. python scripts/verify_anthropic_peer.py ``` Observed, exit 0: ```text PASS: actual Anthropic SDK client + Headroom adapter preserve thinking, cache markers, tool pairs, system and metadata on the wire Real Headroom /v1/compress response: [200] ``` The actual 1.3.0 `client.messages.create()` passes through `withHeadroom`, makes a real compression HTTP request with fallback disabled, then sends a real HTTP request to `/v1/messages`. The fixture asserts the complete message array (opaque thinking/signature, paired tool use/result and cache markers), separate system blocks and metadata; the returned SDK text is also asserted. No SDK/client/compression function is replaced. The short payload does not trigger token reduction, so this proves native transport/payload preservation rather than a long-input compression ratio or vendor acceptance of the synthetic signature. SDK tests: **406 passed, 33 skipped**. Typecheck, ESM/CJS/declaration build and zero-finding audit pass. Python lint/format, Node syntax and whitespace checks pass. After the main/SDK-group synchronization, the native proof and all these checks passed again. The committed `python scripts/verify_sdk_provider_peers.py` also passes on the combined tree: the actual Vercel Anthropic provider retains final JSON text, the OpenAI provider resolves two async credentials separately, and the native OpenAI client completes its request, with four real `/v1/compress` responses of 200. Thus the conflict resolution preserves the already-qualified peer matrix alongside the new native Anthropic client. Untested: live Anthropic credentials/models, streaming/beta/new Enterprise APIs, signed-thinking validation by Anthropic, tracing export/propagation, browser behavior, active compression of long inputs, other Node/platform combinations, and the 33 skipped tests. Current-head hosted CI remains required. --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: JerrettDavis <mxjerrett@gmail.com> |
||
|
|
5e4827de12 |
deps: Bump the npm-minor-patch group across 1 directory with 6 updates (#4621)
Update the TypeScript SDK's development peer matrix to versions that preserve Anthropic JSON final answers and support async OpenAI credential callbacks through Headroom's existing adapters. With the old locked Anthropic provider, a model in JSON-tool mode that returns final text without calling the tool produces an empty SDK answer. With the old OpenAI provider, an async API-key callback is rejected as a non-string. Both behaviors were reproduced with the actual old packages, the real Headroom middleware and compression HTTP endpoint, and a loopback provider response. ## Dependency assessment - **@ai-sdk/anthropic 4.0.87 -> 4.0.94:** includes the final-text preservation fix [e10aebb](https://github.com/vercel/ai/commit/e10aebbad661c641a5463c645272168d03a5c2f2). Headroom must preserve assistant output rather than allowing the peer provider to discard it in JSON mode/manual thinking. The new proof fails on the old locked provider with `actual ''` versus `expected '{"name":"Ada"}'`, and passes with this version. It also includes schema handling fixes for newer Claude models; those additional models are not claimed tested here. - **@ai-sdk/openai 4.0.101 -> 4.0.106:** includes per-request resolution of async credential settings ([v4.0.106](https://github.com/vercel/ai/releases/tag/%40ai-sdk%2Fopenai%404.0.106)). The new proof calls the wrapped provider twice and observes a different resolved bearer value each time, after passing through Headroom. The old locked provider fails with `AI_LoadAPIKeyError: OpenAI API key must be a string.` This qualifies the new credential functionality for the existing middleware without adding an authentication mechanism to Headroom. - **@ai-sdk/provider 4.0.33 -> 4.0.35** is the shared contract used by the updated providers. **ai 7.0.152 -> 7.0.159** is the actual wrapLanguageModel peer used by Headroom's convenience wrapper. Qualify that provider/AI combination together instead of treating compilation of isolated provider packages as compatibility evidence. - **openai 7.43.0 -> 7.46.0** and **@types/node 26.6.5 -> 26.6.6** are retained as required current-peer compatibility coverage for Headroom, alongside the provider fixes. The real native OpenAI chat client has a transport check through the native Headroom adapter; the Node declarations are checked by the SDK typecheck. These are deliberate qualification targets for the supported peer matrix, rather than claims that either package fixes the Vercel defects. The native client's independent new API surfaces and Node 26 runtime behavior are not covered by the chat/typecheck proof. - **Maintenance/security:** Vercel maintains ai and the provider packages, OpenAI maintains the native client, and DefinitelyTyped maintains @types/node. The linked provider releases/source fixes and OpenAI's 7.46.0 release were reviewed; active upstream release history does not imply a spotless security record. Fresh SDK audit reports zero vulnerabilities. - **Install/runtime surface:** all six are development dependencies, used to build/test optional peer integrations. This PR does not change published runtime dependency or peer ranges, so consumers do not automatically receive the provider fixes merely by installing a new Headroom package. Compared with the prior lock, no package paths are added/removed, no new install-script flags appear, and all resolved tarballs remain on registry.npmjs.org. Existing esbuild/native build tooling remains part of SDK development. The existing Vercel peer toolchain already requires Node 22; these patches do not newly establish that floor. Node type declarations are not shipped runtime code. OpenAI widens the optional google-auth-library peer upper bound, but this install does not add that optional peer. Registry installs and provider API traffic remain network surfaces; the proof uses no real credential and contacts no cloud model. ## Real behavior proof Windows, Node 22.22.0, Python 3.12.13, the actual PR's package-lock install, and the real Headroom proxy source. The local run reused an existing native Headroom extension; it does not claim a fresh local Rust build. The proof runs the proxy with isolated temporary workspace/config paths, stateless storage, subscription tracking disabled, and upstream discovery skipped. A loopback HTTP provider fixture deliberately supplies valid API responses; it is not a live model. ```powershell cd sdk/typescript npm ci --ignore-scripts --no-audit --no-fund npm run build cd ../.. python scripts/verify_sdk_provider_peers.py ``` Observed, exit 0: ```text PASS: real provider + Headroom middleware + real compression HTTP path preserve final JSON text without a tool call PASS: real OpenAI provider resolves async credentials separately for both wrapped requests PASS: native OpenAI SDK chat client completes a real HTTP request through the Headroom adapter Real Headroom /v1/compress response: [200, 200, 200, 200] ``` The same Anthropic case on main's old lock drops the final JSON text. Running the proof with `openai-only` against a separate old-lock checkout reproduces the old async-credential error. No client/model/compress function is replaced; the actual SDKs make the HTTP requests, and all four calls pass through Headroom's real /v1/compress endpoint with fallback disabled. The short prompts do not trigger token reduction, so this is transport/response preservation proof, not a compression-ratio benchmark. Additional validation: SDK tests **406 passed, 33 skipped**; typecheck and ESM/CJS/declaration build pass; `npm audit --json` reports zero vulnerabilities. The Python proof passes Ruff lint/format, the Node proof passes `node --check`, and whitespace checks pass. Untested: live vendor credentials/models, streaming responses, async credential failures/refresh races, actual token reduction on long inputs, browser environments, other platforms, new native OpenAI agent/image/organization APIs, and the 33 skipped tests. Current-head hosted CI remains required. --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: JerrettDavis <mxjerrett@gmail.com> |
||
|
|
cd5e2b9e73 |
fix(sdk): send Anthropic messages to /v1/compress natively so thinking blocks survive (#4489)
## Description The TypeScript SDK's Anthropic adapter converts every request to OpenAI chat shape before `/v1/compress` and back afterwards. The converters only model `text`, `tool_use`, `tool_result`, `image` and `document`, so an assistant turn's **`thinking` and `redacted_thinking` blocks are dropped**, `cache_control` markers on text blocks are lost, server-tool blocks vanish, and a `tool_result` whose content is a block array is flattened to text (an image inside it becomes a JSON string). `compress()` does the same for Anthropic-format input. Anthropic requires the thinking blocks back during a tool-use turn. From the Thinking docs: "**Required:** within a tool-use turn, pass thinking blocks back" and "Within the latest assistant message, the sequence of consecutive `thinking` blocks must match what the model generated in the original request: you can't rearrange, edit, or partially drop them. This includes `redacted_thinking` blocks." The tool-workflows page: "rebuilding the message or filtering out `redacted_thinking` blocks triggers a 400 error." So a thinking-enabled tool-use turn through `withHeadroom(anthropic)` reaches Anthropic with its `tool_use` block but no thinking block. Verified on `main` through the public converters (the adapter's exact path): ```text assistant blocks in : thinking, redacted_thinking, text, tool_use assistant blocks out: text, tool_use user cache_control kept: false ``` The conversion is unnecessary. Since #2743 (0.34.0) `/v1/compress` "does no format conversion — callers send whichever wire shape they already use"; the proxy docs list "content-block lists with `tool_use` / `tool_result` / `thinking` blocks" among the natively compressed shapes and say "an Anthropic-native caller does not need to convert to OpenAI format first". The adapter page itself called the conversion "an SDK choice, not an API requirement" while also calling it lossless. This PR stops converting: the adapter and `compress()` send Anthropic messages to the proxy as they are and forward what comes back. Closes # (none — found while sweeping the converters after #4048) ## Type of Change - [x] Bug fix (non-breaking change that fixes an issue) - [ ] New feature (non-breaking change that adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [x] Documentation update - [ ] Performance improvement - [ ] Code refactoring (no functional changes) ## Changes Made - **`sdk/typescript/src/adapters/anthropic.ts`** — no conversion: `compress(params.messages, …)` and forward `result.messages` (or the original messages on fallback, as before). The converter imports go away. - **`sdk/typescript/src/compress.ts`** — when the detected format is `anthropic`, the messages go to the proxy unconverted and the proxy's messages are returned unconverted; every other format still goes through `toOpenAI` / `fromOpenAI`. `hooks.computeBiases` receives the messages exactly as they are sent to the proxy. - **`sdk/typescript/src/utils/format.ts`** — `detectFormat` treats `thinking` / `redacted_thinking` blocks as Anthropic markers (a thinking-only turn used to fall through to the OpenAI default). `anthropicToOpenAI` / `openAIToAnthropic` are unchanged and still exported. - **Tests** — `test/adapters/anthropic.test.ts` rewritten for native pass-through: a thinking-enabled tool-use turn (user text with `cache_control`, assistant `thinking` + `redacted_thinking` + `text` + `tool_use`, array `tool_result` with an image) is posted unchanged and the proxy's returned messages are forwarded unchanged; tool_use/tool_result and image turns likewise; fallback unchanged. `test/compress.test.ts`: native round trip for Anthropic input, and the #4048 document-only case now asserts the native document block. `test/utils/detect-format.test.ts`: thinking / redacted_thinking detection. - **`docs/content/docs/anthropic-sdk.mdx`** — "How it works" describes the native path; the conversion table, the "This conversion is lossless" claim and the "SDK choice" callout are replaced by what is actually preserved. **Not in this PR.** `simulate()` still converts Anthropic input (a dry run; nothing reaches Anthropic). The Vercel middleware drops `reasoning` parts and `providerOptions` the same way, and the Gemini converter merges `thought` parts into text; both need carriers because the proxy cannot read those shapes, so they are separate PRs. ## Testing - [x] Unit tests pass (`npm test` — vitest, incl. typecheck) - [x] Type checking passes (`npm run typecheck` — tsc --noEmit) - [x] Build passes (`npm run build` — tsup) - [x] New tests added for new functionality - [x] Manual testing performed (below) ### Test Output ```text $ cd sdk/typescript && npm test Test Files 19 passed | 5 skipped (24) Tests 406 passed | 33 skipped (439) Type Errors no errors $ npm run typecheck # tsc --noEmit — clean $ npm run build # tsup — ESM, CJS and DTS built ``` ## Real Behavior Proof - Environment: published proxy `headroom-ai 0.41.0` (`uvx --from 'headroom-ai[proxy]' headroom proxy --port 8799`), this branch built with `npm run build`, Node v22.16.0, macOS. - Exact command / steps: one three-message conversation — a user text block with `cache_control`, an assistant turn `[thinking, redacted_thinking, text, tool_use]`, and a `tool_result` carrying a 72 KB JSON log — sent (a) through the public converters, which is what the adapter did before, (b) through `withHeadroom()` wrapping a fake client that captures the forwarded params, (c) through `compress()`. - Observed result: before the change the conversion dropped both thinking blocks and the `cache_control` marker; after it, the assistant and user turns came back from the live proxy byte-identical while the `tool_result` shrank from 72 432 to 34 916 chars (14 781 tokens saved). Full output: ```text == before: toOpenAI -> fromOpenAI (what the adapter used to do) == assistant blocks in : thinking, redacted_thinking, text, tool_use assistant blocks out: text, tool_use user cache_control kept: false == after: withHeadroom(anthropic) against the live proxy == assistant turn byte-identical (thinking, redacted_thinking, text, tool_use): true user turn byte-identical (cache_control kept): true tool_result content: 72432 -> 34916 chars, still a tool_result block: true compress(): tokensBefore=30471 tokensAfter=15690 tokensSaved=14781 transforms=["router:tool_result:mixed"] compress() result thinking block byte-identical: true ``` The same tool result sent in OpenAI shape (`role: "tool"`) saves the same 14 781 tokens (`router:mixed:0.39`), so the native path compresses no less than the converted one did. - Not tested: an end-to-end request to the Anthropic API with thinking enabled (no key in this environment); the 400 is taken from Anthropic's documentation quoted above. ## Runtime Rollout Safety - Rollout-managed feature(s): none (TypeScript SDK only, no proxy change) - Minimum rollout channel: n/a - Stable/default behavior changed: for SDK users, Anthropic messages now reach `/v1/compress` in Anthropic shape; the proxy has compressed that shape natively since 0.34.0. - Kill switch / disable path: unchanged — `fallback: true` forwards the original messages when the proxy is unreachable; unwrap the client to disable compression. - Unsafe override required: no - Qualification impact: none - Rollback path: revert this PR ## Review Readiness - [x] I have performed a self-review - [x] This PR is ready for human review ## Checklist - [x] My code follows the project's style guidelines - [x] I have performed a self-review of my code - [x] I have commented my code, particularly in hard-to-understand areas - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [x] I did **not** edit `CHANGELOG.md` — it is generated by release-please from my Conventional Commit PR title (a CI guard enforces this) ## Screenshots (if applicable) N/A ## Additional Notes - Token counts for Claude models now come from the proxy's per-model tokenizer registry instead of being counted on an OpenAI-shaped copy, so `tokensBefore` / `tokensAfter` for the Anthropic adapter may differ slightly from previous versions. - Follow-ups, each its own PR: Vercel `reasoning` parts and `providerOptions` (Anthropic signatures, Gemini `thoughtSignature`, OpenAI `itemId`), and Gemini `thought` parts / `thoughtSignature`. Co-authored-by: JD Davis <mxjerrett@gmail.com> |
||
|
|
6c3d747507 |
chore(sdk-typescript): npm metadata and the proxy requirement up front (#4536)
## Description
The npm page for `headroom-ai` shows a one-line description and nothing
else: no keywords, repository, homepage or bugs, so the registry cannot
link the source (or an `AGENTS.md`) and search finds the package only by
name. The README mentioned the proxy requirement only after the Quick
Start snippet.
## Type of Change
- [x] Documentation update
## Changes Made
- `sdk/typescript/package.json`: job-word `description`, `keywords`,
`homepage`, `repository` (with `directory`), `bugs`. No dependency
changes.
- `sdk/typescript/README.md`: title names the install name; "Requires
the Headroom proxy" plus its install command moved to the first screen;
the old trailing sentence replaced with a `baseUrl` pointer (matches
`src/client.ts`: `options.baseUrl ?? HEADROOM_BASE_URL ?? default`).
## Testing
- [x] Manual testing performed: `node -e
"require('./sdk/typescript/package.json')"` parses;
`repository.directory` and 16 keywords present.
### Test Output
```text
node -e "require('./sdk/typescript/package.json')": parsed; repository.directory=sdk/typescript, 16 keywords, homepage=https://docs.headroomlabs.ai/docs/quickstart
```
## Real Behavior Proof
- Environment: macOS, Node 26.
- Exact command / steps: parse the edited manifest with Node; diff the
README.
- Observed result: valid JSON, fields as listed. Takes effect on
npmjs.com with the next publish.
- Not tested: `npm publish` (release workflow).
## Runtime Rollout Safety
- Rollout-managed feature(s): none; documentation and metadata only, no
runtime code path changes
- Minimum rollout channel: n/a
- Stable/default behavior changed: no
- Kill switch / disable path: n/a (revert the PR)
- Unsafe override required: no
- Qualification impact: none
- Rollback path: revert the commit
## Review Readiness
- [x] I have performed a self-review
- [x] This PR is ready for human review
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Co-authored-by: JerrettDavis <mxjerrett@gmail.com>
|
||
|
|
f367728051 |
deps: Bump the npm-minor-patch group across 3 directories with 9 updates (#4495)
Bumps the npm-minor-patch group with 2 updates in the /plugins/openclaw directory: headroom-ai and [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest). Bumps the npm-minor-patch group with 3 updates in the /plugins/opencode directory: headroom-ai, [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) and [@opencode/plugin](https://github.com/anomalyco/opencode). Bumps the npm-minor-patch group with 7 updates in the /sdk/typescript directory: | Package | From | To | | --- | --- | --- | | [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) | `5.0.3` | `5.0.5` | | [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) | `5.0.3` | `5.0.5` | | [@ai-sdk/anthropic](https://github.com/vercel/ai/tree/HEAD/packages/anthropic) | `4.0.78` | `4.0.87` | | [@ai-sdk/openai](https://github.com/vercel/ai/tree/HEAD/packages/openai) | `4.0.91` | `4.0.101` | | [@ai-sdk/provider](https://github.com/vercel/ai/tree/HEAD/packages/provider) | `4.0.26` | `4.0.33` | | [ai](https://github.com/vercel/ai/tree/HEAD/packages/ai) | `7.0.137` | `7.0.152` | | [dotenv](https://github.com/motdotla/dotenv) | `18.0.7` | `18.0.9` | | [openai](https://github.com/openai/openai-node) | `7.32.0` | `7.43.0` | | [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) | `5.0.3` | `5.0.5` | Updates `headroom-ai` from 0.40.0 to 0.41.0 Updates `vitest` from 5.0.3 to 5.0.5 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/vitest-dev/vitest/releases">vitest's releases</a>.</em></p> <blockquote> <h2>v5.0.5</h2> <h3> 🐞 Bug Fixes</h3> <ul> <li>Keep vite default <code>fs.deny</code> with api token file - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Claude Opus 5.5</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11578">vitest-dev/vitest#11578</a> <a href="https://github.com/vitest-dev/vitest/commit/28dc1edfb"><!-- raw HTML omitted -->(28dc1)<!-- raw HTML omitted --></a></li> <li>Handle quoted file names in <code>--changed</code> - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11583">vitest-dev/vitest#11583</a> <a href="https://github.com/vitest-dev/vitest/commit/14921e962"><!-- raw HTML omitted -->(14921)<!-- raw HTML omitted --></a></li> <li>Add <code>data</code> to the <code>import.meta.hot</code> stub - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11590">vitest-dev/vitest#11590</a> <a href="https://github.com/vitest-dev/vitest/commit/3a8289ac3"><!-- raw HTML omitted -->(3a828)<!-- raw HTML omitted --></a></li> <li>Set <code>skip</code> in <code>skipIf</code>, ignore <code>undefined</code> options - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11591">vitest-dev/vitest#11591</a> <a href="https://github.com/vitest-dev/vitest/commit/d523a15f2"><!-- raw HTML omitted -->(d523a)<!-- raw HTML omitted --></a></li> <li>Skip builtin loading in async leak detector - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11598">vitest-dev/vitest#11598</a> <a href="https://github.com/vitest-dev/vitest/commit/fe86a64c6"><!-- raw HTML omitted -->(fe86a)<!-- raw HTML omitted --></a></li> <li>Keep the import frame in native loader errors - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11599">vitest-dev/vitest#11599</a> <a href="https://github.com/vitest-dev/vitest/commit/9697b3894"><!-- raw HTML omitted -->(9697b)<!-- raw HTML omitted --></a></li> <li>Run hook cleanups when a later hook fails - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11605">vitest-dev/vitest#11605</a> <a href="https://github.com/vitest-dev/vitest/commit/6c5a44720"><!-- raw HTML omitted -->(6c5a4)<!-- raw HTML omitted --></a></li> <li>Release mocks of finished test files - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11607">vitest-dev/vitest#11607</a> <a href="https://github.com/vitest-dev/vitest/commit/e9c3d72f0"><!-- raw HTML omitted -->(e9c3d)<!-- raw HTML omitted --></a></li> <li>Abort all running tests on cancel - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11606">vitest-dev/vitest#11606</a> <a href="https://github.com/vitest-dev/vitest/commit/6621a72d6"><!-- raw HTML omitted -->(6621a)<!-- raw HTML omitted --></a></li> <li><strong>browser</strong>: <ul> <li>Ignore synthetic pagehide events - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11582">vitest-dev/vitest#11582</a> <a href="https://github.com/vitest-dev/vitest/commit/ca0813584"><!-- raw HTML omitted -->(ca081)<!-- raw HTML omitted --></a></li> <li>Run plugin buildStart on server creation - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11593">vitest-dev/vitest#11593</a> <a href="https://github.com/vitest-dev/vitest/commit/ea611e44c"><!-- raw HTML omitted -->(ea611)<!-- raw HTML omitted --></a></li> <li>Drop late connections of closed sessions - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11600">vitest-dev/vitest#11600</a> <a href="https://github.com/vitest-dev/vitest/commit/f161e6df2"><!-- raw HTML omitted -->(f161e)<!-- raw HTML omitted --></a></li> <li>Wait 30s for the browser to close - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11601">vitest-dev/vitest#11601</a> <a href="https://github.com/vitest-dev/vitest/commit/6498b666a"><!-- raw HTML omitted -->(6498b)<!-- raw HTML omitted --></a></li> <li>Run global setup once with instances - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11596">vitest-dev/vitest#11596</a> <a href="https://github.com/vitest-dev/vitest/commit/8dd67c262"><!-- raw HTML omitted -->(8dd67)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>reporter</strong>: <ul> <li>End reason <code>&[#39](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/39);failed&[#39](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/39);</code> on worker crash - by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11568">vitest-dev/vitest#11568</a> <a href="https://github.com/vitest-dev/vitest/commit/6ae8e89ff"><!-- raw HTML omitted -->(6ae8e)<!-- raw HTML omitted --></a></li> </ul> </li> </ul> <h5> <a href="https://github.com/vitest-dev/vitest/compare/v5.0.4...v5.0.5">View changes on GitHub</a></h5> <h2>v5.0.4</h2> <h3> 🚀 Features</h3> <ul> <li><strong>experimental</strong>: <ul> <li>Tag cache directories with CACHEDIR.TAG - by <a href="https://github.com/lifeiscontent"><code>@lifeiscontent</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11461">vitest-dev/vitest#11461</a> <a href="https://github.com/vitest-dev/vitest/commit/a8ea3c8fd"><!-- raw HTML omitted -->(a8ea3)<!-- raw HTML omitted --></a></li> <li>Support <code>test.ui.theme</code> option - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11499">vitest-dev/vitest#11499</a> <a href="https://github.com/vitest-dev/vitest/commit/1da66405d"><!-- raw HTML omitted -->(1da66)<!-- raw HTML omitted --></a></li> <li>Highlight selector multiple matches in trace view - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Claude Opus 5.5</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11489">vitest-dev/vitest#11489</a> <a href="https://github.com/vitest-dev/vitest/commit/5abba1e1b"><!-- raw HTML omitted -->(5abba)<!-- raw HTML omitted --></a></li> <li>Print how many tests were affected and a total when running <code>--changed</code> - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11424">vitest-dev/vitest#11424</a> <a href="https://github.com/vitest-dev/vitest/commit/a23368585"><!-- raw HTML omitted -->(a2336)<!-- raw HTML omitted --></a></li> <li>Add an option to cache dependencies instead of statically parsing them - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11515">vitest-dev/vitest#11515</a> <a href="https://github.com/vitest-dev/vitest/commit/c06012ac8"><!-- raw HTML omitted -->(c0601)<!-- raw HTML omitted --></a></li> <li>Add fit and zoom controls to trace viewer - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Claude Opus 5.5</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11490">vitest-dev/vitest#11490</a> <a href="https://github.com/vitest-dev/vitest/commit/f5dd99ed0"><!-- raw HTML omitted -->(f5dd9)<!-- raw HTML omitted --></a></li> </ul> </li> </ul> <h3> 🐞 Bug Fixes</h3> <ul> <li>Fail the run on git and location filter errors - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11430">vitest-dev/vitest#11430</a> <a href="https://github.com/vitest-dev/vitest/commit/30d0304d2"><!-- raw HTML omitted -->(30d03)<!-- raw HTML omitted --></a></li> <li>Enable fsModuleCache by default - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11435">vitest-dev/vitest#11435</a> <a href="https://github.com/vitest-dev/vitest/commit/ad208cc29"><!-- raw HTML omitted -->(ad208)<!-- raw HTML omitted --></a></li> <li>Track project files and mocks with --changed - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11432">vitest-dev/vitest#11432</a> <a href="https://github.com/vitest-dev/vitest/commit/b0f2b3bb9"><!-- raw HTML omitted -->(b0f2b)<!-- raw HTML omitted --></a></li> <li>Refactor caching, fix <code>:</code> in project and change the shape of <code>results</code> cache - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11453">vitest-dev/vitest#11453</a> <a href="https://github.com/vitest-dev/vitest/commit/9673c49a4"><!-- raw HTML omitted -->(9673c)<!-- raw HTML omitted --></a></li> <li>Keep full <code>$</code> string values when <code>taskTitleValueFormatTruncate</code> is 0 - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Claude Opus 5.5</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11485">vitest-dev/vitest#11485</a> <a href="https://github.com/vitest-dev/vitest/commit/4f7e1799b"><!-- raw HTML omitted -->(4f7e1)<!-- raw HTML omitted --></a></li> <li>Resolve node builtins in client environments - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11417">vitest-dev/vitest#11417</a> <a href="https://github.com/vitest-dev/vitest/commit/56b319ac6"><!-- raw HTML omitted -->(56b31)<!-- raw HTML omitted --></a></li> <li>Fix module graph builtin externals after <a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11421">#11421</a> - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Claude Opus 5.5</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11491">vitest-dev/vitest#11491</a> and <a href="https://redirect.github.com/vitest-dev/vitest/issues/11421">vitest-dev/vitest#11421</a> <a href="https://github.com/vitest-dev/vitest/commit/008e184cb"><!-- raw HTML omitted -->(008e1)<!-- raw HTML omitted --></a></li> <li>Wrap module mocks during in-source testing - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11505">vitest-dev/vitest#11505</a> <a href="https://github.com/vitest-dev/vitest/commit/36d19cb00"><!-- raw HTML omitted -->(36d19)<!-- raw HTML omitted --></a></li> <li>Handle line endings in snapshot - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11522">vitest-dev/vitest#11522</a> <a href="https://github.com/vitest-dev/vitest/commit/4c468aa40"><!-- raw HTML omitted -->(4c468)<!-- raw HTML omitted --></a></li> <li>Respect root in projects - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11521">vitest-dev/vitest#11521</a> <a href="https://github.com/vitest-dev/vitest/commit/26642f793"><!-- raw HTML omitted -->(26642)<!-- raw HTML omitted --></a></li> <li>Resolve mocks in directories with spaces - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11539">vitest-dev/vitest#11539</a> <a href="https://github.com/vitest-dev/vitest/commit/caaef9416"><!-- raw HTML omitted -->(caaef)<!-- raw HTML omitted --></a></li> <li><strong>api</strong>: <ul> <li>Publish the api token atomically - by <a href="https://github.com/umairnawaz333"><code>@umairnawaz333</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11323">vitest-dev/vitest#11323</a> <a href="https://github.com/vitest-dev/vitest/commit/6f990fef1"><!-- raw HTML omitted -->(6f990)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>browser</strong>:</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/vitest-dev/vitest/commit/7a825db43e2beca0b219d2eadaec334cb81af0c7"><code>7a825db</code></a> chore: release v5.0.5 (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11609">#11609</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/6621a72d6ed371e43f80ff327f5063693bd6b1ad"><code>6621a72</code></a> fix: abort all running tests on cancel (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11606">#11606</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/e9c3d72f0c8d6867de06a3df43ea28a05eeec444"><code>e9c3d72</code></a> fix: release mocks of finished test files (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11607">#11607</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/8dd67c2625943d824e257b87ae57a14094e90eed"><code>8dd67c2</code></a> fix(browser): run global setup once with instances (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11596">#11596</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/6c5a447203a29a0708fbc5de4fb91ea501bdc395"><code>6c5a447</code></a> fix: run hook cleanups when a later hook fails (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11605">#11605</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/9697b3894f456b85db91f3824ebe833449305c04"><code>9697b38</code></a> fix: keep the import frame in native loader errors (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11599">#11599</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/6498b666a3ae8961f6f2a8abdc89015b6fd0b3aa"><code>6498b66</code></a> fix(browser): wait 30s for the browser to close (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11601">#11601</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/f161e6df2b3c0bc84982d374094379139e380791"><code>f161e6d</code></a> fix(browser): drop late connections of closed sessions (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11600">#11600</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/fe86a64c6c6aa75481bffe5880b5c4e35ea67927"><code>fe86a64</code></a> fix: skip builtin loading in async leak detector (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11598">#11598</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/6ae8e89ff0734cf476e30186a83aebe6771aa330"><code>6ae8e89</code></a> fix(reporter): end reason <code>'failed'</code> on worker crash (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11568">#11568</a>)</li> <li>Additional commits viewable in <a href="https://github.com/vitest-dev/vitest/commits/v5.0.5/packages/vitest">compare view</a></li> </ul> </details> <br /> Updates `headroom-ai` from 0.40.0 to 0.41.0 Updates `vitest` from 5.0.3 to 5.0.5 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/vitest-dev/vitest/releases">vitest's releases</a>.</em></p> <blockquote> <h2>v5.0.5</h2> <h3> 🐞 Bug Fixes</h3> <ul> <li>Keep vite default <code>fs.deny</code> with api token file - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Claude Opus 5.5</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11578">vitest-dev/vitest#11578</a> <a href="https://github.com/vitest-dev/vitest/commit/28dc1edfb"><!-- raw HTML omitted -->(28dc1)<!-- raw HTML omitted --></a></li> <li>Handle quoted file names in <code>--changed</code> - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11583">vitest-dev/vitest#11583</a> <a href="https://github.com/vitest-dev/vitest/commit/14921e962"><!-- raw HTML omitted -->(14921)<!-- raw HTML omitted --></a></li> <li>Add <code>data</code> to the <code>import.meta.hot</code> stub - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11590">vitest-dev/vitest#11590</a> <a href="https://github.com/vitest-dev/vitest/commit/3a8289ac3"><!-- raw HTML omitted -->(3a828)<!-- raw HTML omitted --></a></li> <li>Set <code>skip</code> in <code>skipIf</code>, ignore <code>undefined</code> options - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11591">vitest-dev/vitest#11591</a> <a href="https://github.com/vitest-dev/vitest/commit/d523a15f2"><!-- raw HTML omitted -->(d523a)<!-- raw HTML omitted --></a></li> <li>Skip builtin loading in async leak detector - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11598">vitest-dev/vitest#11598</a> <a href="https://github.com/vitest-dev/vitest/commit/fe86a64c6"><!-- raw HTML omitted -->(fe86a)<!-- raw HTML omitted --></a></li> <li>Keep the import frame in native loader errors - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11599">vitest-dev/vitest#11599</a> <a href="https://github.com/vitest-dev/vitest/commit/9697b3894"><!-- raw HTML omitted -->(9697b)<!-- raw HTML omitted --></a></li> <li>Run hook cleanups when a later hook fails - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11605">vitest-dev/vitest#11605</a> <a href="https://github.com/vitest-dev/vitest/commit/6c5a44720"><!-- raw HTML omitted -->(6c5a4)<!-- raw HTML omitted --></a></li> <li>Release mocks of finished test files - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11607">vitest-dev/vitest#11607</a> <a href="https://github.com/vitest-dev/vitest/commit/e9c3d72f0"><!-- raw HTML omitted -->(e9c3d)<!-- raw HTML omitted --></a></li> <li>Abort all running tests on cancel - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11606">vitest-dev/vitest#11606</a> <a href="https://github.com/vitest-dev/vitest/commit/6621a72d6"><!-- raw HTML omitted -->(6621a)<!-- raw HTML omitted --></a></li> <li><strong>browser</strong>: <ul> <li>Ignore synthetic pagehide events - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11582">vitest-dev/vitest#11582</a> <a href="https://github.com/vitest-dev/vitest/commit/ca0813584"><!-- raw HTML omitted -->(ca081)<!-- raw HTML omitted --></a></li> <li>Run plugin buildStart on server creation - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11593">vitest-dev/vitest#11593</a> <a href="https://github.com/vitest-dev/vitest/commit/ea611e44c"><!-- raw HTML omitted -->(ea611)<!-- raw HTML omitted --></a></li> <li>Drop late connections of closed sessions - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11600">vitest-dev/vitest#11600</a> <a href="https://github.com/vitest-dev/vitest/commit/f161e6df2"><!-- raw HTML omitted -->(f161e)<!-- raw HTML omitted --></a></li> <li>Wait 30s for the browser to close - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11601">vitest-dev/vitest#11601</a> <a href="https://github.com/vitest-dev/vitest/commit/6498b666a"><!-- raw HTML omitted -->(6498b)<!-- raw HTML omitted --></a></li> <li>Run global setup once with instances - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11596">vitest-dev/vitest#11596</a> <a href="https://github.com/vitest-dev/vitest/commit/8dd67c262"><!-- raw HTML omitted -->(8dd67)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>reporter</strong>: <ul> <li>End reason <code>&[#39](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/39);failed&[#39](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/39);</code> on worker crash - by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11568">vitest-dev/vitest#11568</a> <a href="https://github.com/vitest-dev/vitest/commit/6ae8e89ff"><!-- raw HTML omitted -->(6ae8e)<!-- raw HTML omitted --></a></li> </ul> </li> </ul> <h5> <a href="https://github.com/vitest-dev/vitest/compare/v5.0.4...v5.0.5">View changes on GitHub</a></h5> <h2>v5.0.4</h2> <h3> 🚀 Features</h3> <ul> <li><strong>experimental</strong>: <ul> <li>Tag cache directories with CACHEDIR.TAG - by <a href="https://github.com/lifeiscontent"><code>@lifeiscontent</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11461">vitest-dev/vitest#11461</a> <a href="https://github.com/vitest-dev/vitest/commit/a8ea3c8fd"><!-- raw HTML omitted -->(a8ea3)<!-- raw HTML omitted --></a></li> <li>Support <code>test.ui.theme</code> option - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11499">vitest-dev/vitest#11499</a> <a href="https://github.com/vitest-dev/vitest/commit/1da66405d"><!-- raw HTML omitted -->(1da66)<!-- raw HTML omitted --></a></li> <li>Highlight selector multiple matches in trace view - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Claude Opus 5.5</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11489">vitest-dev/vitest#11489</a> <a href="https://github.com/vitest-dev/vitest/commit/5abba1e1b"><!-- raw HTML omitted -->(5abba)<!-- raw HTML omitted --></a></li> <li>Print how many tests were affected and a total when running <code>--changed</code> - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11424">vitest-dev/vitest#11424</a> <a href="https://github.com/vitest-dev/vitest/commit/a23368585"><!-- raw HTML omitted -->(a2336)<!-- raw HTML omitted --></a></li> <li>Add an option to cache dependencies instead of statically parsing them - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11515">vitest-dev/vitest#11515</a> <a href="https://github.com/vitest-dev/vitest/commit/c06012ac8"><!-- raw HTML omitted -->(c0601)<!-- raw HTML omitted --></a></li> <li>Add fit and zoom controls to trace viewer - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Claude Opus 5.5</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11490">vitest-dev/vitest#11490</a> <a href="https://github.com/vitest-dev/vitest/commit/f5dd99ed0"><!-- raw HTML omitted -->(f5dd9)<!-- raw HTML omitted --></a></li> </ul> </li> </ul> <h3> 🐞 Bug Fixes</h3> <ul> <li>Fail the run on git and location filter errors - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11430">vitest-dev/vitest#11430</a> <a href="https://github.com/vitest-dev/vitest/commit/30d0304d2"><!-- raw HTML omitted -->(30d03)<!-- raw HTML omitted --></a></li> <li>Enable fsModuleCache by default - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11435">vitest-dev/vitest#11435</a> <a href="https://github.com/vitest-dev/vitest/commit/ad208cc29"><!-- raw HTML omitted -->(ad208)<!-- raw HTML omitted --></a></li> <li>Track project files and mocks with --changed - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11432">vitest-dev/vitest#11432</a> <a href="https://github.com/vitest-dev/vitest/commit/b0f2b3bb9"><!-- raw HTML omitted -->(b0f2b)<!-- raw HTML omitted --></a></li> <li>Refactor caching, fix <code>:</code> in project and change the shape of <code>results</code> cache - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11453">vitest-dev/vitest#11453</a> <a href="https://github.com/vitest-dev/vitest/commit/9673c49a4"><!-- raw HTML omitted -->(9673c)<!-- raw HTML omitted --></a></li> <li>Keep full <code>$</code> string values when <code>taskTitleValueFormatTruncate</code> is 0 - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Claude Opus 5.5</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11485">vitest-dev/vitest#11485</a> <a href="https://github.com/vitest-dev/vitest/commit/4f7e1799b"><!-- raw HTML omitted -->(4f7e1)<!-- raw HTML omitted --></a></li> <li>Resolve node builtins in client environments - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11417">vitest-dev/vitest#11417</a> <a href="https://github.com/vitest-dev/vitest/commit/56b319ac6"><!-- raw HTML omitted -->(56b31)<!-- raw HTML omitted --></a></li> <li>Fix module graph builtin externals after <a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11421">#11421</a> - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Claude Opus 5.5</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11491">vitest-dev/vitest#11491</a> and <a href="https://redirect.github.com/vitest-dev/vitest/issues/11421">vitest-dev/vitest#11421</a> <a href="https://github.com/vitest-dev/vitest/commit/008e184cb"><!-- raw HTML omitted -->(008e1)<!-- raw HTML omitted --></a></li> <li>Wrap module mocks during in-source testing - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11505">vitest-dev/vitest#11505</a> <a href="https://github.com/vitest-dev/vitest/commit/36d19cb00"><!-- raw HTML omitted -->(36d19)<!-- raw HTML omitted --></a></li> <li>Handle line endings in snapshot - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11522">vitest-dev/vitest#11522</a> <a href="https://github.com/vitest-dev/vitest/commit/4c468aa40"><!-- raw HTML omitted -->(4c468)<!-- raw HTML omitted --></a></li> <li>Respect root in projects - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11521">vitest-dev/vitest#11521</a> <a href="https://github.com/vitest-dev/vitest/commit/26642f793"><!-- raw HTML omitted -->(26642)<!-- raw HTML omitted --></a></li> <li>Resolve mocks in directories with spaces - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11539">vitest-dev/vitest#11539</a> <a href="https://github.com/vitest-dev/vitest/commit/caaef9416"><!-- raw HTML omitted -->(caaef)<!-- raw HTML omitted --></a></li> <li><strong>api</strong>: <ul> <li>Publish the api token atomically - by <a href="https://github.com/umairnawaz333"><code>@umairnawaz333</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11323">vitest-dev/vitest#11323</a> <a href="https://github.com/vitest-dev/vitest/commit/6f990fef1"><!-- raw HTML omitted -->(6f990)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>browser</strong>:</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/vitest-dev/vitest/commit/7a825db43e2beca0b219d2eadaec334cb81af0c7"><code>7a825db</code></a> chore: release v5.0.5 (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11609">#11609</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/6621a72d6ed371e43f80ff327f5063693bd6b1ad"><code>6621a72</code></a> fix: abort all running tests on cancel (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11606">#11606</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/e9c3d72f0c8d6867de06a3df43ea28a05eeec444"><code>e9c3d72</code></a> fix: release mocks of finished test files (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11607">#11607</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/8dd67c2625943d824e257b87ae57a14094e90eed"><code>8dd67c2</code></a> fix(browser): run global setup once with instances (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11596">#11596</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/6c5a447203a29a0708fbc5de4fb91ea501bdc395"><code>6c5a447</code></a> fix: run hook cleanups when a later hook fails (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11605">#11605</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/9697b3894f456b85db91f3824ebe833449305c04"><code>9697b38</code></a> fix: keep the import frame in native loader errors (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11599">#11599</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/6498b666a3ae8961f6f2a8abdc89015b6fd0b3aa"><code>6498b66</code></a> fix(browser): wait 30s for the browser to close (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11601">#11601</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/f161e6df2b3c0bc84982d374094379139e380791"><code>f161e6d</code></a> fix(browser): drop late connections of closed sessions (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11600">#11600</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/fe86a64c6c6aa75481bffe5880b5c4e35ea67927"><code>fe86a64</code></a> fix: skip builtin loading in async leak detector (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11598">#11598</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/6ae8e89ff0734cf476e30186a83aebe6771aa330"><code>6ae8e89</code></a> fix(reporter): end reason <code>'failed'</code> on worker crash (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11568">#11568</a>)</li> <li>Additional commits viewable in <a href="https://github.com/vitest-dev/vitest/commits/v5.0.5/packages/vitest">compare view</a></li> </ul> </details> <br /> Updates `vitest` from 5.0.3 to 5.0.5 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/vitest-dev/vitest/releases">vitest's releases</a>.</em></p> <blockquote> <h2>v5.0.5</h2> <h3> 🐞 Bug Fixes</h3> <ul> <li>Keep vite default <code>fs.deny</code> with api token file - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Claude Opus 5.5</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11578">vitest-dev/vitest#11578</a> <a href="https://github.com/vitest-dev/vitest/commit/28dc1edfb"><!-- raw HTML omitted -->(28dc1)<!-- raw HTML omitted --></a></li> <li>Handle quoted file names in <code>--changed</code> - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11583">vitest-dev/vitest#11583</a> <a href="https://github.com/vitest-dev/vitest/commit/14921e962"><!-- raw HTML omitted -->(14921)<!-- raw HTML omitted --></a></li> <li>Add <code>data</code> to the <code>import.meta.hot</code> stub - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11590">vitest-dev/vitest#11590</a> <a href="https://github.com/vitest-dev/vitest/commit/3a8289ac3"><!-- raw HTML omitted -->(3a828)<!-- raw HTML omitted --></a></li> <li>Set <code>skip</code> in <code>skipIf</code>, ignore <code>undefined</code> options - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11591">vitest-dev/vitest#11591</a> <a href="https://github.com/vitest-dev/vitest/commit/d523a15f2"><!-- raw HTML omitted -->(d523a)<!-- raw HTML omitted --></a></li> <li>Skip builtin loading in async leak detector - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11598">vitest-dev/vitest#11598</a> <a href="https://github.com/vitest-dev/vitest/commit/fe86a64c6"><!-- raw HTML omitted -->(fe86a)<!-- raw HTML omitted --></a></li> <li>Keep the import frame in native loader errors - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11599">vitest-dev/vitest#11599</a> <a href="https://github.com/vitest-dev/vitest/commit/9697b3894"><!-- raw HTML omitted -->(9697b)<!-- raw HTML omitted --></a></li> <li>Run hook cleanups when a later hook fails - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11605">vitest-dev/vitest#11605</a> <a href="https://github.com/vitest-dev/vitest/commit/6c5a44720"><!-- raw HTML omitted -->(6c5a4)<!-- raw HTML omitted --></a></li> <li>Release mocks of finished test files - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11607">vitest-dev/vitest#11607</a> <a href="https://github.com/vitest-dev/vitest/commit/e9c3d72f0"><!-- raw HTML omitted -->(e9c3d)<!-- raw HTML omitted --></a></li> <li>Abort all running tests on cancel - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11606">vitest-dev/vitest#11606</a> <a href="https://github.com/vitest-dev/vitest/commit/6621a72d6"><!-- raw HTML omitted -->(6621a)<!-- raw HTML omitted --></a></li> <li><strong>browser</strong>: <ul> <li>Ignore synthetic pagehide events - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11582">vitest-dev/vitest#11582</a> <a href="https://github.com/vitest-dev/vitest/commit/ca0813584"><!-- raw HTML omitted -->(ca081)<!-- raw HTML omitted --></a></li> <li>Run plugin buildStart on server creation - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11593">vitest-dev/vitest#11593</a> <a href="https://github.com/vitest-dev/vitest/commit/ea611e44c"><!-- raw HTML omitted -->(ea611)<!-- raw HTML omitted --></a></li> <li>Drop late connections of closed sessions - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11600">vitest-dev/vitest#11600</a> <a href="https://github.com/vitest-dev/vitest/commit/f161e6df2"><!-- raw HTML omitted -->(f161e)<!-- raw HTML omitted --></a></li> <li>Wait 30s for the browser to close - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11601">vitest-dev/vitest#11601</a> <a href="https://github.com/vitest-dev/vitest/commit/6498b666a"><!-- raw HTML omitted -->(6498b)<!-- raw HTML omitted --></a></li> <li>Run global setup once with instances - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11596">vitest-dev/vitest#11596</a> <a href="https://github.com/vitest-dev/vitest/commit/8dd67c262"><!-- raw HTML omitted -->(8dd67)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>reporter</strong>: <ul> <li>End reason <code>&[#39](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/39);failed&[#39](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/39);</code> on worker crash - by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11568">vitest-dev/vitest#11568</a> <a href="https://github.com/vitest-dev/vitest/commit/6ae8e89ff"><!-- raw HTML omitted -->(6ae8e)<!-- raw HTML omitted --></a></li> </ul> </li> </ul> <h5> <a href="https://github.com/vitest-dev/vitest/compare/v5.0.4...v5.0.5">View changes on GitHub</a></h5> <h2>v5.0.4</h2> <h3> 🚀 Features</h3> <ul> <li><strong>experimental</strong>: <ul> <li>Tag cache directories with CACHEDIR.TAG - by <a href="https://github.com/lifeiscontent"><code>@lifeiscontent</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11461">vitest-dev/vitest#11461</a> <a href="https://github.com/vitest-dev/vitest/commit/a8ea3c8fd"><!-- raw HTML omitted -->(a8ea3)<!-- raw HTML omitted --></a></li> <li>Support <code>test.ui.theme</code> option - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11499">vitest-dev/vitest#11499</a> <a href="https://github.com/vitest-dev/vitest/commit/1da66405d"><!-- raw HTML omitted -->(1da66)<!-- raw HTML omitted --></a></li> <li>Highlight selector multiple matches in trace view - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Claude Opus 5.5</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11489">vitest-dev/vitest#11489</a> <a href="https://github.com/vitest-dev/vitest/commit/5abba1e1b"><!-- raw HTML omitted -->(5abba)<!-- raw HTML omitted --></a></li> <li>Print how many tests were affected and a total when running <code>--changed</code> - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11424">vitest-dev/vitest#11424</a> <a href="https://github.com/vitest-dev/vitest/commit/a23368585"><!-- raw HTML omitted -->(a2336)<!-- raw HTML omitted --></a></li> <li>Add an option to cache dependencies instead of statically parsing them - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11515">vitest-dev/vitest#11515</a> <a href="https://github.com/vitest-dev/vitest/commit/c06012ac8"><!-- raw HTML omitted -->(c0601)<!-- raw HTML omitted --></a></li> <li>Add fit and zoom controls to trace viewer - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Claude Opus 5.5</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11490">vitest-dev/vitest#11490</a> <a href="https://github.com/vitest-dev/vitest/commit/f5dd99ed0"><!-- raw HTML omitted -->(f5dd9)<!-- raw HTML omitted --></a></li> </ul> </li> </ul> <h3> 🐞 Bug Fixes</h3> <ul> <li>Fail the run on git and location filter errors - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11430">vitest-dev/vitest#11430</a> <a href="https://github.com/vitest-dev/vitest/commit/30d0304d2"><!-- raw HTML omitted -->(30d03)<!-- raw HTML omitted --></a></li> <li>Enable fsModuleCache by default - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11435">vitest-dev/vitest#11435</a> <a href="https://github.com/vitest-dev/vitest/commit/ad208cc29"><!-- raw HTML omitted -->(ad208)<!-- raw HTML omitted --></a></li> <li>Track project files and mocks with --changed - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11432">vitest-dev/vitest#11432</a> <a href="https://github.com/vitest-dev/vitest/commit/b0f2b3bb9"><!-- raw HTML omitted -->(b0f2b)<!-- raw HTML omitted --></a></li> <li>Refactor caching, fix <code>:</code> in project and change the shape of <code>results</code> cache - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11453">vitest-dev/vitest#11453</a> <a href="https://github.com/vitest-dev/vitest/commit/9673c49a4"><!-- raw HTML omitted -->(9673c)<!-- raw HTML omitted --></a></li> <li>Keep full <code>$</code> string values when <code>taskTitleValueFormatTruncate</code> is 0 - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Claude Opus 5.5</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11485">vitest-dev/vitest#11485</a> <a href="https://github.com/vitest-dev/vitest/commit/4f7e1799b"><!-- raw HTML omitted -->(4f7e1)<!-- raw HTML omitted --></a></li> <li>Resolve node builtins in client environments - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11417">vitest-dev/vitest#11417</a> <a href="https://github.com/vitest-dev/vitest/commit/56b319ac6"><!-- raw HTML omitted -->(56b31)<!-- raw HTML omitted --></a></li> <li>Fix module graph builtin externals after <a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11421">#11421</a> - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Claude Opus 5.5</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11491">vitest-dev/vitest#11491</a> and <a href="https://redirect.github.com/vitest-dev/vitest/issues/11421">vitest-dev/vitest#11421</a> <a href="https://github.com/vitest-dev/vitest/commit/008e184cb"><!-- raw HTML omitted -->(008e1)<!-- raw HTML omitted --></a></li> <li>Wrap module mocks during in-source testing - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11505">vitest-dev/vitest#11505</a> <a href="https://github.com/vitest-dev/vitest/commit/36d19cb00"><!-- raw HTML omitted -->(36d19)<!-- raw HTML omitted --></a></li> <li>Handle line endings in snapshot - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11522">vitest-dev/vitest#11522</a> <a href="https://github.com/vitest-dev/vitest/commit/4c468aa40"><!-- raw HTML omitted -->(4c468)<!-- raw HTML omitted --></a></li> <li>Respect root in projects - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11521">vitest-dev/vitest#11521</a> <a href="https://github.com/vitest-dev/vitest/commit/26642f793"><!-- raw HTML omitted -->(26642)<!-- raw HTML omitted --></a></li> <li>Resolve mocks in directories with spaces - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11539">vitest-dev/vitest#11539</a> <a href="https://github.com/vitest-dev/vitest/commit/caaef9416"><!-- raw HTML omitted -->(caaef)<!-- raw HTML omitted --></a></li> <li><strong>api</strong>: <ul> <li>Publish the api token atomically - by <a href="https://github.com/umairnawaz333"><code>@umairnawaz333</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11323">vitest-dev/vitest#11323</a> <a href="https://github.com/vitest-dev/vitest/commit/6f990fef1"><!-- raw HTML omitted -->(6f990)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>browser</strong>:</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/vitest-dev/vitest/commit/7a825db43e2beca0b219d2eadaec334cb81af0c7"><code>7a825db</code></a> chore: release v5.0.5 (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11609">#11609</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/6621a72d6ed371e43f80ff327f5063693bd6b1ad"><code>6621a72</code></a> fix: abort all running tests on cancel (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11606">#11606</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/e9c3d72f0c8d6867de06a3df43ea28a05eeec444"><code>e9c3d72</code></a> fix: release mocks of finished test files (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11607">#11607</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/8dd67c2625943d824e257b87ae57a14094e90eed"><code>8dd67c2</code></a> fix(browser): run global setup once with instances (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11596">#11596</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/6c5a447203a29a0708fbc5de4fb91ea501bdc395"><code>6c5a447</code></a> fix: run hook cleanups when a later hook fails (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11605">#11605</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/9697b3894f456b85db91f3824ebe833449305c04"><code>9697b38</code></a> fix: keep the import frame in native loader errors (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11599">#11599</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/6498b666a3ae8961f6f2a8abdc89015b6fd0b3aa"><code>6498b66</code></a> fix(browser): wait 30s for the browser to close (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11601">#11601</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/f161e6df2b3c0bc84982d374094379139e380791"><code>f161e6d</code></a> fix(browser): drop late connections of closed sessions (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11600">#11600</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/fe86a64c6c6aa75481bffe5880b5c4e35ea67927"><code>fe86a64</code></a> fix: skip builtin loading in async leak detector (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11598">#11598</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/6ae8e89ff0734cf476e30186a83aebe6771aa330"><code>6ae8e89</code></a> fix(reporter): end reason <code>'failed'</code> on worker crash (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11568">#11568</a>)</li> <li>Additional commits viewable in <a href="https://github.com/vitest-dev/vitest/commits/v5.0.5/packages/vitest">compare view</a></li> </ul> </details> <br /> Updates `headroom-ai` from 0.40.0 to 0.41.0 Updates `vitest` from 5.0.3 to 5.0.5 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/vitest-dev/vitest/releases">vitest's releases</a>.</em></p> <blockquote> <h2>v5.0.5</h2> <h3> 🐞 Bug Fixes</h3> <ul> <li>Keep vite default <code>fs.deny</code> with api token file - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Claude Opus 5.5</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11578">vitest-dev/vitest#11578</a> <a href="https://github.com/vitest-dev/vitest/commit/28dc1edfb"><!-- raw HTML omitted -->(28dc1)<!-- raw HTML omitted --></a></li> <li>Handle quoted file names in <code>--changed</code> - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11583">vitest-dev/vitest#11583</a> <a href="https://github.com/vitest-dev/vitest/commit/14921e962"><!-- raw HTML omitted -->(14921)<!-- raw HTML omitted --></a></li> <li>Add <code>data</code> to the <code>import.meta.hot</code> stub - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11590">vitest-dev/vitest#11590</a> <a href="https://github.com/vitest-dev/vitest/commit/3a8289ac3"><!-- raw HTML omitted -->(3a828)<!-- raw HTML omitted --></a></li> <li>Set <code>skip</code> in <code>skipIf</code>, ignore <code>undefined</code> options - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11591">vitest-dev/vitest#11591</a> <a href="https://github.com/vitest-dev/vitest/commit/d523a15f2"><!-- raw HTML omitted -->(d523a)<!-- raw HTML omitted --></a></li> <li>Skip builtin loading in async leak detector - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11598">vitest-dev/vitest#11598</a> <a href="https://github.com/vitest-dev/vitest/commit/fe86a64c6"><!-- raw HTML omitted -->(fe86a)<!-- raw HTML omitted --></a></li> <li>Keep the import frame in native loader errors - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11599">vitest-dev/vitest#11599</a> <a href="https://github.com/vitest-dev/vitest/commit/9697b3894"><!-- raw HTML omitted -->(9697b)<!-- raw HTML omitted --></a></li> <li>Run hook cleanups when a later hook fails - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11605">vitest-dev/vitest#11605</a> <a href="https://github.com/vitest-dev/vitest/commit/6c5a44720"><!-- raw HTML omitted -->(6c5a4)<!-- raw HTML omitted --></a></li> <li>Release mocks of finished test files - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11607">vitest-dev/vitest#11607</a> <a href="https://github.com/vitest-dev/vitest/commit/e9c3d72f0"><!-- raw HTML omitted -->(e9c3d)<!-- raw HTML omitted --></a></li> <li>Abort all running tests on cancel - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11606">vitest-dev/vitest#11606</a> <a href="https://github.com/vitest-dev/vitest/commit/6621a72d6"><!-- raw HTML omitted -->(6621a)<!-- raw HTML omitted --></a></li> <li><strong>browser</strong>: <ul> <li>Ignore synthetic pagehide events - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11582">vitest-dev/vitest#11582</a> <a href="https://github.com/vitest-dev/vitest/commit/ca0813584"><!-- raw HTML omitted -->(ca081)<!-- raw HTML omitted --></a></li> <li>Run plugin buildStart on server creation - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11593">vitest-dev/vitest#11593</a> <a href="https://github.com/vitest-dev/vitest/commit/ea611e44c"><!-- raw HTML omitted -->(ea611)<!-- raw HTML omitted --></a></li> <li>Drop late connections of closed sessions - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11600">vitest-dev/vitest#11600</a> <a href="https://github.com/vitest-dev/vitest/commit/f161e6df2"><!-- raw HTML omitted -->(f161e)<!-- raw HTML omitted --></a></li> <li>Wait 30s for the browser to close - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11601">vitest-dev/vitest#11601</a> <a href="https://github.com/vitest-dev/vitest/commit/6498b666a"><!-- raw HTML omitted -->(6498b)<!-- raw HTML omitted --></a></li> <li>Run global setup once with instances - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11596">vitest-dev/vitest#11596</a> <a href="https://github.com/vitest-dev/vitest/commit/8dd67c262"><!-- raw HTML omitted -->(8dd67)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>reporter</strong>: <ul> <li>End reason <code>&[#39](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/39);failed&[#39](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/39);</code> on worker crash - by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11568">vitest-dev/vitest#11568</a> <a href="https://github.com/vitest-dev/vitest/commit/6ae8e89ff"><!-- raw HTML omitted -->(6ae8e)<!-- raw HTML omitted --></a></li> </ul> </li> </ul> <h5> <a href="https://github.com/vitest-dev/vitest/compare/v5.0.4...v5.0.5">View changes on GitHub</a></h5> <h2>v5.0.4</h2> <h3> 🚀 Features</h3> <ul> <li><strong>experimental</strong>: <ul> <li>Tag cache directories with CACHEDIR.TAG - by <a href="https://github.com/lifeiscontent"><code>@lifeiscontent</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11461">vitest-dev/vitest#11461</a> <a href="https://github.com/vitest-dev/vitest/commit/a8ea3c8fd"><!-- raw HTML omitted -->(a8ea3)<!-- raw HTML omitted --></a></li> <li>Support <code>test.ui.theme</code> option - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11499">vitest-dev/vitest#11499</a> <a href="https://github.com/vitest-dev/vitest/commit/1da66405d"><!-- raw HTML omitted -->(1da66)<!-- raw HTML omitted --></a></li> <li>Highlight selector multiple matches in trace view - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Claude Opus 5.5</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11489">vitest-dev/vitest#11489</a> <a href="https://github.com/vitest-dev/vitest/commit/5abba1e1b"><!-- raw HTML omitted -->(5abba)<!-- raw HTML omitted --></a></li> <li>Print how many tests were affected and a total when running <code>--changed</code> - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11424">vitest-dev/vitest#11424</a> <a href="https://github.com/vitest-dev/vitest/commit/a23368585"><!-- raw HTML omitted -->(a2336)<!-- raw HTML omitted --></a></li> <li>Add an option to cache dependencies instead of statically parsing them - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11515">vitest-dev/vitest#11515</a> <a href="https://github.com/vitest-dev/vitest/commit/c06012ac8"><!-- raw HTML omitted -->(c0601)<!-- raw HTML omitted --></a></li> <li>Add fit and zoom controls to trace viewer - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Claude Opus 5.5</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11490">vitest-dev/vitest#11490</a> <a href="https://github.com/vitest-dev/vitest/commit/f5dd99ed0"><!-- raw HTML omitted -->(f5dd9)<!-- raw HTML omitted --></a></li> </ul> </li> </ul> <h3> 🐞 Bug Fixes</h3> <ul> <li>Fail the run on git and location filter errors - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11430">vitest-dev/vitest#11430</a> <a href="https://github.com/vitest-dev/vitest/commit/30d0304d2"><!-- raw HTML omitted -->(30d03)<!-- raw HTML omitted --></a></li> <li>Enable fsModuleCache by default - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11435">vitest-dev/vitest#11435</a> <a href="https://github.com/vitest-dev/vitest/commit/ad208cc29"><!-- raw HTML omitted -->(ad208)<!-- raw HTML omitted --></a></li> <li>Track project files and mocks with --changed - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11432">vitest-dev/vitest#11432</a> <a href="https://github.com/vitest-dev/vitest/commit/b0f2b3bb9"><!-- raw HTML omitted -->(b0f2b)<!-- raw HTML omitted --></a></li> <li>Refactor caching, fix <code>:</code> in project and change the shape of <code>results</code> cache - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11453">vitest-dev/vitest#11453</a> <a href="https://github.com/vitest-dev/vitest/commit/9673c49a4"><!-- raw HTML omitted -->(9673c)<!-- raw HTML omitted --></a></li> <li>Keep full <code>$</code> string values when <code>taskTitleValueFormatTruncate</code> is 0 - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Claude Opus 5.5</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11485">vitest-dev/vitest#11485</a> <a href="https://github.com/vitest-dev/vitest/commit/4f7e1799b"><!-- raw HTML omitted -->(4f7e1)<!-- raw HTML omitted --></a></li> <li>Resolve node builtins in client environments - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11417">vitest-dev/vitest#11417</a> <a href="https://github.com/vitest-dev/vitest/commit/56b319ac6"><!-- raw HTML omitted -->(56b31)<!-- raw HTML omitted --></a></li> <li>Fix module graph builtin externals after <a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11421">#11421</a> - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Claude Opus 5.5</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11491">vitest-dev/vitest#11491</a> and <a href="https://redirect.github.com/vitest-dev/vitest/issues/11421">vitest-dev/vitest#11421</a> <a href="https://github.com/vitest-dev/vitest/commit/008e184cb"><!-- raw HTML omitted -->(008e1)<!-- raw HTML omitted --></a></li> <li>Wrap module mocks during in-source testing - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11505">vitest-dev/vitest#11505</a> <a href="https://github.com/vitest-dev/vitest/commit/36d19cb00"><!-- raw HTML omitted -->(36d19)<!-- raw HTML omitted --></a></li> <li>Handle line endings in snapshot - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11522">vitest-dev/vitest#11522</a> <a href="https://github.com/vitest-dev/vitest/commit/4c468aa40"><!-- raw HTML omitted -->(4c468)<!-- raw HTML omitted --></a></li> <li>Respect root in projects - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11521">vitest-dev/vitest#11521</a> <a href="https://github.com/vitest-dev/vitest/commit/26642f793"><!-- raw HTML omitted -->(26642)<!-- raw HTML omitted --></a></li> <li>Resolve mocks in directories with spaces - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11539">vitest-dev/vitest#11539</a> <a href="https://github.com/vitest-dev/vitest/commit/caaef9416"><!-- raw HTML omitted -->(caaef)<!-- raw HTML omitted --></a></li> <li><strong>api</strong>: <ul> <li>Publish the api token atomically - by <a href="https://github.com/umairnawaz333"><code>@umairnawaz333</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11323">vitest-dev/vitest#11323</a> <a href="https://github.com/vitest-dev/vitest/commit/6f990fef1"><!-- raw HTML omitted -->(6f990)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>browser</strong>:</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/vitest-dev/vitest/commit/7a825db43e2beca0b219d2eadaec334cb81af0c7"><code>7a825db</code></a> chore: release v5.0.5 (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11609">#11609</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/6621a72d6ed371e43f80ff327f5063693bd6b1ad"><code>6621a72</code></a> fix: abort all running tests on cancel (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11606">#11606</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/e9c3d72f0c8d6867de06a3df43ea28a05eeec444"><code>e9c3d72</code></a> fix: release mocks of finished test files (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11607">#11607</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/8dd67c2625943d824e257b87ae57a14094e90eed"><code>8dd67c2</code></a> fix(browser): run global setup once with instances (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11596">#11596</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/6c5a447203a29a0708fbc5de4fb91ea501bdc395"><code>6c5a447</code></a> fix: run hook cleanups when a later hook fails (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11605">#11605</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/9697b3894f456b85db91f3824ebe833449305c04"><code>9697b38</code></a> fix: keep the import frame in native loader errors (<a href="https://git... _Description has been truncated_ Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|
|
17d38e5699 |
chore: release 0.42.0 (#4228)
🤖 I have created a release *beep* *boop* --- ## [0.42.0](https://github.com/headroomlabs-ai/headroom/compare/v0.41.0...v0.42.0) (2026-10-26) ### Features * **pipeline:** put per-request saved tokens on OutcomeSnapshot ([#4231](https://github.com/headroomlabs-ai/headroom/issues/4231)) ([ |
||
|
|
1668a6c0dd |
fix(sdk): preserve Vercel AI SDK file and image parts through compression (#4048)
## Description
The TypeScript SDK's Vercel AI SDK converters lose or break media:
- **`headroomMiddleware()` / `withHeadroom(model)` drop every image and
document.** The provider prompt the middleware receives
(`params.prompt`) carries media only as `file` parts — in the installed
`@ai-sdk/provider` 4.0.19 a user message is
`Array<LanguageModelV3TextPart | LanguageModelV3FilePart>`; there is no
`image` part at that level. `vercelToOpenAI()` only handles `text` and
`image`, so a `file` part is silently removed and a file-only turn
becomes `content: []`. Because the middleware returns the original
params when compression did not happen, the media is lost exactly when
compression succeeds.
- **`compressVercelMessages()` crashes on binary images.** For
user-level `ModelMessage`s, an `image` part whose data is a `Uint8Array`
(or a bare base64 string) is stringified on the way out
(`"137,80,78,71"`) and `openAIToVercel()` then calls `new URL()` on it:
`TypeError: Invalid URL`, after a successful compression. `file` parts
(e.g. a PDF) are dropped on this path too.
Reproduced through the public `toOpenAI` / `fromOpenAI` on `main`
(`20ce054f`):
```text
prompt: text+file(image/png, bytes) | OpenAI: {"role":"user","content":"what is this?"} | back: text only
prompt: file-only (application/pdf) | OpenAI: {"role":"user","content":[]} | back: {"role":"user","content":[]}
message: image as Uint8Array | OpenAI: image_url.url = "137,80,78,71" | ROUND TRIP THROWS TypeError: Invalid URL
message: image as base64 string | OpenAI: image_url.url = "iVBORw0KGgo=" | ROUND TRIP THROWS TypeError: Invalid URL
message: file part (pdf) | OpenAI: {"role":"user","content":"summarise"} | back: text only
```
Seven more, found in review (JerrettDavis and the Devin bot,
2026-10-09/14) and fixed here as well:
- **The public `compress()` could not even detect a media-only Vercel
conversation.** `detectFormat` knew Vercel only by `tool-call` /
`tool-result` parts, so a conversation whose only Vercel markers were
`file` / `image` parts was classified as OpenAI and sent as-is — a
`Uint8Array` serialises as `{"0":137,"1":80,…}` on the wire.
- **Assistant file parts were dropped by the explicit converters too.**
AI SDK 6's `AssistantContent` includes `FilePart` (generated media sent
back as history) and this package's peer range is `ai >=6.0.0`, but the
assistant branch of `vercelToOpenAI` kept only text and tool calls.
- **Assistant media was dropped again when converting back to Anthropic
or Gemini.** The first revision's `assistantText` helper kept only the
text of an assistant content array, so an assistant image or file in the
OpenAI shape (e.g. from a Vercel file part) vanished in `fromOpenAI(…,
"anthropic" | "gemini")` even though both targets have media parts.
- **AI SDK 7 / LanguageModelV4 file parts were dropped by the
middleware.** `wrapLanguageModel` in `ai` 7.x hands `transformParams` a
V4 prompt whose `file` parts carry `data` as a tagged union (`{ type:
"data" | "url" | "text" | "reference", … }`), not the bare
bytes/string/URL the converter read, so the attachment vanished before
compression. Provider references were silently removed too.
- **A conversation whose only Anthropic marker is a `document` block was
detected as OpenAI**, so `compress()` skipped the Anthropic converter —
and once detected, the Anthropic user branch dropped the document, since
it only knew images.
- **Adjacent assistant text parts lost their newline join** in the
Anthropic and Gemini reverse converters.
- **Anthropic document sources other than PDF were dropped, and document
fields were lost.** A document with a plain-text source (or a content /
file source) produced no media part — a document-only turn vanished —
and a PDF document came back without its `title`, `context` and
`citations`.
Same bug class as #3439 (Anthropic) and #3882 (Gemini), on the Vercel
adapter, fixed the same way: media becomes OpenAI `image_url` parts the
proxy passes through untouched, with the few facts the OpenAI shape
cannot hold carried on private keys so the reverse conversion rebuilds
the right Vercel part.
## Type of Change
- [x] Bug fix (non-breaking change that fixes an issue)
- [ ] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] Documentation update
- [ ] Performance improvement
- [ ] Code refactoring (no functional changes)
## Changes Made
- **`sdk/typescript/src/utils/format.ts`**
- `vercelToOpenAI` user branch (forward): `image` **and** `file` parts
are converted. `Uint8Array` / `ArrayBuffer` / base64-string data →
`image_url` with a `data:<mediaType>;base64,…` URI (the media type
travels inside it; if the part has none, an empty media type is carried
rather than guessed); `URL` objects and URL strings → the URL, with the
part's media type on a private `mime_type` key (the same private key
#3882 introduced for Gemini, so one key serves every converter). A
`file` part additionally carries `part: "file"` and its `filename`.
Unconvertible data (e.g. provider file references) is skipped without
deleting the turn. A turn with media is emitted as an ordered part
array; **text-only turns are unchanged** (still joined into a string).
- **LanguageModelV4 / AI SDK 7 tagged data:** the carrier records the
tag on a private `data_tag` key — `data` and `text` travel as data: URIs
and are restored tagged (base64 inside `data`, decoded text inside
`text`), `url` is restored as a `URL` object inside the tag, and a
`reference` (tagged, or a bare AI SDK 6 `ProviderReference`) is carried
verbatim on a `reference` key with an empty data: URI as the opaque url
and returned untouched instead of being removed. Bare AI SDK 6 inputs
restore bare, so standalone `ModelMessage` handling is unchanged.
- `openAIToVercel` user branch (reverse): a data URI → base64 data plus
its media type; an http(s) URL → a `URL` object (unchanged behaviour,
existing test kept); anything else → left as a string. **Never throws.**
Emits `{ type: "file", mediaType, data, filename? }` when `part ===
"file"` or the media type is not `image/*`, else `{ type: "image",
image, mediaType? }`. Base64 strings are valid data for both the
provider prompt (`LanguageModelV3DataContent = Uint8Array | string |
URL`, string = base64) and `ModelMessage` (`DataContent` accepts
base64), so byte inputs come back as base64 strings — equal content, not
the same object.
- `detectFormat`: a `file` part carrying `data` / `mediaType` (OpenAI's
`file` part carries a `file` object instead) or an `image` part carrying
`image` (Anthropic's carries `source`) now marks the Vercel format; an
Anthropic `document` block with a `source.type` marks Anthropic. OpenAI
`image_url` parts and Anthropic `image` blocks are unaffected, with
tests for both.
- `vercelToOpenAI` assistant branch: a turn with `file` parts becomes an
ordered part array (text + `image_url` with the carriers above);
text-only assistant turns still convert to a string. `openAIToVercel`
rebuilds text and `file` parts with the assistant role.
- `openAIToAnthropic` / `openAIToGemini` assistant branches: a text-only
array joins with `"\n"` into one block/part, as the forward converters
join text-only turns; an array carrying media keeps every part separate,
because the forward converters keep exact parts in that case and a round
trip must not add or move characters (`groupAssistantParts`); assistant
media in the OpenAI shape is rebuilt in order relative to text —
Anthropic `image/*` → image block, `application/pdf` → document block
(base64 or url source, per the SDK's `DocumentBlockParam`); Gemini data
URIs → `inlineData`, URL-backed files → `fileData` with the carried MIME
type. Media Anthropic has no block for is omitted rather than mis-typed.
The Anthropic user branch now maps PDFs to document blocks as well.
- `anthropicToOpenAI` user branch: `document` blocks are kept beside
images — base64 PDF → data: URI; url source → url with `mime_type`;
plain-text source → `data:text/plain;base64,…` tagged `source_type:
"text"` and restored as text; content and file sources carried verbatim
on a `source` key (preserved, not removed); `title` / `context` /
`citations` / `cache_control` carried on a `document` key and
re-attached — so every `DocumentBlockParam` round-trips exactly and a
document-only turn is no longer dropped.
- `anthropicToOpenAI` assistant and `geminiToOpenAI` model branches:
image/document blocks and `inlineData`/`fileData` become ordered parts,
so both formats round-trip exactly (Gemini image-generation output is a
real case).
- Helpers: `bytesToBase64` / `base64ToText` (use `Buffer` when present,
`btoa`/`atob` otherwise), `parseUrl`, `isProviderReference`,
`vercelMediaImageUrl`, `vercelMediaPart`, `groupAssistantParts`,
`anthropicMediaImageUrl` / `anthropicMediaBlock` (with the
`AnthropicMediaImageUrl` carrier and `ANTHROPIC_DOCUMENT_FIELDS`).
- **`sdk/typescript/src/types.ts`** — `AssistantMessage.content` widens
from `string | null` to `string | ContentPart[] | null` so an assistant
turn can carry media parts; OpenAI's own API already accepts an array of
parts as assistant content. Additive for producers; the only readers in
the SDK (`hooks.ts`) already branch on arrays, and the
`plugins/openclaw` converter defines its own message type. The public
type test is updated to match.
- **`sdk/typescript/test/utils/detect-format.test.ts`** — media-only
Vercel turns (file part; image part) detect as `vercel`; a document-only
Anthropic turn detects as `anthropic`; OpenAI `image_url` and Anthropic
`image` detection unchanged.
- **`sdk/typescript/test/compress.test.ts`** — the public `compress()`
with a media-only Vercel turn and a mocked proxy: the wire body carries
an `image_url` data URI (and no `"0":137`), and the result comes back as
a Vercel `file` part; a document-only Anthropic turn through
`compress()` against a pass-through mock comes back as the same document
block.
- **`sdk/typescript/test/utils/format.test.ts`** — Anthropic document
sources (document-only text turn through detection and conversion, mixed
text+document with context, content and file sources verbatim, PDF
fields, assistant document); V4 tagged data (data, url, text, reference,
and a bare reference) forward/reverse/round trip; assistant text
separators (text-only join; media-bearing arrays keep parts; exact
Gemini and Anthropic round trips with adjacent text before media);
Anthropic user documents (text+document, document-only, round trip
through detection); cross-format assistant media: the review thread's
Vercel → OpenAI → Gemini / Anthropic example, both reverse converters
(image; PDF base64 and url; text-only backward compat), both forward
converters, exact Anthropic and Gemini assistant round trips; Vercel
assistant: text + file forward, reverse with the assistant role, round
trip, text-only backward compat; user: forward (prompt `file` image
bytes with text; file-only PDF with filename; `Uint8Array` image;
bare-base64 image; URL-backed file with carried media type), reverse
(data URI marked `file`; image data URI; URL-backed file; unparseable
url does not throw), and exact round trips (prompt text+file; byte
image).
- **`sdk/typescript/test/adapters/vercel-ai.test.ts`** —
`headroomMiddleware`: a prompt `file` part reaches `/v1/compress` as an
`image_url` data URI and comes back in the returned prompt as a `file`
part; the same for an assistant file turn in the prompt; a public
`transformParams` round trip typed with the actual
`LanguageModelV4FilePart` / `LanguageModelV4Prompt` (tagged data
restored tagged) and a provider reference passed through untouched;
`compressVercelMessages` no longer throws on byte image data.
## Testing
- [x] Unit tests pass (`npm test` — vitest, incl. typecheck; also run by
the new `sdk-typescript.yml` job)
- [x] Type checking passes (`npm run typecheck` — tsc --noEmit)
- [x] Build passes (`npm run build` — tsup)
- [x] New tests added for new functionality
- [x] Manual testing performed
### Test Output
```text
$ cd sdk/typescript && npx vitest run test/utils/format.test.ts test/utils/detect-format.test.ts test/compress.test.ts \
test/adapters/vercel-ai.test.ts test/adapters/anthropic.test.ts test/adapters/gemini.test.ts
Test Files 6 passed (6)
Tests 147 passed (147)
$ npm test # full suite
Test Files 19 passed | 5 skipped (24)
Tests 404 passed | 33 skipped (437)
Type Errors no errors
$ npm run typecheck # tsc --noEmit
(clean, no errors)
$ npm run build # tsup
CJS / ESM / DTS Build success
```
## Real Behavior Proof
- Environment: macOS (Apple silicon), Node v22.16.0, npm 10.9.2; `cd
sdk/typescript && npm ci` (`ai` 7.0.119, `@ai-sdk/provider` 4.0.19,
`@ai-sdk/provider-utils` 5.0.50).
- Exact command / steps: (1) the block in the description — a `node
--input-type=module` script calling the built `toOpenAI` / `fromOpenAI`
from `dist/index.js` on `main`; (2) the thirteen new tests run on `main`
before the change and on this branch after; (3) for the review findings:
`detectFormat` + `toOpenAI` on a media-only Vercel turn, and the
converters on an assistant text+file turn, both against the first
revision; then the eight new tests before and after the second commit;
(4) second review round: `fromOpenAI(vercelToOpenAI(<assistant text +
file>), "gemini")` on the second revision, then the eleven new tests
before and after the third commit; then `npm test`, `npm run typecheck`,
`npm run build`.
- Observed result: on `main` all thirteen fail for the expected reasons
— media parts missing from the converted output, and `AssertionError:
expected [Function] to not throw an error but 'TypeError: Invalid URL'
was thrown` for the byte/base64 cases (the middleware test fails the
same way). With the first commit all 71 targeted tests pass. Review
findings reproduced on that revision: `detect = openai` and the wire
payload
`{"type":"file","mediaType":"image/png","data":{"0":137,"1":80,"2":78,"3":71}}`
for a media-only turn; `{role:"assistant",content:"generated image"}`
for an assistant text+file turn (file gone). The eight new tests fail on
that revision (seven runtime, one type assertion) and pass after the
second commit. Second round: on that revision the Gemini conversion of a
Vercel assistant file returned `{ role: "model", parts: [{ text:
"generated image" }] }` (media gone); the eleven new tests fail there
and pass after the third commit: 127 targeted tests, full suite 384
passed | 33 skipped, typecheck and build clean.
- **Live proxy round trip** (replaces the earlier "not tested"):
`headroom proxy` 0.40.0 from the published wheel (`uvx --from
'headroom-ai[proxy]' headroom proxy --port 8799`), the built middleware
from this branch, a V4 prompt with a 120-line service log, a data-tagged
PNG, a provider-reference PDF and an assistant file turn; then the
public `compress()` with a media-only Vercel turn. Captured on
`b00b388b`; the later `f5dbdbcc` changes only the Anthropic user branch
and the text-part rule, not the Vercel path exercised here. Output (text
parts shown as `text(<length>)`):
```text
proxy http://127.0.0.1:8799/v1/compress status 200 | tokens_before 4497 tokens_after 532 tokens_saved 3965 | transforms ["router:text_block:log"]
SENT : [["text(10758)","{\"type\":\"image_url\",\"image_url\":{\"url\":\"data:image/png;base64,iVBORw==\",\"part\":\"file\",\"data_tag\":\"data\"}}","{\"type\":\"image_url\",\"image_url\":{\"url\":\"data:application/pdf;base64,\",\"part\":\"file\",\"data_tag\":\"reference\",\"reference\":{\"openai\":\"file-abc\"}}}"],["text(15)","{\"type\":\"image_url\",\"image_url\":{\"url\":\"data:image/png;base64,iVBORw==\",\"part\":\"file\",\"data_tag\":\"data\"}}"]]
RETURNED : [["text(29)","{\"type\":\"image_url\",\"image_url\":{\"url\":\"data:image/png;base64,iVBORw==\",\"part\":\"file\",\"data_tag\":\"data\"}}","{\"type\":\"image_url\",\"image_url\":{\"url\":\"data:application/pdf;base64,\",\"part\":\"file\",\"data_tag\":\"reference\",\"reference\":{\"openai\":\"file-abc\"}}}"],["text(15)","{\"type\":\"image_url\",\"image_url\":{\"url\":\"data:image/png;base64,iVBORw==\",\"part\":\"file\",\"data_tag\":\"data\"}}"]]
RESTORED : [["text(29)","{\"type\":\"file\",\"mediaType\":\"image/png\",\"data\":{\"type\":\"data\",\"data\":\"iVBORw==\"}}","{\"type\":\"file\",\"mediaType\":\"application/pdf\",\"data\":{\"type\":\"reference\",\"reference\":{\"openai\":\"file-abc\"}}}"],["text(15)","{\"type\":\"file\",\"mediaType\":\"image/png\",\"data\":{\"type\":\"data\",\"data\":\"iVBORw==\"}}"]]
middleware returned original params (no compression)? false
compress(): sent part[1] = {"type":"image_url","image_url":{"url":"data:image/png;base64,iVBORw==","part":"file"}} | returned part[1] = {"type":"image_url","image_url":{"url":"data:image/png;base64,iVBORw==","part":"file"}} | result part[1] = {"type":"file","mediaType":"image/png","data":"iVBORw=="} | compressed = true saved 3950
```
The proxy compressed the log, returned every media part with the private
carrier keys intact, and the restored prompt carries the tagged V4 parts
and the reference unchanged; the public `compress()` path detected
Vercel, compressed, and restored the file part.
- Not tested: a live provider call downstream of the proxy.
## Runtime Rollout Safety
- Rollout-managed feature(s): None. Client-side TypeScript SDK
conversion fix; no server/runtime feature flag or rollout channel
involved.
- Minimum rollout channel: N/A.
- Stable/default behavior changed: Only the buggy paths — media that was
dropped is preserved, inputs that threw now convert, and media-only
Vercel conversations are now detected as Vercel. Text-only turns, tool
calls/results and the http-URL image case are byte-identical to before.
The one public type change is additive: `AssistantMessage.content` also
admits an array of content parts.
- Kill switch / disable path: N/A — correctness fix, not a gated
feature.
- Unsafe override required: No.
- Qualification impact: None — additive media handling; existing
conversion tests unchanged and green.
- Rollback path: Revert this PR; no persisted state, migrations, or
config to unwind.
## Review Readiness
- [x] I have performed a self-review
- [x] This PR is ready for human review
## Checklist
- [x] My code follows the project's style guidelines
- [x] I have performed a self-review of my code
- [x] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [x] I did **not** edit `CHANGELOG.md` — it is generated by
release-please from my Conventional Commit PR title (a CI guard enforces
this)
## Screenshots (if applicable)
N/A
## Additional Notes
- Out of scope, left as-is and pre-existing: assistant `reasoning` parts
(dropped by the assistant branch of `vercelToOpenAI`); media inside
`tool-result` parts; `providerOptions` on parts. Each is a separate
follow-up.
- Anthropic has blocks only for images and PDFs (and text documents);
other media reaching `openAIToAnthropic` is omitted rather than emitted
as a mis-typed block.
- Revisions after review: detection of media-only Vercel conversations
and assistant file parts (second commit), including the
`AssistantMessage.content` widening described above; assistant media
through the Anthropic and Gemini converters in both directions, the
`mime_type` carrier rename and the removal of `assistantText` (third
commit); LanguageModelV4 tagged data and provider references, Anthropic
document detection, assistant text separators and the live proxy proof
(fourth commit); user documents kept in the Anthropic user branch and
exact text parts beside media (fifth commit); Anthropic text / content /
file document sources and document fields (sixth commit, on top of the
maintainer's `main` sync).
- Large documents travel as base64 inside the request body, as
`inlineData` already does for Gemini (#3882); the proxy counts image
parts at a fixed cost.
- CHANGELOG left untouched — the `no-manual-changelog` CI guard owns it;
the Conventional Commit title drives the entry.
---------
Co-authored-by: JerrettDavis <mxjerrett@gmail.com>
|
||
|
|
1be699f68e |
fix(deps): patch OpenClaw Undici and narrow E2E audit exceptions (#4453)
## Description
Includes the approved #4358 as its prerequisite. This PR targets main so
the complete integration workflows qualify the combined repair; its diff
will shrink to this follow-up once #4358 lands. Replace OpenClaw's
affected Undici copy instead of excepting it, and reduce the E2E audit
exceptions from seven advisory/path pairs to three.
OpenClaw 2026.10.2 lists Undici in `bundleDependencies`. Version
2026.10.6 removes it from that bundle, allowing a targeted, same-major
override to install fixed Undici 8.12.3. npm 12.2.1 still bundles its
own affected copies; this PR retains only those existing, expiring
exceptions.
## Type of Change
- [x] Bug fix
## Changes Made
- Pin the existing E2E OpenClaw CLI to 2026.10.6 and override only its
Undici dependency to 8.12.3.
- Regenerate the E2E lockfile; keep Codex and the npm override
unchanged.
- Remove every OpenClaw exception and the now-stale advisory, preserving
the parent's exact bundled-version checks and 2026-11-15 expiry.
- Update the Dockerfile comment to the actual Node requirement: 24.22.1
in the Node 24 line. Its NodeSource installation already selects that
line.
## Dependency and install-surface assessment
This updates an existing upstream-maintained CLI for a security fix,
rather than adding a replacement package. The fixed Undici remains in
the same major line. The graph is used only by the Docker wrap E2E
harness and is not shipped in Headroom's wheel or SDK. Normal
installation runs OpenClaw's existing lifecycle scripts and fetches
packages from the registry; those scripts were inspected, then exercised
inside a fresh Linux container without host credentials. No application
compression or routing logic changes.
## Testing
- [x] Manual testing performed
- [x] Dependency installation and runtime resolution verified
### Test Output
```text
OpenClaw runtime resolves Undici 8.12.3
OpenClaw 2026.10.6 (fe06181)
Installed audit: only npm bundled copies remain
{ info: 0, low: 0, moderate: 1, high: 1, critical: 0, total: 2 }
parent: 9 audit-guard cases passed
child: 9 audit-guard cases passed
git diff --check: passed
```
The guard accepts the current scoped findings and rejects a new
advisory, wrong path, expired exception, stale exception, audit error,
changed version, non-bundled copy, and missing inherited-advisory entry.
A raw audit remains nonzero for npm's bundled dependencies; this PR does
not claim those packages are patched.
## Real Behavior Proof
- Environment: fresh Linux amd64 Docker container,
`node:24.22.1-bookworm-slim`, Node 24.22.1 / npm 11.19.1, normal `npm
ci` with lifecycle scripts enabled.
- Exact command / steps: copy the two committed package files into a
fresh container volume; run `npm ci --no-audit --no-fund`; resolve
`undici/package.json` using
`createRequire('/work/node_modules/openclaw/package.json')` and assert
version 8.12.3; run `node node_modules/openclaw/openclaw.mjs --version`
and `--help`; run `npm audit --json` and assert that every remaining
affected node is under `node_modules/npm/`.
- Observed result: installation, exact runtime-resolution assertion,
version, and help all succeeded. Both installed-tree and lockfile audits
leave only npm's bundled Undici 6.29.0 and ip-address 10.7.2. The parent
workflow's guard passes with the narrowed exceptions and rejects all
eight negative cases.
- Not tested: a billed provider request or live production deployment.
Hosted Docker agent/integration scenarios have now passed. Hosted
qualification on head
|
||
|
|
1f71cb3d64 |
deps: Bump the npm-minor-patch group across 3 directories with 12 updates (#4219)
## Description Qualify the grouped npm updates in the OpenClaw/OpenCode plugins and TypeScript SDK, with a patched MCP shipping dependency floor. ## Type of Change - [x] Bug fix / dependency security and qualification ## Changes Made Synced with upstream `main` (`486afaac7426fa1d6735fe2ce6ae37630d9d11ae`). No contributor implementation logic changed. Tested head: `8c33aca5a9818dc348e3c1970ea8d3f6ae827818`. Includes the reviewed dependency-floor fix from #4239 because the vulnerable version was still permitted by shipping extras. ## Dependency assessment Retains the upstream grouped dependency updates and existing MCP JavaScript SDK security override. Packages retain their existing install/runtime surfaces; no plugin or SDK source logic changes. The Python MCP prerequisite excludes CVE-2026-59951 while keeping SDK v1. Dependencies remain under their existing upstream maintainers; committed lockfiles provide exact integrity-pinned trees. See the retained Dependabot release notes below for individual package changes. ## Testing npm ci --ignore-scripts, npm test and npm audit all passed in plugins/openclaw, plugins/opencode and sdk/typescript; all audits report zero vulnerabilities. TypeScript SDK npm run build passed. Branch dependency contract: 1 passed; uv lock --check passed. ### Test Output ```text npm ci --ignore-scripts, npm test and npm audit all passed in plugins/openclaw, plugins/opencode and sdk/typescript; all audits report zero vulnerabilities. TypeScript SDK npm run build passed. Branch dependency contract: 1 passed; uv lock --check passed. ``` ## Real Behavior Proof - Environment: Windows, PowerShell; installed Python/uv, Node/npm/Bun and Rust tooling as applicable. No live provider/model used. - Exact commands / steps: ```text npm ci --ignore-scripts; npm test; npm audit (each changed package directory) npm run build (sdk/typescript) uv lock --check python -m pytest -q tests/test_mcp_dependency_contract.py git diff --check ``` - Observed result: npm ci --ignore-scripts, npm test and npm audit all passed in plugins/openclaw, plugins/opencode and sdk/typescript; all audits report zero vulnerabilities. TypeScript SDK npm run build passed. Branch dependency contract: 1 passed; uv lock --check passed. - Not tested: live model/provider traffic and full Docker E2E locally; hosted cross-platform checks are running on the pushed head. Read hosted results before merging. Focused checks are not a claim of complete platform qualification. ## Runtime Rollout Safety - Rollout-managed features: none added or enabled. - Minimum rollout channel: unchanged. - Stable/default behavior changed: dependency versions/ranges and associated install metadata only; no feature rollout defaults changed. - Kill switch / disable path: existing optional extras and plugin opt-in paths remain available. - Unsafe override required: no runtime qualification bypass. Security dependency override is documented above where applicable. - Qualification impact: hosted checks and the focused evidence above must pass; no existing gate is removed. - Rollback path: revert this dependency change and restore its prior lockfiles together; retain the patched MCP minimum or another reviewed security remediation. ## Review Readiness - [x] Maintainer self-review and focused verification performed. - [x] All hosted checks passed on the reviewed head. Ready for final human merge review. ## Checklist - [x] No contributor implementation logic rewritten. - [x] Committed lockfiles checked against the changed manifests. - [x] No manual CHANGELOG.md changes. - [x] Known limitations recorded above. ## Original Dependabot update Bumps the npm-minor-patch group with 3 updates in the /plugins/openclaw directory: headroom-ai, [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) and [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest). Bumps the npm-minor-patch group with 5 updates in the /plugins/opencode directory: | Package | From | To | | --- | --- | --- | | headroom-ai | `0.39.1` | `0.40.0` | | [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `26.6.3` | `26.6.5` | | [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) | `5.0.2` | `5.0.3` | | @opencode-ai/plugin | `1.18.33` | `1.19.0` | | headroom-ai | `0.39.1` | `0.40.0` | | [@opencode/plugin](https://github.com/anomalyco/opencode) | `2.0.24` | `2.0.27` | | [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `26.6.3` | `26.6.5` | | [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) | `5.0.2` | `5.0.3` | | [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `26.6.3` | `26.6.5` | | [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) | `5.0.2` | `5.0.3` | Bumps the npm-minor-patch group with 9 updates in the /sdk/typescript directory: | Package | From | To | | --- | --- | --- | | [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `26.6.3` | `26.6.5` | | [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) | `5.0.2` | `5.0.3` | | [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `26.6.3` | `26.6.5` | | [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) | `5.0.2` | `5.0.3` | | [@ai-sdk/anthropic](https://github.com/vercel/ai/tree/HEAD/packages/anthropic) | `4.0.66` | `4.0.78` | | [@ai-sdk/openai](https://github.com/vercel/ai/tree/HEAD/packages/openai) | `4.0.79` | `4.0.91` | | [@ai-sdk/provider](https://github.com/vercel/ai/tree/HEAD/packages/provider) | `4.0.19` | `4.0.26` | | [@anthropic-ai/sdk](https://github.com/anthropics/anthropic-sdk-typescript) | `0.129.0` | `0.133.0` | | [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `26.6.3` | `26.6.5` | | [ai](https://github.com/vercel/ai/tree/HEAD/packages/ai) | `7.0.119` | `7.0.137` | | [dotenv](https://github.com/motdotla/dotenv) | `18.0.4` | `18.0.7` | | [openai](https://github.com/openai/openai-node) | `7.23.0` | `7.32.0` | | [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) | `5.0.2` | `5.0.3` | Updates `headroom-ai` from 0.39.1 to 0.40.0 Updates `@types/node` from 26.6.3 to 26.6.5 <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node">compare view</a></li> </ul> </details> <br /> Updates `vitest` from 5.0.2 to 5.0.3 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/vitest-dev/vitest/releases">vitest's releases</a>.</em></p> <blockquote> <h2>v5.0.3</h2> <h3> 🐞 Bug Fixes</h3> <ul> <li>Isolate <code>result.status</code> between <code>repeats</code> runs - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Codex (GPT-6)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11218">vitest-dev/vitest#11218</a> <a href="https://github.com/vitest-dev/vitest/commit/5dbebe9e3"><!-- raw HTML omitted -->(5dbeb)<!-- raw HTML omitted --></a></li> <li>Don't print an interceptor warning in browser mode - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11377">vitest-dev/vitest#11377</a> <a href="https://github.com/vitest-dev/vitest/commit/15cc006aa"><!-- raw HTML omitted -->(15cc0)<!-- raw HTML omitted --></a></li> <li>Don't retry when <code>test.fails</code> expectedly failed - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Codex (GPT-6)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11219">vitest-dev/vitest#11219</a> <a href="https://github.com/vitest-dev/vitest/commit/b24585f08"><!-- raw HTML omitted -->(b2458)<!-- raw HTML omitted --></a></li> <li>Scope cache key generators to projects - by <a href="https://github.com/ecoyoung"><code>@ecoyoung</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11281">vitest-dev/vitest#11281</a> and <a href="https://redirect.github.com/vitest-dev/vitest/issues/11301">vitest-dev/vitest#11301</a> <a href="https://github.com/vitest-dev/vitest/commit/92ba7fc1d"><!-- raw HTML omitted -->(92ba7)<!-- raw HTML omitted --></a></li> <li><strong>browser</strong>: <ul> <li>Delay server <code>listen</code> until tests start running - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11366">vitest-dev/vitest#11366</a> <a href="https://github.com/vitest-dev/vitest/commit/7d8ed3e9b"><!-- raw HTML omitted -->(7d8ed)<!-- raw HTML omitted --></a></li> <li>Check mock path boundaries - by <a href="https://github.com/saryn17"><code>@saryn17</code></a>, <strong>Ryosei Sato</strong> and <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11361">vitest-dev/vitest#11361</a> and <a href="https://redirect.github.com/vitest-dev/vitest/issues/11362">vitest-dev/vitest#11362</a> <a href="https://github.com/vitest-dev/vitest/commit/1c3888bce"><!-- raw HTML omitted -->(1c388)<!-- raw HTML omitted --></a></li> <li>Keep config of browser-consumed environments - by <a href="https://github.com/kasperpeulen"><code>@kasperpeulen</code></a> and <strong>Claude</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11378">vitest-dev/vitest#11378</a> <a href="https://github.com/vitest-dev/vitest/commit/aafc0996f"><!-- raw HTML omitted -->(aafc0)<!-- raw HTML omitted --></a></li> <li>Ignore page crash while cancelling - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11386">vitest-dev/vitest#11386</a> <a href="https://github.com/vitest-dev/vitest/commit/7c36748fa"><!-- raw HTML omitted -->(7c367)<!-- raw HTML omitted --></a></li> <li><code>toMatchScreenshot</code> uses wrong reference on retried tests - by <a href="https://github.com/macarie"><code>@macarie</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11393">vitest-dev/vitest#11393</a> <a href="https://github.com/vitest-dev/vitest/commit/c22aba992"><!-- raw HTML omitted -->(c22ab)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>cache</strong>: <ul> <li>Revalidate imports of cached modules - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11381">vitest-dev/vitest#11381</a> <a href="https://github.com/vitest-dev/vitest/commit/38f98855f"><!-- raw HTML omitted -->(38f98)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>deps</strong>: <ul> <li>Pin <code>why-is-node-running</code> to <code>3.2.1</code> to avoid users running into <code>ERR_PNPM_TRUST_DOWNGRADE</code> - by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11403">vitest-dev/vitest#11403</a> <a href="https://github.com/vitest-dev/vitest/commit/f6c9a4977"><!-- raw HTML omitted -->(f6c9a)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>expect</strong>: <ul> <li>Pass current equality testers to <code>expect.extend</code> asymmetric matchers - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Claude</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11401">vitest-dev/vitest#11401</a> <a href="https://github.com/vitest-dev/vitest/commit/3e794a96b"><!-- raw HTML omitted -->(3e794)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>jsdom</strong>: <ul> <li>Support Blob on jsdom 30.1 - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11379">vitest-dev/vitest#11379</a> <a href="https://github.com/vitest-dev/vitest/commit/6c49b7197"><!-- raw HTML omitted -->(6c49b)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>pool</strong>: <ul> <li>Preserve unique pool ids when <code>groupOrder</code> is set - by <a href="https://github.com/mtorp"><code>@mtorp</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11392">vitest-dev/vitest#11392</a> <a href="https://github.com/vitest-dev/vitest/commit/50312ebb4"><!-- raw HTML omitted -->(50312)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>ui</strong>: <ul> <li>Split-pane handle overlapping iframe - by <a href="https://github.com/macarie"><code>@macarie</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11221">vitest-dev/vitest#11221</a> <a href="https://github.com/vitest-dev/vitest/commit/f91db0dfd"><!-- raw HTML omitted -->(f91db)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>vitest</strong>: <ul> <li>Remove root temp dir on close - by <a href="https://github.com/abhinav-phi"><code>@abhinav-phi</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11248">vitest-dev/vitest#11248</a> <a href="https://github.com/vitest-dev/vitest/commit/7c7119cf7"><!-- raw HTML omitted -->(7c711)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>vm</strong>: <ul> <li>Do not optimize deps from index.html - by <a href="https://github.com/ezefernandezyf"><code>@ezefernandezyf</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Codex (GPT-6)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11329">vitest-dev/vitest#11329</a> and <a href="https://redirect.github.com/vitest-dev/vitest/issues/11360">vitest-dev/vitest#11360</a> <a href="https://github.com/vitest-dev/vitest/commit/caf2887de"><!-- raw HTML omitted -->(caf28)<!-- raw HTML omitted --></a></li> <li>Don't reuse scripts across vite environments - by <a href="https://github.com/MO2k4"><code>@MO2k4</code></a>, <strong>Martin Oehlert</strong> and <strong>Claude</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11395">vitest-dev/vitest#11395</a> <a href="https://github.com/vitest-dev/vitest/commit/346d3896b"><!-- raw HTML omitted -->(346d3)<!-- raw HTML omitted --></a></li> </ul> </li> </ul> <h5> <a href="https://github.com/vitest-dev/vitest/compare/v5.0.2...v5.0.3">View changes on GitHub</a></h5> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/vitest-dev/vitest/commit/33cadea62e8763c455c7fca38d9ab1dda87c5f75"><code>33cadea</code></a> chore: release v5.0.3 (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11409">#11409</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/346d3896b65c3c907174447a035807342799f346"><code>346d389</code></a> fix(vm): don't reuse scripts across vite environments (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11395">#11395</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/f6c9a4977ad3363f796a737834572e54c6ad5c18"><code>f6c9a49</code></a> fix(deps): pin <code>why-is-node-running</code> to <code>3.2.1</code> to avoid users running into `...</li> <li><a href="https://github.com/vitest-dev/vitest/commit/062c75d8b63519211d951d8293ea81b5a9e3c124"><code>062c75d</code></a> chore: fix standalone docs build, update exports maps (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11394">#11394</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/caf2887dee8987a60118d53933f6e9cabd6b3e2a"><code>caf2887</code></a> fix(vm): do not optimize deps from index.html (fix <a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11329">#11329</a>) (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11360">#11360</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/50312ebb4eca6a98f6d0b2b61d5d9d38cbbabcef"><code>50312eb</code></a> fix(pool): preserve unique pool ids when <code>groupOrder</code> is set (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11392">#11392</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/7c36748fad1eae9687312f2f7ceadce6ec88b5df"><code>7c36748</code></a> fix(browser): ignore page crash while cancelling (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11386">#11386</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/92ba7fc1df16a4fa5bbee3f198c582fbd56689d8"><code>92ba7fc</code></a> fix: scope cache key generators to projects (fix <a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11281">#11281</a>) (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11301">#11301</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/38f98855fa9cd7fd376afb84094eba0fda256a74"><code>38f9885</code></a> fix(cache): revalidate imports of cached modules (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11381">#11381</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/b24585f08f2ea267746a2d6ca0e43edcbb29726f"><code>b24585f</code></a> fix: don't retry when <code>test.fails</code> expectedly failed (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11219">#11219</a>)</li> <li>Additional commits viewable in <a href="https://github.com/vitest-dev/vitest/commits/v5.0.3/packages/vitest">compare view</a></li> </ul> </details> <br /> Updates `headroom-ai` from 0.39.1 to 0.40.0 Updates `@types/node` from 26.6.3 to 26.6.5 <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node">compare view</a></li> </ul> </details> <br /> Updates `vitest` from 5.0.2 to 5.0.3 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/vitest-dev/vitest/releases">vitest's releases</a>.</em></p> <blockquote> <h2>v5.0.3</h2> <h3> 🐞 Bug Fixes</h3> <ul> <li>Isolate <code>result.status</code> between <code>repeats</code> runs - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Codex (GPT-6)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11218">vitest-dev/vitest#11218</a> <a href="https://github.com/vitest-dev/vitest/commit/5dbebe9e3"><!-- raw HTML omitted -->(5dbeb)<!-- raw HTML omitted --></a></li> <li>Don't print an interceptor warning in browser mode - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11377">vitest-dev/vitest#11377</a> <a href="https://github.com/vitest-dev/vitest/commit/15cc006aa"><!-- raw HTML omitted -->(15cc0)<!-- raw HTML omitted --></a></li> <li>Don't retry when <code>test.fails</code> expectedly failed - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Codex (GPT-6)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11219">vitest-dev/vitest#11219</a> <a href="https://github.com/vitest-dev/vitest/commit/b24585f08"><!-- raw HTML omitted -->(b2458)<!-- raw HTML omitted --></a></li> <li>Scope cache key generators to projects - by <a href="https://github.com/ecoyoung"><code>@ecoyoung</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11281">vitest-dev/vitest#11281</a> and <a href="https://redirect.github.com/vitest-dev/vitest/issues/11301">vitest-dev/vitest#11301</a> <a href="https://github.com/vitest-dev/vitest/commit/92ba7fc1d"><!-- raw HTML omitted -->(92ba7)<!-- raw HTML omitted --></a></li> <li><strong>browser</strong>: <ul> <li>Delay server <code>listen</code> until tests start running - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11366">vitest-dev/vitest#11366</a> <a href="https://github.com/vitest-dev/vitest/commit/7d8ed3e9b"><!-- raw HTML omitted -->(7d8ed)<!-- raw HTML omitted --></a></li> <li>Check mock path boundaries - by <a href="https://github.com/saryn17"><code>@saryn17</code></a>, <strong>Ryosei Sato</strong> and <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11361">vitest-dev/vitest#11361</a> and <a href="https://redirect.github.com/vitest-dev/vitest/issues/11362">vitest-dev/vitest#11362</a> <a href="https://github.com/vitest-dev/vitest/commit/1c3888bce"><!-- raw HTML omitted -->(1c388)<!-- raw HTML omitted --></a></li> <li>Keep config of browser-consumed environments - by <a href="https://github.com/kasperpeulen"><code>@kasperpeulen</code></a> and <strong>Claude</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11378">vitest-dev/vitest#11378</a> <a href="https://github.com/vitest-dev/vitest/commit/aafc0996f"><!-- raw HTML omitted -->(aafc0)<!-- raw HTML omitted --></a></li> <li>Ignore page crash while cancelling - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11386">vitest-dev/vitest#11386</a> <a href="https://github.com/vitest-dev/vitest/commit/7c36748fa"><!-- raw HTML omitted -->(7c367)<!-- raw HTML omitted --></a></li> <li><code>toMatchScreenshot</code> uses wrong reference on retried tests - by <a href="https://github.com/macarie"><code>@macarie</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11393">vitest-dev/vitest#11393</a> <a href="https://github.com/vitest-dev/vitest/commit/c22aba992"><!-- raw HTML omitted -->(c22ab)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>cache</strong>: <ul> <li>Revalidate imports of cached modules - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11381">vitest-dev/vitest#11381</a> <a href="https://github.com/vitest-dev/vitest/commit/38f98855f"><!-- raw HTML omitted -->(38f98)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>deps</strong>: <ul> <li>Pin <code>why-is-node-running</code> to <code>3.2.1</code> to avoid users running into <code>ERR_PNPM_TRUST_DOWNGRADE</code> - by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11403">vitest-dev/vitest#11403</a> <a href="https://github.com/vitest-dev/vitest/commit/f6c9a4977"><!-- raw HTML omitted -->(f6c9a)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>expect</strong>: <ul> <li>Pass current equality testers to <code>expect.extend</code> asymmetric matchers - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Claude</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11401">vitest-dev/vitest#11401</a> <a href="https://github.com/vitest-dev/vitest/commit/3e794a96b"><!-- raw HTML omitted -->(3e794)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>jsdom</strong>: <ul> <li>Support Blob on jsdom 30.1 - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11379">vitest-dev/vitest#11379</a> <a href="https://github.com/vitest-dev/vitest/commit/6c49b7197"><!-- raw HTML omitted -->(6c49b)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>pool</strong>: <ul> <li>Preserve unique pool ids when <code>groupOrder</code> is set - by <a href="https://github.com/mtorp"><code>@mtorp</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11392">vitest-dev/vitest#11392</a> <a href="https://github.com/vitest-dev/vitest/commit/50312ebb4"><!-- raw HTML omitted -->(50312)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>ui</strong>: <ul> <li>Split-pane handle overlapping iframe - by <a href="https://github.com/macarie"><code>@macarie</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11221">vitest-dev/vitest#11221</a> <a href="https://github.com/vitest-dev/vitest/commit/f91db0dfd"><!-- raw HTML omitted -->(f91db)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>vitest</strong>: <ul> <li>Remove root temp dir on close - by <a href="https://github.com/abhinav-phi"><code>@abhinav-phi</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11248">vitest-dev/vitest#11248</a> <a href="https://github.com/vitest-dev/vitest/commit/7c7119cf7"><!-- raw HTML omitted -->(7c711)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>vm</strong>: <ul> <li>Do not optimize deps from index.html - by <a href="https://github.com/ezefernandezyf"><code>@ezefernandezyf</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Codex (GPT-6)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11329">vitest-dev/vitest#11329</a> and <a href="https://redirect.github.com/vitest-dev/vitest/issues/11360">vitest-dev/vitest#11360</a> <a href="https://github.com/vitest-dev/vitest/commit/caf2887de"><!-- raw HTML omitted -->(caf28)<!-- raw HTML omitted --></a></li> <li>Don't reuse scripts across vite environments - by <a href="https://github.com/MO2k4"><code>@MO2k4</code></a>, <strong>Martin Oehlert</strong> and <strong>Claude</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11395">vitest-dev/vitest#11395</a> <a href="https://github.com/vitest-dev/vitest/commit/346d3896b"><!-- raw HTML omitted -->(346d3)<!-- raw HTML omitted --></a></li> </ul> </li> </ul> <h5> <a href="https://github.com/vitest-dev/vitest/compare/v5.0.2...v5.0.3">View changes on GitHub</a></h5> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/vitest-dev/vitest/commit/33cadea62e8763c455c7fca38d9ab1dda87c5f75"><code>33cadea</code></a> chore: release v5.0.3 (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11409">#11409</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/346d3896b65c3c907174447a035807342799f346"><code>346d389</code></a> fix(vm): don't reuse scripts across vite environments (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11395">#11395</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/f6c9a4977ad3363f796a737834572e54c6ad5c18"><code>f6c9a49</code></a> fix(deps): pin <code>why-is-node-running</code> to <code>3.2.1</code> to avoid users running into `...</li> <li><a href="https://github.com/vitest-dev/vitest/commit/062c75d8b63519211d951d8293ea81b5a9e3c124"><code>062c75d</code></a> chore: fix standalone docs build, update exports maps (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11394">#11394</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/caf2887dee8987a60118d53933f6e9cabd6b3e2a"><code>caf2887</code></a> fix(vm): do not optimize deps from index.html (fix <a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11329">#11329</a>) (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11360">#11360</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/50312ebb4eca6a98f6d0b2b61d5d9d38cbbabcef"><code>50312eb</code></a> fix(pool): preserve unique pool ids when <code>groupOrder</code> is set (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11392">#11392</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/7c36748fad1eae9687312f2f7ceadce6ec88b5df"><code>7c36748</code></a> fix(browser): ignore page crash while cancelling (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11386">#11386</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/92ba7fc1df16a4fa5bbee3f198c582fbd56689d8"><code>92ba7fc</code></a> fix: scope cache key generators to projects (fix <a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11281">#11281</a>) (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11301">#11301</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/38f98855fa9cd7fd376afb84094eba0fda256a74"><code>38f9885</code></a> fix(cache): revalidate imports of cached modules (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11381">#11381</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/b24585f08f2ea267746a2d6ca0e43edcbb29726f"><code>b24585f</code></a> fix: don't retry when <code>test.fails</code> expectedly failed (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11219">#11219</a>)</li> <li>Additional commits viewable in <a href="https://github.com/vitest-dev/vitest/commits/v5.0.3/packages/vitest">compare view</a></li> </ul> </details> <br /> Updates `@types/node` from 26.6.3 to 26.6.5 <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node">compare view</a></li> </ul> </details> <br /> Updates `vitest` from 5.0.2 to 5.0.3 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/vitest-dev/vitest/releases">vitest's releases</a>.</em></p> <blockquote> <h2>v5.0.3</h2> <h3> 🐞 Bug Fixes</h3> <ul> <li>Isolate <code>result.status</code> between <code>repeats</code> runs - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Codex (GPT-6)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11218">vitest-dev/vitest#11218</a> <a href="https://github.com/vitest-dev/vitest/commit/5dbebe9e3"><!-- raw HTML omitted -->(5dbeb)<!-- raw HTML omitted --></a></li> <li>Don't print an interceptor warning in browser mode - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11377">vitest-dev/vitest#11377</a> <a href="https://github.com/vitest-dev/vitest/commit/15cc006aa"><!-- raw HTML omitted -->(15cc0)<!-- raw HTML omitted --></a></li> <li>Don't retry when <code>test.fails</code> expectedly failed - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Codex (GPT-6)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11219">vitest-dev/vitest#11219</a> <a href="https://github.com/vitest-dev/vitest/commit/b24585f08"><!-- raw HTML omitted -->(b2458)<!-- raw HTML omitted --></a></li> <li>Scope cache key generators to projects - by <a href="https://github.com/ecoyoung"><code>@ecoyoung</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11281">vitest-dev/vitest#11281</a> and <a href="https://redirect.github.com/vitest-dev/vitest/issues/11301">vitest-dev/vitest#11301</a> <a href="https://github.com/vitest-dev/vitest/commit/92ba7fc1d"><!-- raw HTML omitted -->(92ba7)<!-- raw HTML omitted --></a></li> <li><strong>browser</strong>: <ul> <li>Delay server <code>listen</code> until tests start running - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11366">vitest-dev/vitest#11366</a> <a href="https://github.com/vitest-dev/vitest/commit/7d8ed3e9b"><!-- raw HTML omitted -->(7d8ed)<!-- raw HTML omitted --></a></li> <li>Check mock path boundaries - by <a href="https://github.com/saryn17"><code>@saryn17</code></a>, <strong>Ryosei Sato</strong> and <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11361">vitest-dev/vitest#11361</a> and <a href="https://redirect.github.com/vitest-dev/vitest/issues/11362">vitest-dev/vitest#11362</a> <a href="https://github.com/vitest-dev/vitest/commit/1c3888bce"><!-- raw HTML omitted -->(1c388)<!-- raw HTML omitted --></a></li> <li>Keep config of browser-consumed environments - by <a href="https://github.com/kasperpeulen"><code>@kasperpeulen</code></a> and <strong>Claude</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11378">vitest-dev/vitest#11378</a> <a href="https://github.com/vitest-dev/vitest/commit/aafc0996f"><!-- raw HTML omitted -->(aafc0)<!-- raw HTML omitted --></a></li> <li>Ignore page crash while cancelling - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11386">vitest-dev/vitest#11386</a> <a href="https://github.com/vitest-dev/vitest/commit/7c36748fa"><!-- raw HTML omitted -->(7c367)<!-- raw HTML omitted --></a></li> <li><code>toMatchScreenshot</code> uses wrong reference on retried tests - by <a href="https://github.com/macarie"><code>@macarie</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11393">vitest-dev/vitest#11393</a> <a href="https://github.com/vitest-dev/vitest/commit/c22aba992"><!-- raw HTML omitted -->(c22ab)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>cache</strong>: <ul> <li>Revalidate imports of cached modules - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11381">vitest-dev/vitest#11381</a> <a href="https://github.com/vitest-dev/vitest/commit/38f98855f"><!-- raw HTML omitted -->(38f98)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>deps</strong>: <ul> <li>Pin <code>why-is-node-running</code> to <code>3.2.1</code> to avoid users running into <code>ERR_PNPM_TRUST_DOWNGRADE</code> - by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11403">vitest-dev/vitest#11403</a> <a href="https://github.com/vitest-dev/vitest/commit/f6c9a4977"><!-- raw HTML omitted -->(f6c9a)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>expect</strong>: <ul> <li>Pass current equality testers to <code>expect.extend</code> asymmetric matchers - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Claude</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11401">vitest-dev/vitest#11401</a> <a href="https://github.com/vitest-dev/vitest/commit/3e794a96b"><!-- raw HTML omitted -->(3e794)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>jsdom</strong>: <ul> <li>Support Blob on jsdom 30.1 - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11379">vitest-dev/vitest#11379</a> <a href="https://github.com/vitest-dev/vitest/commit/6c49b7197"><!-- raw HTML omitted -->(6c49b)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>pool</strong>: <ul> <li>Preserve unique pool ids when <code>groupOrder</code> is set - by <a href="https://github.com/mtorp"><code>@mtorp</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11392">vitest-dev/vitest#11392</a> <a href="https://github.com/vitest-dev/vitest/commit/50312ebb4"><!-- raw HTML omitted -->(50312)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>ui</strong>: <ul> <li>Split-pane handle overlapping iframe - by <a href="https://github.com/macarie"><code>@macarie</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11221">vitest-dev/vitest#11221</a> <a href="https://github.com/vitest-dev/vitest/commit/f91db0dfd"><!-- raw HTML omitted -->(f91db)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>vitest</strong>: <ul> <li>Remove root temp dir on close - by <a href="https://github.com/abhinav-phi"><code>@abhinav-phi</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11248">vitest-dev/vitest#11248</a> <a href="https://github.com/vitest-dev/vitest/commit/7c7119cf7"><!-- raw HTML omitted -->(7c711)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>vm</strong>: <ul> <li>Do not optimize deps from index.html - by <a href="https://github.com/ezefernandezyf"><code>@ezefernandezyf</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Codex (GPT-6)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11329">vitest-dev/vitest#11329</a> and <a href="https://redirect.github.com/vitest-dev/vitest/issues/11360">vitest-dev/vitest#11360</a> <a href="https://github.com/vitest-dev/vitest/commit/caf2887de"><!-- raw HTML omitted -->(caf28)<!-- raw HTML omitted --></a></li> <li>Don't reuse scripts across vite environments - by <a href="https://github.com/MO2k4"><code>@MO2k4</code></a>, <strong>Martin Oehlert</strong> and <strong>Claude</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11395">vitest-dev/vitest#11395</a> <a href="https://github.com/vitest-dev/vitest/commit/346d3896b"><!-- raw HTML omitted -->(346d3)<!-- raw HTML omitted --></a></li> </ul> </li> </ul> <h5> <a href="https://github.com/vitest-dev/vitest/compare/v5.0.2...v5.0.3">View changes on GitHub</a></h5> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/vitest-dev/vitest/commit/33cadea62e8763c455c7fca38d9ab1dda87c5f75"><code>33cadea</code></a> chore: release v5.0.3 (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11409">#11409</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/346d3896b65c3c907174447a035807342799f346"><code>346d389</code></a> fix(vm): don't reuse scripts across vite environments (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11395">#11395</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/f6c9a4977ad3363f796a737834572e54c6ad5c18"><code>f6c9a49</code></a> fix(deps): pin <code>why-is-node-running</code> to <code>3.2.1</code> to avoid users running into `...</li> <li><a href="https://github.com/vitest-dev/vitest/commit/062c75d8b63519211d951d8293ea81b5a9e3c124"><code>062c75d</code></a> chore: fix standalone docs build, update exports maps (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11394">#11394</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/caf2887dee8987a60118d53933f6e9cabd6b3e2a"><code>caf2887</code></a> fix(vm): do not optimize deps from index.html (fix <a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11329">#11329</a>) (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11360">#11360</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/50312ebb4eca6a98f6d0b2b61d5d9d38cbbabcef"><code>50312eb</code></a> fix(pool): preserve unique pool ids when <code>groupOrder</code> is set (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11392">#11392</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/7c36748fad1eae9687312f2f7ceadce6ec88b5df"><code>7c36748</code></a> fix(browser): ignore page crash while cancelling (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11386">#11386</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/92ba7fc1df16a4fa5bbee3f198c582fbd56689d8"><code>92ba7fc</code></a> fix: scope cache key generators to projects (fix <a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11281">#11281</a>) (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11301">#11301</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/38f98855fa9cd7fd376afb84094eba0fda256a74"><code>38f9885</code></a> fix(cache): revalidate imports of cached modules (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11381">#11381</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/b24585f08f2ea267746a2d6ca0e43edcbb29726f"><code>b24585f</code></a> fix: don't retry when <code>test.fails</code> expectedly failed (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11219">#11219</a>)</li> <li>Additional commits viewable in <a href="https://github.com/vitest-dev/vitest/commits/v5.0.3/packages/vitest">compare view</a></li> </ul> </details> <br /> Updates `headroom-ai` from 0.39.1 to 0.40.0 Updates `@types/node` from 26.6.3 to 26.6.5 <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node">compare view</a></li> </ul> </details> <br /> Updates `vitest` from 5.0.2 to 5.0.3 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/vitest-dev/vitest/releases">vitest's releases</a>.</em></p> <blockquote> <h2>v5.0.3</h2> <h3> 🐞 Bug Fixes</h3> <ul> <li>Isolate <code>result.status</code> between <code>repeats</code> runs - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Codex (GPT-6)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11218">vitest-dev/vitest#11218</a> <a href="https://github.com/vitest-dev/vitest/commit/5dbebe9e3"><!-- raw HTML omitted -->(5dbeb)<!-- raw HTML omitted --></a></li> <li>Don't print an interceptor warning in browser mode - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11377">vitest-dev/vitest#11377</a> <a href="https://github.com/vitest-dev/vitest/commit/15cc006aa"><!-- raw HTML omitted -->(15cc0)<!-- raw HTML omitted --></a></li> <li>Don't retry when <code>test.fails</code> expectedly failed - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Codex (GPT-6)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11219">vitest-dev/vitest#11219</a> <a href="https://github.com/vitest-dev/vitest/commit/b24585f08"><!-- raw HTML omitted -->(b2458)<!-- raw HTML omitted --></a></li> <li>Scope cache key generators to projects - by <a href="https://github.com/ecoyoung"><code>@ecoyoung</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11281">vitest-dev/vitest#11281</a> and <a href="https://redirect.github.com/vitest-dev/vitest/issues/11301">vitest-dev/vitest#11301</a> <a href="https://github.com/vitest-dev/vitest/commit/92ba7fc1d"><!-- raw HTML omitted -->(92ba7)<!-- raw HTML omitted --></a></li> <li><strong>browser</strong>: <ul> <li>Delay server <code>listen</code> until tests start running - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11366">vitest-dev/vitest#11366</a> <a href="https://github.com/vitest-dev/vitest/commit/7d8ed3e9b"><!-- raw HTML omitted -->(7d8ed)<!-- raw HTML omitted --></a></li> <li>Check mock path boundaries - by <a href="https://github.com/saryn17"><code>@saryn17</code></a>, <strong>Ryosei Sato</strong> and <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11361">vitest-dev/vitest#11361</a> and <a href="https://redirect.github.com/vitest-dev/vitest/issues/11362">vitest-dev/vitest#11362</a> <a href="https://github.com/vitest-dev/vitest/commit/1c3888bce"><!-- raw HTML omitted -->(1c388)<!-- raw HTML omitted --></a></li> <li>Keep config of browser-consumed environments - by <a href="https://github.com/kasperpeulen"><code>@kasperpeulen</code></a> and <strong>Claude</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11378">vitest-dev/vitest#11378</a> <a href="https://github.com/vitest-dev/vitest/commit/aafc0996f"><!-- raw HTML omitted -->(aafc0)<!-- raw HTML omitted --></a></li> <li>Ignore page crash while cancelling - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11386">vitest-dev/vitest#11386</a> <a href="https://github.com/vitest-dev/vitest/commit/7c36748fa"><!-- raw HTML omitted -->(7c367)<!-- raw HTML omitted --></a></li> <li><code>toMatchScreenshot</code> uses wrong reference on retried tests - by <a href="https://github.com/macarie"><code>@macarie</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11393">vitest-dev/vitest#11393</a> <a href="https://github.com/vitest-dev/vitest/commit/c22aba992"><!-- raw HTML omitted -->(c22ab)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>cache</strong>: <ul> <li>Revalidate imports of cached modules - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11381">vitest-dev/vitest#11381</a> <a href="https://github.com/vitest-dev/vitest/commit/38f98855f"><!-- raw HTML omitted -->(38f98)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>deps</strong>: <ul> <li>Pin <code>why-is-node-running</code> to <code>3.2.1</code> to avoid users running into <code>ERR_PNPM_TRUST_DOWNGRADE</code> - by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11403">vitest-dev/vitest#11403</a> <a href="https://github.com/vitest-dev/vitest/commit/f6c9a4977"><!-- raw HTML omitted -->(f6c9a)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>expect</strong>: <ul> <li>Pass current equality testers to <code>expect.extend</code> asymmetric matchers - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Claude</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11401">vitest-dev/vitest#11401</a> <a href="https://github.com/vitest-dev/vitest/commit/3e794a96b"><!-- raw HTML omitted -->(3e794)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>jsdom</strong>: <ul> <li>Support Blob on jsdom 30.1 - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11379">vitest-dev/vitest#11379</a> <a href="https://github.com/vitest-dev/vitest/commit/6c49b7197"><!-- raw HTML omitted -->(6c49b)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>pool</strong>: <ul> <li>Preserve unique pool ids when <code>groupOrder</code> is set - by <a href="https://github.com/mtorp"><code>@mtorp</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11392">vitest-dev/vitest#11392</a> <a href="https://github.com/vitest-dev/vitest/commit/50312ebb4"><!-- raw HTML omitted -->(50312)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>ui</strong>: <ul> <li>Split-pane handle overlapping iframe - by <a href="https://github.com/macarie"><code>@macarie</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11221">vitest-dev/vitest#11221</a> <a href="https://github.com/vitest-dev/vitest/commit/f91db0dfd"><!-- raw HTML omitted -->(f91db)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>vitest</strong>: <ul> <li>Remove root temp dir on close - by <a href="https://github.com/abhinav-phi"><code>@abhinav-phi</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11248">vitest-dev/vitest#11248</a> <a href="https://github.com/vitest-dev/vitest/commit/7c7119cf7"><!-- raw HTML omitted -->(7c711)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>vm</strong>: <ul> <li>Do not optimize deps from index.html - by <a href="https://github.com/ezefernandezyf"><code>@ezefernandezyf</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Codex (GPT-6)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11329">vitest-dev/vitest#11329</a> and <a href="https://redirect.github.com/vitest-dev/vitest/issues/11360">vitest-dev/vitest#11360</a> <a href="https://github.com/vitest-dev/vitest/commit/caf2887de"><!-- raw HTML omitted -->(caf28)<!-- raw HTML omitted --></a></li> <li>Don't reuse scripts across vite environments - by <a href="https://github.com/MO2k4"><code>@MO2k4</code></a>, <strong>Martin Oehlert</strong> and <strong>Claude</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11395">vitest-dev/vitest#11395</a> <a href="https://github.com/vitest-dev/vitest/commit/346d3896b"><!-- raw HTML omitted -->(346d3)<!-- raw HTML omitted --></a></li> </ul> </li> </ul> <h5> <a href="https://github.com/vitest-dev/vitest/compare/v5.0.2...v5.0.3">View changes on GitHub</a></h5> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/vitest-dev/vitest/commit/33cadea62e8763c455c7fca38d9ab1dda87c5f75"><code>33cadea</code></a> chore: release v5.0.3 (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11409">#11409</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/346d3896b65c3c907174447a035807342799f346"><code>346d389</code></a> fix(vm): don't reuse scripts across vite environments (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11395">#11395</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/f6c9a4977ad3363f796a737834572e54c6ad5c18"><code>f6c9a49</code></a> fix(deps): pin <code>why-is-node-running</code> to <code>3.2.1</code> to avoid users running into `...</li> <li><a href="https://github.com/vitest-dev/vitest/commit/062c75d8b63519211d951d8293ea81b5a9e3c124"><code>062c75d</code></a> chore: fix standalone docs build, update exports maps (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11394">#11394</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/caf2887dee8987a60118d53933f6e9cabd6b3e2a"><code>caf2887</code></a> fix(vm): do not optimize deps from index.html (fix <a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11329">#11329</a>) (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11360">#11360</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/50312ebb4eca6a98f6d0b2b61d5d9d38cbbabcef"><code>50312eb</code></a> fix(pool): preserve unique pool ids when <code>groupOrder</code> is set (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11392">#11392</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/7c36748fad1eae9687312f2f7ceadce6ec88b5df"><code>7c36748</code></a> fix(browser): ignore page crash while cancelling (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11386">#11386</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/92ba7fc1df16a4fa5bbee3f198c582fbd56689d8"><code>92ba7fc</code></a> fix: scope cache key generators to projects (fix <a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11281">#11281</a>) (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11301">#11301</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/38f98855fa9cd7fd376afb84094eba0fda256a74"><code>38f9885</code></a> fix(cache): revalidate imports of cached modules (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11381">#11381</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/b24585f08f2ea267746a2d6ca0e43edcbb29726f"><code>b24585f</code></a> fix: don't retry when <code>test.fails</code> expectedly failed (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11219">#11219</a>)</li> <li>Additional commits viewable in <a href="https://github.com/vitest-dev/vitest/commits/v5.0.3/packages/vitest">compare view</a></li> </ul> </details> <br /> Updates `@opencode-ai/plugin` from 1.18.33 to 1.19.0 Updates `headroom-ai` from 0.39.1 to 0.40.0 Updates `@opencode/plugin` from 2.0.24 to 2.0.27 <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/anomalyco/opencode/blob/dev/CHANGELOG.md">@opencode/plugin's changelog</a>.</em></p> <blockquote> <h2>v2.0.27 — 2026-10-12</h2> <h3>Highlights</h3> <ul> <li><strong>Built-In Worktree Tools</strong>: Ask OpenCode to use <code>worktree_create</code>, <code>worktree_list</code>, and <code>worktree_remove</code> in Code Mode. You can create isolated worktrees, move sessions into them, and remove them with normal edit approval. (<a href="https://redirect.github.com/anomalyco/opencode/pull/53981">#53981</a>)</li> <li><strong>Safer Remote Pairing</strong>: The first <code>opencode pair --remote</code> now warns that it will expose your server and asks for confirmation. For non-interactive use, pass <code>opencode pair --remote --yes</code>. (<a href="https://redirect.github.com/anomalyco/opencode/pull/54561">#54561</a>)</li> <li><strong>Installable Web App</strong>: Use Chrome or Edge’s <strong>Install</strong> button to install the OpenCode web app, including when it runs behind an authenticating proxy. (<a href="https://redirect.github.com/anomalyco/opencode/pull/53905">#53905</a>)</li> <li><strong>Clear Session Failures</strong>: Desktop and TUI timelines now show execution errors that happen before or between model steps instead of ending without an explanation. (<a href="https://redirect.github.com/anomalyco/opencode/pull/53826">#53826</a>)</li> <li><strong>Automatic Project Cleanup</strong>: Projects whose directories no longer exist are automatically hidden from the project list. Opening the directory again restores the project. (<a href="https://redirect.github.com/anomalyco/opencode/pull/54354">#54354</a>)</li> </ul> <h3>Core</h3> <h4>Improvements</h4> <ul> <li>Added the built-in Code Mode tools <code>opencode.worktree_create</code>, <code>opencode.worktree_list</code>, and <code>opencode.worktree_remove</code>. Removing a worktree requires edit approval, and <code>force: true</code> can discard modified or untracked files. (<a href="https://redirect.github.com/anomalyco/opencode/pull/53981">#53981</a>)</li> <li>Added confirmation before <code>opencode pair --remote</code> first enables internet access, plus <code>--yes</code>/<code>-y</code> for scripts and other non-interactive use. (<a href="https://redirect.github.com/anomalyco/opencode/pull/54561">#54561</a>)</li> <li>Automatically archived projects when all known directories disappear. Reopening a project restores it, while surviving clones and linked worktrees keep it active. (<a href="https://redirect.github.com/anomalyco/opencode/pull/54354">#54354</a>)</li> <li>Raised the ChatGPT OAuth input limit for <code>gpt-6.1-sol</code> and <code>gpt-6.1-sol-fast</code> to 500,000 tokens. (<a href="https://redirect.github.com/anomalyco/opencode/pull/54668">#54668</a>)</li> <li>Added Vertex AI routes for Interactions and Mistral models. (<a href="https://redirect.github.com/anomalyco/opencode/pull/54175">#54175</a>, <a href="https://redirect.github.com/anomalyco/opencode/pull/54058">#54058</a>)</li> </ul> <h4>Bug fixes</h4> <ul> <li>Fixed updater detection for symlinked home directories and package-manager installations, increased probe timeouts, and now report unavailable updates clearly when the installation method cannot be detected. (<a href="https://redirect.github.com/anomalyco/opencode/pull/54609">#54609</a>, <a href="https://redirect.github.com/anomalyco/opencode/pull/54622">#54622</a>, <a href="https://redirect.github.com/anomalyco/opencode/pull/54672">#54672</a>)</li> <li>Fixed GitHub Copilot routing for Gemini, Anthropic, and Responses models when live model metadata is unavailable, and accepted interleaved Claude reasoning values. (<a href="https://redirect.github.com/anomalyco/opencode/pull/54208">#54208</a>, <a href="https://redirect.github.com/anomalyco/opencode/pull/54210">#54210</a>, <a href="https://redirect.github.com/anomalyco/opencode/pull/54201">#54201</a>)</li> <li>Fixed Google Vertex Application Default Credentials when <code>CLOUDSDK_CONFIG</code> points to a custom gcloud configuration directory. Thanks <a href="https://github.com/H-Max"><code>@H-Max</code></a>. (<a href="https://redirect.github.com/anomalyco/opencode/pull/54164">#54164</a>)</li> <li>Prevented ChatGPT token-sharing sessions from sending unsupported mid-session reasoning-effort updates. (<a href="https://redirect.github.com/anomalyco/opencode/pull/54085">#54085</a>)</li> <li>Blocked <code>file://</code> access through Code Mode’s <code>fetch</code>, which now returns a clear filesystem-access error. Thanks <a href="https://github.com/ferdinandyb"><code>@ferdinandyb</code></a>. (<a href="https://redirect.github.com/anomalyco/opencode/pull/54510">#54510</a>)</li> <li>Fixed remote workspace file operations so driver-provided filesystem overrides are used correctly.</li> <li>Preserved subagent notifications when location services are evicted, and propagated well-known configuration updates across locations with bounded HTTP timeouts. (<a href="https://redirect.github.com/anomalyco/opencode/pull/54072">#54072</a>, <a href="https://redirect.github.com/anomalyco/opencode/pull/53821">#53821</a>)</li> </ul> <h3>TUI</h3> <h4>Bug fixes</h4> <ul> <li>Displayed session execution failures that occur before or between model steps directly in the timeline. (<a href="https://redirect.github.com/anomalyco/opencode/pull/53826">#53826</a>)</li> <li>Preserved a saved session’s unavailable model selection instead of silently replacing it with a fallback. (<a href="https://redirect.github.com/anomalyco/opencode/pull/53822">#53822</a>)</li> <li>Added syntax highlighting for C++ module interface files such as <code>.cppm</code>, <code>.ixx</code>, and <code>.cxxm</code>. (<a href="https://redirect.github.com/anomalyco/opencode/pull/53853">#53853</a>)</li> <li>Summarized integrations with multiple credentials as a connection count, preventing long labels from crowding the integration name. (<a href="https://redirect.github.com/anomalyco/opencode/pull/54054">#54054</a>)</li> </ul> <h3>Desktop</h3> <h4>Improvements</h4> <ul> <li>Made the web app installable from Chrome and Edge, including deployments behind cookie-based authenticating proxies. (<a href="https://redirect.github.com/anomalyco/opencode/pull/53905">#53905</a>)</li> <li>Updated the session column layout and text wrapping for clearer long content. (<a href="https://redirect.github.com/anomalyco/opencode/pull/54020">#54020</a>)</li> </ul> <h4>Bug fixes</h4> <ul> <li>Displayed session execution failures that occur before or between model steps directly in the timeline. (<a href="https://redirect.github.com/anomalyco/opencode/pull/53826">#53826</a>)</li> <li>Fixed command-palette selection so newly arriving higher-ranked results become active until you explicitly choose a result. (<a href="https://redirect.github.com/anomalyco/opencode/pull/54275">#54275</a>)</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/anomalyco/opencode/commit/1f4d07a4a519185955ae8ab2ea3607805509e386"><code>1f4d07a</code></a> release: v2.0.27</li> <li><a href="https://github.com/anomalyco/opencode/commit/4d9678a79d6367ad1257c258049075e7a2d0c6c8"><code>4d9678a</code></a> fix(release): exclude V1 history from the release review range (<a href="https://redirect.github.com/anomalyco/opencode/issues/54674">#54674</a>)</li> <li><a href="https://github.com/anomalyco/opencode/commit/4d3d8fd769523b4e2f6b523e3df9fa965130fb4c"><code>4d3d8fd</code></a> docs: trim agent instructions (<a href="https://redirect.github.com/anomalyco/opencode/issues/54678">#54678</a>)</li> <li><a href="https://github.com/anomalyco/opencode/commit/e5a557efeee02c94486d391afc48f24a49ebc9a5"><code>e5a557e</code></a> fix(cli): return unavailable in updater.check when install method is unknown ...</li> <li><a href="https://github.com/anomalyco/opencode/commit/35ef229454d3664624ca798f53341858fc0dc33d"><code>35ef229</code></a> feat(core): raise ChatGPT OAuth context for gpt-6.1-sol to 500k (<a href="https://redirect.github.com/anomalyco/opencode/issues/54668">#54668</a>)</li> <li><a href="https://github.com/anomalyco/opencode/commit/707de5832656e89cc0f04436aa1cd5f4f91c5763"><code>707de58</code></a> fix(cli): prioritize path-matched package manager and extend probe timeout (#...</li> <li><a href="https://github.com/anomalyco/opencode/commit/ca19780de1b5ece1b84e0482e0f41c3a39228288"><code>ca19780</code></a> fix(stats): bound public page caching</li> <li><a href="https://github.com/anomalyco/opencode/commit/47e5e71599c1adf43119a125003c31c7b376675c"><code>47e5e71</code></a> fix(cli): resolve symlinked home path when detecting curl installs (<a href="https://redirect.github.com/anomalyco/opencode/issues/54609">#54609</a>)</li> <li><a href="https://github.com/anomalyco/opencode/commit/1c63fe9afeff4ead2623e9bbb2e2bc40e6205c0b"><code>1c63fe9</code></a> docs: use update service latest redirect URLs for downloads (<a href="https://redirect.github.com/anomalyco/opencode/issues/54598">#54598</a>)</li> <li><a href="https://github.com/anomalyco/opencode/commit/727fd603bef6472aa4d2a82479d0c09478b057de"><code>727fd60</code></a> feat(update): redirect artifact filenames to latest release URLs (<a href="https://redirect.github.com/anomalyco/opencode/issues/54597">#54597</a>)</li> <li>Additional commits viewable in <a href="https://github.com/anomalyco/opencode/compare/v2.0.24...v2.0.27">compare view</a></li> </ul> </details> <br /> Updates `@types/node` from 26.6.3 to 26.6.5 <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node">compare view</a></li> </ul> </details> <br /> Updates `vitest` from 5.0.2 to 5.0.3 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/vitest-dev/vitest/releases">vitest's releases</a>.</em></p> <blockquote> <h2>v5.0.3</h2> <h3> 🐞 Bug Fixes</h3> <ul> <li>Isolate <code>result.status</code> between <code>repeats</code> runs - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Codex (GPT-6)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11218">vitest-dev/vitest#11218</a> <a href="https://github.com/vitest-dev/vitest/commit/5dbebe9e3"><!-- raw HTML omitted -->(5dbeb)<!-- raw HTML omitted --></a></li> <li>Don't print an interceptor warning in browser mode - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11377">vitest-dev/vitest#11377</a> <a href="https://github.com/vitest-dev/vitest/commit/15cc006aa"><!-- raw HTML omitted -->(15cc0)<!-- raw HTML omitted --></a></li> <li>Don't retry when <code>test.fails</code> expectedly failed - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Codex (GPT-6)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11219">vitest-dev/vitest#11219</a> <a href="https://github.com/vitest-dev/vitest/commit/b24585f08"><!-- raw HTML omitted -->(b2458)<!-- raw HTML omitted --></a></li> <li>Scope cache key generators to projects - by <a href="https://github.com/ecoyoung"><code>@ecoyoung</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11281">vitest-dev/vitest#11281</a> and <a href="https://redirect.github.com/vitest-dev/vitest/issues/11301">vitest-dev/vitest#11301</a> <a href="https://github.com/vitest-dev/vitest/commit/92ba7fc1d"><!-- raw HTML omitted -->(92ba7)<!-- raw HTML omitted --></a></li> <li><strong>browser</strong>: <ul> <li>Delay server <code>listen</code> until tests start running - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11366">vitest-dev/vitest#11366</a> <a href="https://github.com/vitest-dev/vitest/commit/7d8ed3e9b"><!-- raw HTML omitted -->(7d8ed)<!-- raw HTML omitted --></a></li> <li>Check mock path boundaries - by <a href="https://github.com/saryn17"><code>@saryn17</code></a>, <strong>Ryosei Sato</strong> and <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11361">vitest-dev/vitest#11361</a> and <a href="https://redirect.github.com/vitest-dev/vitest/issues/11362">vitest-dev/vitest#11362</a> <a href="https://github.com/vitest-dev/vitest/commit/1c3888bce"><!-- raw HTML omitted -->(1c388)<!-- raw HTML omitted --></a></li> <li>Keep config of browser-consumed environments - by <a href="https://github.com/kasperpeulen"><code>@kasperpeulen</code></a> and <strong>Claude</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11378">vitest-dev/vitest#11378</a> <a href="https://github.com/vitest-dev/vitest/commit/aafc0996f"><!-- raw HTML omitted -->(aafc0)<!-- raw HTML omitted --></a></li> <li>Ignore page crash while cancelling - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11386">vitest-dev/vitest#11386</a> <a href="https://github.com/vitest-dev/vitest/commit/7c36748fa"><!-- raw HTML omitted -->(7c367)<!-- raw HTML omitted --></a></li> <li><code>toMatchScreenshot</code> uses wrong reference on retried tests - by <a href="https://github.com/macarie"><code>@macarie</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11393">vitest-dev/vitest#11393</a> <a href="https://github.com/vitest-dev/vitest/commit/c22aba992"><!-- raw HTML omitted -->(c22ab)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>cache</strong>: <ul> <li>Revalidate imports of cached modules - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11381">vitest-dev/vitest#11381</a> <a href="https://github.com/vitest-dev/vitest/commit/38f98855f"><!-- raw HTML omitted -->(38f98)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>deps</strong>: <ul> <li>Pin <code>why-is-node-running</code> to <code>3.2.1</code> to avoid users running into <code>ERR_PNPM_TRUST_DOWNGRADE</code> - by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11403">vitest-dev/vitest#11403</a> <a href="https://github.com/vitest-dev/vitest/commit/f6c9a4977"><!-- raw HTML omitted -->(f6c9a)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>expect</strong>: <ul> <li>Pass current equality testers to <code>expect.extend</code> asymmetric matchers - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Claude</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11401">vitest-dev/vitest#11401</a> <a href="https://github.com/vitest-dev/vitest/commit/3e794a96b"><!-- raw HTML omitted -->(3e794)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>jsdom</strong>: <ul> <li>Support Blob on jsdom 30.1 - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11379">vitest-dev/vitest#11379</a> <a href="https://github.com/vitest-dev/vitest/commit/6c49b7197"><!-- raw HTML omitted -->(6c49b)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>pool</strong>: <ul> <li>Preserve unique pool ids when <code>groupOrder</code> is set - by <a href="https://github.com/mtorp"><code>@mtorp</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11392">vitest-dev/vitest#11392</a> <a href="https://github.com/vitest-dev/vitest/commit/50312ebb4"><!-- raw HTML omitted -->(50312)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>ui</strong>: <ul> <li>Split-pane handle overlapping iframe - by <a href="https://github.com/macarie"><code>@macarie</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11221">vitest-dev/vitest#11221</a> <a href="https://github.com/vitest-dev/vitest/commit/f91db0dfd"><!-- raw HTML omitted -->(f91db)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>vitest</strong>: <ul> <li>Remove root temp dir on close - by <a href="https://github.com/abhinav-phi"><code>@abhinav-phi</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11248">vitest-dev/vitest#11248</a> <a href="https://github.com/vitest-dev/vitest/commit/7c7119cf7"><!-- raw HTML omitted -->(7c711)<!-- raw HTML omitted --></a></li> </ul> </li>... _Description has been truncated_ --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: JD Davis <mxjerrett@gmail.com> |
||
|
|
76133cff59 |
chore: release 0.41.0 (#4002)
🤖 I have created a release *beep* *boop* --- ## [0.41.0](https://github.com/headroomlabs-ai/headroom/compare/v0.40.0...v0.41.0) (2026-10-13) ### Features * **antigravity:** add native Google Antigravity IDE integration ([#3817](https://github.com/headroomlabs-ai/headroom/issues/3817)) ([ |
||
|
|
def6d41185 |
fix(toin): make diagnostic pattern identifiers addressable (#4021)
## Description Return the full scoped aggregation key, using the issue's option 2, rather than truncating it. The current key contains tenant, auth mode, model family, and signature; truncating to 12 characters makes different patterns share IDs and makes list-to-detail lookup silently return a different pattern. Closes #2928. ## Type of Change - [x] Bug fix - [x] Documentation update - [x] Intentional diagnostic contract change: listed `hash` values are complete scoped identifiers; ambiguous abbreviated lookups now return 409 instead of an arbitrary first match. ## Changes Made - Return the exact stored scoped key from `/v1/toin/patterns`. - Resolve exact keys first; allow an abbreviated prefix only if it matches one pattern. Keep 404 for unknown IDs and return 409 for ambiguity. - Capture the complete URL-decoded identifier, including a slash in a tenant ID, without falling through to an upstream passthrough route. - Preserve loopback authorization and the existing privacy whitelist. - Update the TypeScript SDK README to round-trip the listed ID. No SDK runtime change: `getPattern` already URL-encodes the string. ## Testing - [x] Unit tests pass (`pytest`), including scoped-ID round-trips and authorization regressions. - [x] Changed-file lint, configured pre-commit mypy and manual production HTTP checks pass. ### Test Output ```text ================== 144 passed, 1 warning in 71.73s (0:01:11) =================== ``` The mandatory pre-push `make ci-precheck` passed: workspace Rust fmt/clippy/tests, native extension build/import verification, the complete configured Python gate, and Commitlint. The native gate used the installed CPU `libonnxruntime.so.1.26.0` explicitly via `ORT_DYLIB_PATH`, without skipping cached-model assertions. ```text [build_rust_extension] headroom._core build + install + verify: OK ================== 177 passed, 4 skipped, 1 warning in 9.70s =================== ✅ ci-precheck PASSED — safe to push. ``` ```sh python -m pytest -q tests/test_proxy_loopback_gating.py ``` **144 passed**, one existing Starlette TestClient deprecation warning. The new consumer regressions produce **2 failed, 2 passed** against the unchanged baseline (preloaded baseline modules prevent foreign-worktree conftest imports from selecting the treatment). Changed-file Ruff, formatting, installed pre-commit `mypy headroom`, and Commitlint hooks passed. Full-tree Ruff was not green locally because five unchanged OAuth2 plugin files have executable filesystem permissions while Git tracks 100644. A separate full dev-environment mypy run found an unchanged optional LangChain `truthy-function` error; the isolated configured pre-commit mypy hook passed. No unrelated source or permissions were changed. ## Real Behavior Proof - Environment: Linux x86_64, CPython 3.13.14; unchanged `dea9092e19385f286b7f67a64f4d85de2708d756` and this branch, real production FastAPI app over loopback HTTP (ports 18792/18793), actual TOIN instance and public `import_patterns`, no mocked endpoint or fake TOIN. - Exact command / steps: import four patterns `global|unknown|unknown|abc123`, `global|unknown|unknown|abc456`, `global|payg|claude|abc123`, `other-tenant|unknown|unknown|abc123` with counts 8, 16, 24, 32; GET `/v1/toin/patterns`; URL-encode each returned `hash` and GET `/v1/toin/pattern/{hash}`; request the shared prefix `global|unknown|unknown|abc`. - Before: four entries produced only three IDs. The entry with count 16 returned count 8 when addressed by its listed ID. The shared prefix returned 200. - Observed result: after the fix, four entries produce four distinct IDs; every detail request returns its own count (8→8, 16→16, 24→24, 32→32); the ambiguous prefix returns **409**. Exact and unique-prefix lookups remain successful; unknown-prefix regression remains 404. - Rebased onto current main `1ad92f0cbc3dea27676e253588100f64a2af6994` and reran the full suite: **144 passed**. A further real HTTP smoke on port 18794 imported a fifth key, `tenant/alpha?scope=one#fragment|unknown|unknown|abc123`, URL-encoded it, and round-tripped all **5/5** counts including **40→40**. The reserved-character edge case failed before the path-converter fix and passed after it. - Not tested: a live remote tenant deployment or the SDK against a cloud proxy. Existing authorization/privacy tests were exercised locally. ## Runtime Rollout Safety - Rollout-managed feature(s): none; diagnostic API bug fix. - Minimum rollout channel: stable; no rollout-managed feature is enabled. - Stable/default behavior changed: full scoped list identifiers and rejection of ambiguous prefixes. This is the selected issue alternative, not a new raw-signature alias or migration shim. - Kill switch / disable path: disable access to the loopback diagnostic API; no new runtime flag. - Unsafe override required: no. - Qualification impact: diagnostic IDs only; no compression or billing change. - Rollback path: revert this commit; no persistent data migration. ## Review Readiness - [x] I have performed a self-review - [x] This PR is ready for human review ## Checklist - [x] Existing API and privacy conventions reused; SDK documentation updated. - [x] Regression tests cover scoped collisions, list-to-detail round-trips, exact/unique/ambiguous/missing lookups, and existing loopback gating. - [x] `CHANGELOG.md` not edited; Conventional Commit title supplied. GitHub CI results are not inferred from local checks. <!-- devin-review-badge-begin --> --- <a href="https://app.devin.ai/review/headroomlabs-ai/headroom/pull/4021" target="_blank"><picture><source media="(prefers-color-scheme: dark)" srcset="https://static.devin.ai/assets/gh-devin-review-dark.svg?v=4"><img src="https://static.devin.ai/assets/gh-devin-review-light.svg?v=4" alt="Devin Review"></picture></a> <!-- devin-review-badge-end --> Co-authored-by: JD Davis <mxjerrett@gmail.com> |
||
|
|
dea9092e19 |
fix(security): resolve high-severity CodeQL alerts (#4005)
## Description Resolves the high-severity CodeQL alerts in product code. Three are real leaks (an API key in the proxy log, a credential in an oauth2 warning, XSS in the HTML report); the rest are hardening. Closes # ## Type of Change - [x] Bug fix (non-breaking change that fixes an issue) - [ ] New feature (non-breaking change that adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] Documentation update - [ ] Performance improvement - [ ] Code refactoring (no functional changes) ## Changes Made - **#63, Gemini API key written to the proxy log.** Google forwarders build `...?key=<api key>` URLs (`batch.py:442` and others) and `log_outbound_request` logged the full URL at INFO. The log line now drops the query string, fragment and userinfo, keeping scheme, host (IPv6 literals stay bracketed) and path. A URL with an invalid port logs `<unparseable>` rather than raising. - **#104, credential in an oauth2 warning.** A static header written as `Authorization: Bearer x=y` splits on the first `=`, so `Authorization: Bearer x` lands in the key, is rejected as malformed, and was echoed by the warning. The warning no longer prints the key. - **#131, XSS in the HTML report.** `model` and other request fields are client supplied. Jinja2 autoescape is now on; no report field relies on raw HTML. - **#127:** `SNOWFLAKE_HOST` must end with `.snowflakecomputing.com` instead of merely containing it. - **#19, #128, #129, #130:** the `/\/+$/` trailing-slash regex in the TS SDK and opencode plugin backtracks quadratically on long runs of `/`. Replaced with a loop. The committed wheel bundle (`headroom/providers/opencode/_dist/entry.opencode.js`) is rebuilt to match. Not changed (false positives, to dismiss): **#105** (URL already reduced to `scheme://host` by `_redact_url`) and **#109** (`token_fingerprint` is a short SHA-256 fingerprint of a high-entropy token for comparison, not password storage). ## Testing - [x] Unit tests pass (`pytest`) - [x] Linting passes (`ruff check .`) - [ ] Type checking passes (`mypy headroom`) - [x] New tests added for new functionality - [x] Manual testing performed New tests: outbound log keeps no `key=` value or userinfo, keeps IPv6 brackets, and handles relative paths and invalid ports; the report escapes `<script>`; the Snowflake host must end with the domain; both TS trailing-slash helpers are tested on normal inputs and on a 100k-slash input (the old regex took ~5.2 s on it; the test bound is 1 s). ### Test Output ```text $ HEADROOM_REQUIRE_RUST_CORE=false pytest -q tests/test_proxy_byte_faithful_forwarding.py tests/test_reporting.py tests/test_provider_cortex_code.py 105 passed in 4.65s $ HEADROOM_REQUIRE_RUST_CORE=false pytest -q plugins/headroom-oauth2/tests 70 passed $ ruff check headroom/proxy/helpers.py tests/test_proxy_byte_faithful_forwarding.py && ruff format --check ... All checks passed! 2 files already formatted $ (cd plugins/opencode && npm run typecheck && npx vitest run) Test Files 3 passed (3) Tests 38 passed (38) $ (cd sdk/typescript && npx vitest run) Test Files 19 passed | 5 skipped (24) Tests 351 passed | 33 skipped (384) $ (cd plugins/opencode && npm run build:standalone) && cmp dist-standalone/entry.opencode.js ../../headroom/providers/opencode/_dist/entry.opencode.js (no output: bundle matches source) ``` The two oauth2 tests that start the full proxy need the Rust core, which was not built in the local worktree, so they ran with `HEADROOM_REQUIRE_RUST_CORE=false`. ## Real Behavior Proof - Environment: macOS 26 (Darwin 25.6), Python 3.12 venv, this branch at `bb634a3b`, `HEADROOM_REQUIRE_RUST_CORE=false`. A local fake Gemini upstream (Python `http.server`) listening on IPv6 `[::1]:9911`. - Exact command / steps: 1. `python fake_gemini.py` (accepts POST, logs the request path, returns `{"batch":{"name":"batches/fake"}}`) 2. `headroom proxy --port 8799 --gemini-api-url 'http://[::1]:9911'` 3. `curl -X POST 'http://127.0.0.1:8799/v1beta/models/gemini-2.5-pro:batchGenerateContent' -H 'x-goog-api-key: AIzaFAKE-RUNTIME-PROOF-123' -H 'content-type: application/json' -d '{"batch":{"displayName":"proof","inputConfig":{"requests":{"requests":[]}}}}'` 4. `grep outbound_request proxy.log; grep -c AIzaFAKE proxy.log` - Observed result: the client got `HTTP 200`. The upstream still received the key (`/v1beta/models/gemini-2.5-pro:batchGenerateContent?key=AIzaFAKE-RUNTIME-PROOF-123`), so forwarding is unchanged. The proxy log line was `event=outbound_request forwarder=google_batch_passthrough method=POST path=http://[::1]:9911/v1beta/models/gemini-2.5-pro:batchGenerateContent body_bytes=76 ...`, and the key appeared in the proxy log **0** times. - Not tested: real Google, Snowflake or oauth2 provider endpoints; the HTML report was exercised only through unit tests; the opencode plugin was not loaded into a live opencode session; Windows. ## Runtime Rollout Safety - Rollout-managed feature(s): None. No rollout-managed feature or flag is touched. - Minimum rollout channel: Stable. These are security fixes with no opt-in behaviour. - Stable/default behavior changed: Only diagnostics and validation: the `outbound_request` log line no longer includes the query string, fragment or userinfo; the oauth2 malformed-header warning no longer prints the key; HTML report fields are escaped; a `SNOWFLAKE_HOST` that merely contains `.snowflakecomputing.com` is now rejected. Request forwarding is byte-for-byte unchanged. - Kill switch / disable path: None needed; nothing new is enabled. Reverting the PR restores the previous behaviour. - Unsafe override required: No. - Qualification impact: None. No compression, routing or token-accounting path changes. - Rollback path: Revert this PR. ## Review Readiness - [x] I have performed a self-review - [x] This PR is ready for human review ## Checklist - [x] My code follows the project's style guidelines - [x] I have performed a self-review of my code - [x] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [x] I did **not** edit `CHANGELOG.md` — it is generated by release-please from my Conventional Commit PR title (a CI guard enforces this) ## Additional Notes Possible overlap: #3999 also replaces the opencode trailing-slash regex. Whichever lands second will need a small rebase. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
855390d611 |
chore: release 0.40.0 (#3833)
🤖 I have created a release *beep* *boop* --- ## [0.40.0](https://github.com/headroomlabs-ai/headroom/compare/v0.39.1...v0.40.0) (2026-10-06) ### ⚠ BREAKING CHANGES * **proxy:** read HEADROOM_LICENSE and make usage reporting opt-in ([#3857](https://github.com/headroomlabs-ai/headroom/issues/3857)) * drop the crewai extra to remove chromadb from the lockfile ([#3870](https://github.com/headroomlabs-ai/headroom/issues/3870)) ### Features * **compress:** add per-message compression diagnostics ([#3058](https://github.com/headroomlabs-ai/headroom/issues/3058)) ([ |
||
|
|
4be83b35e6 |
deps: Bump source-map-js from 1.2.1 to 1.2.2 in /plugins/openclaw (#3988)
Bumps [source-map-js](https://github.com/7rulnik/source-map-js) from 1.2.1 to 1.2.2. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/7rulnik/source-map-js/releases">source-map-js's releases</a>.</em></p> <blockquote> <h2>v1.2.2</h2> <ul> <li> <p>Fix crash when executing in browser with CSP script-src that don't permit unsafe-eval (<a href="https://redirect.github.com/7rulnik/source-map-js/pull/29">#29</a>) <a href="https://github.com/xfournet"><code>@xfournet</code></a></p> </li> <li> <p>Fix denial of service from malicious indexed source maps (CVE-2026-93749) (<a href="https://redirect.github.com/7rulnik/source-map-js/pull/79">#79</a>)</p> <p>Reported by <a href="https://github.com/waydeshi"><code>@waydeshi</code></a> in <a href="https://redirect.github.com/7rulnik/source-map-js/issues/76">#76</a>. A fix was also proposed by <a href="https://github.com/aniebiet"><code>@aniebiet</code></a> in <a href="https://redirect.github.com/7rulnik/source-map-js/pull/78">#78</a>.</p> </li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/7rulnik/source-map-js/blob/main/CHANGELOG.md">source-map-js's changelog</a>.</em></p> <blockquote> <h2>1.2.2</h2> <ul> <li> <p>Fix crash when executing in browser with CSP script-src that don't permit unsafe-eval (<a href="https://redirect.github.com/7rulnik/source-map-js/pull/29">#29</a>) <a href="https://github.com/xfournet"><code>@xfournet</code></a></p> </li> <li> <p>Fix denial of service from malicious indexed source maps (CVE-2026-93749) (<a href="https://redirect.github.com/7rulnik/source-map-js/pull/79">#79</a>)</p> <p>Reported by <a href="https://github.com/waydeshi"><code>@waydeshi</code></a> in <a href="https://redirect.github.com/7rulnik/source-map-js/issues/76">#76</a>. A fix was also proposed by <a href="https://github.com/aniebiet"><code>@aniebiet</code></a> in <a href="https://redirect.github.com/7rulnik/source-map-js/pull/78">#78</a>.</p> </li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/7rulnik/source-map-js/commit/0a1d334fd1e55a47df97fcd60a7915d46df3b08a"><code>0a1d334</code></a> 1.2.2</li> <li><a href="https://github.com/7rulnik/source-map-js/commit/4c6fa26d77419bd8e48ec92844866cce7d9ae739"><code>4c6fa26</code></a> Update changelog</li> <li><a href="https://github.com/7rulnik/source-map-js/commit/cf7658058ceeaa8619d5ae0ec90be6905209d016"><code>cf76580</code></a> Fix denial of service from malicious indexed source maps (CVE-2026-93749) (<a href="https://redirect.github.com/7rulnik/source-map-js/issues/79">#79</a>)</li> <li><a href="https://github.com/7rulnik/source-map-js/commit/7899a86615c630f4fc220273ff9fe2e8e49a56df"><code>7899a86</code></a> Fix crash when executing browser with CSP script-src that don't permit unsafe...</li> <li>See full diff in <a href="https://github.com/7rulnik/source-map-js/compare/v1.2.1...v1.2.2">compare view</a></li> </ul> </details> <br /> ## Verification and dependency justification The SDK and OpenClaw lockfiles both need source-map-js 1.2.2: the repository audits both directories on each PR. The original hosted audit failed on the unchanged directory with GHSA-68fv-2mgg-jv7q (high severity). Updating the second lockfile lets this PR pass independently of its sibling Dependabot PR. Both PRs now have identical lockfiles for these directories. ### Real behavior proof Setup: Windows, Node v22.22.0, npm 10.9.4; no provider, model, credentials, or external service is needed for these tests. In each of `sdk/typescript` and `plugins/openclaw`, ran `npm audit --audit-level=high`, `npm ci --ignore-scripts`, `npm test`, and `npm run build`: both audits reported zero vulnerabilities, and both test and build commands exited successfully. Rechecked both audits after trimming unrelated lockfile churn; both remained clean. `git diff --check` passes. Hosted CI is rerunning on the updated heads. Not tested locally: the full Python suite, Docker/native publication, or live OpenClaw/remote-provider behavior. Installation used `--ignore-scripts`. Existing package tests and builds exercise the updated dependency graph; no new test mirrors the transitive lock entry. Actual source-map exploit reproduction was not run; the before-fix hosted vulnerability report and after-fix registry audits verify the advisory version remediation. ### Supply chain source-map-js is an existing transitive dependency, so no new library or direct dependency is added. Version 1.2.2 is selected for the security fix in GHSA-68fv-2mgg-jv7q, not a cosmetic update. npm identifies maintainer `7rulnik` and upstream https://github.com/7rulnik/source-map-js, an active, non-archived source-map fork (observed upstream push 2026-09-30). This is a small-maintainer project; human review of the advisory fix and artifacts remains appropriate. The release metadata declares no runtime dependencies, supports Node >=0.10.0, and distributes JavaScript without native-extension installation. Its declared scripts are development/test/build scripts, with no package install lifecycle hook. Runtime source-map processing requires no network service. Installation fetches npm registry artifacts; the lock records the new version, integrity hash, and resolved artifact. Other package versions remain unchanged. --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: JerrettDavis <mxjerrett@gmail.com> |
||
|
|
2651489745 |
test(sdk): give the Vercel withHeadroom fixtures a LanguageModelV3 result (#3949)
## Description
`npm test` in `sdk/typescript` is red on `main` again. Dependabot's
#3910 (merged 2026-10-01) bumped `ai` from 7.0.107 to 7.0.119. The newer
`ai` wraps a `specificationVersion: "v3"` model in a v4 adapter
(`node_modules/ai/src/model/as-language-model-v4.ts`) whose `doGenerate`
maps over the result's `content`. The three fake models in
`test/adapters/vercel-ai.test.ts` declare `v3` but resolve `doGenerate`
with a V1-era shape (`text`, `usage.promptTokens`, `rawCall`) and no
`content`, so every `wrapped.doGenerate()` call now throws:
```text
FAIL test/adapters/vercel-ai.test.ts > withHeadroom > triggers compression on doGenerate
FAIL test/adapters/vercel-ai.test.ts > withHeadroom > passes options through to headroomMiddleware
FAIL test/adapters/vercel-ai.test.ts > withHeadroom > falls back when proxy is down
TypeError: Cannot read properties of undefined (reading 'map')
❯ Proxy.target.doStream node_modules/ai/src/model/as-language-model-v4.ts:45:39
```
The shipped adapter is not affected — real models return `content` — so
this is a fixture problem. This makes the three fixtures genuine
`LanguageModelV3` results and **type-checks them**: `content`,
`finishReason: { unified, raw }`, `usage` with the nested `inputTokens {
total, noCache, cacheRead, cacheWrite }` / `outputTokens { total, text,
reasoning }` objects, `warnings`, each literal asserted with `satisfies
Awaited<ReturnType<LanguageModelV3["doGenerate"]>>`. Because
`test/*.test.ts` files are outside the SDK's type-check (`tsconfig.json`
excludes `test/`; `tsconfig.typecheck.json` includes only
`*.test-d.ts`), the test file is added to `tsconfig.typecheck.json` so
vitest's typecheck actually enforces the contract — a wrong literal now
fails `npm test`. No source change.
Second time in a week that `main` went red without a signal (the first
was #3424 + #3370, repaired in #3796): nothing in CI runs the SDK suite,
so the dependabot PR merged green. A path-gated SDK workflow is proposed
separately.
## Type of Change
- [ ] Bug fix (non-breaking change that fixes an issue)
- [ ] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] Documentation update
- [ ] Performance improvement
- [x] Code refactoring (no functional changes) — test-only fixture
correction
## Changes Made
- **`sdk/typescript/test/adapters/vercel-ai.test.ts`** — the three
`withHeadroom` fake models resolve `doGenerate` with a real
`LanguageModelV3GenerateResult`: `content: [{ type: "text", text }]`,
`finishReason: { unified: "stop", raw: "stop" }`, `usage: { inputTokens:
{ total, noCache, cacheRead, cacheWrite }, outputTokens: { total, text,
reasoning } }`, `warnings: []`; each literal carries `satisfies
Awaited<ReturnType<LanguageModelV3["doGenerate"]>>` (`import type {
LanguageModelV3 } from "@ai-sdk/provider"`, already a devDependency).
- **`sdk/typescript/tsconfig.typecheck.json`** —
`test/adapters/vercel-ai.test.ts` added to `include`, so vitest's
typecheck (`npm test`) checks the literals. This file type-checks with
zero errors; the other `test/*.test.ts` files are left out of scope (15
pre-existing errors across four files if everything were included).
## Testing
- [x] Unit tests pass (`npm test` — vitest, incl. typecheck)
- [x] Type checking passes (`npm run typecheck` — tsc --noEmit)
- [x] Build passes (`npm run build` — tsup)
- [ ] New tests added for new functionality (existing fixtures
corrected)
- [x] Manual testing performed
### Test Output
```text
$ cd sdk/typescript && npx vitest run test/adapters/vercel-ai.test.ts # on main (
|
||
|
|
038c923b4b |
fix(sdk): preserve Gemini media parts in message conversion instead of dropping the turn (#3882)
## Description
The TypeScript SDK's Gemini converters drop media. `geminiToOpenAI()`
only carries `text` and `functionResponse` parts, so for a user turn:
- an **`inlineData`** part (the normal way to send an image to Gemini)
is silently dropped; an **image-only** turn produces no message at all
and the turn is deleted;
- a **`fileData`** part (Files API / URI reference) is dropped the same
way.
`openAIToGemini()` drops `image_url` parts on the way back, so even a
preserved image could not have survived the return trip.
Verified through the public `toOpenAI` / `fromOpenAI` on `main`:
```text
image-only | OpenAI: [] | back to Gemini: []
text+image | OpenAI: [{"role":"user","content":"what is this?"}] | back to Gemini: [{"role":"user","parts":[{"text":"what is this?"}]}]
text+fileData | OpenAI: [{"role":"user","content":"summarise"}] | back to Gemini: [{"role":"user","parts":[{"text":"summarise"}]}]
```
This hits the universal `compress()` for Gemini-format input and the
Gemini `withHeadroom()` adapter. The adapter always forwards the
round-tripped messages (it does not check `result.compressed`), so with
the adapter **every** vision request loses its image, including when the
proxy is unreachable and the client falls back. This is the Gemini
counterpart of #3439 (Anthropic image blocks), fixed the same way.
## Type of Change
- [x] Bug fix (non-breaking change that fixes an issue)
- [ ] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] Documentation update
- [ ] Performance improvement
- [ ] Code refactoring (no functional changes)
## Changes Made
- **`sdk/typescript/src/utils/format.ts`**
- `geminiToOpenAI` user branch (forward): `inlineData { mimeType, data
}` → `{ type: "image_url", image_url: { url:
"data:<mimeType>;base64,<data>" } }`; `fileData { mimeType, fileUri }` →
`image_url` with the URI plus a private `mime_type` key carrying the
MIME type. A user turn containing media is emitted as one `content` part
array preserving part order; unconvertible media parts are skipped
without deleting the turn. **Text-only turns are unchanged** (still a
newline-joined string) and `functionResponse` handling is untouched.
- `openAIToGemini` user branch (reverse): a `data:` URI → `inlineData {
mimeType, data }` (lossless); any other URL → `fileData { mimeType,
fileUri }` using the carried `mime_type`, else a type inferred from a
common image/PDF extension, else `fileUri` only. Text-only array content
still collapses to a single text part as before.
- Two small helpers, `geminiMediaImageUrl` / `geminiMediaPart`,
mirroring the Anthropic ones from #3439.
- **`sdk/typescript/test/utils/format.test.ts`** — first unit tests for
the Gemini converters (there were none): forward (inline image with
text, image-only turn, `fileData` with its MIME type carried), reverse
(data URI → `inlineData`, carried type → complete `fileData`, extension
inference, `fileUri`-only fallback), exact round trips for
text+`inlineData` and text+`fileData` (`application/pdf`), plus two
backward-compat guards for the text-only paths.
- **`sdk/typescript/test/adapters/gemini.test.ts`** — end-to-end through
`withHeadroom`: the image reaches `/v1/compress` as an `image_url` part
and comes back to `generateContent` as `inlineData` on a successful
compression; an image-only turn survives when the proxy is unreachable.
**Why the MIME type is carried:** `@google/generative-ai` declares
`FileData { mimeType: string; fileUri: string }` with both fields
required, so the OpenAI-shaped part must carry the type for the round
trip to be exact. The proxy's content walkers append non-text parts
unchanged (`headroom/proxy/helpers.py`, see the issue #3552 note there),
so the private `mime_type` key survives `/v1/compress`; it is never sent
to an OpenAI endpoint by the SDK's own paths. A foreign `image_url` with
no known type falls back to `fileUri` only (the REST schema marks
`mimeType` optional), and a test documents that fallback. `inlineData`
round-trips byte-for-byte via the data URI.
## Testing
- [x] Unit tests pass (`npm test` — vitest, incl. typecheck)
- [x] Type checking passes (`npm run typecheck` — tsc --noEmit)
- [x] Build passes (`npm run build` — tsup)
- [x] New tests added for new functionality
- [x] Manual testing performed
### Test Output
```text
$ cd sdk/typescript && npx vitest run test/utils/format.test.ts test/adapters/gemini.test.ts
Test Files 2 passed (2)
Tests 54 passed (54)
$ npm test # full suite
Test Files 19 passed | 5 skipped (24)
Tests 350 passed | 33 skipped (383)
Type Errors no errors
$ npm run typecheck # tsc --noEmit
(clean, no errors)
$ npm run build # tsup
CJS / ESM / DTS Build success
```
## Real Behavior Proof
- Environment: macOS (Apple silicon), Node v22.16.0, npm 10.9.2; `cd
sdk/typescript && npm ci`.
- Exact command / steps: (1) the block above — `node
--input-type=module` script calling the built `toOpenAI` / `fromOpenAI`
from `dist/index.js` on `main`; (2) the ten new tests run on `main`
before the change and on this branch after; then `npm test`, `npm run
typecheck`, `npm run build`.
- Observed result: On `main` the eight behavioural tests fail for the
expected reason — e.g. `expected 'what is this?' to deeply equal [ {
type: 'text', … }, … ]` (the image part is missing) and the adapter
fallback test receives `contents` without the `inlineData` part (`[]`
messages). With the change all 54 targeted tests pass, including the
exact text+`fileData` (`application/pdf`) round trip; full suite 350
passed | 33 skipped; typecheck and build clean.
- Not tested: a live proxy round trip and a live Gemini call. The
conversion is pure and covered by the unit tests; the proxy consumes
standard OpenAI-format content parts (the same `image_url` parts #3439
already sends for Anthropic input).
## Runtime Rollout Safety
- Rollout-managed feature(s): None. Client-side TypeScript SDK
conversion fix; no server/runtime feature flag or rollout channel
involved.
- Minimum rollout channel: N/A.
- Stable/default behavior changed: Only the buggy path — media parts
that were dropped are now preserved. Text-only and `functionResponse`
conversions are byte-identical to before.
- Kill switch / disable path: N/A — correctness fix, not a gated
feature.
- Unsafe override required: No.
- Qualification impact: None — additive media handling; existing tests
unchanged and green.
- Rollback path: Revert this PR; no persisted state, migrations, or
config to unwind.
## Review Readiness
- [x] I have performed a self-review
- [x] This PR is ready for human review
## Checklist
- [x] My code follows the project's style guidelines
- [x] I have performed a self-review of my code
- [x] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [x] I did **not** edit `CHANGELOG.md` — it is generated by
release-please from my Conventional Commit PR title (a CI guard enforces
this)
## Screenshots (if applicable)
N/A
## Additional Notes
- Out of scope, left as-is: media parts in **model** (assistant) turns
are still dropped by `geminiToOpenAI`, and non-text content inside a
`functionResponse` is JSON-stringified. Both are pre-existing and rarer;
happy to follow up if wanted.
- The Gemini adapter forwarding round-tripped messages even when
`result.compressed` is false is also pre-existing; with this fix that
round trip is lossless for text and inline media, so the behaviour is
now harmless rather than destructive.
- CHANGELOG left untouched — the `no-manual-changelog` CI guard owns it;
the Conventional Commit title drives the entry.
|
||
|
|
ff1a0d69f4 |
deps: bump the npm-minor-patch group across 3 directories with 11 updates (#3910)
Bumps the npm-minor-patch group with 3 updates in the /plugins/openclaw directory: headroom-ai, [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) and [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest). Bumps the npm-minor-patch group with 4 updates in the /plugins/opencode directory: headroom-ai, [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node), [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) and @opencode-ai/plugin. Bumps the npm-minor-patch group with 9 updates in the /sdk/typescript directory: | Package | From | To | | --- | --- | --- | | [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `26.6.2` | `26.6.3` | | [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) | `5.0.1` | `5.0.2` | | [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `26.6.2` | `26.6.3` | | [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) | `5.0.1` | `5.0.2` | | [@ai-sdk/anthropic](https://github.com/vercel/ai/tree/HEAD/packages/anthropic) | `4.0.58` | `4.0.66` | | [@ai-sdk/openai](https://github.com/vercel/ai/tree/HEAD/packages/openai) | `4.0.71` | `4.0.79` | | [@ai-sdk/provider](https://github.com/vercel/ai/tree/HEAD/packages/provider) | `4.0.17` | `4.0.19` | | [@anthropic-ai/sdk](https://github.com/anthropics/anthropic-sdk-typescript) | `0.127.0` | `0.129.0` | | [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `26.6.2` | `26.6.3` | | [ai](https://github.com/vercel/ai/tree/HEAD/packages/ai) | `7.0.107` | `7.0.119` | | [dotenv](https://github.com/motdotla/dotenv) | `18.0.1` | `18.0.4` | | [openai](https://github.com/openai/openai-node) | `7.20.0` | `7.23.0` | | [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) | `5.0.1` | `5.0.2` | Updates `headroom-ai` from 0.37.0 to 0.39.1 Updates `@types/node` from 26.6.2 to 26.6.3 <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node">compare view</a></li> </ul> </details> <br /> Updates `vitest` from 5.0.1 to 5.0.2 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/vitest-dev/vitest/releases">vitest's releases</a>.</em></p> <blockquote> <h2>v5.0.2</h2> <h3> 🐞 Bug Fixes</h3> <ul> <li>Bind <code>process</code> in case global is overwritten - by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11343">vitest-dev/vitest#11343</a> <a href="https://github.com/vitest-dev/vitest/commit/0b79231ad"><!-- raw HTML omitted -->(0b792)<!-- raw HTML omitted --></a></li> <li><strong>detect-async-leaks</strong>: <ul> <li>Ignore <code>process.stdio</code> handles - by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11333">vitest-dev/vitest#11333</a> <a href="https://github.com/vitest-dev/vitest/commit/0fd6b9790"><!-- raw HTML omitted -->(0fd6b)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>expect</strong>: <ul> <li>Fix <code>toMatchObject</code> with asymmetric matchers - by <a href="https://github.com/ShreeBohara"><code>@ShreeBohara</code></a>, <strong>Claude Opus 5</strong>, <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Codex (GPT-5)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11100">vitest-dev/vitest#11100</a> <a href="https://github.com/vitest-dev/vitest/commit/42523289e"><!-- raw HTML omitted -->(42523)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>jsdom</strong>: <ul> <li>Fix <code>Request</code> with <code>Blob</code> body on jsdom 28+ - by <a href="https://github.com/harshit-d3v"><code>@harshit-d3v</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11295">vitest-dev/vitest#11295</a> <a href="https://github.com/vitest-dev/vitest/commit/d1c3ecc93"><!-- raw HTML omitted -->(d1c3e)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>reporter</strong>: <ul> <li><code>agent</code> to respect <code>--silent</code> - by <a href="https://github.com/Raj4478"><code>@Raj4478</code></a> and <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11271">vitest-dev/vitest#11271</a> <a href="https://github.com/vitest-dev/vitest/commit/5b95efb6d"><!-- raw HTML omitted -->(5b95e)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>reporters</strong>: <ul> <li>Handle concurrent <code>createReport</code> calls - by <a href="https://github.com/7rulnik"><code>@7rulnik</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11278">vitest-dev/vitest#11278</a> <a href="https://github.com/vitest-dev/vitest/commit/e8e556ff7"><!-- raw HTML omitted -->(e8e55)<!-- raw HTML omitted --></a></li> <li><code>hanging-process</code> to use ESM entrypoint - by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11316">vitest-dev/vitest#11316</a> <a href="https://github.com/vitest-dev/vitest/commit/4e91e5668"><!-- raw HTML omitted -->(4e91e)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>spy</strong>: <ul> <li>Fix stack overflow when spying <code>Set.prototype.add</code> - by <a href="https://github.com/fengmk2"><code>@fengmk2</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11299">vitest-dev/vitest#11299</a> <a href="https://github.com/vitest-dev/vitest/commit/a0a939653"><!-- raw HTML omitted -->(a0a93)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>ui</strong>: <ul> <li>Persist authentication cookie beyond current browser session - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>OpenCode (gpt-5.6-sol)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11066">vitest-dev/vitest#11066</a> <a href="https://github.com/vitest-dev/vitest/commit/f88195e16"><!-- raw HTML omitted -->(f8819)<!-- raw HTML omitted --></a></li> </ul> </li> </ul> <h5> <a href="https://github.com/vitest-dev/vitest/compare/v5.0.1...v5.0.2">View changes on GitHub</a></h5> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/vitest-dev/vitest/commit/428e2e5043c64635b6b157358bde2fdeaa7b6b3a"><code>428e2e5</code></a> chore: release v5.0.2 (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11357">#11357</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/0b79231ad7897f03de17940ef16684b63aa217fe"><code>0b79231</code></a> fix: bind <code>process</code> in case global is overwritten (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11343">#11343</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/597df569aba3e8b24c9ad231aacd3cf641ac3bdf"><code>597df56</code></a> docs: correct stale config defaults (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11354">#11354</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/ea1c44fb581978421f9f0901ce8c635970ea72fb"><code>ea1c44f</code></a> docs: <code>sequence.setupFiles</code> default is <code>'list'</code> (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11351">#11351</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/0fd6b97902bc828d489385e0a28b82515f57b7cf"><code>0fd6b97</code></a> fix(detect-async-leaks): ignore <code>process.stdio</code> handles (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11333">#11333</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/4e91e56687de43427fbb664d86a63438ca73b681"><code>4e91e56</code></a> fix(reporters): <code>hanging-process</code> to use ESM entrypoint (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11316">#11316</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/1a57929a49fb6fb2db02b47e56c4677ca5ae1704"><code>1a57929</code></a> docs(browser): fix locators.exact default (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11338">#11338</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/5b95efb6dfe378dc6fc8380f5b1e96832f019a5d"><code>5b95efb</code></a> fix(reporter): <code>agent</code> to respect <code>--silent</code> (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11271">#11271</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/f58a209779ffd3007006481d0c9da0099d5226e6"><code>f58a209</code></a> docs: correct benchmark.exclude and watch defaults (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11268">#11268</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/d1c3ecc932dcb4cd50420c54aa1f7fa3051deac7"><code>d1c3ecc</code></a> fix(jsdom): fix <code>Request</code> with <code>Blob</code> body on jsdom 28+ (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11295">#11295</a>)</li> <li>Additional commits viewable in <a href="https://github.com/vitest-dev/vitest/commits/v5.0.2/packages/vitest">compare view</a></li> </ul> </details> <br /> Updates `headroom-ai` from 0.37.0 to 0.39.1 Updates `@types/node` from 26.6.2 to 26.6.3 <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node">compare view</a></li> </ul> </details> <br /> Updates `vitest` from 5.0.1 to 5.0.2 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/vitest-dev/vitest/releases">vitest's releases</a>.</em></p> <blockquote> <h2>v5.0.2</h2> <h3> 🐞 Bug Fixes</h3> <ul> <li>Bind <code>process</code> in case global is overwritten - by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11343">vitest-dev/vitest#11343</a> <a href="https://github.com/vitest-dev/vitest/commit/0b79231ad"><!-- raw HTML omitted -->(0b792)<!-- raw HTML omitted --></a></li> <li><strong>detect-async-leaks</strong>: <ul> <li>Ignore <code>process.stdio</code> handles - by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11333">vitest-dev/vitest#11333</a> <a href="https://github.com/vitest-dev/vitest/commit/0fd6b9790"><!-- raw HTML omitted -->(0fd6b)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>expect</strong>: <ul> <li>Fix <code>toMatchObject</code> with asymmetric matchers - by <a href="https://github.com/ShreeBohara"><code>@ShreeBohara</code></a>, <strong>Claude Opus 5</strong>, <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Codex (GPT-5)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11100">vitest-dev/vitest#11100</a> <a href="https://github.com/vitest-dev/vitest/commit/42523289e"><!-- raw HTML omitted -->(42523)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>jsdom</strong>: <ul> <li>Fix <code>Request</code> with <code>Blob</code> body on jsdom 28+ - by <a href="https://github.com/harshit-d3v"><code>@harshit-d3v</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11295">vitest-dev/vitest#11295</a> <a href="https://github.com/vitest-dev/vitest/commit/d1c3ecc93"><!-- raw HTML omitted -->(d1c3e)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>reporter</strong>: <ul> <li><code>agent</code> to respect <code>--silent</code> - by <a href="https://github.com/Raj4478"><code>@Raj4478</code></a> and <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11271">vitest-dev/vitest#11271</a> <a href="https://github.com/vitest-dev/vitest/commit/5b95efb6d"><!-- raw HTML omitted -->(5b95e)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>reporters</strong>: <ul> <li>Handle concurrent <code>createReport</code> calls - by <a href="https://github.com/7rulnik"><code>@7rulnik</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11278">vitest-dev/vitest#11278</a> <a href="https://github.com/vitest-dev/vitest/commit/e8e556ff7"><!-- raw HTML omitted -->(e8e55)<!-- raw HTML omitted --></a></li> <li><code>hanging-process</code> to use ESM entrypoint - by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11316">vitest-dev/vitest#11316</a> <a href="https://github.com/vitest-dev/vitest/commit/4e91e5668"><!-- raw HTML omitted -->(4e91e)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>spy</strong>: <ul> <li>Fix stack overflow when spying <code>Set.prototype.add</code> - by <a href="https://github.com/fengmk2"><code>@fengmk2</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11299">vitest-dev/vitest#11299</a> <a href="https://github.com/vitest-dev/vitest/commit/a0a939653"><!-- raw HTML omitted -->(a0a93)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>ui</strong>: <ul> <li>Persist authentication cookie beyond current browser session - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>OpenCode (gpt-5.6-sol)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11066">vitest-dev/vitest#11066</a> <a href="https://github.com/vitest-dev/vitest/commit/f88195e16"><!-- raw HTML omitted -->(f8819)<!-- raw HTML omitted --></a></li> </ul> </li> </ul> <h5> <a href="https://github.com/vitest-dev/vitest/compare/v5.0.1...v5.0.2">View changes on GitHub</a></h5> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/vitest-dev/vitest/commit/428e2e5043c64635b6b157358bde2fdeaa7b6b3a"><code>428e2e5</code></a> chore: release v5.0.2 (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11357">#11357</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/0b79231ad7897f03de17940ef16684b63aa217fe"><code>0b79231</code></a> fix: bind <code>process</code> in case global is overwritten (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11343">#11343</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/597df569aba3e8b24c9ad231aacd3cf641ac3bdf"><code>597df56</code></a> docs: correct stale config defaults (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11354">#11354</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/ea1c44fb581978421f9f0901ce8c635970ea72fb"><code>ea1c44f</code></a> docs: <code>sequence.setupFiles</code> default is <code>'list'</code> (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11351">#11351</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/0fd6b97902bc828d489385e0a28b82515f57b7cf"><code>0fd6b97</code></a> fix(detect-async-leaks): ignore <code>process.stdio</code> handles (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11333">#11333</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/4e91e56687de43427fbb664d86a63438ca73b681"><code>4e91e56</code></a> fix(reporters): <code>hanging-process</code> to use ESM entrypoint (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11316">#11316</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/1a57929a49fb6fb2db02b47e56c4677ca5ae1704"><code>1a57929</code></a> docs(browser): fix locators.exact default (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11338">#11338</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/5b95efb6dfe378dc6fc8380f5b1e96832f019a5d"><code>5b95efb</code></a> fix(reporter): <code>agent</code> to respect <code>--silent</code> (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11271">#11271</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/f58a209779ffd3007006481d0c9da0099d5226e6"><code>f58a209</code></a> docs: correct benchmark.exclude and watch defaults (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11268">#11268</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/d1c3ecc932dcb4cd50420c54aa1f7fa3051deac7"><code>d1c3ecc</code></a> fix(jsdom): fix <code>Request</code> with <code>Blob</code> body on jsdom 28+ (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11295">#11295</a>)</li> <li>Additional commits viewable in <a href="https://github.com/vitest-dev/vitest/commits/v5.0.2/packages/vitest">compare view</a></li> </ul> </details> <br /> Updates `@types/node` from 26.6.2 to 26.6.3 <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node">compare view</a></li> </ul> </details> <br /> Updates `vitest` from 5.0.1 to 5.0.2 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/vitest-dev/vitest/releases">vitest's releases</a>.</em></p> <blockquote> <h2>v5.0.2</h2> <h3> 🐞 Bug Fixes</h3> <ul> <li>Bind <code>process</code> in case global is overwritten - by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11343">vitest-dev/vitest#11343</a> <a href="https://github.com/vitest-dev/vitest/commit/0b79231ad"><!-- raw HTML omitted -->(0b792)<!-- raw HTML omitted --></a></li> <li><strong>detect-async-leaks</strong>: <ul> <li>Ignore <code>process.stdio</code> handles - by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11333">vitest-dev/vitest#11333</a> <a href="https://github.com/vitest-dev/vitest/commit/0fd6b9790"><!-- raw HTML omitted -->(0fd6b)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>expect</strong>: <ul> <li>Fix <code>toMatchObject</code> with asymmetric matchers - by <a href="https://github.com/ShreeBohara"><code>@ShreeBohara</code></a>, <strong>Claude Opus 5</strong>, <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Codex (GPT-5)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11100">vitest-dev/vitest#11100</a> <a href="https://github.com/vitest-dev/vitest/commit/42523289e"><!-- raw HTML omitted -->(42523)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>jsdom</strong>: <ul> <li>Fix <code>Request</code> with <code>Blob</code> body on jsdom 28+ - by <a href="https://github.com/harshit-d3v"><code>@harshit-d3v</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11295">vitest-dev/vitest#11295</a> <a href="https://github.com/vitest-dev/vitest/commit/d1c3ecc93"><!-- raw HTML omitted -->(d1c3e)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>reporter</strong>: <ul> <li><code>agent</code> to respect <code>--silent</code> - by <a href="https://github.com/Raj4478"><code>@Raj4478</code></a> and <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11271">vitest-dev/vitest#11271</a> <a href="https://github.com/vitest-dev/vitest/commit/5b95efb6d"><!-- raw HTML omitted -->(5b95e)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>reporters</strong>: <ul> <li>Handle concurrent <code>createReport</code> calls - by <a href="https://github.com/7rulnik"><code>@7rulnik</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11278">vitest-dev/vitest#11278</a> <a href="https://github.com/vitest-dev/vitest/commit/e8e556ff7"><!-- raw HTML omitted -->(e8e55)<!-- raw HTML omitted --></a></li> <li><code>hanging-process</code> to use ESM entrypoint - by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11316">vitest-dev/vitest#11316</a> <a href="https://github.com/vitest-dev/vitest/commit/4e91e5668"><!-- raw HTML omitted -->(4e91e)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>spy</strong>: <ul> <li>Fix stack overflow when spying <code>Set.prototype.add</code> - by <a href="https://github.com/fengmk2"><code>@fengmk2</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11299">vitest-dev/vitest#11299</a> <a href="https://github.com/vitest-dev/vitest/commit/a0a939653"><!-- raw HTML omitted -->(a0a93)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>ui</strong>: <ul> <li>Persist authentication cookie beyond current browser session - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>OpenCode (gpt-5.6-sol)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11066">vitest-dev/vitest#11066</a> <a href="https://github.com/vitest-dev/vitest/commit/f88195e16"><!-- raw HTML omitted -->(f8819)<!-- raw HTML omitted --></a></li> </ul> </li> </ul> <h5> <a href="https://github.com/vitest-dev/vitest/compare/v5.0.1...v5.0.2">View changes on GitHub</a></h5> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/vitest-dev/vitest/commit/428e2e5043c64635b6b157358bde2fdeaa7b6b3a"><code>428e2e5</code></a> chore: release v5.0.2 (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11357">#11357</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/0b79231ad7897f03de17940ef16684b63aa217fe"><code>0b79231</code></a> fix: bind <code>process</code> in case global is overwritten (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11343">#11343</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/597df569aba3e8b24c9ad231aacd3cf641ac3bdf"><code>597df56</code></a> docs: correct stale config defaults (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11354">#11354</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/ea1c44fb581978421f9f0901ce8c635970ea72fb"><code>ea1c44f</code></a> docs: <code>sequence.setupFiles</code> default is <code>'list'</code> (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11351">#11351</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/0fd6b97902bc828d489385e0a28b82515f57b7cf"><code>0fd6b97</code></a> fix(detect-async-leaks): ignore <code>process.stdio</code> handles (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11333">#11333</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/4e91e56687de43427fbb664d86a63438ca73b681"><code>4e91e56</code></a> fix(reporters): <code>hanging-process</code> to use ESM entrypoint (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11316">#11316</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/1a57929a49fb6fb2db02b47e56c4677ca5ae1704"><code>1a57929</code></a> docs(browser): fix locators.exact default (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11338">#11338</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/5b95efb6dfe378dc6fc8380f5b1e96832f019a5d"><code>5b95efb</code></a> fix(reporter): <code>agent</code> to respect <code>--silent</code> (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11271">#11271</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/f58a209779ffd3007006481d0c9da0099d5226e6"><code>f58a209</code></a> docs: correct benchmark.exclude and watch defaults (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11268">#11268</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/d1c3ecc932dcb4cd50420c54aa1f7fa3051deac7"><code>d1c3ecc</code></a> fix(jsdom): fix <code>Request</code> with <code>Blob</code> body on jsdom 28+ (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11295">#11295</a>)</li> <li>Additional commits viewable in <a href="https://github.com/vitest-dev/vitest/commits/v5.0.2/packages/vitest">compare view</a></li> </ul> </details> <br /> Updates `headroom-ai` from 0.37.0 to 0.39.1 Updates `@types/node` from 26.6.2 to 26.6.3 <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node">compare view</a></li> </ul> </details> <br /> Updates `vitest` from 5.0.1 to 5.0.2 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/vitest-dev/vitest/releases">vitest's releases</a>.</em></p> <blockquote> <h2>v5.0.2</h2> <h3> 🐞 Bug Fixes</h3> <ul> <li>Bind <code>process</code> in case global is overwritten - by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11343">vitest-dev/vitest#11343</a> <a href="https://github.com/vitest-dev/vitest/commit/0b79231ad"><!-- raw HTML omitted -->(0b792)<!-- raw HTML omitted --></a></li> <li><strong>detect-async-leaks</strong>: <ul> <li>Ignore <code>process.stdio</code> handles - by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11333">vitest-dev/vitest#11333</a> <a href="https://github.com/vitest-dev/vitest/commit/0fd6b9790"><!-- raw HTML omitted -->(0fd6b)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>expect</strong>: <ul> <li>Fix <code>toMatchObject</code> with asymmetric matchers - by <a href="https://github.com/ShreeBohara"><code>@ShreeBohara</code></a>, <strong>Claude Opus 5</strong>, <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Codex (GPT-5)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11100">vitest-dev/vitest#11100</a> <a href="https://github.com/vitest-dev/vitest/commit/42523289e"><!-- raw HTML omitted -->(42523)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>jsdom</strong>: <ul> <li>Fix <code>Request</code> with <code>Blob</code> body on jsdom 28+ - by <a href="https://github.com/harshit-d3v"><code>@harshit-d3v</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11295">vitest-dev/vitest#11295</a> <a href="https://github.com/vitest-dev/vitest/commit/d1c3ecc93"><!-- raw HTML omitted -->(d1c3e)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>reporter</strong>: <ul> <li><code>agent</code> to respect <code>--silent</code> - by <a href="https://github.com/Raj4478"><code>@Raj4478</code></a> and <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11271">vitest-dev/vitest#11271</a> <a href="https://github.com/vitest-dev/vitest/commit/5b95efb6d"><!-- raw HTML omitted -->(5b95e)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>reporters</strong>: <ul> <li>Handle concurrent <code>createReport</code> calls - by <a href="https://github.com/7rulnik"><code>@7rulnik</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11278">vitest-dev/vitest#11278</a> <a href="https://github.com/vitest-dev/vitest/commit/e8e556ff7"><!-- raw HTML omitted -->(e8e55)<!-- raw HTML omitted --></a></li> <li><code>hanging-process</code> to use ESM entrypoint - by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11316">vitest-dev/vitest#11316</a> <a href="https://github.com/vitest-dev/vitest/commit/4e91e5668"><!-- raw HTML omitted -->(4e91e)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>spy</strong>: <ul> <li>Fix stack overflow when spying <code>Set.prototype.add</code> - by <a href="https://github.com/fengmk2"><code>@fengmk2</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11299">vitest-dev/vitest#11299</a> <a href="https://github.com/vitest-dev/vitest/commit/a0a939653"><!-- raw HTML omitted -->(a0a93)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>ui</strong>: <ul> <li>Persist authentication cookie beyond current browser session - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>OpenCode (gpt-5.6-sol)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11066">vitest-dev/vitest#11066</a> <a href="https://github.com/vitest-dev/vitest/commit/f88195e16"><!-- raw HTML omitted -->(f8819)<!-- raw HTML omitted --></a></li> </ul> </li> </ul> <h5> <a href="https://github.com/vitest-dev/vitest/compare/v5.0.1...v5.0.2">View changes on GitHub</a></h5> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/vitest-dev/vitest/commit/428e2e5043c64635b6b157358bde2fdeaa7b6b3a"><code>428e2e5</code></a> chore: release v5.0.2 (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11357">#11357</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/0b79231ad7897f03de17940ef16684b63aa217fe"><code>0b79231</code></a> fix: bind <code>process</code> in case global is overwritten (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11343">#11343</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/597df569aba3e8b24c9ad231aacd3cf641ac3bdf"><code>597df56</code></a> docs: correct stale config defaults (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11354">#11354</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/ea1c44fb581978421f9f0901ce8c635970ea72fb"><code>ea1c44f</code></a> docs: <code>sequence.setupFiles</code> default is <code>'list'</code> (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11351">#11351</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/0fd6b97902bc828d489385e0a28b82515f57b7cf"><code>0fd6b97</code></a> fix(detect-async-leaks): ignore <code>process.stdio</code> handles (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11333">#11333</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/4e91e56687de43427fbb664d86a63438ca73b681"><code>4e91e56</code></a> fix(reporters): <code>hanging-process</code> to use ESM entrypoint (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11316">#11316</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/1a57929a49fb6fb2db02b47e56c4677ca5ae1704"><code>1a57929</code></a> docs(browser): fix locators.exact default (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11338">#11338</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/5b95efb6dfe378dc6fc8380f5b1e96832f019a5d"><code>5b95efb</code></a> fix(reporter): <code>agent</code> to respect <code>--silent</code> (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11271">#11271</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/f58a209779ffd3007006481d0c9da0099d5226e6"><code>f58a209</code></a> docs: correct benchmark.exclude and watch defaults (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11268">#11268</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/d1c3ecc932dcb4cd50420c54aa1f7fa3051deac7"><code>d1c3ecc</code></a> fix(jsdom): fix <code>Request</code> with <code>Blob</code> body on jsdom 28+ (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11295">#11295</a>)</li> <li>Additional commits viewable in <a href="https://github.com/vitest-dev/vitest/commits/v5.0.2/packages/vitest">compare view</a></li> </ul> </details> <br /> Updates `@opencode-ai/plugin` from 1.18.31 to 1.18.33 Updates `headroom-ai` from 0.37.0 to 0.39.1 Updates `@types/node` from 26.6.2 to 26.6.3 <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node">compare view</a></li> </ul> </details> <br /> Updates `vitest` from 5.0.1 to 5.0.2 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/vitest-dev/vitest/releases">vitest's releases</a>.</em></p> <blockquote> <h2>v5.0.2</h2> <h3> 🐞 Bug Fixes</h3> <ul> <li>Bind <code>process</code> in case global is overwritten - by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11343">vitest-dev/vitest#11343</a> <a href="https://github.com/vitest-dev/vitest/commit/0b79231ad"><!-- raw HTML omitted -->(0b792)<!-- raw HTML omitted --></a></li> <li><strong>detect-async-leaks</strong>: <ul> <li>Ignore <code>process.stdio</code> handles - by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11333">vitest-dev/vitest#11333</a> <a href="https://github.com/vitest-dev/vitest/commit/0fd6b9790"><!-- raw HTML omitted -->(0fd6b)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>expect</strong>: <ul> <li>Fix <code>toMatchObject</code> with asymmetric matchers - by <a href="https://github.com/ShreeBohara"><code>@ShreeBohara</code></a>, <strong>Claude Opus 5</strong>, <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Codex (GPT-5)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11100">vitest-dev/vitest#11100</a> <a href="https://github.com/vitest-dev/vitest/commit/42523289e"><!-- raw HTML omitted -->(42523)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>jsdom</strong>: <ul> <li>Fix <code>Request</code> with <code>Blob</code> body on jsdom 28+ - by <a href="https://github.com/harshit-d3v"><code>@harshit-d3v</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11295">vitest-dev/vitest#11295</a> <a href="https://github.com/vitest-dev/vitest/commit/d1c3ecc93"><!-- raw HTML omitted -->(d1c3e)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>reporter</strong>: <ul> <li><code>agent</code> to respect <code>--silent</code> - by <a href="https://github.com/Raj4478"><code>@Raj4478</code></a> and <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11271">vitest-dev/vitest#11271</a> <a href="https://github.com/vitest-dev/vitest/commit/5b95efb6d"><!-- raw HTML omitted -->(5b95e)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>reporters</strong>: <ul> <li>Handle concurrent <code>createReport</code> calls - by <a href="https://github.com/7rulnik"><code>@7rulnik</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11278">vitest-dev/vitest#11278</a> <a href="https://github.com/vitest-dev/vitest/commit/e8e556ff7"><!-- raw HTML omitted -->(e8e55)<!-- raw HTML omitted --></a></li> <li><code>hanging-process</code> to use ESM entrypoint - by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11316">vitest-dev/vitest#11316</a> <a href="https://github.com/vitest-dev/vitest/commit/4e91e5668"><!-- raw HTML omitted -->(4e91e)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>spy</strong>: <ul> <li>Fix stack overflow when spying <code>Set.prototype.add</code> - by <a href="https://github.com/fengmk2"><code>@fengmk2</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11299">vitest-dev/vitest#11299</a> <a href="https://github.com/vitest-dev/vitest/commit/a0a939653"><!-- raw HTML omitted -->(a0a93)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>ui</strong>: <ul> <li>Persist authentication cookie beyond current browser session - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>OpenCode (gpt-5.6-sol)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11066">vitest-dev/vitest#11066</a> <a href="https://github.com/vitest-dev/vitest/commit/f88195e16"><!-- raw HTML omitted -->(f8819)<!-- raw HTML omitted --></a></li> </ul> </li> </ul> <h5> <a href="https://github.com/vitest-dev/vitest/compare/v5.0.1...v5.0.2">View changes on GitHub</a></h5> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/vitest-dev/vitest/commit/428e2e5043c64635b6b157358bde2fdeaa7b6b3a"><code>428e2e5</code></a> chore: release v5.0.2 (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11357">#11357</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/0b79231ad7897f03de17940ef16684b63aa217fe"><code>0b79231</code></a> fix: bind <code>process</code> in case global is overwritten (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11343">#11343</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/597df569aba3e8b24c9ad231aacd3cf641ac3bdf"><code>597df56</code></a> docs: correct stale config defaults (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11354">#11354</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/ea1c44fb581978421f9f0901ce8c635970ea72fb"><code>ea1c44f</code></a> docs: <code>sequence.setupFiles</code> default is <code>'list'</code> (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11351">#11351</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/0fd6b97902bc828d489385e0a28b82515f57b7cf"><code>0fd6b97</code></a> fix(detect-async-leaks): ignore <code>process.stdio</code> handles (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11333">#11333</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/4e91e56687de43427fbb664d86a63438ca73b681"><code>4e91e56</code></a> fix(reporters): <code>hanging-process</code> to use ESM entrypoint (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11316">#11316</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/1a57929a49fb6fb2db02b47e56c4677ca5ae1704"><code>1a57929</code></a> docs(browser): fix locators.exact default (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11338">#11338</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/5b95efb6dfe378dc6fc8380f5b1e96832f019a5d"><code>5b95efb</code></a> fix(reporter): <code>agent</code> to respect <code>--silent</code> (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11271">#11271</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/f58a209779ffd3007006481d0c9da0099d5226e6"><code>f58a209</code></a> docs: correct benchmark.exclude and watch defaults (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11268">#11268</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/d1c3ecc932dcb4cd50420c54aa1f7fa3051deac7"><code>d1c3ecc</code></a> fix(jsdom): fix <code>Request</code> with <code>Blob</code> body on jsdom 28+ (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11295">#11295</a>)</li> <li>Additional commits viewable in <a href="https://github.com/vitest-dev/vitest/commits/v5.0.2/packages/vitest">compare view</a></li> </ul> </details> <br /> Updates `@types/node` from 26.6.2 to 26.6.3 <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node">compare view</a></li> </ul> </details> <br /> Updates `vitest` from 5.0.1 to 5.0.2 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/vitest-dev/vitest/releases">vitest's releases</a>.</em></p> <blockquote> <h2>v5.0.2</h2> <h3> 🐞 Bug Fixes</h3> <ul> <li>Bind <code>process</code> in case global is overwritten - by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11343">vitest-dev/vitest#11343</a> <a href="https://github.com/vitest-dev/vitest/commit/0b79231ad"><!-- raw HTML omitted -->(0b792)<!-- raw HTML omitted --></a></li> <li><strong>detect-async-leaks</strong>: <ul> <li>Ignore <code>process.stdio</code> handles - by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11333">vitest-dev/vitest#11333</a> <a href="https://github.com/vitest-dev/vitest/commit/0fd6b9790"><!-- raw HTML omitted -->(0fd6b)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>expect</strong>: <ul> <li>Fix <code>toMatchObject</code> with asymmetric matchers - by <a href="https://github.com/ShreeBohara"><code>@ShreeBohara</code></a>, <strong>Claude Opus 5</strong>, <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Codex (GPT-5)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11100">vitest-dev/vitest#11100</a> <a href="https://github.com/vitest-dev/vitest/commit/42523289e"><!-- raw HTML omitted -->(42523)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>jsdom</strong>: <ul> <li>Fix <code>Request</code> with <code>Blob</code> body on jsdom 28+ - by <a href="https://github.com/harshit-d3v"><code>@harshit-d3v</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11295">vitest-dev/vitest#11295</a> <a href="https://github.com/vitest-dev/vitest/commit/d1c3ecc93"><!-- raw HTML omitted -->(d1c3e)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>reporter</strong>: <ul> <li><code>agent</code> to respect <code>--silent</code> - by <a href="https://github.com/Raj4478"><code>@Raj4478</code></a> and <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11271">vitest-dev/vitest#11271</a> <a href="https://github.com/vitest-dev/vitest/commit/5b95efb6d"><!-- raw HTML omitted -->(5b95e)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>reporters</strong>: <ul> <li>Handle concurrent <code>createReport</code> calls - by <a href="https://github.com/7rulnik"><code>@7rulnik</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11278">vitest-dev/vitest#11278</a> <a href="https://github.com/vitest-dev/vitest/commit/e8e556ff7"><!-- raw HTML omitted -->(e8e55)<!-- raw HTML omitted --></a></li> <li><code>hanging-process</code> to use ESM entrypoint - by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11316">vitest-dev/vitest#11316</a> <a href="https://github.com/vitest-dev/vitest/commit/4e91e5668"><!-- raw HTML omitted -->(4e91e)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>spy</strong>: <ul> <li>Fix stack overflow when spying <code>Set.prototype.add</code> - by <a href="https://github.com/fengmk2"><code>@fengmk2</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11299">vitest-dev/vitest#11299</a> <a href="https://github.com/vitest-dev/vitest/commit/a0a939653"><!-- raw HTML omitted -->(a0a93)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>ui</strong>: <ul> <li>Persist authentication cookie beyond current browser session - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>OpenCode (gpt-5.6-sol)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11066">vitest-dev/vitest#11066</a> <a href="https://github.com/vitest-dev/vitest/commit/f88195e16"><!-- raw HTML omitted -->(f8819)<!-- raw HTML omitted --></a></li> </ul> </li> </ul> <h5> <a href="https://github.com/vitest-dev/vitest/compare/v5.0.1...v5.0.2">View changes on GitHub</a></h5> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/vitest-dev/vitest/commit/428e2e5043c64635b6b157358bde2fdeaa7b6b3a"><code>428e2e5</code></a> chore: release v5.0.2 (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11357">#11357</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/0b79231ad7897f03de17940ef16684b63aa217fe"><code>0b79231</code></a> fix: bind <code>process</code> in case global is overwritten (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11343">#11343</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/597df569aba3e8b24c9ad231aacd3cf641ac3bdf"><code>597df56</code></a> docs: correct stale config defaults (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11354">#11354</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/ea1c44fb581978421f9f0901ce8c635970ea72fb"><code>ea1c44f</code></a> docs: <code>sequence.setupFiles</code> default is <code>'list'</code> (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11351">#11351</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/0fd6b97902bc828d489385e0a28b82515f57b7cf"><code>0fd6b97</code></a> fix(detect-async-leaks): ignore <code>process.stdio</code> handles (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11333">#11333</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/4e91e56687de43427fbb664d86a63438ca73b681"><code>4e91e56</code></a> fix(reporters): <code>hanging-process</code> to use ESM entrypoint (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11316">#11316</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/1a57929a49fb6fb2db02b47e56c4677ca5ae1704"><code>1a57929</code></a> docs(browser): fix locators.exact default (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11338">#11338</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/5b95efb6dfe378dc6fc8380f5b1e96832f019a5d"><code>5b95efb</code></a> fix(reporter): <code>agent</code> to respect <code>--silent</code> (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11271">#11271</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/f58a209779ffd3007006481d0c9da0099d5226e6"><code>f58a209</code></a> docs: correct benchmark.exclude and watch defaults (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11268">#11268</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/d1c3ecc932dcb4cd50420c54aa1f7fa3051deac7"><code>d1c3ecc</code></a> fix(jsdom): fix <code>Request</code> with <code>Blob</code> body on jsdom 28+ (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11295">#11295</a>)</li> <li>Additional commits viewable in <a href="https://github.com/vitest-dev/vitest/commits/v5.0.2/packages/vitest">compare view</a></li> </ul> </details> <br /> Updates `@types/node` from 26.6.2 to 26.6.3 <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node">compare view</a></li> </ul> </details> <br /> Updates `vitest` from 5.0.1 to 5.0.2 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/vitest-dev/vitest/releases">vitest's releases</a>.</em></p> <blockquote> <h2>v5.0.2</h2> <h3> 🐞 Bug Fixes</h3> <ul> <li>Bind <code>process</code> in case global is overwritten - by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11343">vitest-dev/vitest#11343</a> <a href="https://github.com/vitest-dev/vitest/commit/0b79231ad"><!-- raw HTML omitted -->(0b792)<!-- raw HTML omitted --></a></li> <li><strong>detect-async-leaks</strong>: <ul> <li>Ignore <code>process.stdio</code> handles - by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11333">vitest-dev/vitest#11333</a> <a href="https://github.com/vitest-dev/vitest/commit/0fd6b9790"><!-- raw HTML omitted -->(0fd6b)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>expect</strong>: <ul> <li>Fix <code>toMatchObject</code> with asymmetric matchers - by <a href="https://github.com/ShreeBohara"><code>@ShreeBohara</code></a>, <strong>Claude Opus 5</strong>, <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Codex (GPT-5)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11100">vitest-dev/vitest#11100</a> <a href="https://github.com/vitest-dev/vitest/commit/42523289e"><!-- raw HTML omitted -->(42523)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>jsdom</strong>: <ul> <li>Fix <code>Request</code> with <code>Blob</code> body on jsdom 28+ - by <a href="https://github.com/harshit-d3v"><code>@harshit-d3v</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11295">vitest-dev/vitest#11295</a> <a href="https://github.com/vitest-dev/vitest/commit/d1c3ecc93"><!-- raw HTML omitted -->(d1c3e)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>reporter</strong>: <ul> <li><code>agent</code> to respect <code>--silent</code> - by <a href="https://github.com/Raj4478"><code>@Raj4478</code></a> and <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11271">vitest-dev/vitest#11271</a> <a href="https://github.com/vitest-dev/vitest/commit/5b95efb6d"><!-- raw HTML omitted -->(5b95e)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>reporters</strong>: <ul> <li>Handle concurrent <code>createReport</code> calls - by <a href="https://github.com/7rulnik"><code>@7rulnik</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11278">vitest-dev/vitest#11278</a> <a href="https://github.com/vitest-dev/vitest/commit/e8e556ff7"><!-- raw HTML omitted -->(e8e55)<!-- raw HTML omitted --></a></li> <li><code>hanging-process</code> to use ESM entrypoint - by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11316">vitest-dev/vitest#11316</a> <a href="https://github.com/vitest-dev/vitest/commit/4e91e5668"><!-- raw HTML omitted -->(4e91e)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>spy</strong>: <ul> <li>Fix stack overflow when spying <code>Set.prototype.add</code> - by <a href="https://github.com/fengmk2"><code>@fengmk2</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11299">vitest-dev/vitest#11299</a> <a href="https://github.com/vitest-dev/vitest/commit/a0a939653"><!-- raw HTML omitted -->(a0a93)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>ui</strong>: <ul> <li>Persist authentication cookie beyond current browser session - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>OpenCode (gpt-5.6-sol)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11066">vitest-dev/vitest#11066</a> <a href="https://github.com/vitest-dev/vitest/commit/f88195e16"><!-- raw HTML omitted -->(f8819)<!-- raw HTML omitted --></a></li> </ul> </li> </ul> <h5> <a href="https://github.com/vitest-dev/vitest/compare/v5.0.1...v5.0.2">View changes on GitHub</a></h5> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/vitest-dev/vitest/commit/428e2e5043c64635b6b157358bde2fdeaa7b6b3a"><code>428e2e5</code></a> chore: release v5.0.2 (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11357">#11357</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/0b79231ad7897f03de17940ef16684b63aa217fe"><code>0b79231</code></a> fix: bind <code>process</code> in case global is overwritten (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11343">#11343</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/597df569aba3e8b24c9ad231aacd3cf641ac3bdf"><code>597df56</code></a> docs: correct stale config defaults (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11354">#11354</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/ea1c44fb581978421f9f0901ce8c635970ea72fb"><code>ea1c44f</code></a> docs: <code>sequence.setupFiles</code> default is <code>'list'</code> (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11351">#11351</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/0fd6b97902bc828d489385e0a28b82515f57b7cf"><code>0fd6b97</code></a> fix(detect-async-leaks): ignore <code>process.stdio</code> handles (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11333">#11333</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/4e91e56687de43427fbb664d86a63438ca73b681"><code>4e91e56</code></a> fix(reporters): <code>hanging-process</code> to use ESM entrypoint (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11316">#11316</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/1a57929a49fb6fb2db02b47e56c4677ca5ae1704"><code>1a57929</code></a> docs(browser): fix locators.exact default (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11338">#11338</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/5b95efb6dfe378dc6fc8380f5b1e96832f019a5d"><code>5b95efb</code></a> fix(reporter): <code>agent</code> to respect <code>--silent</code> (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11271">#11271</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/f58a209779ffd3007006481d0c9da0099d5226e6"><code>f58a209</code></a> docs: correct benchmark.exclude and watch defaults (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11268">#11268</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/d1c3ecc932dcb4cd50420c54aa1f7fa3051deac7"><code>d1c3ecc</code></a> fix(jsdom): fix <code>Request</code> with <code>Blob</code> body on jsdom 28+ (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11295">#11295</a>)</li> <li>Additional commits viewable in <a href="https://github.com/vitest-dev/vitest/commits/v5.0.2/packages/vitest">compare view</a></li> </ul> </details> <br /> Updates `@types/node` from 26.6.2 to 26.6.3 <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node">compare view</a></li> </ul> </details> <br /> Updates `vitest` from 5.0.1 to 5.0.2 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/vitest-dev/vitest/releases">vitest's releases</a>.</em></p> <blockquote> <h2>v5.0.2</h2> <h3> 🐞 Bug Fixes</h3> <ul> <li>Bind <code>process</code> in case global is overwritten - by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11343">vitest-dev/vitest#11343</a> <a href="https://github.com/vitest-dev/vitest/commit/0b79231ad"><!-- raw HTML omitted -->(0b792)<!-- raw HTML omitted --></a></li> <li><strong>detect-async-leaks</strong>: <ul> <li>Ignore <code>process.stdio</code> handles - by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11333">vitest-dev/vitest#11333</a> <a href="https://github.com/vitest-dev/vitest/commit/0fd6b9790"><!-- raw HTML omitted -->(0fd6b)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>expect</strong>: <ul> <li>Fix <code>toMatchObject</code> with asymmetric matchers - by <a href="https://github.com/ShreeBohara"><code>@ShreeBohara</code></a>, <strong>Claude Opus 5</strong>, <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Codex (GPT-5)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11100">vitest-dev/vitest#11100</a> <a href="https://github.com/vitest-dev/vitest/commit/42523289e"><!-- raw HTML omitted -->(42523)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>jsdom</strong>: <ul> <li>Fix <code>Request</code> with <code>Blob</code> body on jsdom 28+ - by <a href="https://github.com/harshit-d3v"><code>@harshit-d3v</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11295">vitest-dev/vitest#11295</a> <a href="https://github.com/vitest-dev/vitest/commit/d1c3ecc93"><!-- raw HTML omitted -->(d1c3e)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>reporter</strong>: <ul> <li><code>agent</code> to respect <code>--silent</code> - by <a href="https://github.com/Raj4478"><code>@Raj4478</code></a> and <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11271">vitest-dev/vitest#11271</a> <a href="https://github.com/vitest-dev/vitest/commit/5b95efb6d"><!-- raw HTML omitted -->(5b95e)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>reporters</strong>: <ul> <li>Handle concurrent <code>createReport</code> calls - by <a href="https://github.com/7rulnik"><code>@7rulnik</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11278">vitest-dev/vitest#11278</a> <a href="https://github.com/vitest-dev/vitest/commit/e8e556ff7"><!-- raw HTML omitted -->(e8e55)<!-- raw HTML omitted --></a></li> <li><code>hanging-process</code> to use ESM entrypoint - by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11316">vitest-dev/vitest#11316</a> <a href="https://github.com/vitest-dev/vitest/commit/4e91e5668"><!-- raw HTML omitted -->(4e91e)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>spy</strong>: <ul> <li>Fix stack overflow when spying <code>Set.prototype.add</code> - by <a href="https://github.com/fengmk2"><code>@fengmk2</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11299">vitest-dev/vitest#11299</a> <a href="https://github.com/vitest-dev/vitest/commit/a0a939653"><!-- raw HTML omitted -->(a0a93)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>ui</strong>: <ul> <li>Persist authentication cookie beyond current browser session - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>OpenCode (gpt-5.6-sol)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11066">vitest-dev/vitest#11066</a> <a href="https://github.com/vitest-dev/vitest/commit/f88195e16"><!-- raw HTML omitted -->(f8819)<!-- raw HTML omitted --></a></li> </ul> </li> </ul> <h5> <a href="https://github.com/vitest-dev/vitest/compare/v5.0.1...v5.0.2">View changes on GitHub</a></h5> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/vitest-dev/vitest/commit/428e2e5043c64635b6b157358bde2fdeaa7b6b3a"><code>428e2e5</code></a> chore: release v5.0.2 (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11357">#11357</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/0b79231ad7897f03de17940ef16684b63aa217fe"><code>0b79231</code></a> fix: bind <code>process</code> in case global is overwritten (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11343">#11343</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/597df569aba3e8b24c9ad231aacd3cf641ac3bdf"><code>597df56</code></a> docs: correct stale config defaults (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11354">#11354</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/ea1c44fb581978421f9f0901ce8c635970ea72fb"><code>ea1c44f</code></a> docs: <code>sequence.setupFiles</code> default is <code>'list'</code> (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11351">#11351</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/0fd6b97902bc828d489385e0a28b82515f57b7cf"><code>0fd6b97</code></a> fix(detect-async-leaks): ignore <code>process.stdio</code> handles (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11333">#11333</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/4e91e56687de43427fbb664d86a63438ca73b681"><code>4e91e56</code></a> fix(reporters): <code>hanging-process</code> to use ESM entrypoint (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11316">#11316</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/1a57929a49fb6fb2db02b47e56c4677ca5ae1704"><code>1a57929</code></a> docs(browser): fix locators.exact default (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11338">#11338</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/5b95efb6dfe378dc6fc8380f5b1e96832f019a5d"><code>5b95efb</code></a> fix(reporter): <code>agent</code> to respect <code>--silent</code> (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11271">#11271</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/f58a209779ffd3007006481d0c9da0099d5226e6"><code>f58a209</code></a> docs: correct benchmark.exclude and watch defaults (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11268">#11268</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/d1c3ecc932dcb4cd50420c54aa1f7fa3051deac7"><code>d1c3ecc</code></a> fix(jsdom): fix <code>Request</code> with <code>Blob</code> body on jsdom 28+ (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11295">#11295</a>)</li> <li>Additional commits viewable in <a href="https://github.com/vitest-dev/vitest/commits/v5.0.2/packages/vitest">compare view</a></li> </ul> </details> <br /> Updates `@ai-sdk/anthropic` from 4.0.58 to 4.0.66 <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/vercel/ai/blob/main/packages/anthropic/CHANGELOG.md">@ai-sdk/anthropic's changelog</a>.</em></p> <blockquote> <h2>4.0.66</h2> <h3>Patch Changes</h3> <ul> <li>Updated dependencies [e3605f6]</li> <li>Updated dependencies [525efc5] <ul> <li><code>@ai-sdk/provider-utils</code><a href="https://github.com/5"><code>@5</code></a>.0.50</li> <li><code>@ai-sdk/provider</code><a href="https://github.com/4"><code>@4</code></a>.0.19</li> </ul> </li> </ul> <h2>4.0.65</h2> <h3>Patch Changes</h3> <ul> <li>Updated dependencies [af9597b]</li> <li>Updated dependencies [bc49f78] <ul> <li><code>@ai-sdk/provider-utils</code><a href="https://github.com/5"><code>@5</code></a>.0.49</li> </ul> </li> </ul> <h2>4.0.64</h2> <h3>Patch Changes</h3> <ul> <li>67f8000: Preserve effort updates on empty system messages at the beginning of a conversation, including consecutive updates.</li> <li>Updated dependencies [be877ff] <ul> <li><code>@ai-sdk/provider-utils</code><a href="https://github.com/5"><code>@5</code></a>.0.48</li> </ul> </li> </ul> <h2>4.0.63</h2> <h3>Patch Changes</h3> <ul> <li>154221f: feat(anthropic): support on-demand compaction and preserve signed compaction blocks</li> </ul> <h2>4.0.62</h2> <h3>Patch Changes</h3> <ul> <li>771e74b: chore: enable dead code lint rules</li> <li>Updated dependencies [fe07867]</li> <li>Updated dependencies [a4b0940]</li> <li>Updated dependencies [771e74b] <ul> <li><code>@ai-sdk/provider-utils</code><a href="https://github.com/5"><code>@5</code></a>.0.47</li> </ul> </li> </ul> <h2>4.0.61</h2> <h3>Patch Changes</h3> <ul> <li>3733d6e: fix(anthropic): omit empty compaction blocks from replay</li> <li>Updated dependencies [ffb0e76] <ul> <li><code>@ai-sdk/provider</code><a href="https://github.com/4"><code>@4</code></a>.0.18</li> <li><code>@ai-sdk/provider-utils</code><a href="https://github.com/5"><code>@5</code></a>.0.46</li> </ul> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/vercel/ai/commit/20ad146f3c1177375639f8ba96b4bc5be4a729b1"><code>20ad146</code></a> Version Packages (<a href="https://github.com/vercel/ai/tree/HEAD/packages/anthropic/issues/21569">#21569</a>)</li> <li><a href="https://github.com/vercel/ai/commit/ee3169b3c4880e2abe4d0d7c781243bb81822ec4"><code>ee3169b</c... _Description has been truncated_ Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|
|
b7156714ac |
fix(sdk): keep tool names on Vercel tool-result parts through the OpenAI round trip (#3883)
## Description
`openAIToVercel()` emits every `tool-result` part with `toolName:
"unknown"`, because an OpenAI `tool` message only carries the
`tool_call_id`. So after any successful compression through
`headroomMiddleware()` / `compressVercelMessages()`, every tool result
in the prompt reaches the AI SDK provider with the wrong tool name.
That is not cosmetic for providers that put the name on the wire. In the
AI SDK source, `packages/google/src/convert-to-google-messages.ts`
builds `functionResponse: { name: toolName, … }` and
`packages/mistral/src/convert-to-mistral-chat-messages.ts` sends `name:
part.toolName` — both receive `"unknown"` today, which no longer matches
the preceding function call.
The name is recoverable: the assistant message that precedes the tool
result carries `tool_calls[].function.name` for the same id. This
records the `id → name` mapping while converting and uses it for the
matching `tool-result`, keeping `"unknown"` only as the fallback when no
call matches (the existing lone-tool-message test stays valid
unchanged).
## Type of Change
- [x] Bug fix (non-breaking change that fixes an issue)
- [ ] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] Documentation update
- [ ] Performance improvement
- [ ] Code refactoring (no functional changes)
## Changes Made
- **`sdk/typescript/src/utils/format.ts`** — `openAIToVercel`: a
`toolNames` map filled from each assistant `tool_calls` entry as it is
converted; the `tool-result` part uses `toolNames.get(msg.tool_call_id)
?? "unknown"`. Three lines net.
- **`sdk/typescript/test/utils/format.test.ts`** — `openAIToVercel`
carries the name from the matching tool-call onto the tool-result; a
Vercel → OpenAI → Vercel round trip preserves `toolName`.
- **`sdk/typescript/test/adapters/vercel-ai.test.ts`** —
`compressVercelMessages` keeps tool names on tool-result parts after a
(mocked) compression that returns the assistant tool call and the tool
message.
## Testing
- [x] Unit tests pass (`npm test` — vitest, incl. typecheck)
- [x] Type checking passes (`npm run typecheck` — tsc --noEmit)
- [x] Build passes (`npm run build` — tsup)
- [x] New tests added for new functionality
- [x] Manual testing performed
### Test Output
```text
$ cd sdk/typescript && npx vitest run test/utils/format.test.ts test/adapters/vercel-ai.test.ts
Test Files 2 passed (2)
Tests 47 passed (47)
$ npm test # full suite
Test Files 19 passed | 5 skipped (24)
Tests 337 passed | 33 skipped (370)
Type Errors no errors
$ npm run typecheck # tsc --noEmit
(clean, no errors)
$ npm run build # tsup
CJS / ESM / DTS Build success
```
## Real Behavior Proof
- Environment: macOS (Apple silicon), Node v22.16.0, npm 10.9.2; `cd
sdk/typescript && npm ci`.
- Exact command / steps: a `node --input-type=module` script calling the
built `toOpenAI` / `fromOpenAI` from `dist/index.js` on `main` with a
user → assistant `tool-call` (`getWeather`) → `tool-result`
conversation; then the three new tests on `main` and on this branch;
then `npm test`, `npm run typecheck`, `npm run build`.
- Observed result: On `main` the round-tripped tool-result part is `{
"type": "tool-result", "toolCallId": "call_1", "toolName": "unknown", …
}` while the tool-call part keeps `"getWeather"`; the three new tests
fail with `Expected: "getWeather" / Received: "unknown"`. With the
change they pass and the round trip yields `toolName: "getWeather"`;
full suite 337 passed | 33 skipped; typecheck and build clean.
- Not tested: a live provider call. The conversion is pure; the AI SDK
provider code cited above is what consumes the name.
## Runtime Rollout Safety
- Rollout-managed feature(s): None. Client-side TypeScript SDK
conversion fix; no server/runtime feature flag or rollout channel
involved.
- Minimum rollout channel: N/A.
- Stable/default behavior changed: Only the buggy path — tool-result
parts now carry the real tool name when the matching tool call is
present; everything else is byte-identical, and the `"unknown"` fallback
is unchanged for unmatched results.
- Kill switch / disable path: N/A — correctness fix, not a gated
feature.
- Unsafe override required: No.
- Qualification impact: None — existing conversion tests unchanged and
green.
- Rollback path: Revert this PR; no persisted state, migrations, or
config to unwind.
## Review Readiness
- [x] I have performed a self-review
- [x] This PR is ready for human review
## Checklist
- [x] My code follows the project's style guidelines
- [x] I have performed a self-review of my code
- [x] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [x] I did **not** edit `CHANGELOG.md` — it is generated by
release-please from my Conventional Commit PR title (a CI guard enforces
this)
## Screenshots (if applicable)
N/A
## Additional Notes
- A tool result whose matching assistant call was compressed away (or
never present) still gets `"unknown"`; recovering a name in that case is
impossible from the OpenAI shape and out of scope.
- CHANGELOG left untouched — the `no-manual-changelog` CI guard owns it;
the Conventional Commit title drives the entry.
|
||
|
|
f88c10df6a |
test(sdk): update the compress() type assertion for the per-call config option (#3796)
## Description
`npm test` in `sdk/typescript` is red on `main` after two PRs that
merged within minutes of each other on 2026-09-24:
- #3424 (merged 21:59 UTC) turned the previously dormant `expectTypeOf`
checks in `test/types.test-d.ts` into enforced ones, and corrected the
`HeadroomClientInterface["compress"]` parameters assertion to `{ model?:
string; tokenBudget?: number }` — the signature at the time.
- #3370 (merged 22:06 UTC) widened that same signature to `{ model?:
string; tokenBudget?: number; config?: CompressRequestConfig }`.
Neither branch contained the other, so the assertion #3424 enforces now
fails against the signature #3370 shipped:
```text
FAIL test/types.test-d.ts:177 > HeadroomClientInterface > compress accepts messages and optional options
Tests 1 failed | 331 passed | 33 skipped (365)
```
No CI job runs the SDK's vitest suite, so nothing flagged it. This adds
the `config?: CompressRequestConfig` key to the assertion so it matches
the interface as shipped. Test-only; no source change.
## Type of Change
- [ ] Bug fix (non-breaking change that fixes an issue)
- [ ] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] Documentation update
- [ ] Performance improvement
- [x] Code refactoring (no functional changes) — test-only correction
## Changes Made
- **`sdk/typescript/test/types.test-d.ts`** — the `compress accepts
messages and optional options` assertion now expects `[OpenAIMessage[],
({ model?: string; tokenBudget?: number; config?: CompressRequestConfig
} | undefined)?]`; `CompressRequestConfig` is imported from
`../src/types/config.js`. Nothing else changes (+5 / −1).
## Testing
- [x] Unit tests pass (`npm test` — vitest, incl. typecheck)
- [x] Type checking passes (`npm run typecheck` — tsc --noEmit)
- [x] Build passes (`npm run build` — tsup)
- [ ] New tests added for new functionality (existing assertion
corrected)
- [x] Manual testing performed
### Test Output
```text
$ cd sdk/typescript && npx vitest run test/types.test-d.ts # on main (
|
||
|
|
2e4a60ae37 |
fix(sdk): stop JSON-wrapping structured tool_result content in the Anthropic adapter (#3797)
## Description
`withHeadroom()` for the Anthropic SDK
(`sdk/typescript/src/adapters/anthropic.ts`) carried its own private
copies of the Anthropic ⇄ OpenAI message converters instead of using the
exported ones in `sdk/typescript/src/utils/format.ts`. The two copies
had drifted. For a `tool_result` block whose `content` is an **array of
blocks** (the documented Anthropic form, and the required one whenever a
tool returns more than a plain string), the adapter's copy serialised
the whole array with `JSON.stringify`, while the shared converter
flattens it to newline-joined text.
So a wrapped `messages.create()` sent the proxy a tool message whose
content was `[{"type":"text","text":"row 1"},{"type":"text","text":"row
2"}]` instead of `row 1\nrow 2`. The compressor then works on a
JSON-escaped blob rather than the tool's actual output (defeating the
content detectors for logs, tables, etc.), and after compression the
model receives the JSON-wrapped text as the tool result.
This removes the private copies and imports the shared converters, so
the adapter behaves exactly like the universal `compress()` path does
for Anthropic input. Net effect: −179 lines in the adapter, one import
added; the wrapper's flow (convert → compress → convert back →
`messages.create`) is unchanged. This is the de-duplication left as a
follow-up in #3439.
## Type of Change
- [x] Bug fix (non-breaking change that fixes an issue)
- [ ] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] Documentation update
- [ ] Performance improvement
- [ ] Code refactoring (no functional changes)
## Changes Made
- **`sdk/typescript/src/adapters/anthropic.ts`** — delete the private
`anthropicImageUrl`, `openAIImageBlock`, `anthropicToOpenAI` and
`openAIToAnthropic`; import `anthropicToOpenAI` / `openAIToAnthropic`
from `../utils/format.js`; drop the now-unused `OpenAIMessage`,
`AssistantMessage`, `ToolCall` type imports. `withHeadroom` itself is
untouched (file goes from 252 to 73 lines).
- **`sdk/typescript/test/adapters/anthropic.test.ts`** — new test: an
array-content `tool_result` reaches `/v1/compress` as `{ role: "tool",
content: "row 1\nrow 2", tool_call_id }`. Fails on `main`.
- **`sdk/typescript/test/utils/format.test.ts`** — characterisation test
pinning the shared `anthropicToOpenAI` flattening that the adapter now
relies on (passes on `main`; that branch of the shared converter was
previously untested).
Behaviour differences on the adapter path, both bringing it in line with
the shared converter:
1. Array-content `tool_result` → newline-joined text instead of a JSON
string (**the fix**).
2. A `tool_use.input` given as a string is passed through as the OpenAI
`arguments` instead of being re-`JSON.stringify`ed. Anthropic defines
`input` as an object, so this cannot affect a valid request.
Everything else (string and text-only turns, images including the #3439
round trip, object `tool_use` inputs, system/tool role mapping) is
byte-identical between the two copies, so no other behaviour changes.
## Testing
- [x] Unit tests pass (`npm test` — vitest, incl. typecheck)
- [x] Type checking passes (`npm run typecheck` — tsc --noEmit)
- [x] Build passes (`npm run build` — tsup)
- [x] New tests added for new functionality
- [x] Manual testing performed
### Test Output
```text
$ cd sdk/typescript && npx vitest run test/adapters/anthropic.test.ts
Test Files 1 passed (1)
Tests 10 passed (10)
$ npx vitest run test/utils/format.test.ts
Test Files 1 passed (1)
Tests 34 passed (34)
$ npm test # full suite
Test Files 1 failed | 18 passed | 5 skipped (24)
Tests 1 failed | 333 passed | 33 skipped (367)
# The one failure is test/types.test-d.ts:177 and is pre-existing on main: #3424's
# enforced `compress` parameters assertion predates the `config` option #3370 added
# to the interface. Fixed separately in #3796.
$ npm run typecheck # tsc --noEmit
(clean, no errors)
$ npm run build # tsup
CJS / ESM / DTS Build success
```
## Real Behavior Proof
- Environment: macOS (Apple silicon), Node v22.16.0, npm 10.9.2; `cd
sdk/typescript && npm ci`.
- Exact command / steps: `npx vitest run
test/adapters/anthropic.test.ts` with the new test on `main` and on this
branch; then `npm test`, `npm run typecheck`, `npm run build`.
- Observed result: On `main` the new test fails — the `/v1/compress`
request carries the tool message content as
`"[{\"type\":\"text\",\"text\":\"row
1\"},{\"type\":\"text\",\"text\":\"row 2\"}]"` where `"row 1\nrow 2"` is
expected. With the change it passes and the request body carries `{
role: "tool", content: "row 1\nrow 2", tool_call_id: "tu_1" }`. Full
suite 333 passed (the single remaining failure is the pre-existing type
assertion noted above); typecheck and build clean.
- Not tested: a live proxy round trip. The conversion is pure and
covered by the unit tests; the proxy consumes standard OpenAI-format
messages either way.
## Runtime Rollout Safety
- Rollout-managed feature(s): None. Client-side TypeScript SDK adapter
fix; no server/runtime feature flag or rollout channel involved.
- Minimum rollout channel: N/A.
- Stable/default behavior changed: Only the buggy path — array-content
tool results are now sent to the proxy as text instead of a JSON string.
Text-only, image and object-`tool_use` conversions are unchanged.
- Kill switch / disable path: N/A — correctness fix, not a gated
feature.
- Unsafe override required: No.
- Qualification impact: None — the adapter now uses the converter
already exercised by the universal `compress()` tests.
- Rollback path: Revert this PR; no persisted state, migrations, or
config to unwind.
## Review Readiness
- [x] I have performed a self-review
- [x] This PR is ready for human review
## Checklist
- [x] My code follows the project's style guidelines
- [x] I have performed a self-review of my code
- [x] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [x] I did **not** edit `CHANGELOG.md` — it is generated by
release-please from my Conventional Commit PR title (a CI guard enforces
this)
## Screenshots (if applicable)
N/A
## Additional Notes
- Pure deletion plus one import; the shared converters gained no new
code and no other adapter is touched.
- Out of scope (pre-existing in both copies): non-text blocks *inside* a
`tool_result` (e.g. images returned by a tool) are JSON-stringified by
the shared converter. A follow-up could map them to image parts the way
#3439 did for user turns.
- CHANGELOG left untouched — the `no-manual-changelog` CI guard owns it;
the Conventional Commit title drives the entry.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Co-authored-by: JD Davis <mxjerrett@gmail.com>
|
||
|
|
d13e1966f8 |
chore: release 0.39.1 (#3807)
🤖 I have created a release *beep* *boop*
---
##
[0.39.1](https://github.com/headroomlabs-ai/headroom/compare/v0.39.0...v0.39.1)
(2026-09-26)
### Bug Fixes
* **proxy:** stop the 0.39.0 TPM limiter from refusing large-context
requests forever
([#3806](https://github.com/headroomlabs-ai/headroom/issues/3806))
([
|
||
|
|
66f426171b |
chore: release 0.39.0 (#3713)
🤖 I have created a release *beep* *boop* --- ## [0.39.0](https://github.com/headroomlabs-ai/headroom/compare/v0.38.0...v0.39.0) (2026-09-25) ### Features * **compression:** describe what CCR compression dropped, not just how much ([#3635](https://github.com/headroomlabs-ai/headroom/issues/3635)) ([ |
||
|
|
c3e8a1ee63 |
feat(sdk): support per-call config override in compress() (#3370)
## Description
The TypeScript SDK's `simulate()` accepts a per-call `config` (spread
into the `/v1/compress` request body), but `compress()` did not —
`HeadroomClient.compress()` only used the `config` set once at
construction. There was no way to tune compression per request (e.g. a
different `mode` or `targetRatio`) without building a whole new client,
even though the proxy accepts per-request `config` on that same endpoint
(proven by `simulate()`).
This threads an optional per-call `config` through both
`HeadroomClient.compress()` and the standalone `compress()`, merged over
the client-level config — closing the `simulate()`/`compress()`
inconsistency.
**Config type (addresses review):** the per-call and client-level
`config` are typed as a new `CompressRequestConfig`, not
`HeadroomConfig`. `HeadroomConfig` (with `defaultMode`,
`contentRouterEnabled`, `smartCrusher`, …) is the `wrap`/proxy runtime
config and is **not** the schema `POST /v1/compress` reads.
`handle_compress` in `headroom/proxy/handlers/openai.py` honors only a
flat set of keys — `mode`, `target_ratio`, `compress_user_messages`,
`protect_recent`, `protect_analysis_context`, `frozen_message_count`,
`session_id` — and rejects (400) any `mode` outside `ccr | lossy_inline
| lossless_then_lossy`. `CompressRequestConfig` (camelCase, snake_cased
on the wire) models exactly those keys, so the SDK now offers only knobs
the endpoint actually accepts.
## Type of Change
- [ ] Bug fix (non-breaking change that fixes an issue)
- [x] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] Documentation update
- [ ] Performance improvement
- [ ] Code refactoring (no functional changes)
## Changes Made
- **`sdk/typescript/src/types/config.ts`** — add `CompressMode` (`"ccr"
| "lossy_inline" | "lossless_then_lossy"`) and `CompressRequestConfig`
(the flat, all-optional set of keys `/v1/compress` honors: `mode`,
`targetRatio`, `compressUserMessages`, `protectRecent`,
`protectAnalysisContext`, `frozenMessageCount`, `sessionId`).
- **`sdk/typescript/src/index.ts`** — export `CompressMode` and
`CompressRequestConfig`.
- **`sdk/typescript/src/types.ts`** — `config?: CompressRequestConfig`
on `CompressOptions`; widen `HeadroomClientInterface.compress`'s options
to `{ model?; tokenBudget?; config? }`.
- **`sdk/typescript/src/client.ts`** — client-level and per-call
`config` retyped from `HeadroomConfig` to `CompressRequestConfig`;
`compress()` accepts `config` and forwards it to `_doCompress()`;
`_doCompress()` gains a `config?` param and builds the body config as
`const merged = { ...this.config, ...config }; if
(Object.keys(merged).length > 0) body.config = deepSnakeCase(merged);`
(replacing the old `if (this.config)` block).
- **`sdk/typescript/src/compress.ts`** — destructure `config` from
options and forward it to `client.compress(...)`. (Previously `config`
fell into `...clientOptions` and was silently dropped when a pre-built
`client` was supplied — this also fixes that latent drop.)
**Merge semantics:** shallow, per-call keys override client-level keys
at the top level — matching `simulate()`'s existing shallow spread. When
neither client nor call sets `config`, no `config` key is sent
(byte-identical to prior behavior — no regression). `simulate()` is
untouched. Additive, optional, non-breaking; every
`CompressRequestConfig` field is optional so a partial `{ mode: "ccr" }`
is valid.
## Testing
- [x] Unit tests pass (`npm test` — vitest)
- [x] Type checking passes (`npm run typecheck` — tsc --noEmit)
- [x] Build passes (`npm run build` — tsup)
- [x] New tests added for new functionality
### Test Output
```text
$ cd sdk/typescript && npm test
Test Files 18 passed | 5 skipped (23)
Tests 298 passed | 33 skipped (331)
$ npm run typecheck # tsc --noEmit
(clean, no errors)
$ npm run build # tsup
(ESM + CJS + DTS built successfully)
```
New tests (`test/client.test.ts`, `test/compress.test.ts`):
- per-call `config` is sent snake_cased in the request body (`mode`,
`target_ratio`, `compress_user_messages`);
- per-call `config` overrides client-level `config` (client `mode:
"lossy_inline"` + call `mode: "ccr"` → sends `"ccr"`);
- no `config` key when neither client nor call sets one (no regression);
- standalone `compress()` forwards a per-call `config` (`mode: "ccr"`,
`targetRatio: 0.25`) that overrides a **provided** client's config
(fails pre-fix — `config` was dropped when a `client` was supplied).
## Real Behavior Proof
- Environment: Node v22.16.0, Windows 11; TypeScript SDK built from this
branch (`cd sdk/typescript && npm install`).
- Exact command / steps: `cd sdk/typescript && npm test` (vitest), `npm
run typecheck` (tsc --noEmit), `npm run build` (tsup). The four new
tests drive the real `compress()` / `HeadroomClient.compress()` /
standalone `compress()` paths against a mocked `fetch` and assert the
actual `/v1/compress` request body.
- Observed result: On `main` (implementation reverted, tests kept) the
config tests FAIL — `body.config` is `undefined` because the per-call
config is dropped (`TypeError: Cannot read properties of undefined
(reading 'mode')`, and `expected undefined to be 'ccr'`). After the
change: `298 passed | 33 skipped`, typecheck clean, build clean, and
`body.config.mode` reflects the per-call override (`"ccr"` overriding a
client-level `"lossy_inline"`), with `targetRatio` sent as
`target_ratio`.
- Not tested: a live proxy round-trip. The request-body assertions (via
mocked fetch) cover the SDK's responsibility; the proxy already accepts
per-request `config` on `/v1/compress`, as the existing `simulate()`
path demonstrates.
## Runtime Rollout Safety
- Rollout-managed feature(s): None. This is a client-side TypeScript SDK
API change; no server/runtime feature flag or rollout channel is
involved.
- Minimum rollout channel: N/A (not gated by any rollout channel).
- Stable/default behavior changed: No. The new `config` parameter is
optional; when it (and the client-level config) is unset, the request
body is byte-identical to before (no `config` key sent). Existing
callers are unaffected.
- Kill switch / disable path: N/A — the behavior is opt-in per call
(omit `config` to get prior behavior).
- Unsafe override required: No.
- Qualification impact: None — additive optional parameter; existing SDK
tests unchanged and green.
- Rollback path: Revert this PR; no persisted state, migrations, or
config to unwind.
## Review Readiness
- [x] I have performed a self-review
- [x] This PR is ready for human review
## Checklist
- [x] My code follows the project's style guidelines
- [x] I have performed a self-review of my code
- [x] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [ ] I have updated the CHANGELOG.md if applicable
## Screenshots (if applicable)
N/A
## Additional Notes
- CHANGELOG left untouched — the repo enforces a `no-manual-changelog`
CI check (release-please owns `CHANGELOG.md`); the conventional-commit
`feat(sdk):` message drives the entry.
- Scope kept minimal: no deep/recursive merge (shallow top-level
override matches `simulate()`; a deep-merge could be a future
enhancement), no proxy change, no new dependency.
- Pre-existing, out of scope (happy to file/fix separately if wanted):
`simulate()` calls `compressRaw()` directly and so never merges
client-level `config` (only per-call) — a small asymmetry this PR does
not touch; and `test/types.test.ts`'s
`HeadroomClientInterface["compress"]` param type-assertion was already
stale (it predates this change, missing `tokenBudget`) — it's a dormant
`expectTypeOf` check not enforced by `npm test`/`tsc`.
|
||
|
|
63676e6cff |
fix(sdk): preserve Anthropic image blocks in message conversion instead of dropping the turn (#3439)
## Description
The TypeScript SDK's `anthropicToOpenAI()` converter drops image content
when translating Anthropic-format messages to OpenAI format for
compression. For a `user` message with array `content`, it only extracts
`text` and `tool_result` blocks — there is no branch for `image` blocks.
So:
- An **image-only** user turn (a normal vision request) produces
`textBlocks.length === 0` with no tool_results, and **nothing is
pushed** — the entire conversation turn is silently deleted, breaking
role alternation and losing the image.
- A **mixed text+image** turn keeps the text but silently drops the
image.
`detectFormat()` already recognizes Anthropic images (`{ type: "image",
source: { type } }`), and the sibling `vercelToOpenAI()` already
converts images to OpenAI `image_url` parts — so images are a known,
intended input; the Anthropic converter simply had no branch for them.
The bug exists in two copies, both on real user paths:
- `sdk/typescript/src/utils/format.ts` — exported `anthropicToOpenAI`,
used by `toOpenAI()` on the main `compress()` path.
- `sdk/typescript/src/adapters/anthropic.ts` — the private helper used
by `withHeadroom()` for the Anthropic SDK.
This adds image handling to both: Anthropic image blocks are converted
to OpenAI `image_url` content parts (base64 source → a `data:` URI, url
source → the url), a turn containing images is emitted as a multimodal
`content` array with original block order preserved, and unconvertible
image blocks are skipped without deleting the turn. Text-only turns are
unchanged (still a joined string), so no regression on the common path.
**Round trip:** the reverse conversion (`openAIToAnthropic`, in both
files) also mapped every non-text part to empty text, so on a successful
compression the newly-preserved `image_url` was turned into an empty
text block before reaching the wrapped Anthropic client — the image was
lost anyway. This PR also fixes the reverse mapping (`image_url` →
Anthropic image block: a `data:<media_type>;base64,<data>` URI → a
base64 source, any other url → a url source), so images survive the full
`withHeadroom()` round trip through to `messages.create`.
## Type of Change
- [x] Bug fix (non-breaking change that fixes an issue)
- [ ] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] Documentation update
- [ ] Performance improvement
- [ ] Code refactoring (no functional changes)
## Changes Made
- **`sdk/typescript/src/utils/format.ts`** —
- `anthropicToOpenAI` user-branch (forward): handle `image` blocks.
Added `anthropicImageUrl(source)` (base64 →
`data:<media_type>;base64,<data>`, url → `source.url`, else `null`).
When a user turn has image blocks, emit one `{ role: "user", content:
ContentPart[] }` preserving text/image order; unconvertible images are
skipped. Text-only and tool_result handling unchanged.
- `openAIToAnthropic` user-branch (reverse): added
`openAIImageBlock(url)` and map `image_url` parts back to Anthropic
image blocks (data URI → base64 source, other url → url source).
- **`sdk/typescript/src/adapters/anthropic.ts`** — same forward and
reverse fixes applied to the duplicated private helpers (kept
self-contained; existing `tool_result`/assistant handling preserved
unchanged).
- **Tests** — forward, reverse, round-trip, and adapter end-to-end cases
(see Testing).
## Testing
- [x] Unit tests pass (`npm test` — vitest)
- [x] Type checking passes (`npm run typecheck` — tsc --noEmit)
- [x] Build passes (`npm run build` — tsup)
- [x] New tests added for new functionality
- [x] Manual testing performed
### Test Output
```text
$ cd sdk/typescript && npm test
Test Files 18 passed | 5 skipped (23)
Tests 308 passed | 33 skipped (340)
$ npm run typecheck # tsc --noEmit
(clean, no errors)
$ npm run build # tsup
(ESM + CJS + DTS built successfully)
```
New tests (`test/utils/format.test.ts`,
`test/adapters/anthropic.test.ts`):
- **forward** (`anthropicToOpenAI`): image-only user message → returns a
message (not `[]`) with an `image_url` part; base64 → `data:` URI; url →
passthrough; text+image → array, order preserved; text-only → unchanged
(string); image+tool_result → user message plus separate tool message;
- **reverse** (`openAIToAnthropic`): `image_url` → Anthropic image block
(data URI → base64 source; http → url source); mixed order preserved;
- **round trip**: `openAIToAnthropic(anthropicToOpenAI(input))`
reproduces image-only and mixed turns exactly;
- **adapter end-to-end** (`withHeadroom`): with a mocked compression
response that retains the image, the original `messages.create` receives
the Anthropic image block (image-only and mixed turns) — not empty text.
## Real Behavior Proof
- Environment: Node v22.16.0, Windows 11; TypeScript SDK from this
branch (`cd sdk/typescript && npm install`).
- Exact command / steps: `cd sdk/typescript && npm test` (vitest), `npm
run typecheck` (tsc --noEmit), `npm run build` (tsup). The new tests
drive the real exported `anthropicToOpenAI` and assert the returned
OpenAI messages.
- Observed result: Before the fix, `anthropicToOpenAI([{ role: "user",
content: [{ type: "image", source: {...} }] }])` returns `[]` (the turn
is dropped); and even a preserved image was flattened to empty text by
the reverse conversion before reaching the wrapped client. After: the
forward pass returns a `user` message carrying the image as an
`image_url` part (base64 → `data:` URI, url → passthrough, order
preserved, text-only still a string), and the reverse pass restores it
to an Anthropic image block — the adapter test asserts the original
`messages.create` receives the image block (image-only and mixed turns)
on a successful compression. `npm test`: 308 passed | 33 skipped,
typecheck + build clean.
- Not tested: a live proxy round-trip. The conversion is pure and fully
covered by unit tests; the proxy consumes standard OpenAI-format
messages.
## Runtime Rollout Safety
- Rollout-managed feature(s): None. Client-side TypeScript SDK
message-conversion fix; no server/runtime feature flag or rollout
channel involved.
- Minimum rollout channel: N/A.
- Stable/default behavior changed: Only the buggy path changes — image
content that was previously dropped is now preserved. Text-only and
tool_result conversions are byte-identical to before (no regression on
the common path).
- Kill switch / disable path: N/A — this is a correctness fix, not a
gated feature.
- Unsafe override required: No.
- Qualification impact: None — additive image handling; existing
conversion tests unchanged and green.
- Rollback path: Revert this PR; no persisted state, migrations, or
config to unwind.
## Review Readiness
- [x] I have performed a self-review
- [x] This PR is ready for human review
## Checklist
- [x] My code follows the project's style guidelines
- [x] I have performed a self-review of my code
- [x] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [x] I did **not** edit `CHANGELOG.md` — it is generated by
release-please from my Conventional Commit PR title (a CI guard enforces
this)
## Screenshots (if applicable)
N/A
## Additional Notes
- Both directions of the conversion are fixed so the `withHeadroom()`
round trip preserves images. One related cleanup is left as a follow-up
rather than widening this PR: the image conversion (and the converters
generally) are duplicated across `utils/format.ts` and
`adapters/anthropic.ts` (with slightly different `tool_result` handling)
— a candidate for later de-duplication into the shared util. Happy to
file/fix that separately.
- CHANGELOG left untouched — the `no-manual-changelog` CI guard owns it;
the Conventional Commit title drives the entry.
---------
Co-authored-by: Jerrett Davis <mxjerrett@gmail.com>
|
||
|
|
95cbbb8158 |
fix(sdk): enforce dormant public type tests (#3424)
## Description
The TypeScript SDK's public type assertions were not enforced: Vitest
treated `expectTypeOf` calls as runtime no-ops, and the source tsconfig
excluded the tests. This enables Vitest type checking with a dedicated
tsconfig, renames the type test to `types.test-d.ts`, and corrects the
stale `compress` options assertion to include `tokenBudget`.
`CompressResult.messages` remains `any[]`: the universal API returns the
input format, which can be Anthropic, Gemini, or Vercel rather than
OpenAI. The final change does not narrow that public result contract.
## Type of Change
- [x] Bug fix (non-breaking change that fixes an issue)
- [ ] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] Documentation update
- [ ] Performance improvement
- [ ] Code refactoring (no functional changes)
## Changes Made
- **`sdk/typescript/vitest.config.ts`** — enable `test.typecheck` with a
dedicated tsconfig so `vitest run` type-checks `expectTypeOf` assertions
instead of no-oping them.
- **`sdk/typescript/tsconfig.typecheck.json`** (new) — typecheck-only
tsconfig that includes the test type-files. Required: the root
`tsconfig.json` excludes `test/`, so without it vitest's typecheck
silently reports "no errors" even for a deliberately wrong assertion.
- **`sdk/typescript/test/types.test.ts` → `test/types.test-d.ts`** —
renamed to vitest's type-test convention so typecheck collects it. It is
the only file using `expectTypeOf`; the runtime suite is unchanged.
- **Stale assertion fixed** — `HeadroomClientInterface["compress"]`
params corrected from `{ model?: string }` to `{ model?: string;
tokenBudget?: number }` to match `src/types.ts`.
- **`CompressResult["messages"]` assertion** — kept at `any[]` with a
comment explaining the format-preserving return (an earlier revision
narrowed it to `OpenAIMessage[]`; reverted per review). No `src/`
change.
## Testing
- [x] Unit tests pass (`npm test` — vitest, now including typecheck)
- [x] Type checking passes (`npm run typecheck` — tsc --noEmit on src)
- [x] Build passes (`npm run build` — tsup)
- [x] New tests added for new functionality
- [x] Manual testing performed
### Test Output
```text
$ cd sdk/typescript && npm test # vitest run, typecheck.enabled
Testing types with tsc and vue-tsc is an experimental feature.
Test Files 18 passed | 5 skipped (23)
Tests 294 passed | 33 skipped (327)
Type Errors no errors
Duration 2.28s (typecheck 1.33s)
$ npm run typecheck # tsc --noEmit on src
(clean, no errors)
$ npm run build # tsup
(ESM + CJS + DTS built successfully)
```
Maintainer re-validation on `159a646` (isolated `npm ci
--ignore-scripts`, macOS): 294 passed, 33 skipped, no type-test errors;
`npm run typecheck` and `npm run build` pass.
## Real Behavior Proof
- Environment: Node v22.16.0 on Windows 11 (author) and macOS
(maintainer re-validation); `sdk/typescript` with an isolated `npm ci
--ignore-scripts`.
- Exact command / steps: `cd sdk/typescript && npm ci --ignore-scripts
&& npm test && npm run typecheck && npm run build`.
- Observed result: Vitest executes `types.test-d.ts` (blocks tagged `✓
TS`) and reports no type errors; runtime tests pass; tsc and the
ESM/CJS/DTS build succeed. Negative probe: temporarily changing the
assertion to `tokenBudget?: string` makes `npm test` FAIL
(`TypeCheckError ... test/types.test-d.ts:177:7`, `Type Errors 1
failed`, non-zero exit); restoring it returns to `Type Errors: no
errors`, 294 passed.
- Not tested: live provider requests. The change affects test
enforcement only; there is no runtime code path.
## Runtime Rollout Safety
- Rollout-managed feature(s): None; test enforcement only.
- Minimum rollout channel: N/A.
- Stable/default behavior changed: No runtime behavior or public
result-type narrowing.
- Kill switch / disable path: Revert the test configuration change.
- Unsafe override required: No.
- Qualification impact: Type assertions now participate in `npm test`.
- Rollback path: Revert this PR; no persisted-state changes.
## Review Readiness
- [x] I have performed a self-review
- [x] This PR is ready for human review
## Checklist
- [x] My code follows the project's style guidelines
- [x] I have performed a self-review of my code
- [x] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [x] I did **not** edit `CHANGELOG.md` — it is generated by
release-please from my Conventional Commit PR title (a CI guard enforces
this)
## Screenshots (if applicable)
N/A
## Additional Notes
- Body restored to the PR template after the governance bot flagged the
condensed version (missing `Changes Made`, template checkboxes absent).
Content matches the twice-approved revision; no source changes.
- The dedicated `tsconfig.typecheck.json` is load-bearing: with
`typecheck.enabled` alone, vitest resolved the root `tsconfig.json`
(which excludes `test/`) and reported "no errors" even for a
deliberately absurd probe assertion.
- No dedicated vitest CI job exists, so enforcement primarily protects
local development; it still stops the public-API type assertions from
silently rotting the way the `compress` one already had.
---------
Co-authored-by: Jerrett Davis <mxjerrett@gmail.com>
|
||
|
|
b2b58474c4 |
refactor(sdk): route _fetch through rawFetch instead of duplicating it (#3473)
## Description
`HeadroomClient.rawFetch()` and `HeadroomClient._fetch()` in
`sdk/typescript/src/client.ts` each carried their own copy of the same
transport: URL construction, the `Content-Type` default and
caller-header merge, proxy auth, the `X-Headroom-Stack` guard, `fetch`
with `AbortSignal.timeout`, `HeadroomConnectionError` wrapping, and
non-ok response parsing into `mapProxyError`. The two differed only in
body handling — `rawFetch()` serializes a structured body, `_fetch()`
takes an already-serialized string — and in auth, where `rawFetch()`
refuses to override a provider credential.
`rawFetch()` now sends a `string` body as-is and JSON-serializes
anything else, so `_fetch()` collapses to a typed delegate and the
transport exists once. `client.ts` goes from 632 to 598 lines. This is a
maintenance-only cleanup flagged in the repository efficiency audit;
there is no performance claim.
Nothing observable changes. `_fetch()` is `private` with 25 call sites,
all in `client.ts`, and none passes `headers`, so `rawFetch()`'s "don't
override provider auth" guard resolves exactly the way `_fetch()`'s
unconditional `Authorization` assignment did. Provider-credential
handling itself is untouched.
## Type of Change
- [ ] Bug fix (non-breaking change that fixes an issue)
- [ ] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] Documentation update
- [ ] Performance improvement
- [x] Code refactoring (no functional changes)
## Changes Made
- `sdk/typescript/src/client.ts`: `rawFetch()` keeps the single
transport implementation; its body argument is now `typeof options.body
=== "string" ? options.body : options.body ?
JSON.stringify(options.body) : undefined`, still evaluated inside the
existing `try`, so an unserializable body keeps throwing
`HeadroomConnectionError`.
- `sdk/typescript/src/client.ts`: `_fetch()` drops from 47 duplicated
lines to `return this.rawFetch(path, init)`. Its `headers` field — dead
across all 25 call sites — is removed from the init type, so a future
caller that needs headers gets a compile error instead of silently
different auth behavior.
- `sdk/typescript/test/client-expanded.test.ts`: six regression cases in
a new `shared HTTP transport` block, covering body encoding, header
precedence, both provider-auth paths, and the error paths.
- No public signature changes, no new class/helper/options object, no
new dependency. `rawFetch()`'s unused `stream` option is left alone; its
callers read `params.stream` themselves.
## Testing
- [ ] Unit tests pass (`pytest`)
- [ ] Linting passes (`ruff check .`)
- [ ] Type checking passes (`mypy headroom`)
- [x] New tests added for new functionality
- [x] Manual testing performed
TypeScript-only change, so the Python gates do not apply; the SDK's own
suite, `tsc --noEmit` and `tsup` build are the equivalents and all pass.
### Test Output
```text
$ npm test # sdk/typescript
Test Files 18 passed | 5 skipped (23)
Tests 300 passed | 33 skipped (333)
# base
|
||
|
|
ca4b47a3fc |
fix(sdk): preserve proxy authentication alongside provider credentials (#3450)
## Description The TypeScript SDK omits its proxy `apiKey` when an OpenAI or Anthropic provider credential is present, causing token-protected remote proxies to reject those requests with 401. Send `X-Headroom-Proxy-Token` from shared `rawFetch()` while preserving provider authentication and the existing bearer fallback. The server already supports this header via #3422. ## Type of Change - [x] Bug fix (non-breaking change that fixes an issue) ## Changes Made - Add the dedicated proxy-token header in `sdk/typescript/src/client.ts` whenever an SDK proxy key is configured; provider `Authorization`/`x-api-key` headers and the bearer fallback are untouched. - Add eight regression cases covering both providers with explicit keys, environment keys, proxy-only authentication, and provider-only authentication. ## Testing - [x] Unit tests pass (`pytest`) — N/A, TypeScript-only change; `npm test` run instead - [x] New tests added for new functionality - [x] Manual testing performed ### Test Output ```text cd sdk/typescript npm test Test Files 18 passed | 5 skipped (23) Tests 302 passed | 33 skipped (335) npm run typecheck # passed npm run build # passed git diff --check # passed ``` ## Real Behavior Proof - Environment: macOS, Node.js 26.5.1; locked SDK dependencies installed with `npm ci`. - Exact command / steps: `cd sdk/typescript && npm ci && npm test -- test/client-expanded.test.ts`, then `npm test`, `npm run typecheck`, `npm run build`. - Observed result: before the fix, six of the eight new cases failed because `X-Headroom-Proxy-Token` was absent from the request headers. After the fix all eight pass and still assert the expected provider headers (`Authorization: Bearer <provider-key>` for OpenAI, `x-api-key` for Anthropic, bearer fallback when no provider key is set). Tests drive the real SDK clients and inspect requests at a mocked fetch boundary. - Not tested: live provider calls, a deployed remote proxy, and the Python test suite. The SDK suite reports 33 skipped tests. ## Runtime Rollout Safety - Rollout-managed feature(s): None. The header is sent unconditionally from `rawFetch()` when a proxy key is configured; no rollout flag or channel gate is involved. - Minimum rollout channel: N/A — not rollout-managed; the fix ships to every channel with the next SDK release. - Stable/default behavior changed: Yes. When an SDK proxy key is configured, chat/message requests now also carry `X-Headroom-Proxy-Token`. Provider auth headers and the existing bearer fallback are unchanged, and no header is added when no proxy key is set. - Kill switch / disable path: Do not configure a proxy key (`apiKey` option / `HEADROOM_API_KEY`) — the header is only added when one exists. Otherwise pin the previous SDK version. - Unsafe override required: No. - Qualification impact: None. Server-side support for the header landed in #3422, and proxies that do not read it ignore the extra header. - Rollback path: Revert this commit, or pin the preceding SDK release. ## Review Readiness - [x] I have performed a self-review - [x] This PR is ready for human review ## Checklist - [x] My code follows the project's style guidelines - [x] I have performed a self-review of my code - [x] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [x] My changes generate no new warnings - [x] I did **not** edit `CHANGELOG.md` — it is generated by release-please from my Conventional Commit PR title (a CI guard enforces this) ## Additional Notes Python-specific template checks (`pytest`, `ruff`, `mypy`) are not applicable to this TypeScript-only change; the equivalent SDK commands are recorded above. Documentation is unchanged — no new dependencies or public configuration options are introduced. |
||
|
|
63113329cf |
deps: bump the npm-minor-patch group across 3 directories with 9 updates (#3764)
Bumps the npm-minor-patch group with 2 updates in the /plugins/openclaw directory: [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) and [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest). Bumps the npm-minor-patch group with 3 updates in the /plugins/opencode directory: [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node), [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) and @opencode-ai/plugin. Bumps the npm-minor-patch group with 8 updates in the /sdk/typescript directory: | Package | From | To | | --- | --- | --- | | [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `26.5.1` | `26.6.2` | | [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) | `5.0.0` | `5.0.1` | | [@ai-sdk/anthropic](https://github.com/vercel/ai/tree/HEAD/packages/anthropic) | `4.0.53` | `4.0.58` | | [@ai-sdk/openai](https://github.com/vercel/ai/tree/HEAD/packages/openai) | `4.0.66` | `4.0.71` | | [@ai-sdk/provider](https://github.com/vercel/ai/tree/HEAD/packages/provider) | `4.0.14` | `4.0.17` | | [@anthropic-ai/sdk](https://github.com/anthropics/anthropic-sdk-typescript) | `0.125.0` | `0.127.0` | | [ai](https://github.com/vercel/ai/tree/HEAD/packages/ai) | `7.0.99` | `7.0.107` | | [openai](https://github.com/openai/openai-node) | `7.15.0` | `7.20.0` | Updates `@types/node` from 26.5.1 to 26.6.2 <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node">compare view</a></li> </ul> </details> <br /> Updates `vitest` from 5.0.0 to 5.0.1 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/vitest-dev/vitest/releases">vitest's releases</a>.</em></p> <blockquote> <h2>v5.0.1</h2> <h3> 🚀 Features</h3> <ul> <li><strong>ui</strong>: <ul> <li>Move trace attempts selector to viewer header - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Codex</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11189">vitest-dev/vitest#11189</a> <a href="https://github.com/vitest-dev/vitest/commit/5dc4b5c92"><!-- raw HTML omitted -->(5dc4b)<!-- raw HTML omitted --></a></li> <li>Add focused trace view layout mode - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong>, <strong>OpenCode (gpt-5.6-sol)</strong> and <strong>Codex</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11190">vitest-dev/vitest#11190</a> <a href="https://github.com/vitest-dev/vitest/commit/376dc3bc1"><!-- raw HTML omitted -->(376dc)<!-- raw HTML omitted --></a></li> </ul> </li> </ul> <h3> 🐞 Bug Fixes</h3> <ul> <li>Exit 1 when vitest list fails collection - by <a href="https://github.com/hamed-bavar"><code>@hamed-bavar</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11145">vitest-dev/vitest#11145</a> and <a href="https://redirect.github.com/vitest-dev/vitest/issues/11146">vitest-dev/vitest#11146</a> <a href="https://github.com/vitest-dev/vitest/commit/6108b8197"><!-- raw HTML omitted -->(6108b)<!-- raw HTML omitted --></a></li> <li>Keep parse error details in static collection - by <a href="https://github.com/hamed-bavar"><code>@hamed-bavar</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11150">vitest-dev/vitest#11150</a> and <a href="https://redirect.github.com/vitest-dev/vitest/issues/11151">vitest-dev/vitest#11151</a> <a href="https://github.com/vitest-dev/vitest/commit/7c818153a"><!-- raw HTML omitted -->(7c818)<!-- raw HTML omitted --></a></li> <li>Avoid recursive prototype in automocking - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11195">vitest-dev/vitest#11195</a> <a href="https://github.com/vitest-dev/vitest/commit/99fc52591"><!-- raw HTML omitted -->(99fc5)<!-- raw HTML omitted --></a></li> <li>Prevent false Vitest import resolution - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11196">vitest-dev/vitest#11196</a> <a href="https://github.com/vitest-dev/vitest/commit/b426c1976"><!-- raw HTML omitted -->(b426c)<!-- raw HTML omitted --></a></li> <li>Keep metadata file when clearing the cache - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11199">vitest-dev/vitest#11199</a> <a href="https://github.com/vitest-dev/vitest/commit/73614654a"><!-- raw HTML omitted -->(73614)<!-- raw HTML omitted --></a></li> <li>Correct typos in error message and comments - by <a href="https://github.com/shinji00222"><code>@shinji00222</code></a> and <strong>Shinji</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11187">vitest-dev/vitest#11187</a> <a href="https://github.com/vitest-dev/vitest/commit/115c3f6d2"><!-- raw HTML omitted -->(115c3)<!-- raw HTML omitted --></a></li> <li>Resolve ResolvedConfig exactOptionalPropertyTypes errors - by <a href="https://github.com/LukeAbby"><code>@LukeAbby</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11175">vitest-dev/vitest#11175</a> <a href="https://github.com/vitest-dev/vitest/commit/498fbe922"><!-- raw HTML omitted -->(498fb)<!-- raw HTML omitted --></a></li> <li>Share the server on self-referencing <code>extends</code> - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11034">vitest-dev/vitest#11034</a> <a href="https://github.com/vitest-dev/vitest/commit/23dda738c"><!-- raw HTML omitted -->(23dda)<!-- raw HTML omitted --></a></li> <li>Warn when deprecated <code>deps.optimizer.web</code> is used - by <a href="https://github.com/im10furry"><code>@im10furry</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11214">vitest-dev/vitest#11214</a> <a href="https://github.com/vitest-dev/vitest/commit/2ce29d5fa"><!-- raw HTML omitted -->(2ce29)<!-- raw HTML omitted --></a></li> <li><strong>browser</strong>: <ul> <li>Avoid double quotes in <code>config.define</code> - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11198">vitest-dev/vitest#11198</a> <a href="https://github.com/vitest-dev/vitest/commit/972e24bab"><!-- raw HTML omitted -->(972e2)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>doctor</strong>: <ul> <li>Measure vm pools for custom environments - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11212">vitest-dev/vitest#11212</a> <a href="https://github.com/vitest-dev/vitest/commit/91ab1588c"><!-- raw HTML omitted -->(91ab1)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>expect</strong>: <ul> <li>Correct return value in <code>toMatchAriaSnapshot</code> - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11208">vitest-dev/vitest#11208</a> <a href="https://github.com/vitest-dev/vitest/commit/c119be016"><!-- raw HTML omitted -->(c119b)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>fakeTimers</strong>: <ul> <li>Force <code>queueMicrotask</code> and <code>nextTick</code> in <code>toNotFake</code> - by <a href="https://github.com/kingmakeruix"><code>@kingmakeruix</code></a>, <strong>kingmakeruix</strong>, <strong>Hiroshi Ogawa</strong>, <strong>Codex</strong> and <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11261">vitest-dev/vitest#11261</a> <a href="https://github.com/vitest-dev/vitest/commit/a47d7908f"><!-- raw HTML omitted -->(a47d7)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>snapshot</strong>: <ul> <li>Report obsolete keys next to skipped tests - by <a href="https://github.com/hamed-bavar"><code>@hamed-bavar</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>OpenCode (gpt-5.6-sol)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11157">vitest-dev/vitest#11157</a> and <a href="https://redirect.github.com/vitest-dev/vitest/issues/11158">vitest-dev/vitest#11158</a> <a href="https://github.com/vitest-dev/vitest/commit/17e2b22dd"><!-- raw HTML omitted -->(17e2b)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>types</strong>: <ul> <li>Make public declarations self-contained - by <a href="https://github.com/ZoeySigel"><code>@ZoeySigel</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11141">vitest-dev/vitest#11141</a> <a href="https://github.com/vitest-dev/vitest/commit/455466c16"><!-- raw HTML omitted -->(45546)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>ui</strong>: <ul> <li>Fix collapse/expand suite with file name search - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Codex</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11260">vitest-dev/vitest#11260</a> <a href="https://github.com/vitest-dev/vitest/commit/0a7122daa"><!-- raw HTML omitted -->(0a712)<!-- raw HTML omitted --></a></li> <li>Fix explorer file summary count - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong>, <strong>OpenCode (gpt-5.6-sol)</strong> and <strong>Codex</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11125">vitest-dev/vitest#11125</a> <a href="https://github.com/vitest-dev/vitest/commit/05982297d"><!-- raw HTML omitted -->(05982)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>utils</strong>: <ul> <li>Fix <code>deepMerge</code> to handle prototype - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Codex</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11215">vitest-dev/vitest#11215</a> <a href="https://github.com/vitest-dev/vitest/commit/4944cf498"><!-- raw HTML omitted -->(4944c)<!-- raw HTML omitted --></a></li> </ul> </li> </ul> <h5> <a href="https://github.com/vitest-dev/vitest/compare/v5.0.0...v5.0.1">View changes on GitHub</a></h5> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/vitest-dev/vitest/commit/03630a5995d10455fa136be53bfb2b2409381106"><code>03630a5</code></a> chore: release v5.0.1 (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11275">#11275</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/a47d7908f0635e9cba6cbe5e1a209bb6add5e0ab"><code>a47d790</code></a> fix(fakeTimers): force <code>queueMicrotask</code> and <code>nextTick</code> in <code>toNotFake</code> (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11261">#11261</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/2ce29d5fa758046e5453bd92b8ed6c9da9709bb5"><code>2ce29d5</code></a> fix: warn when deprecated <code>deps.optimizer.web</code> is used (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11214">#11214</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/ccd6d057b6e4ca29a5e6b753a2b8e16b0afd8cda"><code>ccd6d05</code></a> docs: fix typecheck exclude default in documentation (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11223">#11223</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/91ab1588c72c9c5f7c638368a541cd20e0e8a934"><code>91ab158</code></a> fix(doctor): measure vm pools for custom environments (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11212">#11212</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/23dda738ccacb11682426426cd7b876afd107621"><code>23dda73</code></a> fix: share the server on self-referencing <code>extends</code> (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11034">#11034</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/498fbe9222eb9aa3d8cf48481e200c16bb693bbd"><code>498fbe9</code></a> fix: resolve ResolvedConfig exactOptionalPropertyTypes errors (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11175">#11175</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/115c3f6d2bfa6a8672eeab8cc21bbecc6a4ef3d0"><code>115c3f6</code></a> fix: correct typos in error message and comments (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11187">#11187</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/73614654a46f617c357920eecda439654a561f92"><code>7361465</code></a> fix: keep metadata file when clearing the cache (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11199">#11199</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/972e24bab5fb96843de72447eb65585628b8dbde"><code>972e24b</code></a> fix(browser): avoid double quotes in <code>config.define</code> (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11198">#11198</a>)</li> <li>Additional commits viewable in <a href="https://github.com/vitest-dev/vitest/commits/v5.0.1/packages/vitest">compare view</a></li> </ul> </details> <br /> Updates `@types/node` from 26.5.1 to 26.6.2 <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node">compare view</a></li> </ul> </details> <br /> Updates `vitest` from 5.0.0 to 5.0.1 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/vitest-dev/vitest/releases">vitest's releases</a>.</em></p> <blockquote> <h2>v5.0.1</h2> <h3> 🚀 Features</h3> <ul> <li><strong>ui</strong>: <ul> <li>Move trace attempts selector to viewer header - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Codex</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11189">vitest-dev/vitest#11189</a> <a href="https://github.com/vitest-dev/vitest/commit/5dc4b5c92"><!-- raw HTML omitted -->(5dc4b)<!-- raw HTML omitted --></a></li> <li>Add focused trace view layout mode - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong>, <strong>OpenCode (gpt-5.6-sol)</strong> and <strong>Codex</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11190">vitest-dev/vitest#11190</a> <a href="https://github.com/vitest-dev/vitest/commit/376dc3bc1"><!-- raw HTML omitted -->(376dc)<!-- raw HTML omitted --></a></li> </ul> </li> </ul> <h3> 🐞 Bug Fixes</h3> <ul> <li>Exit 1 when vitest list fails collection - by <a href="https://github.com/hamed-bavar"><code>@hamed-bavar</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11145">vitest-dev/vitest#11145</a> and <a href="https://redirect.github.com/vitest-dev/vitest/issues/11146">vitest-dev/vitest#11146</a> <a href="https://github.com/vitest-dev/vitest/commit/6108b8197"><!-- raw HTML omitted -->(6108b)<!-- raw HTML omitted --></a></li> <li>Keep parse error details in static collection - by <a href="https://github.com/hamed-bavar"><code>@hamed-bavar</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11150">vitest-dev/vitest#11150</a> and <a href="https://redirect.github.com/vitest-dev/vitest/issues/11151">vitest-dev/vitest#11151</a> <a href="https://github.com/vitest-dev/vitest/commit/7c818153a"><!-- raw HTML omitted -->(7c818)<!-- raw HTML omitted --></a></li> <li>Avoid recursive prototype in automocking - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11195">vitest-dev/vitest#11195</a> <a href="https://github.com/vitest-dev/vitest/commit/99fc52591"><!-- raw HTML omitted -->(99fc5)<!-- raw HTML omitted --></a></li> <li>Prevent false Vitest import resolution - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11196">vitest-dev/vitest#11196</a> <a href="https://github.com/vitest-dev/vitest/commit/b426c1976"><!-- raw HTML omitted -->(b426c)<!-- raw HTML omitted --></a></li> <li>Keep metadata file when clearing the cache - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11199">vitest-dev/vitest#11199</a> <a href="https://github.com/vitest-dev/vitest/commit/73614654a"><!-- raw HTML omitted -->(73614)<!-- raw HTML omitted --></a></li> <li>Correct typos in error message and comments - by <a href="https://github.com/shinji00222"><code>@shinji00222</code></a> and <strong>Shinji</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11187">vitest-dev/vitest#11187</a> <a href="https://github.com/vitest-dev/vitest/commit/115c3f6d2"><!-- raw HTML omitted -->(115c3)<!-- raw HTML omitted --></a></li> <li>Resolve ResolvedConfig exactOptionalPropertyTypes errors - by <a href="https://github.com/LukeAbby"><code>@LukeAbby</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11175">vitest-dev/vitest#11175</a> <a href="https://github.com/vitest-dev/vitest/commit/498fbe922"><!-- raw HTML omitted -->(498fb)<!-- raw HTML omitted --></a></li> <li>Share the server on self-referencing <code>extends</code> - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11034">vitest-dev/vitest#11034</a> <a href="https://github.com/vitest-dev/vitest/commit/23dda738c"><!-- raw HTML omitted -->(23dda)<!-- raw HTML omitted --></a></li> <li>Warn when deprecated <code>deps.optimizer.web</code> is used - by <a href="https://github.com/im10furry"><code>@im10furry</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11214">vitest-dev/vitest#11214</a> <a href="https://github.com/vitest-dev/vitest/commit/2ce29d5fa"><!-- raw HTML omitted -->(2ce29)<!-- raw HTML omitted --></a></li> <li><strong>browser</strong>: <ul> <li>Avoid double quotes in <code>config.define</code> - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11198">vitest-dev/vitest#11198</a> <a href="https://github.com/vitest-dev/vitest/commit/972e24bab"><!-- raw HTML omitted -->(972e2)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>doctor</strong>: <ul> <li>Measure vm pools for custom environments - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11212">vitest-dev/vitest#11212</a> <a href="https://github.com/vitest-dev/vitest/commit/91ab1588c"><!-- raw HTML omitted -->(91ab1)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>expect</strong>: <ul> <li>Correct return value in <code>toMatchAriaSnapshot</code> - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11208">vitest-dev/vitest#11208</a> <a href="https://github.com/vitest-dev/vitest/commit/c119be016"><!-- raw HTML omitted -->(c119b)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>fakeTimers</strong>: <ul> <li>Force <code>queueMicrotask</code> and <code>nextTick</code> in <code>toNotFake</code> - by <a href="https://github.com/kingmakeruix"><code>@kingmakeruix</code></a>, <strong>kingmakeruix</strong>, <strong>Hiroshi Ogawa</strong>, <strong>Codex</strong> and <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11261">vitest-dev/vitest#11261</a> <a href="https://github.com/vitest-dev/vitest/commit/a47d7908f"><!-- raw HTML omitted -->(a47d7)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>snapshot</strong>: <ul> <li>Report obsolete keys next to skipped tests - by <a href="https://github.com/hamed-bavar"><code>@hamed-bavar</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>OpenCode (gpt-5.6-sol)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11157">vitest-dev/vitest#11157</a> and <a href="https://redirect.github.com/vitest-dev/vitest/issues/11158">vitest-dev/vitest#11158</a> <a href="https://github.com/vitest-dev/vitest/commit/17e2b22dd"><!-- raw HTML omitted -->(17e2b)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>types</strong>: <ul> <li>Make public declarations self-contained - by <a href="https://github.com/ZoeySigel"><code>@ZoeySigel</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11141">vitest-dev/vitest#11141</a> <a href="https://github.com/vitest-dev/vitest/commit/455466c16"><!-- raw HTML omitted -->(45546)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>ui</strong>: <ul> <li>Fix collapse/expand suite with file name search - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Codex</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11260">vitest-dev/vitest#11260</a> <a href="https://github.com/vitest-dev/vitest/commit/0a7122daa"><!-- raw HTML omitted -->(0a712)<!-- raw HTML omitted --></a></li> <li>Fix explorer file summary count - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong>, <strong>OpenCode (gpt-5.6-sol)</strong> and <strong>Codex</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11125">vitest-dev/vitest#11125</a> <a href="https://github.com/vitest-dev/vitest/commit/05982297d"><!-- raw HTML omitted -->(05982)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>utils</strong>: <ul> <li>Fix <code>deepMerge</code> to handle prototype - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Codex</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11215">vitest-dev/vitest#11215</a> <a href="https://github.com/vitest-dev/vitest/commit/4944cf498"><!-- raw HTML omitted -->(4944c)<!-- raw HTML omitted --></a></li> </ul> </li> </ul> <h5> <a href="https://github.com/vitest-dev/vitest/compare/v5.0.0...v5.0.1">View changes on GitHub</a></h5> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/vitest-dev/vitest/commit/03630a5995d10455fa136be53bfb2b2409381106"><code>03630a5</code></a> chore: release v5.0.1 (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11275">#11275</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/a47d7908f0635e9cba6cbe5e1a209bb6add5e0ab"><code>a47d790</code></a> fix(fakeTimers): force <code>queueMicrotask</code> and <code>nextTick</code> in <code>toNotFake</code> (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11261">#11261</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/2ce29d5fa758046e5453bd92b8ed6c9da9709bb5"><code>2ce29d5</code></a> fix: warn when deprecated <code>deps.optimizer.web</code> is used (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11214">#11214</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/ccd6d057b6e4ca29a5e6b753a2b8e16b0afd8cda"><code>ccd6d05</code></a> docs: fix typecheck exclude default in documentation (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11223">#11223</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/91ab1588c72c9c5f7c638368a541cd20e0e8a934"><code>91ab158</code></a> fix(doctor): measure vm pools for custom environments (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11212">#11212</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/23dda738ccacb11682426426cd7b876afd107621"><code>23dda73</code></a> fix: share the server on self-referencing <code>extends</code> (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11034">#11034</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/498fbe9222eb9aa3d8cf48481e200c16bb693bbd"><code>498fbe9</code></a> fix: resolve ResolvedConfig exactOptionalPropertyTypes errors (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11175">#11175</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/115c3f6d2bfa6a8672eeab8cc21bbecc6a4ef3d0"><code>115c3f6</code></a> fix: correct typos in error message and comments (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11187">#11187</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/73614654a46f617c357920eecda439654a561f92"><code>7361465</code></a> fix: keep metadata file when clearing the cache (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11199">#11199</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/972e24bab5fb96843de72447eb65585628b8dbde"><code>972e24b</code></a> fix(browser): avoid double quotes in <code>config.define</code> (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11198">#11198</a>)</li> <li>Additional commits viewable in <a href="https://github.com/vitest-dev/vitest/commits/v5.0.1/packages/vitest">compare view</a></li> </ul> </details> <br /> Updates `@opencode-ai/plugin` from 1.18.30 to 1.18.31 Updates `@types/node` from 26.5.1 to 26.6.2 <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node">compare view</a></li> </ul> </details> <br /> Updates `vitest` from 5.0.0 to 5.0.1 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/vitest-dev/vitest/releases">vitest's releases</a>.</em></p> <blockquote> <h2>v5.0.1</h2> <h3> 🚀 Features</h3> <ul> <li><strong>ui</strong>: <ul> <li>Move trace attempts selector to viewer header - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Codex</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11189">vitest-dev/vitest#11189</a> <a href="https://github.com/vitest-dev/vitest/commit/5dc4b5c92"><!-- raw HTML omitted -->(5dc4b)<!-- raw HTML omitted --></a></li> <li>Add focused trace view layout mode - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong>, <strong>OpenCode (gpt-5.6-sol)</strong> and <strong>Codex</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11190">vitest-dev/vitest#11190</a> <a href="https://github.com/vitest-dev/vitest/commit/376dc3bc1"><!-- raw HTML omitted -->(376dc)<!-- raw HTML omitted --></a></li> </ul> </li> </ul> <h3> 🐞 Bug Fixes</h3> <ul> <li>Exit 1 when vitest list fails collection - by <a href="https://github.com/hamed-bavar"><code>@hamed-bavar</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11145">vitest-dev/vitest#11145</a> and <a href="https://redirect.github.com/vitest-dev/vitest/issues/11146">vitest-dev/vitest#11146</a> <a href="https://github.com/vitest-dev/vitest/commit/6108b8197"><!-- raw HTML omitted -->(6108b)<!-- raw HTML omitted --></a></li> <li>Keep parse error details in static collection - by <a href="https://github.com/hamed-bavar"><code>@hamed-bavar</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11150">vitest-dev/vitest#11150</a> and <a href="https://redirect.github.com/vitest-dev/vitest/issues/11151">vitest-dev/vitest#11151</a> <a href="https://github.com/vitest-dev/vitest/commit/7c818153a"><!-- raw HTML omitted -->(7c818)<!-- raw HTML omitted --></a></li> <li>Avoid recursive prototype in automocking - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11195">vitest-dev/vitest#11195</a> <a href="https://github.com/vitest-dev/vitest/commit/99fc52591"><!-- raw HTML omitted -->(99fc5)<!-- raw HTML omitted --></a></li> <li>Prevent false Vitest import resolution - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11196">vitest-dev/vitest#11196</a> <a href="https://github.com/vitest-dev/vitest/commit/b426c1976"><!-- raw HTML omitted -->(b426c)<!-- raw HTML omitted --></a></li> <li>Keep metadata file when clearing the cache - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11199">vitest-dev/vitest#11199</a> <a href="https://github.com/vitest-dev/vitest/commit/73614654a"><!-- raw HTML omitted -->(73614)<!-- raw HTML omitted --></a></li> <li>Correct typos in error message and comments - by <a href="https://github.com/shinji00222"><code>@shinji00222</code></a> and <strong>Shinji</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11187">vitest-dev/vitest#11187</a> <a href="https://github.com/vitest-dev/vitest/commit/115c3f6d2"><!-- raw HTML omitted -->(115c3)<!-- raw HTML omitted --></a></li> <li>Resolve ResolvedConfig exactOptionalPropertyTypes errors - by <a href="https://github.com/LukeAbby"><code>@LukeAbby</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11175">vitest-dev/vitest#11175</a> <a href="https://github.com/vitest-dev/vitest/commit/498fbe922"><!-- raw HTML omitted -->(498fb)<!-- raw HTML omitted --></a></li> <li>Share the server on self-referencing <code>extends</code> - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11034">vitest-dev/vitest#11034</a> <a href="https://github.com/vitest-dev/vitest/commit/23dda738c"><!-- raw HTML omitted -->(23dda)<!-- raw HTML omitted --></a></li> <li>Warn when deprecated <code>deps.optimizer.web</code> is used - by <a href="https://github.com/im10furry"><code>@im10furry</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11214">vitest-dev/vitest#11214</a> <a href="https://github.com/vitest-dev/vitest/commit/2ce29d5fa"><!-- raw HTML omitted -->(2ce29)<!-- raw HTML omitted --></a></li> <li><strong>browser</strong>: <ul> <li>Avoid double quotes in <code>config.define</code> - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11198">vitest-dev/vitest#11198</a> <a href="https://github.com/vitest-dev/vitest/commit/972e24bab"><!-- raw HTML omitted -->(972e2)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>doctor</strong>: <ul> <li>Measure vm pools for custom environments - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11212">vitest-dev/vitest#11212</a> <a href="https://github.com/vitest-dev/vitest/commit/91ab1588c"><!-- raw HTML omitted -->(91ab1)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>expect</strong>: <ul> <li>Correct return value in <code>toMatchAriaSnapshot</code> - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11208">vitest-dev/vitest#11208</a> <a href="https://github.com/vitest-dev/vitest/commit/c119be016"><!-- raw HTML omitted -->(c119b)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>fakeTimers</strong>: <ul> <li>Force <code>queueMicrotask</code> and <code>nextTick</code> in <code>toNotFake</code> - by <a href="https://github.com/kingmakeruix"><code>@kingmakeruix</code></a>, <strong>kingmakeruix</strong>, <strong>Hiroshi Ogawa</strong>, <strong>Codex</strong> and <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11261">vitest-dev/vitest#11261</a> <a href="https://github.com/vitest-dev/vitest/commit/a47d7908f"><!-- raw HTML omitted -->(a47d7)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>snapshot</strong>: <ul> <li>Report obsolete keys next to skipped tests - by <a href="https://github.com/hamed-bavar"><code>@hamed-bavar</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>OpenCode (gpt-5.6-sol)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11157">vitest-dev/vitest#11157</a> and <a href="https://redirect.github.com/vitest-dev/vitest/issues/11158">vitest-dev/vitest#11158</a> <a href="https://github.com/vitest-dev/vitest/commit/17e2b22dd"><!-- raw HTML omitted -->(17e2b)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>types</strong>: <ul> <li>Make public declarations self-contained - by <a href="https://github.com/ZoeySigel"><code>@ZoeySigel</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11141">vitest-dev/vitest#11141</a> <a href="https://github.com/vitest-dev/vitest/commit/455466c16"><!-- raw HTML omitted -->(45546)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>ui</strong>: <ul> <li>Fix collapse/expand suite with file name search - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Codex</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11260">vitest-dev/vitest#11260</a> <a href="https://github.com/vitest-dev/vitest/commit/0a7122daa"><!-- raw HTML omitted -->(0a712)<!-- raw HTML omitted --></a></li> <li>Fix explorer file summary count - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong>, <strong>OpenCode (gpt-5.6-sol)</strong> and <strong>Codex</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11125">vitest-dev/vitest#11125</a> <a href="https://github.com/vitest-dev/vitest/commit/05982297d"><!-- raw HTML omitted -->(05982)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>utils</strong>: <ul> <li>Fix <code>deepMerge</code> to handle prototype - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>Codex</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11215">vitest-dev/vitest#11215</a> <a href="https://github.com/vitest-dev/vitest/commit/4944cf498"><!-- raw HTML omitted -->(4944c)<!-- raw HTML omitted --></a></li> </ul> </li> </ul> <h5> <a href="https://github.com/vitest-dev/vitest/compare/v5.0.0...v5.0.1">View changes on GitHub</a></h5> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/vitest-dev/vitest/commit/03630a5995d10455fa136be53bfb2b2409381106"><code>03630a5</code></a> chore: release v5.0.1 (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11275">#11275</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/a47d7908f0635e9cba6cbe5e1a209bb6add5e0ab"><code>a47d790</code></a> fix(fakeTimers): force <code>queueMicrotask</code> and <code>nextTick</code> in <code>toNotFake</code> (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11261">#11261</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/2ce29d5fa758046e5453bd92b8ed6c9da9709bb5"><code>2ce29d5</code></a> fix: warn when deprecated <code>deps.optimizer.web</code> is used (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11214">#11214</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/ccd6d057b6e4ca29a5e6b753a2b8e16b0afd8cda"><code>ccd6d05</code></a> docs: fix typecheck exclude default in documentation (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11223">#11223</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/91ab1588c72c9c5f7c638368a541cd20e0e8a934"><code>91ab158</code></a> fix(doctor): measure vm pools for custom environments (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11212">#11212</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/23dda738ccacb11682426426cd7b876afd107621"><code>23dda73</code></a> fix: share the server on self-referencing <code>extends</code> (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11034">#11034</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/498fbe9222eb9aa3d8cf48481e200c16bb693bbd"><code>498fbe9</code></a> fix: resolve ResolvedConfig exactOptionalPropertyTypes errors (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11175">#11175</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/115c3f6d2bfa6a8672eeab8cc21bbecc6a4ef3d0"><code>115c3f6</code></a> fix: correct typos in error message and comments (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11187">#11187</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/73614654a46f617c357920eecda439654a561f92"><code>7361465</code></a> fix: keep metadata file when clearing the cache (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11199">#11199</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/972e24bab5fb96843de72447eb65585628b8dbde"><code>972e24b</code></a> fix(browser): avoid double quotes in <code>config.define</code> (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11198">#11198</a>)</li> <li>Additional commits viewable in <a href="https://github.com/vitest-dev/vitest/commits/v5.0.1/packages/vitest">compare view</a></li> </ul> </details> <br /> Updates `@ai-sdk/anthropic` from 4.0.53 to 4.0.58 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/vercel/ai/releases">@ai-sdk/anthropic's releases</a>.</em></p> <blockquote> <h2><code>@ai-sdk/provider-utils</code><a href="https://github.com/4"><code>@4</code></a>.0.54</h2> <h3>Patch Changes</h3> <ul> <li> <p>069a945: Fix Google <code>embedMany</code> calls with more than 100 values by keeping per-value multimodal content aligned across automatic batches, including text-only entries. Validate content length before sending requests and validate each batch's provider options after middleware transforms them.</p> </li> <li> <p>d1a36d2: fix(ai): execute manually approved tool inputs produced by schema transforms</p> <p>Preserve approved inputs during revalidation and reject histories whose reconstructed schema output differs, including signed approvals with missing original input. Validate transformed UI tool inputs against the reconstructed output before returning them as static tool parts.</p> </li> <li> <p>f7f36d2: chore: enable dead code lint rules</p> </li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/vercel/ai/blob/main/packages/anthropic/CHANGELOG.md">@ai-sdk/anthropic's changelog</a>.</em></p> <blockquote> <h2>4.0.58</h2> <h3>Patch Changes</h3> <ul> <li>Updated dependencies [2973485]</li> <li>Updated dependencies [a4db5ea]</li> <li>Updated dependencies [2937ea2] <ul> <li><code>@ai-sdk/provider-utils</code><a href="https://github.com/5"><code>@5</code></a>.0.45</li> </ul> </li> </ul> <h2>4.0.57</h2> <h3>Patch Changes</h3> <ul> <li>Updated dependencies [0455398] <ul> <li><code>@ai-sdk/provider-utils</code><a href="https://github.com/5"><code>@5</code></a>.0.44</li> </ul> </li> </ul> <h2>4.0.56</h2> <h3>Patch Changes</h3> <ul> <li>d4d96bf: Add <code>anthropic.evaluationModel()</code> for experimental Choice, Score, and Boolean evaluations through Messages structured output, with exact labels, validated score bounds, and prompted Boolean P(true) estimates validated to be in [0, 1]. Boolean estimates are not guaranteed to be calibrated; application code chooses thresholds.</li> <li>Updated dependencies [215b25e]</li> <li>Updated dependencies [d4d96bf]</li> <li>Updated dependencies [a7dd893]</li> <li>Updated dependencies [3456e2c]</li> <li>Updated dependencies [c4e76de] <ul> <li><code>@ai-sdk/provider-utils</code><a href="https://github.com/5"><code>@5</code></a>.0.43</li> <li><code>@ai-sdk/provider</code><a href="https://github.com/4"><code>@4</code></a>.0.17</li> </ul> </li> </ul> <h2>4.0.55</h2> <h3>Patch Changes</h3> <ul> <li>132bdae: feat(anthropic): add 20260318 web search and web fetch tools with response inclusion controls</li> <li>Updated dependencies [91c2128]</li> <li>Updated dependencies [2cd80b3]</li> <li>Updated dependencies [d06bb2a]</li> <li>Updated dependencies [123d71f]</li> <li>Updated dependencies [2fa5e0e] <ul> <li><code>@ai-sdk/provider-utils</code><a href="https://github.com/5"><code>@5</code></a>.0.42</li> <li><code>@ai-sdk/provider</code><a href="https://github.com/4"><code>@4</code></a>.0.16</li> </ul> </li> </ul> <h2>4.0.54</h2> <h3>Patch Changes</h3> <ul> <li>Updated dependencies [5c0054d]</li> <li>Updated dependencies [39535af] <ul> <li><code>@ai-sdk/provider</code><a href="https://github.com/4"><code>@4</code></a>.0.15</li> <li><code>@ai-sdk/provider-utils</code><a href="https://github.com/5"><code>@5</code></a>.0.41</li> </ul> </li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/vercel/ai/commit/08ae5ad05bc12496dd1ffcf64e34419e0831300d"><code>08ae5ad</code></a> Version Packages (<a href="https://github.com/vercel/ai/tree/HEAD/packages/anthropic/issues/21089">#21089</a>)</li> <li><a href="https://github.com/vercel/ai/commit/b3033f77f0459bcc68df182c8052f52305467bcc"><code>b3033f7</code></a> Version Packages (<a href="https://github.com/vercel/ai/tree/HEAD/packages/anthropic/issues/20979">#20979</a>)</li> <li><a href="https://github.com/vercel/ai/commit/1a82df1c7b6239f4cefe9fb73c357b3a6529c629"><code>1a82df1</code></a> Version Packages (<a href="https://github.com/vercel/ai/tree/HEAD/packages/anthropic/issues/20860">#20860</a>)</li> <li><a href="https://github.com/vercel/ai/commit/215b25e47afa03d8755b958ed3fb093c79a47a28"><code>215b25e</code></a> fix(provider-utils): default language-model evaluations to no reasoning (<a href="https://github.com/vercel/ai/tree/HEAD/packages/anthropic/issues/20868">#20868</a>)</li> <li><a href="https://github.com/vercel/ai/commit/d4d96bfa7648ba039639a66ed07f8e1ad9b928f3"><code>d4d96bf</code></a> feat: add experimental evaluation models and shared adapter to openai, google...</li> <li><a href="https://github.com/vercel/ai/commit/c60b9d321bb7961679b604b3d06a3f282469c373"><code>c60b9d3</code></a> Version Packages (<a href="https://github.com/vercel/ai/tree/HEAD/packages/anthropic/issues/20799">#20799</a>)</li> <li><a href="https://github.com/vercel/ai/commit/132bdae19a3810777dc573f601f941d0a07a49ca"><code>132bdae</code></a> feat: add Anthropic 20260318 web search and fetch tools with response inclusi...</li> <li><a href="https://github.com/vercel/ai/commit/c83bc677cd7089b57a618f437d78af88c7057dec"><code>c83bc67</code></a> feat(bedrock,vertex): add Claude Fable 5.1 model IDs to Bedrock and Vertex pr...</li> <li><a href="https://github.com/vercel/ai/commit/ccecb2d13fdde457c01fa47584fa199a9828a5b0"><code>ccecb2d</code></a> Version Packages (<a href="https://github.com/vercel/ai/tree/HEAD/packages/anthropic/issues/20765">#20765</a>)</li> <li>See full diff in <a href="https://github.com/vercel/ai/commits/@ai-sdk/anthropic@4.0.58/packages/anthropic">compare view</a></li> </ul> </details> <br /> Updates `@ai-sdk/openai` from 4.0.66 to 4.0.71 <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/vercel/ai/blob/main/packages/openai/CHANGELOG.md">@ai-sdk/openai's changelog</a>.</em></p> <blockquote> <h2>4.0.71</h2> <h3>Patch Changes</h3> <ul> <li>e76a0a3: fix(openai): cancel image edit URL downloads when the request is aborted</li> <li>Updated dependencies [2973485]</li> <li>Updated dependencies [a4db5ea]</li> <li>Updated dependencies [2937ea2] <ul> <li><code>@ai-sdk/provider-utils</code><a href="https://github.com/5"><code>@5</code></a>.0.45</li> </ul> </li> </ul> <h2>4.0.70</h2> <h3>Patch Changes</h3> <ul> <li>fd75cee: fix(openai): preserve provider file references in Responses tool results</li> <li>1f5bb62: fix(openai): send assistant text as Responses easy input messages</li> <li>Updated dependencies [0455398] <ul> <li><code>@ai-sdk/provider-utils</code><a href="https://github.com/5"><code>@5</code></a>.0.44</li> </ul> </li> </ul> <h2>4.0.69</h2> <h3>Patch Changes</h3> <ul> <li>d4d96bf: Add experimental Choice, Score, and Boolean evaluations through <code>openai.evaluationModel()</code> and a shared structured language-model evaluation adapter in <code>@ai-sdk/provider-utils/experimental-evaluation</code>. Preserve exact labels and metadata, validate score bounds, and return prompted Boolean P(true) estimates validated to be in [0, 1]. Boolean estimates are not guaranteed to be calibrated; application code chooses thresholds.</li> <li>Updated dependencies [215b25e]</li> <li>Updated dependencies [d4d96bf]</li> <li>Updated dependencies [a7dd893]</li> <li>Updated dependencies [3456e2c]</li> <li>Updated dependencies [c4e76de] <ul> <li><code>@ai-sdk/provider-utils</code><a href="https://github.com/5"><code>@5</code></a>.0.43</li> <li><code>@ai-sdk/provider</code><a href="https://github.com/4"><code>@4</code></a>.0.17</li> </ul> </li> </ul> <h2>4.0.68</h2> <h3>Patch Changes</h3> <ul> <li>Updated dependencies [91c2128]</li> <li>Updated dependencies [2cd80b3]</li> <li>Updated dependencies [d06bb2a]</li> <li>Updated dependencies [123d71f]</li> <li>Updated dependencies [2fa5e0e] <ul> <li><code>@ai-sdk/provider-utils</code><a href="https://github.com/5"><code>@5</code></a>.0.42</li> <li><code>@ai-sdk/provider</code><a href="https://github.com/4"><code>@4</code></a>.0.16</li> </ul> </li> </ul> <h2>4.0.67</h2> <h3>Patch Changes</h3> <ul> <li>5c0054d: Add optional browser-direct WebRTC for experimental client-delegated Live conversations alongside the existing WebSocket path. Exchange SDP through an application endpoint with <code>api.session</code>, configure server-owned data-channel permissions, and preserve committed React session ownership. Capture follows the selected sender track, borrowed tracks remain caller-owned, and disconnect recovery and finalization stay bounded. Applications continue to handle client delegation and submit context; Live session updates and Responses delegation remain unsupported.</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/vercel/ai/commit/08ae5ad05bc12496dd1ffcf64e34419e0831300d"><code>08ae5ad</code></a> Version Packages (<a href="https://github.com/vercel/ai/tree/HEAD/packages/openai/issues/21089">#21089</a>)</li> <li><a href="https://github.com/vercel/ai/commit/e76a0a367706c081cac0afb7259c6b966aa34519"><code>e76a0a3</code></a> fix: OpenAI image edits remain pending after cancellation while downloading i...</li> <li><a href="https://github.com/vercel/ai/commit/b3033f77f0459bcc68df182c8052f52305467bcc"><code>b3033f7</code></a> Version Packages (<a href="https://github.com/vercel/ai/tree/HEAD/packages/openai/issues/20979">#20979</a>)</li> <li><a href="https://github.com/vercel/ai/commit/fd75ceeb625c0714a24e92787929038b7ccac12e"><code>fd75cee</code></a> fix: Preserve uploaded-file references in OpenAI Responses tool results (<a href="https://github.com/vercel/ai/tree/HEAD/packages/openai/issues/20978">#20978</a>)</li> <li><a href="https://github.com/vercel/ai/commit/1f5bb62f7b64560f44bca0df18ceb666bb29dcb5"><code>1f5bb62</code></a> fix(openai): send assistant text as Responses easy input messages (<a href="https://github.com/vercel/ai/tree/HEAD/packages/openai/issues/20995">#20995</a>)</li> <li><a href="https://github.com/vercel/ai/commit/1a82df1c7b6239f4cefe9fb73c357b3a6529c629"><code>1a82df1</code></a> Version Packages (<a href="https://github.com/vercel/ai/tree/HEAD/packages/openai/issues/20860">#20860</a>)</li> <li><a href="https://github.com/vercel/ai/commit/215b25e47afa03d8755b958ed3fb093c79a47a28"><code>215b25e</code></a> fix(provider-utils): default language-model evaluations to no reasoning (<a href="https://github.com/vercel/ai/tree/HEAD/packages/openai/issues/20868">#20868</a>)</li> <li><a href="https://github.com/vercel/ai/commit/d4d96bfa7648ba039639a66ed07f8e1ad9b928f3"><code>d4d96bf</code></a> feat: add experimental evaluation models and shared adapter to openai, google...</li> <li><a href="https://github.com/vercel/ai/commit/c60b9d321bb7961679b604b3d06a3f282469c373"><code>c60b9d3</code></a> Version Packages (<a href="https://github.com/vercel/ai/tree/HEAD/packages/openai/issues/20799">#20799</a>)</li> <li><a href="https://github.com/vercel/ai/commit/ccecb2d13fdde457c01fa47584fa199a9828a5b0"><code>ccecb2d</code></a> Version Packages (<a href="https://github.com/vercel/ai/tree/HEAD/packages/openai/issues/20765">#20765</a>)</li> <li>Additional commits viewable in <a href="https://github.com/vercel/ai/commits/@ai-sdk/openai@4.0.71/packages/openai">compare view</a></li> </ul> </details> <br /> Updates `@ai-sdk/provider` from 4.0.14 to 4.0.17 <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/vercel/ai/blob/main/packages/provider/CHANGELOG.md">@ai-sdk/provider's changelog</a>.</em></p> <blockquote> <h2>4.0.17</h2> <h3>Patch Changes</h3> <ul> <li>a7dd893: Add experimental evaluation model aliases and registry resolution. <code>customProvider</code> accepts <code>evaluationModels</code>, registries expose <code>evaluationModel</code>, and <code>experimental_evaluate</code> accepts string IDs when an evaluation-capable default provider is explicitly configured. Evaluation never implicitly falls back to Gateway. Model-resolution errors now identify <code>evaluationModel</code> while stable provider contracts remain unchanged.</li> </ul> <h2>4.0.16</h2> <h3>Patch Changes</h3> <ul> <li>d06bb2a: Allow readonly arrays and objects containing them to be used as JSON values.</li> <li>123d71f: Add <code>experimental_evaluate</code> and the isolated experimental v4 evaluation model specification for Choice, Score, and Boolean questions against shared state. Includes typed answers, optional Choice/Score distributions, required Boolean probabilities, validation, retries, cancellation, and <code>Experimental_EvaluationUnsupportedQuestionTypeError</code> for unsupported questions.</li> </ul> <h2>4.0.15</h2> <h3>Patch Changes</h3> <ul> <li> <p>5c0054d: Add optional browser-direct WebRTC for experimental client-delegated Live conversations alongside the existing WebSocket path. Exchange SDP through an application endpoint with <code>api.session</code>, configure server-owned data-channel permissions, and preserve committed React session ownership. Capture follows the selected sender track, borrowed tracks remain caller-owned, and disconnect recovery and finalization stay bounded. Applications continue to handle client delegation and submit context; Live session updates and Responses delegation remain unsupported.</p> <p>Serialize microphone sender changes and close the peer if detachment fails, without stopping borrowed tracks. Validate nonempty SDP setup answers with a bounded response body, and document the same-origin broker authentication contract.</p> </li> <li> <p>39535af: Add experimental OpenAI Live provider support through the unified <code>openai.experimental_realtime</code> factory for server WebSocket sessions with client delegation. Applications own their agents and tools, receive continuous audio/transcript events and delegation metadata, and return context through validated channels. Support immutable startup options, microphone mute controls, graceful session close, and cumulative voice usage. Responses delegation and Live session updates reject before sending.</p> <p>Route known Live model IDs to Live, allow an OpenAI-specific <code>api</code> override for early-access models, and preserve legacy Realtime defaults for unknown IDs. Token minting follows the same selection rules and rejects Live before requesting unsupported credentials. Extend the realtime v4 specification with optional server WebSocket configuration, per-connection raw-event parsers, and model-wide startup/finalization capabilities. This provider layer supplies connection settings and protocol mapping for server adapters; browser lifecycle and UI integration belong to the core runtime and framework hooks.</p> <p>Preserve Realtime client event IDs for session updates and audio appends, and correlate server errors with the originating client event.</p> </li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/vercel/ai/commit/1a82df1c7b6239f4cefe9fb73c357b3a6529c629"><code>1a82df1</code></a> Version Packages (<a href="https://github.com/vercel/ai/tree/HEAD/packages/provider/issues/20860">#20860</a>)</li> <li><a href="https://github.com/vercel/ai/commit/a7dd89386a4ae1e095b9c2f649346763c80c0da4"><code>a7dd893</code></a> feat(ai): add experimental evaluation model registry support (<a href="https://github.com/vercel/ai/tree/HEAD/packages/provider/issues/20875">#20875</a>)</li> <li><a href="https://github.com/vercel/ai/commit/c60b9d321bb7961679b604b3d06a3f282469c373"><code>c60b9d3</code></a> Version Packages (<a href="https://github.com/vercel/ai/tree/HEAD/packages/provider/issues/20799">#20799</a>)</li> <li><a href="https://github.com/vercel/ai/commit/123d71f7a63f04618ac1f4bf62a8301a702ac705"><code>123d71f</code></a> feat(ai): add experimental evaluation API and model spec (<a href="https://github.com/vercel/ai/tree/HEAD/packages/provider/issues/20848">#20848</a>)</li> <li><a href="https://github.com/vercel/ai/commit/d06bb2aaa45c5d97f6c2e6d59b2087b9c56acba6"><code>d06bb2a</code></a> fix: accept recursively readonly JSON structures as tool-result output (<a href="https://github.com/vercel/ai/tree/HEAD/packages/provider/issues/17282">#17282</a>)</li> <li><a href="https://github.com/vercel/ai/commit/ccecb2d13fdde457c01fa47584fa199a9828a5b0"><code>ccecb2d</code></a> Version Packages (<a href="https://github.com/vercel/ai/tree/HEAD/packages/provider/issues/20765">#20765</a>)</li> <li><a href="https://github.com/vercel/ai/commit/5c0054d54af332cfb587c38fd9034474b92d604f"><code>5c0054d</code></a> feat(realtime): add optional browser-direct Live WebRTC (<a href="https://github.com/vercel/ai/tree/HEAD/packages/provider/issues/20630">#20630</a>)</li> <li><a href="https://github.com/vercel/ai/commit/39535af2f68235d738993906bf4f70ec3cc42cfd"><code>39535af</code></a> feat(openai): add experimental Live WebSocket provider (<a href="https://github.com/vercel/ai/tree/HEAD/packages/provider/issues/20627">#20627</a>)</li> <li>See full diff in <a href="https://github.com/vercel/ai/commits/@ai-sdk/provider@4.0.17/packages/provider">compare view</a></li> </ul> </details> <br /> Updates `@anthropic-ai/sdk` from 0.125.0 to 0.127.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/anthropics/anthropic-sdk-typescript/releases">@anthropic-ai/sdk's releases</a>.</em></p> <blockquote> <h2>sdk: v0.127.0</h2> <h2>0.127.0 (2026-09-18)</h2> <p>Full Changelog: <a href="https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.126.0...sdk-v0.127.0">sdk-v0.126.0...sdk-v0.127.0</a></p> <h3>Features</h3> <ul> <li><strong>api:</strong> add group with display_name to rate limits, deprecate group_type (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/2575d977be0508d0bd3e3c429b758efeb1e240a2">2575d97</a>)</li> <li><strong>tools:</strong> add compactBeforeNextTurn() to the tool runner (<a href="https://redirect.github.com/anthropics/anthropic-sdk-typescript/issues/682">#682</a>) (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/9f75ca69905ba808709c95f31c4159e74fbf6e19">9f75ca6</a>)</li> </ul> <h3>Bug Fixes</h3> <ul> <li><strong>BetaMessageStream:</strong> stop coercing a null compaction_delta content into "null" (<a href="https://redirect.github.com/anthropics/anthropic-sdk-typescript/issues/655">#655</a>) (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/dbd684543914f57d8d974d28ad97769d123e56a1">dbd6845</a>)</li> <li><strong>client:</strong> don't retry requests whose body is a stream or iterator (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/eebc1b995b031c7e288a03c1621a3834cc71f3e3">eebc1b9</a>)</li> <li><strong>client:</strong> join multiple anthropic-beta values with a comma and no space (<a href="https://redirect.github.com/anthropics/anthropic-sdk-typescript/issues/638">#638</a>) (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/e0cb1ff479dcd26e58e47dc1ba8c9d68d191e6b5">e0cb1ff</a>)</li> <li><strong>client:</strong> make pagination exports on the client namespace type-only (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/5adea1f6fa5063b06fe3384f23d46fb0418da3c4">5adea1f</a>)</li> <li><strong>internal:</strong> drop jest from tsconfig types (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/60588af343e0c19cc507e5eaef62fb86f28c4c38">60588af</a>)</li> <li><strong>middleware:</strong> echo a streamed compaction summary in the fallback continuation (<a href="https://redirect.github.com/anthropics/anthropic-sdk-typescript/issues/657">#657</a>) (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/2e0f0042e8d39d0dccfac8bdcaa42e3d10de626e">2e0f004</a>)</li> <li><strong>tools:</strong> keep $defs when transformJSONSchema root is a $ref (<a href="https://redirect.github.com/anthropics/anthropic-sdk-typescript/issues/687">#687</a>) (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/57a9f30bf3cb166666dc8fa3006384977cca8bf6">57a9f30</a>)</li> </ul> <h3>Performance Improvements</h3> <ul> <li><strong>client:</strong> skip formatting request details when debug logging is off (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/2b29ed2f71ea72beed40fea45f532f5aec64af2d">2b29ed2</a>)</li> </ul> <h3>Chores</h3> <ul> <li><strong>ci:</strong> publish releases from Node 24 with its bundled npm (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/6b3c6f544a17d268ca24e56458b391bb3ad13b26">6b3c6f5</a>)</li> <li><strong>docs:</strong> add descriptions for enum values and path parameters (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/cb254c48f3d15edb66b77ff36a3835123ef31fc6">cb254c4</a>)</li> <li><strong>docs:</strong> clarify the compaction tool_changes and tool change descriptions (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/5a695eb84e48b7e639465aecd09442ac168f78a5">5a695eb</a>)</li> <li><strong>internal:</strong> build the sub-packages with TypeScript 6.0.3 (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/8a69ff594ffeec3f6bd964030086b01ae5354aaf">8a69ff5</a>)</li> <li><strong>internal:</strong> build with TypeScript 6.0.3 and typescript-eslint 8.58.0 (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/01f3ee693619bd099ce2a85c76a565a46885be19">01f3ee6</a>)</li> <li><strong>internal:</strong> keep lib/internal out of the published exports map (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/763fb43ee3a8d55fda55d99fe84a3af4d894366c">763fb43</a>)</li> <li><strong>internal:</strong> re-export pagination classes with a plain export list (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/c77bdc3ce95e56cfce425fb1fb1edf21caa74de5">c77bdc3</a>)</li> <li><strong>internal:</strong> share a single Simplify type util (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/31d5e7574613a6be77e9be5b88b2e73eef50dca2">31d5e75</a>)</li> <li><strong>internal:</strong> switch unit tests from jest to vitest (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/110542dde844ce5171807af0b8f6dcd14a89a825">110542d</a>, <a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/788c9c62ba2bd8180ffc7dcebd1cee14cd692d03">788c9c6</a>)</li> </ul> <h2>sdk: v0.126.0</h2> <h2>0.126.0 (2026-09-15)</h2> <p>Full Changelog: <a href="https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.125.0...sdk-v0.126.0">sdk-v0.125.0...sdk-v0.126.0</a></p> <h3>Features</h3> <ul> <li><strong>api:</strong> add auto mode tool permissions for Managed Agents (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/7829b4302375a14db64d5536226768601f843233">7829b43</a>)</li> <li><strong>api:</strong> add compaction parameter and signed compaction blocks (beta) (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/05fd87804f1cb2db1ea94528ba3b5087403177ba">05fd878</a>)</li> <li><strong>api:</strong> add enum types for workspace data-residency geo fields (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/89c59203ec82987a500f8ab9ddf591d1ee6067ae">89c5920</a>)</li> <li><strong>api:</strong> add thinking_mismatch_allowed entries to input_transformations (beta) (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/1f32871253f8791de968bcc72e33cc0acf350811">1f32871</a>)</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/anthropics/anthropic-sdk-typescript/blob/main/CHANGELOG.md">@anthropic-ai/sdk's changelog</a>.</em></p> <blockquote> <h2>0.127.0 (2026-09-18)</h2> <p>Full Changelog: <a href="https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.126.0...sdk-v0.127.0">sdk-v0.126.0...sdk-v0.127.0</a></p> <h3>Features</h3> <ul> <li><strong>api:</strong> add group with display_name to rate limits, deprecate group_type (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/2575d977be0508d0bd3e3c429b758efeb1e240a2">2575d97</a>)</li> <li><strong>tools:</strong> add compactBeforeNextTurn() to the tool runner (<a href="https://redirect.github.com/anthropics/anthropic-sdk-typescript/issues/682">#682</a>) (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/9f75ca69905ba808709c95f31c4159e74fbf6e19">9f75ca6</a>)</li> </ul> <h3>Bug Fixes</h3> <ul> <li><strong>BetaMessageStream:</strong> stop coercing a null compaction_delta content into "null" (<a href="https://redirect.github.com/anthropics/anthropic-sdk-typescript/issues/655">#655</a>) (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/dbd684543914f57d8d974d28ad97769d123e56a1">dbd6845</a>)</li> <li><strong>client:</strong> don't retry requests whose body is a stream or iterator (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/eebc1b995b031c7e288a03c1621a3834cc71f3e3">eebc1b9</a>)</li> <li><strong>client:</strong> join multiple anthropic-beta values with a comma and no space (<a href="https://redirect.github.com/anthropics/anthropic-sdk-typescript/issues/638">#638</a>) (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/e0cb1ff479dcd26e58e47dc1ba8c9d68d191e6b5">e0cb1ff</a>)</li> <li><strong>client:</strong> make pagination exports on the client namespace type-only (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/5adea1f6fa5063b06fe3384f23d46fb0418da3c4">5adea1f</a>)</li> <li><strong>internal:</strong> drop jest from tsconfig types (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/60588af343e0c19cc507e5eaef62fb86f28c4c38">60588af</a>)</li> <li><strong>middleware:</strong> echo a streamed compaction summary in the fallback continuation (<a href="https://redirect.github.com/anthropics/anthropic-sdk-typescript/issues/657">#657</a>) (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/2e0f0042e8d39d0dccfac8bdcaa42e3d10de626e">2e0f004</a>)</li> <li><strong>tools:</strong> keep $defs when transformJSONSchema root is a $ref (<a href="https://redirect.github.com/anthropics/anthropic-sdk-typescript/issues/687">#687</a>) (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/57a9f30bf3cb166666dc8fa3006384977cca8bf6">57a9f30</a>)</li> </ul> <h3>Performance Improvements</h3> <ul> <li><strong>client:</strong> skip formatting request details when debug logging is off (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/2b29ed2f71ea72beed40fea45f532f5aec64af2d">2b29ed2</a>)</li> </ul> <h3>Chores</h3> <ul> <li><strong>ci:</strong> publish releases from Node 24 with its bundled npm (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/6b3c6f544a17d268ca24e56458b391bb3ad13b26">6b3c6f5</a>)</li>... _Description has been truncated_ Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|
|
56edfbc931 |
deps: bump dotenv from 17.4.2 to 18.0.1 in /sdk/typescript (#3765)
Bumps [dotenv](https://github.com/motdotla/dotenv) from 17.4.2 to 18.0.1. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/motdotla/dotenv/blob/master/CHANGELOG.md">dotenv's changelog</a>.</em></p> <blockquote> <h2><a href="https://github.com/motdotla/dotenv/compare/v18.0.0...v18.0.1">18.0.1</a> (2026-09-18)</h2> <h3>Changed</h3> <ul> <li>Handle file urls in config logging (<a href="https://redirect.github.com/motdotla/dotenv/pull/1054">#1054</a>)</li> </ul> <h2><a href="https://github.com/motdotla/dotenv/compare/v17.4.2...v18.0.0">18.0.0</a> (2026-09-17)</h2> <h3>Added</h3> <ul> <li>NEW: Dotenv now has a CLI. (<a href="https://redirect.github.com/motdotla/dotenv/pull/1022">#1022</a>)</li> </ul> <pre lang="sh"><code>$ dotenv run -- node index.js ◇ injected env (2) from .env Hello Dotenv </code></pre> <ul> <li>NEW: Dotenv now has a fast parser thanks to <a href="https://github.com/homanp"><code>@homanp</code></a> of <a href="https://superagent.sh">superagent.sh</a>. Pass <code>config({ fast: true })</code>, flag <code>--fast</code>, or set <code>DOTENV_FAST=true</code> to opt-in to ~2x faster character-scanner parser. (<a href="https://redirect.github.com/motdotla/dotenv/pull/1010">#1010</a>)</li> </ul> <pre lang="sh"><code>$ dotenv run --fast -- node index.js ◇ injected env (2) from .env Hello Dotenv </code></pre> <h3>Changed</h3> <ul> <li>Injecting message sent to stderr rather than stdout and tips removed (<a href="https://redirect.github.com/motdotla/dotenv/pull/1037">#1037</a>)</li> </ul> <h3>Removed</h3> <ul> <li>Remove tips (<a href="https://redirect.github.com/motdotla/dotenv/pull/1031">#1031</a>)</li> <li>Remove skill files (<a href="https://redirect.github.com/motdotla/dotenv/pull/1032">#1032</a>)</li> <li>Remove Spanish README (<a href="https://redirect.github.com/motdotla/dotenv/pull/1034">#1034</a>)</li> <li>Remove .env.vault support (<a href="https://redirect.github.com/motdotla/dotenv/pull/1033">#1033</a>)</li> <li>Remove preloading. Instead use cli <code>dotenv run -- your-command</code> (<a href="https://redirect.github.com/motdotla/dotenv/pull/1035">#1035</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/motdotla/dotenv/commit/ce3bfb4a9a3c1a1864533e908cf4a4d5b6c52f23"><code>ce3bfb4</code></a> 18.0.1</li> <li><a href="https://github.com/motdotla/dotenv/commit/294230e3ef27fa09ca7e9045263a6f474a473d07"><code>294230e</code></a> changelog</li> <li><a href="https://github.com/motdotla/dotenv/commit/4fcffd4f5c76db54b1e1c0273142112b1496b62f"><code>4fcffd4</code></a> Merge pull request <a href="https://redirect.github.com/motdotla/dotenv/issues/1054">#1054</a> from jakezwang/fix-url-path-logging</li> <li><a href="https://github.com/motdotla/dotenv/commit/8ea84d6685d993917345bf972190fdbe67de8385"><code>8ea84d6</code></a> fix: handle file URLs in config logging</li> <li><a href="https://github.com/motdotla/dotenv/commit/2815fa8cb4d2d80cf3e0f9e00b48596b8c066683"><code>2815fa8</code></a> 18.0.0</li> <li><a href="https://github.com/motdotla/dotenv/commit/451c6cb074b209b7c52ffb6db9fefc2ec13dcbce"><code>451c6cb</code></a> add spacing</li> <li><a href="https://github.com/motdotla/dotenv/commit/7c7ed02dc4cf0debf1b6bd4bc7fd71b5d04021dc"><code>7c7ed02</code></a> update README and changelog</li> <li><a href="https://github.com/motdotla/dotenv/commit/7454f56fd505ec7f20b32737d60e45a8ea0cf150"><code>7454f56</code></a> Merge pull request <a href="https://redirect.github.com/motdotla/dotenv/issues/1052">#1052</a> from motdotla/cli-cleanup</li> <li><a href="https://github.com/motdotla/dotenv/commit/f5de622a590def2d3e46084bbc1b9a07f3a8b37a"><code>f5de622</code></a> .cmd coverage</li> <li><a href="https://github.com/motdotla/dotenv/commit/75289b1a9d85146dcd5511aa22c377865b232c84"><code>75289b1</code></a> changelog</li> <li>Additional commits viewable in <a href="https://github.com/motdotla/dotenv/compare/v17.4.2...v18.0.1">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|
|
94206e2652 |
chore: release 0.38.0
Release Headroom 0.38.0. |
||
|
|
ebc0b363e4 |
fix(sdk): emit the final SSE event when the stream has no trailing newline (#3581)
## Description
The TypeScript SDK's `parseSSE()` (used by `HeadroomClient` streaming at
`client.ts:106`/`:158`, and exported from the package root) drops the
**final** event of a stream when that event arrives without a trailing
newline.
The read loop accumulates bytes, splits on `\n`, and holds the last
(possibly incomplete) segment back in `buffer` for the next chunk:
```ts
buffer += decoder.decode(value, { stream: true });
const lines = buffer.split("\n");
buffer = lines.pop()!; // last segment held back
```
But when the read completes it `break`s immediately, and the `finally`
releases the reader — so whatever is still in `buffer` is discarded. If
the stream closes right after its last `data: {...}` line with no
trailing `\n`, that event is silently lost. The streaming `TextDecoder`
is also never flushed, so a multi-byte character split across the final
chunk boundary can be lost too.
This restructures the loop so the terminating read flushes the decoder
and processes every remaining line (including the last held-back one)
before exiting. `[DONE]` termination, non-JSON `data:` skipping, and
`reader.releaseLock()` in `finally` are unchanged.
## Type of Change
- [x] Bug fix (non-breaking change that fixes an issue)
- [ ] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] Documentation update
- [ ] Performance improvement
- [ ] Code refactoring (no functional changes)
## Changes Made
- **`sdk/typescript/src/utils/stream.ts`** — `parseSSE`: on the final
read (`done`), flush the decoder (`decoder.decode()` with no args) and
stop popping the last line so every remaining line is processed; then
`break`. A final unterminated `data:` line is now emitted instead of
dropped.
- **`sdk/typescript/test/utils/stream.test.ts`** (new) — first test
coverage for this module (there was none): the no-trailing-newline
regression, newline-terminated multi-event, event split across chunk
boundaries, `[DONE]` termination, non-JSON line skipping, and a
multi-byte char split across chunks.
## Testing
- [x] Unit tests pass (`npm test` — vitest)
- [x] Type checking passes (`npm run typecheck` — tsc --noEmit)
- [x] Build passes (`npm run build` — tsup)
- [x] New tests added for new functionality
### Test Output
```text
$ cd sdk/typescript && npm test
Test Files 19 passed | 5 skipped (24)
Tests 300 passed | 33 skipped (333)
$ npm run typecheck # tsc --noEmit
(clean, no errors)
$ npm run build # tsup
(ESM + CJS + DTS built successfully)
```
## Real Behavior Proof
- Environment: Node v22.16.0, Windows 11; TypeScript SDK from this
branch (`cd sdk/typescript && npm install`).
- Exact command / steps: `cd sdk/typescript && npm test`, `npm run
typecheck`, `npm run build`. The new tests drive the real exported
`parseSSE` against `Response` objects backed by a `ReadableStream` with
controlled chunk/byte boundaries.
- Observed result: The regression test streams `['data: {"a":1}\n',
'data: {"b":2}']` (no trailing newline on the last line). Before the fix
`parseSSE` yields only `[{a:1}]` — `data: {"b":2}` is popped into
`buffer` and discarded when the loop exits. After the fix it yields
`[{a:1},{b:2}]`. All 6 new tests pass; full suite 300 passed | 33
skipped; typecheck and build clean.
- Not tested: a live proxy stream. `parseSSE` is pure (input `Response`
→ parsed events) and fully covered by the unit tests over the byte-level
behavior that mattered.
## Runtime Rollout Safety
- Rollout-managed feature(s): None. Client-side TypeScript SDK parser
fix; no server/runtime feature flag or rollout channel involved.
- Minimum rollout channel: N/A.
- Stable/default behavior changed: Only the buggy path changes — a final
event that was dropped is now delivered. Streams that already ended with
a trailing newline parse identically to before (no regression).
- Kill switch / disable path: N/A — correctness fix, not a gated
feature.
- Unsafe override required: No.
- Qualification impact: None — additive coverage; the fix strictly
delivers events that were previously lost.
- Rollback path: Revert this PR; no persisted state, migrations, or
config to unwind.
## Review Readiness
- [x] I have performed a self-review
- [x] This PR is ready for human review
## Checklist
- [x] My code follows the project's style guidelines
- [x] I have performed a self-review of my code
- [x] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [x] I did **not** edit `CHANGELOG.md` — it is generated by
release-please from my Conventional Commit PR title (a CI guard enforces
this)
## Screenshots (if applicable)
N/A
## Additional Notes
- Scope kept minimal: only `parseSSE`'s loop termination changed, plus a
new test file. `collectStream` and the callers are untouched.
- CHANGELOG left untouched — the `no-manual-changelog` CI guard owns it;
the Conventional Commit title drives the entry.
Co-authored-by: JD Davis <mxjerrett@gmail.com>
|
||
|
|
2d5909c37a |
deps: bump the npm-minor-patch group across 3 directories with 6 updates (#3622)
Bumps the npm-minor-patch group with 1 update in the /plugins/openclaw directory: [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node). Bumps the npm-minor-patch group with 2 updates in the /plugins/opencode directory: [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) and @opencode-ai/plugin. Bumps the npm-minor-patch group with 5 updates in the /sdk/typescript directory: | Package | From | To | | --- | --- | --- | | [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `26.5.0` | `26.5.1` | | [@ai-sdk/openai](https://github.com/vercel/ai/tree/HEAD/packages/openai) | `4.0.60` | `4.0.66` | | [@anthropic-ai/sdk](https://github.com/anthropics/anthropic-sdk-typescript) | `0.124.0` | `0.125.0` | | [ai](https://github.com/vercel/ai/tree/HEAD/packages/ai) | `7.0.93` | `7.0.99` | | [openai](https://github.com/openai/openai-node) | `7.10.0` | `7.15.0` | Updates `@types/node` from 26.5.0 to 26.5.1 <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node">compare view</a></li> </ul> </details> <br /> Updates `@types/node` from 26.5.0 to 26.5.1 <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node">compare view</a></li> </ul> </details> <br /> Updates `@opencode-ai/plugin` from 1.18.29 to 1.18.30 Updates `@types/node` from 26.5.0 to 26.5.1 <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node">compare view</a></li> </ul> </details> <br /> Updates `@ai-sdk/openai` from 4.0.60 to 4.0.66 <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/vercel/ai/blob/main/packages/openai/CHANGELOG.md">@ai-sdk/openai's changelog</a>.</em></p> <blockquote> <h2>4.0.66</h2> <h3>Patch Changes</h3> <ul> <li>5ec21a6: fix: reject unsupported batch request types</li> <li>7469a3b: feat: support image generation requests in batches</li> <li>0de8886: fix(openai): allow providers to disable web search source includes</li> <li>d5e3024: fix(openai): remove propertyNames from JSON Schema</li> <li>Updated dependencies [5ec21a6]</li> <li>Updated dependencies [7469a3b]</li> <li>Updated dependencies [813bb36]</li> <li>Updated dependencies [c43e4b7] <ul> <li><code>@ai-sdk/provider</code><a href="https://github.com/4"><code>@4</code></a>.0.14</li> <li><code>@ai-sdk/provider-utils</code><a href="https://github.com/5"><code>@5</code></a>.0.40</li> </ul> </li> </ul> <h2>4.0.65</h2> <h3>Patch Changes</h3> <ul> <li>9942196: feat(openai): add batch cancellation and listing</li> <li>Updated dependencies [9942196] <ul> <li><code>@ai-sdk/provider</code><a href="https://github.com/4"><code>@4</code></a>.0.13</li> <li><code>@ai-sdk/provider-utils</code><a href="https://github.com/5"><code>@5</code></a>.0.39</li> </ul> </li> </ul> <h2>4.0.64</h2> <h3>Patch Changes</h3> <ul> <li>ccb8952: fix(openai): return an AI SDK error for empty chat completion choices</li> <li>Updated dependencies [912fb01] <ul> <li><code>@ai-sdk/provider</code><a href="https://github.com/4"><code>@4</code></a>.0.12</li> <li><code>@ai-sdk/provider-utils</code><a href="https://github.com/5"><code>@5</code></a>.0.38</li> </ul> </li> </ul> <h2>4.0.63</h2> <h3>Patch Changes</h3> <ul> <li>85db433: Include explicit message item types in Azure AI Foundry Responses requests.</li> <li>5fb2a64: feat(openai): add GPT Image 2.5 Flare and Sunburst model IDs</li> <li>e105b2b: fix(openai): reject denied programmatic tool calls</li> <li>45f2b6a: fix(openai): report apply patch responses with a tool-calls finish reason</li> </ul> <h2>4.0.62</h2> <h3>Patch Changes</h3> <ul> <li>8487955: Add <code>xhigh</code> and <code>max</code> quality support for GPT Image 2.5 Flare and Sunburst in image generation, image editing, and the Responses API image generation tool.</li> </ul> <h2>4.0.61</h2> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/vercel/ai/commit/9ed46d2da5df1394079c66d422bc553fd0c34376"><code>9ed46d2</code></a> Version Packages (<a href="https://github.com/vercel/ai/tree/HEAD/packages/openai/issues/20569">#20569</a>)</li> <li><a href="https://github.com/vercel/ai/commit/d5e30246540adcc334aab700e9262c038c4cce13"><code>d5e3024</code></a> fix(openai): remove propertyNames from JSON Schema (<a href="https://github.com/vercel/ai/tree/HEAD/packages/openai/issues/20621">#20621</a>)</li> <li><a href="https://github.com/vercel/ai/commit/7469a3bc5daf0fd8c535c903f883d730a39de191"><code>7469a3b</code></a> feat: support image generation requests in batches (<a href="https://github.com/vercel/ai/tree/HEAD/packages/openai/issues/20594">#20594</a>)</li> <li><a href="https://github.com/vercel/ai/commit/0de88864f70b6f02cf89d1625aeb3fece0648a7f"><code>0de8886</code></a> fix(openai): allow providers to disable web search source includes (<a href="https://github.com/vercel/ai/tree/HEAD/packages/openai/issues/20599">#20599</a>)</li> <li><a href="https://github.com/vercel/ai/commit/74bbd933714d5a549927bad0e85117c7a34fd3cd"><code>74bbd93</code></a> test(openai): avoid network in file path encoding test (<a href="https://github.com/vercel/ai/tree/HEAD/packages/openai/issues/20592">#20592</a>)</li> <li><a href="https://github.com/vercel/ai/commit/5ec21a6946e13159d3c353c3fcd170ca8564d378"><code>5ec21a6</code></a> fix: reject unsupported batch request types (<a href="https://github.com/vercel/ai/tree/HEAD/packages/openai/issues/20562">#20562</a>)</li> <li><a href="https://github.com/vercel/ai/commit/e9795abf6185594ecdde53226c8149f8ea8b288d"><code>e9795ab</code></a> Version Packages (<a href="https://github.com/vercel/ai/tree/HEAD/packages/openai/issues/20555">#20555</a>)</li> <li><a href="https://github.com/vercel/ai/commit/99421961221a46f9267080717eacb0109cb9f22d"><code>9942196</code></a> feat(openai): add batch cancellation and listing (<a href="https://github.com/vercel/ai/tree/HEAD/packages/openai/issues/20551">#20551</a>)</li> <li><a href="https://github.com/vercel/ai/commit/65eb52b767008e1dd6a074fbc2e9223ae50a8739"><code>65eb52b</code></a> Version Packages (<a href="https://github.com/vercel/ai/tree/HEAD/packages/openai/issues/20524">#20524</a>)</li> <li><a href="https://github.com/vercel/ai/commit/ccb8952ab73b604b84660a692cb95d972f176fd9"><code>ccb8952</code></a> fix: handle empty non-streaming chat completion choices as invalid provider r...</li> <li>Additional commits viewable in <a href="https://github.com/vercel/ai/commits/@ai-sdk/openai@4.0.66/packages/openai">compare view</a></li> </ul> </details> <br /> Updates `@anthropic-ai/sdk` from 0.124.0 to 0.125.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/anthropics/anthropic-sdk-typescript/releases">@anthropic-ai/sdk's releases</a>.</em></p> <blockquote> <h2>sdk: v0.125.0</h2> <h2>0.125.0 (2026-09-10)</h2> <p>Full Changelog: <a href="https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.124.0...sdk-v0.125.0">sdk-v0.124.0...sdk-v0.125.0</a></p> <h3>Features</h3> <ul> <li><strong>api:</strong> add auto mode tool permissions for Managed Agents (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/7f5e2c6d01eb3498b86ddbf5eaf1327c266f2ded">7f5e2c6</a>)</li> <li><strong>api:</strong> add content_too_large web_fetch tool error code (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/f06416ebff8d2857d8ca9d06123ef6a9cedf2c94">f06416e</a>)</li> <li><strong>api:</strong> add the user-profiles-2026-09-04 beta value and external_user_details to user profiles (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/318d42daeb7bbba4eefce7590c3db0bb1dd81b5d">318d42d</a>)</li> <li><strong>api:</strong> support mounting public GitHub repositories without an authorization_token in Managed Agents sessions (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/9e2d945226435360915908c529ba7c6969f64458">9e2d945</a>)</li> </ul> <h3>Chores</h3> <ul> <li><strong>client:</strong> clean up the unused idempotency request option (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/4ce2772a5020e252725f21400d211b762eb76cdc">4ce2772</a>)</li> <li><strong>docs:</strong> correct the environment scope field description (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/835c67764a183cd7d2862b0689a5cce1f4416879">835c677</a>)</li> <li><strong>internal:</strong> restore package version (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/b43a7f68a067206757391d83a4f7e87e742ef9a1">b43a7f6</a>)</li> <li><strong>internal:</strong> stop stamping the package version into generated files (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/80ace5ec7737ed08acfccfa7becaa62c0043b90a">80ace5e</a>)</li> <li><strong>tests:</strong> restore empty test package marker files (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/4f2751917c04ce1fcd229244f5949acfad804ccd">4f27519</a>)</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/anthropics/anthropic-sdk-typescript/blob/main/CHANGELOG.md">@anthropic-ai/sdk's changelog</a>.</em></p> <blockquote> <h2>0.125.0 (2026-09-10)</h2> <p>Full Changelog: <a href="https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.124.0...sdk-v0.125.0">sdk-v0.124.0...sdk-v0.125.0</a></p> <h3>Features</h3> <ul> <li><strong>api:</strong> add auto mode tool permissions for Managed Agents (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/7f5e2c6d01eb3498b86ddbf5eaf1327c266f2ded">7f5e2c6</a>)</li> <li><strong>api:</strong> add content_too_large web_fetch tool error code (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/f06416ebff8d2857d8ca9d06123ef6a9cedf2c94">f06416e</a>)</li> <li><strong>api:</strong> add the user-profiles-2026-09-04 beta value and external_user_details to user profiles (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/318d42daeb7bbba4eefce7590c3db0bb1dd81b5d">318d42d</a>)</li> <li><strong>api:</strong> support mounting public GitHub repositories without an authorization_token in Managed Agents sessions (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/9e2d945226435360915908c529ba7c6969f64458">9e2d945</a>)</li> </ul> <h3>Chores</h3> <ul> <li><strong>client:</strong> clean up the unused idempotency request option (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/4ce2772a5020e252725f21400d211b762eb76cdc">4ce2772</a>)</li> <li><strong>docs:</strong> correct the environment scope field description (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/835c67764a183cd7d2862b0689a5cce1f4416879">835c677</a>)</li> <li><strong>internal:</strong> restore package version (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/b43a7f68a067206757391d83a4f7e87e742ef9a1">b43a7f6</a>)</li> <li><strong>internal:</strong> stop stamping the package version into generated files (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/80ace5ec7737ed08acfccfa7becaa62c0043b90a">80ace5e</a>)</li> <li><strong>tests:</strong> restore empty test package marker files (<a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/4f2751917c04ce1fcd229244f5949acfad804ccd">4f27519</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/135f71e9297683e14614d4307081c0273ed0a09c"><code>135f71e</code></a> Merge pull request <a href="https://redirect.github.com/anthropics/anthropic-sdk-typescript/issues/1184">#1184</a> from anthropics/release-please--branches--main--chan...</li> <li><a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/415537b991217ebb2ec3d345f5e1cfb6c6bef0e0"><code>415537b</code></a> chore: release main</li> <li><a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/7f5e2c6d01eb3498b86ddbf5eaf1327c266f2ded"><code>7f5e2c6</code></a> feat(api): add auto mode tool permissions for Managed Agents</li> <li><a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/9e2d945226435360915908c529ba7c6969f64458"><code>9e2d945</code></a> feat(api): support mounting public GitHub repositories without an authorizati...</li> <li><a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/96ecb87b40b69b8638e2771ca28217d40cadf687"><code>96ecb87</code></a> environments: the worker runs on the work item's session token alone when one...</li> <li><a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/318d42daeb7bbba4eefce7590c3db0bb1dd81b5d"><code>318d42d</code></a> feat(api): add the user-profiles-2026-09-04 beta value and external_user_deta...</li> <li><a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/835c67764a183cd7d2862b0689a5cce1f4416879"><code>835c677</code></a> chore(docs): correct the environment scope field description</li> <li><a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/4ce2772a5020e252725f21400d211b762eb76cdc"><code>4ce2772</code></a> chore(client): clean up the unused idempotency request option</li> <li><a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/f06416ebff8d2857d8ca9d06123ef6a9cedf2c94"><code>f06416e</code></a> feat(api): add content_too_large web_fetch tool error code</li> <li><a href="https://github.com/anthropics/anthropic-sdk-typescript/commit/b43a7f68a067206757391d83a4f7e87e742ef9a1"><code>b43a7f6</code></a> chore(internal): restore package version</li> <li>Additional commits viewable in <a href="https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.124.0...sdk-v0.125.0">compare view</a></li> </ul> </details> <br /> Updates `ai` from 7.0.93 to 7.0.99 <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/vercel/ai/blob/main/packages/ai/CHANGELOG.md">ai's changelog</a>.</em></p> <blockquote> <h2>7.0.99</h2> <h3>Patch Changes</h3> <ul> <li>615ac89: feat(ai): use InvalidArgumentError for utility input validation</li> <li>Updated dependencies [7f76d83] <ul> <li><code>@ai-sdk/gateway</code><a href="https://github.com/4"><code>@4</code></a>.0.80</li> </ul> </li> </ul> <h2>7.0.98</h2> <h3>Patch Changes</h3> <ul> <li>5ec21a6: fix: reject unsupported batch request types</li> <li>db59d78: feat(ai): add runtime context attribution to embed, embedMany and rerank</li> <li>7469a3b: feat: support image generation requests in batches</li> <li>f87bf07: fix(ai): reject invalid reranking provider indices</li> <li>bc5cb7a: fix(ai): accept inferred tools in <code>validateUIMessages</code></li> <li>a5f449a: feat(ai): add a stable UI message type and type guard for tool output errors</li> <li>Updated dependencies [5ec21a6]</li> <li>Updated dependencies [7469a3b]</li> <li>Updated dependencies [dbd83a3]</li> <li>Updated dependencies [813bb36]</li> <li>Updated dependencies [c43e4b7]</li> <li>Updated dependencies [03f4e59] <ul> <li><code>@ai-sdk/gateway</code><a href="https://github.com/4"><code>@4</code></a>.0.79</li> <li><code>@ai-sdk/provider</code><a href="https://github.com/4"><code>@4</code></a>.0.14</li> <li><code>@ai-sdk/provider-utils</code><a href="https://github.com/5"><code>@5</code></a>.0.40</li> </ul> </li> </ul> <h2>7.0.97</h2> <h3>Patch Changes</h3> <ul> <li>ef3bac4: Observe video webhook receiver rejections before generation starts to prevent unhandled rejections during or after a failed start. Preserve start error precedence and assimilate custom receivers only once.</li> <li>9942196: feat: add batch cancel and list APIs</li> <li>Updated dependencies [9942196] <ul> <li><code>@ai-sdk/provider</code><a href="https://github.com/4"><code>@4</code></a>.0.13</li> <li><code>@ai-sdk/gateway</code><a href="https://github.com/4"><code>@4</code></a>.0.78</li> <li><code>@ai-sdk/provider-utils</code><a href="https://github.com/5"><code>@5</code></a>.0.39</li> </ul> </li> </ul> <h2>7.0.96</h2> <h3>Patch Changes</h3> <ul> <li>912fb01: feat: add batch cancel and list APIs</li> <li>c595e6e: fix(ai): call <code>atob</code> without a receiver for Cloudflare Workers compatibility</li> <li>Updated dependencies [912fb01]</li> <li>Updated dependencies [aa4cc14]</li> <li>Updated dependencies [f102e41] <ul> <li><code>@ai-sdk/provider</code><a href="https://github.com/4"><code>@4</code></a>.0.12</li> <li><code>@ai-sdk/gateway</code><a href="https://github.com/4"><code>@4</code></a>.0.77</li> </ul> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/vercel/ai/commit/6c6c2210b9532a4c369615c044a16d595f3db117"><code>6c6c221</code></a> Version Packages (<a href="https://github.com/vercel/ai/tree/HEAD/packages/ai/issues/20670">#20670</a>)</li> <li><a href="https://github.com/vercel/ai/commit/615ac892b4b1bd0fb0b769fbf906588b27437a97"><code>615ac89</code></a> feat: use InvalidArgumentError for utility input validation (<a href="https://github.com/vercel/ai/tree/HEAD/packages/ai/issues/20304">#20304</a>)</li> <li><a href="https://github.com/vercel/ai/commit/9ed46d2da5df1394079c66d422bc553fd0c34376"><code>9ed46d2</code></a> Version Packages (<a href="https://github.com/vercel/ai/tree/HEAD/packages/ai/issues/20569">#20569</a>)</li> <li><a href="https://github.com/vercel/ai/commit/a5f449ad2d94713240d68bc33cd0f8a0b45b2aa4"><code>a5f449a</code></a> feat: add a stable UI message type and type guard for tool output errors (<a href="https://github.com/vercel/ai/tree/HEAD/packages/ai/issues/20">#20</a>...</li> <li><a href="https://github.com/vercel/ai/commit/bc5cb7ac5f966a721d86edd1099f8482f7ffb168"><code>bc5cb7a</code></a> fix(ai): accept inferred tools in <code>validateUIMessages</code> (<a href="https://github.com/vercel/ai/tree/HEAD/packages/ai/issues/20660">#20660</a>)</li> <li><a href="https://github.com/vercel/ai/commit/db59d78f8134ff9d231bbe34a91ca882013e1740"><code>db59d78</code></a> feat(ai): add runtime context attribution to embed, embedMany and rerank (<a href="https://github.com/vercel/ai/tree/HEAD/packages/ai/issues/20">#20</a>...</li> <li><a href="https://github.com/vercel/ai/commit/7469a3bc5daf0fd8c535c903f883d730a39de191"><code>7469a3b</code></a> feat: support image generation requests in batches (<a href="https://github.com/vercel/ai/tree/HEAD/packages/ai/issues/20594">#20594</a>)</li> <li><a href="https://github.com/vercel/ai/commit/f87bf07ebe466217464770ee37abe32bda3f2697"><code>f87bf07</code></a> fix: rerank() returns undefined documents for invalid provider ranking indice...</li> <li><a href="https://github.com/vercel/ai/commit/5ec21a6946e13159d3c353c3fcd170ca8564d378"><code>5ec21a6</code></a> fix: reject unsupported batch request types (<a href="https://github.com/vercel/ai/tree/HEAD/packages/ai/issues/20562">#20562</a>)</li> <li><a href="https://github.com/vercel/ai/commit/e9795abf6185594ecdde53226c8149f8ea8b288d"><code>e9795ab</code></a> Version Packages (<a href="https://github.com/vercel/ai/tree/HEAD/packages/ai/issues/20555">#20555</a>)</li> <li>Additional commits viewable in <a href="https://github.com/vercel/ai/commits/ai@7.0.99/packages/ai">compare view</a></li> </ul> </details> <br /> Updates `openai` from 7.10.0 to 7.15.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/openai/openai-node/releases">openai's releases</a>.</em></p> <blockquote> <h2>v7.15.0</h2> <h2><a href="https://github.com/openai/openai-node/compare/v7.14.0...v7.15.0">7.15.0</a> (2026-09-10)</h2> <h3>Features</h3> <ul> <li><strong>api:</strong> add Agents API (<a href="https://redirect.github.com/openai/openai-node/issues/2719">#2719</a>) (<a href="https://github.com/openai/openai-node/commit/20a47f9d608885c73a8053a4036b1faec9b5493f">20a47f9</a>)</li> </ul> <h2>v7.14.0</h2> <h2><a href="https://github.com/openai/openai-node/compare/v7.13.0...v7.14.0">7.14.0</a> (2026-09-10)</h2> <h3>Features</h3> <ul> <li><strong>api:</strong> Add Live API (<a href="https://github.com/openai/openai-node/commit/c037ba724235cd58943e95d5b3b98ff76235e83c">c037ba7</a>)</li> </ul> <h3>Bug Fixes</h3> <ul> <li><strong>deps-dev:</strong> bump joi from 18.2.3 to 18.2.5 in /ecosystem-tests/vercel-edge (<a href="https://redirect.github.com/openai/openai-node/issues/2702">#2702</a>) (<a href="https://github.com/openai/openai-node/commit/029b805b8d65995a9f53d8872ee83cd4b145355b">029b805</a>)</li> <li><strong>deps:</strong> bump next from 15.5.23 to 15.5.25 in /ecosystem-tests/vercel-edge (<a href="https://redirect.github.com/openai/openai-node/issues/2703">#2703</a>) (<a href="https://github.com/openai/openai-node/commit/e9446db4bc43ce7977a4957c9990bddb8fc5913f">e9446db</a>)</li> <li><strong>deps:</strong> bump sharp from 0.35.3 to 0.35.4 in /ecosystem-tests/vercel-edge (<a href="https://redirect.github.com/openai/openai-node/issues/2704">#2704</a>) (<a href="https://github.com/openai/openai-node/commit/ca957050c7cfd8c4a12335ee3345148a660827cc">ca95705</a>)</li> <li><strong>deps:</strong> update remaining tooling and fixture patches (<a href="https://redirect.github.com/openai/openai-node/issues/2712">#2712</a>) (<a href="https://github.com/openai/openai-node/commit/bcaabee91cf476446cfd79e4fd71bf0c80fe157b">bcaabee</a>)</li> </ul> <h2>v7.13.0</h2> <h2><a href="https://github.com/openai/openai-node/compare/v7.12.1...v7.13.0">7.13.0</a> (2026-09-09)</h2> <h3>Features</h3> <ul> <li><strong>api:</strong> Add API key expiration controls (<a href="https://redirect.github.com/openai/openai-node/issues/2708">#2708</a>) (<a href="https://github.com/openai/openai-node/commit/b4168065d3839b3008d557fdbb8972da2e247f24">b416806</a>)</li> </ul> <h2>v7.12.1</h2> <h2><a href="https://github.com/openai/openai-node/compare/v7.12.0...v7.12.1">7.12.1</a> (2026-09-09)</h2> <p>Includes the GPT Image 2.5 support from 7.12.0, which was not published to npm.</p> <h3>Features</h3> <ul> <li><strong>api:</strong> add GPT Image 2.5 models and image options (<a href="https://redirect.github.com/openai/openai-node/pull/2705">#2705</a>) (<a href="https://github.com/openai/openai-node/commit/6500a1670911e8f5a6cbbd9f7ff42800af6450cd">6500a16</a>)</li> </ul> <h3>Bug Fixes</h3> <ul> <li><strong>ci:</strong> run Cloudflare example regressions before release (<a href="https://redirect.github.com/openai/openai-node/issues/2706">#2706</a>) (<a href="https://github.com/openai/openai-node/commit/c5cc31c5895b7cc69f49cb36ab2badc5fbd35b51">c5cc31c</a>)</li> </ul> <h2>v7.12.0</h2> <h2><a href="https://github.com/openai/openai-node/compare/v7.11.0...v7.12.0">7.12.0</a> (2026-09-08)</h2> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/openai/openai-node/blob/main/CHANGELOG.md">openai's changelog</a>.</em></p> <blockquote> <h2><a href="https://github.com/openai/openai-node/compare/v7.14.0...v7.15.0">7.15.0</a> (2026-09-10)</h2> <h3>Features</h3> <ul> <li><strong>api:</strong> add Agents API (<a href="https://redirect.github.com/openai/openai-node/issues/2719">#2719</a>) (<a href="https://github.com/openai/openai-node/commit/20a47f9d608885c73a8053a4036b1faec9b5493f">20a47f9</a>)</li> </ul> <h2><a href="https://github.com/openai/openai-node/compare/v7.13.0...v7.14.0">7.14.0</a> (2026-09-10)</h2> <h3>Features</h3> <ul> <li><strong>api:</strong> Add Live API (<a href="https://github.com/openai/openai-node/commit/c037ba724235cd58943e95d5b3b98ff76235e83c">c037ba7</a>)</li> </ul> <h3>Bug Fixes</h3> <ul> <li><strong>deps-dev:</strong> bump joi from 18.2.3 to 18.2.5 in /ecosystem-tests/vercel-edge (<a href="https://redirect.github.com/openai/openai-node/issues/2702">#2702</a>) (<a href="https://github.com/openai/openai-node/commit/029b805b8d65995a9f53d8872ee83cd4b145355b">029b805</a>)</li> <li><strong>deps:</strong> bump next from 15.5.23 to 15.5.25 in /ecosystem-tests/vercel-edge (<a href="https://redirect.github.com/openai/openai-node/issues/2703">#2703</a>) (<a href="https://github.com/openai/openai-node/commit/e9446db4bc43ce7977a4957c9990bddb8fc5913f">e9446db</a>)</li> <li><strong>deps:</strong> bump sharp from 0.35.3 to 0.35.4 in /ecosystem-tests/vercel-edge (<a href="https://redirect.github.com/openai/openai-node/issues/2704">#2704</a>) (<a href="https://github.com/openai/openai-node/commit/ca957050c7cfd8c4a12335ee3345148a660827cc">ca95705</a>)</li> <li><strong>deps:</strong> update remaining tooling and fixture patches (<a href="https://redirect.github.com/openai/openai-node/issues/2712">#2712</a>) (<a href="https://github.com/openai/openai-node/commit/bcaabee91cf476446cfd79e4fd71bf0c80fe157b">bcaabee</a>)</li> </ul> <h2><a href="https://github.com/openai/openai-node/compare/v7.12.1...v7.13.0">7.13.0</a> (2026-09-09)</h2> <h3>Features</h3> <ul> <li><strong>api:</strong> Add API key expiration controls (<a href="https://redirect.github.com/openai/openai-node/issues/2708">#2708</a>) (<a href="https://github.com/openai/openai-node/commit/b4168065d3839b3008d557fdbb8972da2e247f24">b416806</a>)</li> </ul> <h2><a href="https://github.com/openai/openai-node/compare/v7.12.0...v7.12.1">7.12.1</a> (2026-09-09)</h2> <p>Includes the GPT Image 2.5 support from 7.12.0, which was not published to npm.</p> <h3>Features</h3> <ul> <li><strong>api:</strong> add GPT Image 2.5 models and image options (<a href="https://redirect.github.com/openai/openai-node/pull/2705">#2705</a>) (<a href="https://github.com/openai/openai-node/commit/6500a1670911e8f5a6cbbd9f7ff42800af6450cd">6500a16</a>)</li> </ul> <h3>Bug Fixes</h3> <ul> <li><strong>ci:</strong> run Cloudflare example regressions before release (<a href="https://redirect.github.com/openai/openai-node/issues/2706">#2706</a>) (<a href="https://github.com/openai/openai-node/commit/c5cc31c5895b7cc69f49cb36ab2badc5fbd35b51">c5cc31c</a>)</li> </ul> <h2><a href="https://github.com/openai/openai-node/compare/v7.11.0...v7.12.0">7.12.0</a> (2026-09-08)</h2> <h3>Features</h3> <ul> <li><strong>api:</strong> add GPT Image 2.5 models and image options (<a href="https://redirect.github.com/openai/openai-node/issues/2705">#2705</a>) (<a href="https://github.com/openai/openai-node/commit/6500a1670911e8f5a6cbbd9f7ff42800af6450cd">6500a16</a>)</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/openai/openai-node/commit/50eb4b26fc4a70ac355aff5d822e250602faa1e5"><code>50eb4b2</code></a> release: 7.15.0 (<a href="https://redirect.github.com/openai/openai-node/issues/2720">#2720</a>)</li> <li><a href="https://github.com/openai/openai-node/commit/20a47f9d608885c73a8053a4036b1faec9b5493f"><code>20a47f9</code></a> feat(api): add Agents API (<a href="https://redirect.github.com/openai/openai-node/issues/2719">#2719</a>)</li> <li><a href="https://github.com/openai/openai-node/commit/c1f88cdebeb8ecb573384cb37f4302a641f7877c"><code>c1f88cd</code></a> release: 7.14.0 (<a href="https://redirect.github.com/openai/openai-node/issues/2711">#2711</a>)</li> <li><a href="https://github.com/openai/openai-node/commit/c037ba724235cd58943e95d5b3b98ff76235e83c"><code>c037ba7</code></a> feat(api) Add Live API (<a href="https://redirect.github.com/openai/openai-node/issues/2718">#2718</a>)</li> <li><a href="https://github.com/openai/openai-node/commit/fe2d6a382623b00753f002de539f8a26c936b5be"><code>fe2d6a3</code></a> test: reduce CI subprocess and validation overhead (<a href="https://redirect.github.com/openai/openai-node/issues/2713">#2713</a>)</li> <li><a href="https://github.com/openai/openai-node/commit/bcaabee91cf476446cfd79e4fd71bf0c80fe157b"><code>bcaabee</code></a> fix(deps): update remaining tooling and fixture patches (<a href="https://redirect.github.com/openai/openai-node/issues/2712">#2712</a>)</li> <li><a href="https://github.com/openai/openai-node/commit/029b805b8d65995a9f53d8872ee83cd4b145355b"><code>029b805</code></a> fix(deps-dev): bump joi from 18.2.3 to 18.2.5 in /ecosystem-tests/vercel-edge...</li> <li><a href="https://github.com/openai/openai-node/commit/e9446db4bc43ce7977a4957c9990bddb8fc5913f"><code>e9446db</code></a> fix(deps): bump next from 15.5.23 to 15.5.25 in /ecosystem-tests/vercel-edge ...</li> <li><a href="https://github.com/openai/openai-node/commit/ca957050c7cfd8c4a12335ee3345148a660827cc"><code>ca95705</code></a> fix(deps): bump sharp from 0.35.3 to 0.35.4 in /ecosystem-tests/vercel-edge (...</li> <li><a href="https://github.com/openai/openai-node/commit/a661a7dc7b28a4cfc00a3d1e7277c7a91086f517"><code>a661a7d</code></a> release: 7.13.0 (<a href="https://redirect.github.com/openai/openai-node/issues/2710">#2710</a>)</li> <li>Additional commits viewable in <a href="https://github.com/openai/openai-node/compare/v7.10.0...v7.15.0">compare view</a></li> </ul> </details> <br /> Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore <dependency name> major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself) - `@dependabot ignore <dependency name> minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself) - `@dependabot ignore <dependency name>` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself) - `@dependabot unignore <dependency name>` will remove all of the ignore conditions of the specified dependency - `@dependabot unignore <dependency name> <ignore condition>` will remove the ignore condition of the specified dependency and ignore conditions </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: JD Davis <mxjerrett@gmail.com> |
||
|
|
aa4739e54a |
chore(deps): consolidate current dependency updates (#3568)
## Description Consolidates every currently open Dependabot update into one changeset, rebased on current `main`, and advances stale bot proposals to the newest compatible releases available on 2026-09-12. TypeScript 6 exposed two SDK declaration-build assumptions: tsup injects the deprecated `baseUrl` option, and the SDK needs explicit Node/DOM ambient types. The SDK tsconfig now acknowledges TypeScript 6 deprecations and declares those environments explicitly. TypeScript 7 remains bounded by the existing verified tsup compiler-API incompatibility. This draft supersedes #3535, #3536, #3537, #3538, #3539, and #3540 after merge. Do not close those PRs early; keeping them open preserves update visibility until this combined branch lands. ## Type of Change - [x] Bug fix (non-breaking change that fixes an issue) ## Changes Made - Ruff 0.16.7 in the Python manifest, lockfile, and pre-commit configuration. - `astral-sh/setup-uv` v10.1.0 in the security workflow. - TypeScript 6.0.3, `@ai-sdk/provider` 4.0.14, and `@ai-sdk/anthropic` 4.0.53 in the TypeScript SDK. - tree-sitter 0.27.0 in the Rust core and Cargo lockfile. - Explicit Node/DOM types and TypeScript 6 deprecation handling for SDK declaration builds. ## Testing - [x] Unit tests pass - [x] Manual testing performed ### Test Output - SDK clean install and audit: 0 vulnerabilities. - SDK declaration build and typecheck passed. - SDK tests: 294 passed, 33 external/integration skips. - Release workflow tests: 50 passed. - Rust workspace/all-target `cargo check --locked` passed. - Rust workspace/all-target clippy passed with `-D warnings`. - Ruff check and format check passed. - `uv lock --check`, actionlint, cargo fmt, and git diff checks passed. ## Real Behavior Proof - Reproduced the TypeScript 6 declaration failure locally (`TS5101` from tsup's injected `baseUrl`) before the compatibility change. - After the fix, a clean npm install builds ESM, CJS, and all declaration artifacts, typechecks, and passes the SDK suite. ## Review Readiness - [x] I have performed a self-review - [ ] This PR is ready for human review ## Checklist - [x] My code follows the project's style guidelines - [x] I have performed a self-review of my code - [x] I did **not** edit `CHANGELOG.md` ## Additional Notes The four existing unpatched optional-extra alerts remain: three ChromaDB advisories and one Accelerate advisory have no patched release. Existing bounded Dependabot ignores preserve future eligible versions and do not dismiss alerts. --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|
|
04cdf79ab0 |
fix: stabilize release checks and consolidate dependency updates (#3531)
## Description Consolidates the open dependency updates into one draft and fixes the remaining release 0.38.0 test failures. Release packaging already includes the merged Node 24 fix from #3516. The concurrency test now proves request overlap with a barrier, and the release workflow tests verify registry-range consistency and publication failure gating without hard-coding obsolete dependency versions. Updates npm, Cargo, Python, and GitHub Actions dependencies. Adds recurring audits of all five npm lockfiles at every severity. Upgrades CrewAI to remove its vulnerable json-repair 0.25.2 pin, and replaces yanked chacha20 and pypdfium2 releases. This remains a draft. All 67 hosted checks pass on |
||
|
|
6f1251f6f3 |
deps: bump vitest from 4.1.10 to 5.0.0 in /sdk/typescript (#3496)
## Maintainer validation Reviewed the Vitest 5 dependency/lockfile migration and test usage. Local Node 24 validation: 294 tests passed, 33 skipped; typecheck and build passed. The same tests also passed on Node 20, although Vitest 5 officially requires Node 22.12+ for development/test execution. The failing Docker job was the previously reproduced npm 10.9.8 Arborist edgesOut crash, unrelated to Vitest. Applied the exact already-validated npm 11.16.0 Docker pin; new remote CI is pending. Bumps [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) from 4.1.10 to 5.0.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/vitest-dev/vitest/releases">vitest's releases</a>.</em></p> <blockquote> <h2>v5.0.0</h2> <p>Vitest 5 is officially out! This release focuses on performance and brings a lot of new features while fixing long-standing bugs. See our <a href="https://vitest.dev/blog/vitest-5.html">blog post</a> for the official announcement.</p> <h3> 🚨 Breaking Changes</h3> <ul> <li>Replace <code>loupe.inspect</code> with pretty-format - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Claude Opus 5 (1M context)</strong> and <strong>OpenAI Codex</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/9609">vitest-dev/vitest#9609</a> <a href="https://github.com/vitest-dev/vitest/commit/3f802da4b"><!-- raw HTML omitted -->(3f802)<!-- raw HTML omitted --></a></li> <li>Remove quotes from string values in <code>test.for/each</code> title <code>$</code> variable (take 2) - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/10170">vitest-dev/vitest#10170</a> <a href="https://github.com/vitest-dev/vitest/commit/04d37e9d7"><!-- raw HTML omitted -->(04d37)<!-- raw HTML omitted --></a></li> <li>Default <code>attachmentsDir</code> from <code>.vitest-attachements/</code> to <code>.vitest/attachments/</code> - by <a href="https://github.com/MdSadiqMd"><code>@MdSadiqMd</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/10186">vitest-dev/vitest#10186</a> <a href="https://github.com/vitest-dev/vitest/commit/1ba7338c3"><!-- raw HTML omitted -->(1ba73)<!-- raw HTML omitted --></a></li> <li>Remove <code>sequential</code> test/suite options in favor of <code>concurrent</code> - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>OpenAI Codex</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/10198">vitest-dev/vitest#10198</a> <a href="https://github.com/vitest-dev/vitest/commit/9229f2edc"><!-- raw HTML omitted -->(9229f)<!-- raw HTML omitted --></a></li> <li>Represent locator as an object instead of a string - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/10212">vitest-dev/vitest#10212</a> <a href="https://github.com/vitest-dev/vitest/commit/80f07edf6"><!-- raw HTML omitted -->(80f07)<!-- raw HTML omitted --></a></li> <li>Inline <code>expect</code> package - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/10221">vitest-dev/vitest#10221</a> <a href="https://github.com/vitest-dev/vitest/commit/ad16223e7"><!-- raw HTML omitted -->(ad162)<!-- raw HTML omitted --></a></li> <li>Remove deprecated entry points - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/10222">vitest-dev/vitest#10222</a> <a href="https://github.com/vitest-dev/vitest/commit/994c6ddb9"><!-- raw HTML omitted -->(994c6)<!-- raw HTML omitted --></a></li> <li>Require Node.js 22 and Vite 6.4 - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/10178">vitest-dev/vitest#10178</a> <a href="https://github.com/vitest-dev/vitest/commit/3876283e8"><!-- raw HTML omitted -->(38762)<!-- raw HTML omitted --></a></li> <li>Fail <code>expect.poll</code> when function didn't resolve in time - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> and <strong>OpenAI Codex</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/10233">vitest-dev/vitest#10233</a> <a href="https://github.com/vitest-dev/vitest/commit/4df048c11"><!-- raw HTML omitted -->(4df04)<!-- raw HTML omitted --></a></li> <li>Throw an error if hoistable methods are outside the top level scope - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/10460">vitest-dev/vitest#10460</a> <a href="https://github.com/vitest-dev/vitest/commit/d0b4fddcb"><!-- raw HTML omitted -->(d0b4f)<!-- raw HTML omitted --></a></li> <li><code>toHaveTextContent</code> is strict, add <code>toMatchTextContent</code> as alternative - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/10473">vitest-dev/vitest#10473</a> <a href="https://github.com/vitest-dev/vitest/commit/18f303079"><!-- raw HTML omitted -->(18f30)<!-- raw HTML omitted --></a></li> <li>Don't lookup config file from ancestor directories - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>OpenAI Codex</strong> and <strong>Hiroshi Ogawa</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/10428">vitest-dev/vitest#10428</a> <a href="https://github.com/vitest-dev/vitest/commit/945d9090e"><!-- raw HTML omitted -->(945d9)<!-- raw HTML omitted --></a></li> <li>Inline <code>@vitest/runner</code> package, do not publish it anymore - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/10511">vitest-dev/vitest#10511</a> <a href="https://github.com/vitest-dev/vitest/commit/6d6e46b1e"><!-- raw HTML omitted -->(6d6e4)<!-- raw HTML omitted --></a></li> <li>Allow mutating happy-dom/jsdom window object - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>OpenAI Codex</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/10373">vitest-dev/vitest#10373</a> <a href="https://github.com/vitest-dev/vitest/commit/206e8cff8"><!-- raw HTML omitted -->(206e8)<!-- raw HTML omitted --></a></li> <li>Expose <code>concurrencyId</code>/<code>workerId</code> on TestModule's diagnostics, make id 1-based - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/10516">vitest-dev/vitest#10516</a> <a href="https://github.com/vitest-dev/vitest/commit/bdd985433"><!-- raw HTML omitted -->(bdd98)<!-- raw HTML omitted --></a></li> <li>Add <code>screenshotDirectory</code> config to <code>browser.expect.toMatchScreenshot</code> - by <a href="https://github.com/macarie"><code>@macarie</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/10592">vitest-dev/vitest#10592</a> <a href="https://github.com/vitest-dev/vitest/commit/a60ded0fb"><!-- raw HTML omitted -->(a60de)<!-- raw HTML omitted --></a></li> <li>Update <code>@sinonjs/fake-timers</code> and support mocking <code>Temporal</code> - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>OpenCode (gpt-5.6-sol)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/10654">vitest-dev/vitest#10654</a> <a href="https://github.com/vitest-dev/vitest/commit/f8b1532fe"><!-- raw HTML omitted -->(f8b15)<!-- raw HTML omitted --></a></li> <li>Remove webdriverio package - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/10675">vitest-dev/vitest#10675</a> <a href="https://github.com/vitest-dev/vitest/commit/5fed68f72"><!-- raw HTML omitted -->(5fed6)<!-- raw HTML omitted --></a></li> <li>Clear mocks by default before each test - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/10613">vitest-dev/vitest#10613</a> <a href="https://github.com/vitest-dev/vitest/commit/0f6463bf2"><!-- raw HTML omitted -->(0f646)<!-- raw HTML omitted --></a></li> <li>Don't emit localStorage warnings on Node 26, fail gracefully when worker fails to start - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/10293">vitest-dev/vitest#10293</a> <a href="https://github.com/vitest-dev/vitest/commit/334edef92"><!-- raw HTML omitted -->(334ed)<!-- raw HTML omitted --></a></li> <li>Separate config resolution from the server creation - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/10554">vitest-dev/vitest#10554</a> <a href="https://github.com/vitest-dev/vitest/commit/1c0ec3444"><!-- raw HTML omitted -->(1c0ec)<!-- raw HTML omitted --></a></li> <li>Inline projects extend the root config by default - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/10750">vitest-dev/vitest#10750</a> <a href="https://github.com/vitest-dev/vitest/commit/fec001ad3"><!-- raw HTML omitted -->(fec00)<!-- raw HTML omitted --></a></li> <li>Enable mocking Temporal without fake timers - by <a href="https://github.com/fabon-f"><code>@fabon-f</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>OpenCode (gpt-5.6-sol)</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/10757">vitest-dev/vitest#10757</a> <a href="https://github.com/vitest-dev/vitest/commit/ac2d46b42"><!-- raw HTML omitted -->(ac2d4)<!-- raw HTML omitted --></a></li> <li>Support nested projects - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/10846">vitest-dev/vitest#10846</a> <a href="https://github.com/vitest-dev/vitest/commit/ec367cf2a"><!-- raw HTML omitted -->(ec367)<!-- raw HTML omitted --></a></li> <li>Use <code>></code> as separator in <code>-t</code>, calculate <code>only</code> once - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/10686">vitest-dev/vitest#10686</a> <a href="https://github.com/vitest-dev/vitest/commit/a0b20bc86"><!-- raw HTML omitted -->(a0b20)<!-- raw HTML omitted --></a></li> <li>Fail the test when an asynchronous assertion is not awaited - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/10868">vitest-dev/vitest#10868</a> <a href="https://github.com/vitest-dev/vitest/commit/86d4a9da9"><!-- raw HTML omitted -->(86d4a)<!-- raw HTML omitted --></a></li> <li>Share the Vite server between inline projects - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/10848">vitest-dev/vitest#10848</a> <a href="https://github.com/vitest-dev/vitest/commit/d87c96ee4"><!-- raw HTML omitted -->(d87c9)<!-- raw HTML omitted --></a></li> <li>Parse files statically in vitest list by default - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/11088">vitest-dev/vitest#11088</a> <a href="https://github.com/vitest-dev/vitest/commit/51e949416"><!-- raw HTML omitted -->(51e94)<!-- raw HTML omitted --></a></li> <li><strong>benchmark</strong>: <ul> <li>Rewrite the public API - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/10113">vitest-dev/vitest#10113</a> <a href="https://github.com/vitest-dev/vitest/commit/19f6e8947"><!-- raw HTML omitted -->(19f6e)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>browser</strong>: <ul> <li>Iframe scale - by <a href="https://github.com/macarie"><code>@macarie</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/9745">vitest-dev/vitest#9745</a> <a href="https://github.com/vitest-dev/vitest/commit/b639852cc"><!-- raw HTML omitted -->(b6398)<!-- raw HTML omitted --></a></li> <li>Enable <code>locators.exact</code> by default - by <a href="https://github.com/sheremet-va"><code>@sheremet-va</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/10430">vitest-dev/vitest#10430</a> <a href="https://github.com/vitest-dev/vitest/commit/e203202f9"><!-- raw HTML omitted -->(e2032)<!-- raw HTML omitted --></a></li> <li>Require <code>sessionId</code> for orchestrator html request - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong> and <strong>OpenAI Codex</strong> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/10522">vitest-dev/vitest#10522</a> <a href="https://github.com/vitest-dev/vitest/commit/79b7d8fcc"><!-- raw HTML omitted -->(79b7d)<!-- raw HTML omitted --></a></li> <li>Save failure screenshots in <code>attachmentsDir</code> - by <a href="https://github.com/macarie"><code>@macarie</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/10917">vitest-dev/vitest#10917</a> <a href="https://github.com/vitest-dev/vitest/commit/3b5bbd8b4"><!-- raw HTML omitted -->(3b5bb)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>coverage</strong>: <ul> <li><code>include/exclude</code> globs too eager - by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/9818">vitest-dev/vitest#9818</a> <a href="https://github.com/vitest-dev/vitest/commit/edacb0fd4"><!-- raw HTML omitted -->(edacb)<!-- raw HTML omitted --></a></li> <li>Allow <code>thresholds.perFile</code> to accept an object - by <a href="https://github.com/vladlenskiy"><code>@vladlenskiy</code></a> and <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/10190">vitest-dev/vitest#10190</a> <a href="https://github.com/vitest-dev/vitest/commit/13b78d98b"><!-- raw HTML omitted -->(13b78)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>expect</strong>: <ul> <li>Fix <code>toThrow("")</code> behavior by reverting <a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/6710">#6710</a> - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/9643">vitest-dev/vitest#9643</a> and <a href="https://redirect.github.com/vitest-dev/vitest/issues/6710">vitest-dev/vitest#6710</a> <a href="https://github.com/vitest-dev/vitest/commit/6c3e4bdbf"><!-- raw HTML omitted -->(6c3e4)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>mocker</strong>: <ul> <li>Deserialize automock as automock - by <a href="https://github.com/nami8824"><code>@nami8824</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/10192">vitest-dev/vitest#10192</a> <a href="https://github.com/vitest-dev/vitest/commit/2f892712d"><!-- raw HTML omitted -->(2f892)<!-- raw HTML omitted --></a></li> </ul> </li> <li><strong>reporters</strong>: <ul> <li><code>blob</code> reporter and <code>--merge-reports</code> default to <code>.vitest/blob/</code> - by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/10232">vitest-dev/vitest#10232</a> <a href="https://github.com/vitest-dev/vitest/commit/d22b029ae"><!-- raw HTML omitted -->(d22b0)<!-- raw HTML omitted --></a></li> <li>Write json and junit reporter output files to <code>.vitest</code> by default - by <a href="https://github.com/hi-ogawa"><code>@hi-ogawa</code></a>, <strong>Hiroshi Ogawa</strong>, <strong>OpenCode (gpt-5.6-sol)</strong> and <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://redirect.github.com/vitest-dev/vitest/issues/10621">vitest-dev/vitest#10621</a> <a href="https://github.com/vitest-dev/vitest/commit/58577290a"><!-- raw HTML omitted -->(58577)<!-- raw HTML omitted --></a></li> </ul> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/vitest-dev/vitest/commit/f441c6fab25e579c5b7dd3dd50538416f415fbae"><code>f441c6f</code></a> chore: release v5.0.0 (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11130">#11130</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/d46a7472266d5bb43595ea51dcdd64ab0f560f12"><code>d46a747</code></a> fix: treat test.describe as a suite during static collection (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11128">#11128</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/584cf308437069385b0fb905fa3ff7d7b7f65a90"><code>584cf30</code></a> fix: add a warning if inline project has duplicate plugins due to unexpected ...</li> <li><a href="https://github.com/vitest-dev/vitest/commit/f08ce4b7144542af128dcb884150c42074223653"><code>f08ce4b</code></a> fix: apply queued mocks from doMock() in queue order (fixes <a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/10706">#10706</a>) (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11127">#11127</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/897f51fd2493046c52ec9539b7d02fe3763bd63e"><code>897f51f</code></a> chore: release v5.0.0-rc.4 (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11107">#11107</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/1339b0655dc4679aeb8f905bacee83b6f76f6b23"><code>1339b06</code></a> chore(deps): update all non-major dependencies (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11104">#11104</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/51e9494166d8d0108a621fce80c41b6dba760bae"><code>51e9494</code></a> feat!: parse files statically in vitest list by default (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11088">#11088</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/2122ffdfb42d86c9a2f1238100d6a031312cae32"><code>2122ffd</code></a> fix: propagate --maxWorkers to projects (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11102">#11102</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/dc10f5f8fb69b026afcf56f8a7a9dd36bd964d73"><code>dc10f5f</code></a> fix(browser): report the action error when a task times out (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11101">#11101</a>)</li> <li><a href="https://github.com/vitest-dev/vitest/commit/d4fe1986fe334d22940039e815ccdbcc907baa6a"><code>d4fe198</code></a> feat: promote clearCache out of experimental (<a href="https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest/issues/11086">#11086</a>)</li> <li>Additional commits viewable in <a href="https://github.com/vitest-dev/vitest/commits/v5.0.0/packages/vitest">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/headroomlabs-ai/headroom/network/alerts). </details> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jerrett Davis <mxjerrett@gmail.com> |