@bastani/atomic-ai 0.9.88-alpha.1 → 0.9.88

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,34 @@ This package is Atomic's fork of `@earendil-works/pi-ai`, published as `@bastani
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.9.88] - 2026-11-16
8
+
9
+ ### Added
10
+
11
+ - Added `buildModelsDevChatModels()` and `finalizeChatModels()` in `@bastani/atomic-ai/utils/models-dev-catalog`, the transform from models.dev's `api.json` to the built-in chat catalog ([#5174](https://github.com/bastani-inc/atomic/issues/5174))
12
+
13
+ ### Changed
14
+
15
+ - Renamed the package from `@bastani/pi-ai` to `@bastani/atomic-ai`. It now depends on Atomic's forks `@bastani/atomic-schema` and `@bastani/atomic-telemetry` instead of pi's packages. Atomic's extension loader still resolves `@bastani/pi-ai`, `@earendil-works/pi-ai` and `@mariozechner/pi-ai` imports to it ([#5174](https://github.com/bastani-inc/atomic/issues/5174))
16
+ - Requests now identify as Atomic by default: the default `User-Agent` is `atomic/<version>` (short form `atomic`), and the new `ATOMIC_ATTRIBUTION` attributes requests to Atomic for OpenRouter, NVIDIA and OpenCode. `PI_ATTRIBUTION` is deprecated and now equals `ATOMIC_ATTRIBUTION`. `ATOMIC_CACHE_RETENTION` and `ATOMIC_OAUTH_CALLBACK_HOST` replace `PI_CACHE_RETENTION` and `PI_OAUTH_CALLBACK_HOST`, which keep working as legacy names ([#5174](https://github.com/bastani-inc/atomic/issues/5174))
17
+ - OpenAI Codex requests and the Codex browser sign-in send `originator: atomic`, xAI OAuth sends `referrer: atomic`, and Bedrock's user-agent pair is `atomic/<version>`, all instead of `pi`. The OAuth client IDs are unchanged; if Codex or xAI sign-in or requests start failing, these identifiers are the change to revert ([#5174](https://github.com/bastani-inc/atomic/issues/5174))
18
+
19
+ ### Fixed
20
+
21
+ - Google Gemini, Google Vertex, Anthropic, OpenAI Completions, OpenAI Responses, OpenAI Codex, Azure OpenAI Responses and Mistral failures now record the HTTP status, and Google's provider status such as `UNAVAILABLE`, in a `provider_response_failure` diagnostic on the failed message, so retry and fallback can decide on the status rather than the message text ([#4994](https://github.com/bastani-inc/atomic/issues/4994))
22
+ - Fixed requests failing when the conversation holds an image in a format providers do not accept inline, such as `image/svg+xml`: every provider now sends a text placeholder naming the type instead of the image, and Bedrock no longer throws "Unknown image type" ([#4908](https://github.com/bastani-inc/atomic/issues/4908)).
23
+ - Fixed Google Gemini, Google Vertex, Amazon Bedrock and Azure OpenAI Responses streams ignoring `streamDeadlineMs`: a stream that stalls after its first event is now cut at the deadline, closes its connection, and fails with the retryable "stream deadline exceeded" error so retry and model fallback run instead of the turn hanging ([#4904](https://github.com/bastani-inc/atomic/issues/4904))
24
+ - Fixed Anthropic, Mistral, OpenAI Codex, and pi-messages streams failing or losing events when a CRLF line ending, a multibyte character, or a `data:` prefix is split across network chunks. Every stream now parses the same way however it is chunked, and the OpenAI Codex and pi-messages streams accept CRLF and CR line endings ([#4899](https://github.com/bastani-inc/atomic/issues/4899))
25
+ - Fixed OpenAI-compatible streams merging parallel tool calls that a server sends with the same `index` into one call with malformed arguments; a named tool call delta with a new `id` now starts its own call ([#4899](https://github.com/bastani-inc/atomic/issues/4899))
26
+ - Fixed Anthropic tool calls losing their input when a server sends it complete in `content_block_start` with no `input_json_delta` events; the call now keeps that input ([#4899](https://github.com/bastani-inc/atomic/issues/4899))
27
+ - Fixed Anthropic, OpenAI Codex, OpenAI ChatGPT, Kimi Code, and Radius sign-ins asking you to run `/login` again after a token refresh whose response carries no new refresh token, which servers that don't rotate refresh tokens may send. The refresh now keeps the existing refresh token, and a response without `expires_in` takes its expiry from the access token's JWT `exp` claim or assumes one hour, instead of refreshing on every request ([#4959](https://github.com/bastani-inc/atomic/issues/4959))
28
+ - Fixed Gemini 2.x on Google and Vertex rejecting a parallel tool batch when a result other than the last one contains an image: every function response of the batch now stays in one turn, in call order, and the image turns follow it ([#5048](https://github.com/bastani-inc/atomic/issues/5048))
29
+ - Fixed `retryAssistantCall()` and `failureRetryDelayMs()` capping a server retry hint at `RetryPolicy.maxAgentDelayMs` when `maxRetryDelayMs` is not set. An unset `maxRetryDelayMs` now caps the hint at the documented 60 seconds, so a lower agent backoff cap no longer cuts a server's requested wait short; `maxRetryDelayMs: 0` still caps it at `maxAgentDelayMs`
30
+
31
+ ### Removed
32
+
33
+ - Removed the `radius` provider, its OAuth flow and models, and the build-time fetch of its catalog from radius.pi.dev. The generic `pi-messages` API stays available for custom providers ([#5174](https://github.com/bastani-inc/atomic/issues/5174))
34
+
7
35
  ## [0.9.88-alpha.1] - 2026-11-16
8
36
 
9
37
  ### Changed
@@ -1 +1 @@
1
- {"schemaVersion":6,"generatedAt":"2026-11-16T17:18:11.990Z","structureHash":"2fa556636310150e5463bdb1b4b140ca57ce9eb26d191105dbfa4075eaf5f436","files":{"amazon-bedrock.json":"a61e21f4d91c0d3274747511da037939b570af4e9ae417d1f031b6b685003f97","ant-ling.json":"628feab3ef6c7d80ce96f75999804e1d9f05fec3851e5302e30fff3b69db90f6","anthropic.json":"bcb41bae2d7b1f499903851cdadf3119cb58bf9c9fd434203a89f458746b2d06","azure.json":"3857360054d41814cf9623db124dcb3d784c244c9720a890c39d9fe4731cbae7","baseten.json":"47d10c8050601eb88757def4fc957cdba769dacec4aeb3b0c3f39c41e442330e","cerebras.json":"2eb969b2956844f9a641d3de52c19f1791293c58f607282fb3b0ebfe85ff66f8","cloudflare-ai-gateway.json":"476a7f2284062f3a0cc0c933781e2cca6b181b44fbb6ca8deaf22fa9cdc23148","cloudflare-workers-ai.json":"2ef8c6ccb217a574efcd562da45f59966b07a52d7f0ce92de01523513e92753b","deepseek.json":"10a296fb3e898f7715c80890c8af0af4f5fd58f22dbcd6612fdc5d762157ccdc","fireworks.json":"3bdff96d68180086974743577ca45b957a5d8fccfad5a4ff976895d6f3e10ac7","github-copilot.json":"8194f2f0b536f994bc39cbdf90a68668ce2f45ea59046ab38b8c45ad335bb4f3","google-vertex.json":"e4e1e67887c581d83140d7092314f6f767778160806369c9947dbaba370bef05","google.json":"842ef1dd3150a020d06bb658db69626b1cec05ef29b72405a7989c803b38a997","groq.json":"087df37206e9eed8b10f1e558e4c496289bef60074b7e8afba4f20fb102b4ec2","huggingface.json":"d3700227e8b66b5e0f60b22e006c4ebc8978e3340ca18af29eb3b21c5e40c963","kimi-coding.json":"7980156c11b7abf7667aab8b2e1d9c006106f65a7b64a9dc960b8a7891270079","meta.json":"6ccc391fc86586638b4a2f26420f0e4763fccce04d746665cbd55f477124bb3b","minimax-cn.json":"fa15d1f67a07046d38e191af9bd97ed922ba45a99a11af4ad281151cc6b762aa","minimax.json":"1e0459dda3858ea24151182106fc4179b95f43a0a8dffc1c3d2e7db4c2d9206e","mistral.json":"efac2474fc22cf48215bf79222e47df8186a1e880ddc0bed3e0fe7947bc6660e","moonshotai-cn.json":"1a15468b1edf9205956e4c5ea41fc4cacc14eabf00523b9143e23a38264f57f7","moonshotai.json":"f31cdf2e6c81a403c4cb0e6b7e759ceff2820f966b08dbec80cfafa3f80dfc63","nvidia.json":"9308638c233cb1b47ce5d7fe28718068d4ebedcd0b20682e4c5de0209153f32e","openai-codex.json":"79856e655a4cdf5ad32f178dd001cbfda5d13e68006ad8aade0bc3636f5faabb","openai-decisions.json":"0c7d54fcbac5e7388872a85c0db7f336c5a57c82d403266e9ae04f87561daf4f","openai-images.json":"95e906730507ae8adcd49afa81fc21f7cee13c12842a71ba04ab62c59637bdb6","openai.json":"c51bffed14b4bdfb15fbffef068a9c07e973d36dd7490397d5bb7d00483752b3","opencode-go.json":"50c2c7a7815bdd1516c5e06029f7b659b2ecdc69d86d0ba9a1453eb337d039c8","opencode.json":"871ce423a2da070351d640326d06fe3d8eae4bf55e48655b7bd168f139c33d2f","openrouter.json":"2630f86fcd610d50fdf0b65f6760e27f9f1d3776838728d347f039560ec5c214","qwen-token-plan-cn.json":"acdcd16ff61cb48856c60f3190e32574546ffb5a7f1fd7fe4c759ad83f217082","qwen-token-plan-individual-cn.json":"50e4cc19f732a3f57813af5da0b908ebf26ff907f09f0f32f64d6c102866fc66","qwen-token-plan-individual.json":"d48740c24107d42b952dd1c4fbbc09cb9d85c5f439ded3e92b7b462e97f8e38f","qwen-token-plan.json":"4018b952fae26a99eb296e2846c74ee4e919d4cd50ef0c564655b95dccffa203","together.json":"e3c6f7e9ac64a75e7e395e614f0fee85a45f8c34463dc8bcfe0e7141167451b1","typesafe.json":"938c89dfb6f636dce1483ec6acc739af4b881f61003d007807a74414eb2bf357","vercel-ai-gateway.json":"19b5c5b38d936099971106164e28524a1b76f39ae6a86fbd1167515ae2636589","xai.json":"59f8a7bdf14e79ba1b0d0a37e56251bbf100420bdac7d6af5942508fdb990f11","xiaomi-token-plan-ams.json":"bfd33741da693bdb8e8ebd4e7b90c3e90820aa18432ad081a5a98db13c6bd296","xiaomi-token-plan-cn.json":"4b61d78feae3a926fda918c3fd3a9afaf2ca60c1bba0af8270a5398fb50a983e","xiaomi-token-plan-sgp.json":"b05a197ce24fd69fc9440f4ba929984ac7a0fefbe8083268734b422e721987ec","xiaomi.json":"495b5fddf3c3ec8904fecc15c4c19536f4961dce7b51512b6909d2df2e739824","zai-coding-cn.json":"cc9e0768e726ef55d2b7af853ac5f3585dc72575932cb38840a3877d18736b78","zai.json":"58e6642fdfb736f0b9a4a277c760c536a3cea66a030abbfb2615f7b2851d5c6f"}}
1
+ {"schemaVersion":6,"generatedAt":"2026-11-16T18:14:21.354Z","structureHash":"2fa556636310150e5463bdb1b4b140ca57ce9eb26d191105dbfa4075eaf5f436","files":{"amazon-bedrock.json":"a61e21f4d91c0d3274747511da037939b570af4e9ae417d1f031b6b685003f97","ant-ling.json":"628feab3ef6c7d80ce96f75999804e1d9f05fec3851e5302e30fff3b69db90f6","anthropic.json":"bcb41bae2d7b1f499903851cdadf3119cb58bf9c9fd434203a89f458746b2d06","azure.json":"3857360054d41814cf9623db124dcb3d784c244c9720a890c39d9fe4731cbae7","baseten.json":"47d10c8050601eb88757def4fc957cdba769dacec4aeb3b0c3f39c41e442330e","cerebras.json":"2eb969b2956844f9a641d3de52c19f1791293c58f607282fb3b0ebfe85ff66f8","cloudflare-ai-gateway.json":"476a7f2284062f3a0cc0c933781e2cca6b181b44fbb6ca8deaf22fa9cdc23148","cloudflare-workers-ai.json":"2ef8c6ccb217a574efcd562da45f59966b07a52d7f0ce92de01523513e92753b","deepseek.json":"10a296fb3e898f7715c80890c8af0af4f5fd58f22dbcd6612fdc5d762157ccdc","fireworks.json":"3bdff96d68180086974743577ca45b957a5d8fccfad5a4ff976895d6f3e10ac7","github-copilot.json":"8194f2f0b536f994bc39cbdf90a68668ce2f45ea59046ab38b8c45ad335bb4f3","google-vertex.json":"e4e1e67887c581d83140d7092314f6f767778160806369c9947dbaba370bef05","google.json":"842ef1dd3150a020d06bb658db69626b1cec05ef29b72405a7989c803b38a997","groq.json":"087df37206e9eed8b10f1e558e4c496289bef60074b7e8afba4f20fb102b4ec2","huggingface.json":"d3700227e8b66b5e0f60b22e006c4ebc8978e3340ca18af29eb3b21c5e40c963","kimi-coding.json":"7980156c11b7abf7667aab8b2e1d9c006106f65a7b64a9dc960b8a7891270079","meta.json":"6ccc391fc86586638b4a2f26420f0e4763fccce04d746665cbd55f477124bb3b","minimax-cn.json":"fa15d1f67a07046d38e191af9bd97ed922ba45a99a11af4ad281151cc6b762aa","minimax.json":"1e0459dda3858ea24151182106fc4179b95f43a0a8dffc1c3d2e7db4c2d9206e","mistral.json":"efac2474fc22cf48215bf79222e47df8186a1e880ddc0bed3e0fe7947bc6660e","moonshotai-cn.json":"1a15468b1edf9205956e4c5ea41fc4cacc14eabf00523b9143e23a38264f57f7","moonshotai.json":"f31cdf2e6c81a403c4cb0e6b7e759ceff2820f966b08dbec80cfafa3f80dfc63","nvidia.json":"9308638c233cb1b47ce5d7fe28718068d4ebedcd0b20682e4c5de0209153f32e","openai-codex.json":"79856e655a4cdf5ad32f178dd001cbfda5d13e68006ad8aade0bc3636f5faabb","openai-decisions.json":"0c7d54fcbac5e7388872a85c0db7f336c5a57c82d403266e9ae04f87561daf4f","openai-images.json":"95e906730507ae8adcd49afa81fc21f7cee13c12842a71ba04ab62c59637bdb6","openai.json":"c51bffed14b4bdfb15fbffef068a9c07e973d36dd7490397d5bb7d00483752b3","opencode-go.json":"50c2c7a7815bdd1516c5e06029f7b659b2ecdc69d86d0ba9a1453eb337d039c8","opencode.json":"871ce423a2da070351d640326d06fe3d8eae4bf55e48655b7bd168f139c33d2f","openrouter.json":"b35cdabe57116a480ce4cf3d661a701e03854717eb60fd752db052a3c91156d1","qwen-token-plan-cn.json":"acdcd16ff61cb48856c60f3190e32574546ffb5a7f1fd7fe4c759ad83f217082","qwen-token-plan-individual-cn.json":"50e4cc19f732a3f57813af5da0b908ebf26ff907f09f0f32f64d6c102866fc66","qwen-token-plan-individual.json":"d48740c24107d42b952dd1c4fbbc09cb9d85c5f439ded3e92b7b462e97f8e38f","qwen-token-plan.json":"4018b952fae26a99eb296e2846c74ee4e919d4cd50ef0c564655b95dccffa203","together.json":"e3c6f7e9ac64a75e7e395e614f0fee85a45f8c34463dc8bcfe0e7141167451b1","typesafe.json":"938c89dfb6f636dce1483ec6acc739af4b881f61003d007807a74414eb2bf357","vercel-ai-gateway.json":"19b5c5b38d936099971106164e28524a1b76f39ae6a86fbd1167515ae2636589","xai.json":"59f8a7bdf14e79ba1b0d0a37e56251bbf100420bdac7d6af5942508fdb990f11","xiaomi-token-plan-ams.json":"bfd33741da693bdb8e8ebd4e7b90c3e90820aa18432ad081a5a98db13c6bd296","xiaomi-token-plan-cn.json":"4b61d78feae3a926fda918c3fd3a9afaf2ca60c1bba0af8270a5398fb50a983e","xiaomi-token-plan-sgp.json":"b05a197ce24fd69fc9440f4ba929984ac7a0fefbe8083268734b422e721987ec","xiaomi.json":"495b5fddf3c3ec8904fecc15c4c19536f4961dce7b51512b6909d2df2e739824","zai-coding-cn.json":"cc9e0768e726ef55d2b7af853ac5f3585dc72575932cb38840a3877d18736b78","zai.json":"58e6642fdfb736f0b9a4a277c760c536a3cea66a030abbfb2615f7b2851d5c6f"}}