opencode-anthropic-fix 0.1.5 → 0.1.6

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 +5 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -5061,7 +5061,7 @@ process.once("beforeExit", _beforeExitHandler);
5061
5061
 
5062
5062
  const FALLBACK_CLAUDE_CLI_VERSION = "2.1.97";
5063
5063
  const CLAUDE_CODE_NPM_LATEST_URL = "https://registry.npmjs.org/@anthropic-ai/claude-code/latest";
5064
- const CLAUDE_CODE_BUILD_TIME = "2026-04-08T20:46:46Z";
5064
+ const CLAUDE_CODE_BUILD_TIME = "2026-04-13T19:06:08Z";
5065
5065
 
5066
5066
  // The @anthropic-ai/sdk version bundled with Claude Code v2.1.97.
5067
5067
  // This is distinct from the CLI version and goes in X-Stainless-Package-Version.
@@ -6613,6 +6613,10 @@ function buildRequestHeaders(
6613
6613
  requestHeaders.set("x-stainless-lang", "js");
6614
6614
  requestHeaders.set("x-stainless-os", getStainlessOs(process.platform));
6615
6615
  // Real CC sends 0.81.0 (confirmed via proxy capture), not the internal 0.208.0.
6616
+ // WATCH: most-likely-to-drift mimesis constant. Stable v2.1.97 → v2.1.105 (only
6617
+ // the minifier identifier renamed, d66 → g86). Re-verify on every upstream bump:
6618
+ // rg -n '"0\.\d+\.\d+"' _tmp_claude_pkg/<version>/package/cli.js | rg -C2 stainless
6619
+ // See docs/future-improvements.md §7 and claude-code-reverse-engineering.md §16.
6616
6620
  requestHeaders.set("x-stainless-package-version", "0.81.0");
6617
6621
  // Real CC on Windows/Node reports "node" — confirmed via proxy capture.
6618
6622
  requestHeaders.set("x-stainless-runtime", "node");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-anthropic-fix",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "license": "GPL-3.0-or-later",
5
5
  "main": "./index.mjs",
6
6
  "files": [