opencode-anthropic-fix 0.1.23 → 0.1.24

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.
Files changed (2) hide show
  1. package/index.mjs +9 -4
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -5390,19 +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.117";
5393
+ const FALLBACK_CLAUDE_CLI_VERSION = "2.1.119";
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-21T17:58:52Z";
5395
+ const CLAUDE_CODE_BUILD_TIME = "2026-04-23T19:08:52Z";
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.117 (verified via strings extraction from native Bun binary;
5401
- // 84 beta flags + x-headers byte-identical to 2.1.116 — cosmetic bump).
5400
+ // Still 0.81.0 in v2.1.119 (verified via strings extraction from native Bun binary;
5401
+ // adds cache-diagnosis-2026-04-07 beta gated by GrowthBook tengu_prompt_cache_diagnostics;
5402
+ // no other beta additions/removals vs 2.1.117; OAuth flow unchanged).
5402
5403
  const ANTHROPIC_SDK_VERSION = "0.81.0";
5403
5404
 
5404
5405
  // Map of CLI version → bundled SDK version (update when CLI version changes)
5405
5406
  const CLI_TO_SDK_VERSION = new Map([
5407
+ ["2.1.119", "0.81.0"],
5406
5408
  ["2.1.117", "0.81.0"],
5407
5409
  ["2.1.116", "0.81.0"],
5408
5410
  ["2.1.115", "0.81.0"],
@@ -6219,6 +6221,7 @@ const EXPERIMENTAL_BETA_FLAGS = new Set([
6219
6221
  "advanced-tool-use-2025-11-20",
6220
6222
  "advisor-tool-2026-03-01",
6221
6223
  "afk-mode-2026-01-31",
6224
+ "cache-diagnosis-2026-04-07",
6222
6225
  "code-execution-2025-08-25",
6223
6226
  "compact-2026-01-12",
6224
6227
  "context-1m-2025-08-07",
@@ -6238,6 +6241,8 @@ const BETA_SHORTCUTS = new Map([
6238
6241
  ["1m", "context-1m-2025-08-07"],
6239
6242
  ["1m-context", "context-1m-2025-08-07"],
6240
6243
  ["context-1m", "context-1m-2025-08-07"],
6244
+ ["cache-diagnosis", "cache-diagnosis-2026-04-07"],
6245
+ ["cache-diag", "cache-diagnosis-2026-04-07"],
6241
6246
  ["context-hint", "context-hint-2026-04-09"],
6242
6247
  ["hint", "context-hint-2026-04-09"],
6243
6248
  ["fast", "fast-mode-2026-02-01"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-anthropic-fix",
3
- "version": "0.1.23",
3
+ "version": "0.1.24",
4
4
  "license": "GPL-3.0-or-later",
5
5
  "repository": {
6
6
  "type": "git",