opencode-anthropic-fix 0.1.21 → 0.1.22
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/index.mjs +6 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -5390,18 +5390,21 @@ process.once("beforeExit", _beforeExitHandler);
|
|
|
5390
5390
|
// Request building helpers (extracted from original fetch interceptor)
|
|
5391
5391
|
// ---------------------------------------------------------------------------
|
|
5392
5392
|
|
|
5393
|
-
const FALLBACK_CLAUDE_CLI_VERSION = "2.1.
|
|
5393
|
+
const FALLBACK_CLAUDE_CLI_VERSION = "2.1.116";
|
|
5394
5394
|
const CLAUDE_CODE_NPM_LATEST_URL = "https://registry.npmjs.org/@anthropic-ai/claude-code/latest";
|
|
5395
|
-
const CLAUDE_CODE_BUILD_TIME = "2026-04-
|
|
5395
|
+
const CLAUDE_CODE_BUILD_TIME = "2026-04-20T13:57:26Z";
|
|
5396
5396
|
|
|
5397
5397
|
// The @anthropic-ai/sdk version bundled with Claude Code.
|
|
5398
5398
|
// This is distinct from the CLI version and goes in X-Stainless-Package-Version.
|
|
5399
5399
|
// v2.1.107 switched from @anthropic-ai/sdk v0.208.0 to v0.81.0 (confirmed via bundle var x$H="0.81.0").
|
|
5400
|
-
// Still 0.81.0 in v2.1.
|
|
5400
|
+
// Still 0.81.0 in v2.1.116 (verified via strings extraction from native Bun binary:
|
|
5401
|
+
// 2.1.116 has `D6H="0.81.0"`, 2.1.114 had `C8H="0.81.0"` — same literal, different minifier symbol).
|
|
5401
5402
|
const ANTHROPIC_SDK_VERSION = "0.81.0";
|
|
5402
5403
|
|
|
5403
5404
|
// Map of CLI version → bundled SDK version (update when CLI version changes)
|
|
5404
5405
|
const CLI_TO_SDK_VERSION = new Map([
|
|
5406
|
+
["2.1.116", "0.81.0"],
|
|
5407
|
+
["2.1.115", "0.81.0"],
|
|
5405
5408
|
["2.1.114", "0.81.0"],
|
|
5406
5409
|
["2.1.113", "0.81.0"],
|
|
5407
5410
|
["2.1.112", "0.81.0"],
|