@bastani/pi-ai 0.9.75 → 0.9.76-alpha.1
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 +10 -0
- package/dist/api/anthropic-messages.d.ts.map +1 -1
- package/dist/api/anthropic-messages.js +7 -6
- package/dist/api/anthropic-messages.js.map +1 -1
- package/dist/providers/data/.manifest.json +1 -1
- package/dist/providers/data/openrouter.json +1 -1
- package/dist/utils/version.d.ts +1 -1
- package/dist/utils/version.d.ts.map +1 -1
- package/dist/utils/version.js +1 -1
- package/dist/utils/version.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,16 @@ This package is a Bastani fork of `@earendil-works/pi-ai`. Upstream history at t
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [0.9.76-alpha.1] - 2026-11-10
|
|
8
|
+
|
|
9
|
+
Claude Fable 5.2 works with an Anthropic subscription login.
|
|
10
|
+
|
|
11
|
+
- **Fable 5.2 over Claude subscriptions.** `claude-fable-5-2` no longer fails with `claude_code_version_too_old` when you sign in with an Anthropic subscription, because OAuth requests now identify as the latest Claude Code release (`2.1.322`) ([#4634](https://github.com/bastani-inc/atomic/pull/4634), upstream [#11969](https://github.com/earendil-works/pi/issues/11969)).
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
|
|
15
|
+
- Claude Fable 5.2 (`claude-fable-5-2`) works with an Anthropic subscription login. The Claude Code version sent on OAuth requests is now `2.1.322`, the latest Claude Code release, so Anthropic no longer rejects them with `claude_code_version_too_old` (upstream [#11969](https://github.com/earendil-works/pi/issues/11969))
|
|
16
|
+
|
|
7
17
|
## [0.9.75] - 2026-11-10
|
|
8
18
|
|
|
9
19
|
Claude Fable 5.2, steadier GitHub Copilot streams and SVG output that works without extra options.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"anthropic-messages.d.ts","sourceRoot":"","sources":["../../src/api/anthropic-messages.ts"],"names":[],"mappings":"AAAA,OAAO,SAAkD,MAAM,mBAAmB,CAAC;AAqBnF,OAAO,KAAK,EASX,mBAAmB,EAEnB,cAAc,EACd,aAAa,EAMb,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"anthropic-messages.d.ts","sourceRoot":"","sources":["../../src/api/anthropic-messages.ts"],"names":[],"mappings":"AAAA,OAAO,SAAkD,MAAM,mBAAmB,CAAC;AAqBnF,OAAO,KAAK,EASX,mBAAmB,EAEnB,cAAc,EACd,aAAa,EAMb,MAAM,aAAa,CAAC;AA2LrB,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC;AAE1E,MAAM,MAAM,wBAAwB,GAAG,YAAY,GAAG,SAAS,CAAC;AAkfhE,MAAM,WAAW,gBAAiB,SAAQ,aAAa;IACtD;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB;;;;;;;;;;;OAWG;IACH,eAAe,CAAC,EAAE,wBAAwB,CAAC;IAC3C;;;;;OAKG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACtE;;;;OAIG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;CACnB;AAqVD,eAAO,MAAM,MAAM,EAAE,cAAc,CAAC,oBAAoB,EAAE,gBAAgB,CAobzE,CAAC;AA+CF,eAAO,MAAM,YAAY,EAAE,cAAc,CAAC,oBAAoB,EAAE,mBAAmB,CAgDlF,CAAC"}
|
|
@@ -58,12 +58,13 @@ function getCacheControl(model, cacheRetention, env) {
|
|
|
58
58
|
//
|
|
59
59
|
// Anthropic gates newer models on the `claude-cli/<version>` user agent alone and rejects an
|
|
60
60
|
// older one with `claude_code_version_too_old`. `claude-fable-5-1` requires >= 2.1.251 (bisected
|
|
61
|
-
// against the live API: 2.1.250 -> 400, 2.1.251 -> 200)
|
|
62
|
-
// the
|
|
63
|
-
//
|
|
64
|
-
//
|
|
65
|
-
// one client through the `headers` option, whose lowercase
|
|
66
|
-
|
|
61
|
+
// against the live API: 2.1.250 -> 400, 2.1.251 -> 200), Claude Opus 5.5 requires >= 2.1.280 and
|
|
62
|
+
// `claude-fable-5-2` requires >= 2.1.290, the floors the API names in its rejections. This tracks
|
|
63
|
+
// the latest published Claude Code release (`npm view @anthropic-ai/claude-code version`), which
|
|
64
|
+
// stays above every shipped model's floor and matches what an up-to-date Claude Code sends. A
|
|
65
|
+
// caller can override it for one client through the `headers` option, whose lowercase
|
|
66
|
+
// `user-agent` key is merged last.
|
|
67
|
+
const claudeCodeVersion = "2.1.322";
|
|
67
68
|
// Claude Code 2.x tool names (canonical casing)
|
|
68
69
|
// Source: https://cchistory.mariozechner.at/data/prompts-2.1.11.md
|
|
69
70
|
// To update: https://github.com/badlogic/cchistory
|