@sahiljassal/opencode-anthropic-auth 2.7.0 → 2.8.0
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/dist/constants.d.ts +8 -2
- package/dist/constants.js +8 -2
- package/package.json +1 -1
package/dist/constants.d.ts
CHANGED
|
@@ -34,9 +34,15 @@ export declare const ADAPTIVE_THINKING_MODEL_PATTERN: RegExp;
|
|
|
34
34
|
export declare const OAUTH_REFRESH_SKEW_MS: number;
|
|
35
35
|
export declare const CCH_SALT = "59cf53e54c78";
|
|
36
36
|
export declare const CCH_POSITIONS: number[];
|
|
37
|
-
|
|
37
|
+
/**
|
|
38
|
+
* Spoofed Claude Code version. Anthropic gates model availability on this —
|
|
39
|
+
* newer models 400 with "Claude Code X does not support this model; version
|
|
40
|
+
* Y or newer is required" once the API's minimum climbs past it. Bump when
|
|
41
|
+
* that happens; keep this in sync with real Claude Code releases.
|
|
42
|
+
*/
|
|
43
|
+
export declare const CLAUDE_CODE_VERSION = "2.1.257";
|
|
38
44
|
export declare const CLAUDE_CODE_ENTRYPOINT = "cli";
|
|
39
|
-
export declare const USER_AGENT = "claude-cli/2.1.
|
|
45
|
+
export declare const USER_AGENT = "claude-cli/2.1.257 (external, cli)";
|
|
40
46
|
/**
|
|
41
47
|
* Anchors that identify paragraphs to remove from the system prompt.
|
|
42
48
|
* Any paragraph (text between blank lines) containing one of these
|
package/dist/constants.js
CHANGED
|
@@ -45,9 +45,15 @@ export const ADAPTIVE_THINKING_MODEL_PATTERN = /claude-(opus-5|opus-4-8|opus-4-7
|
|
|
45
45
|
export const OAUTH_REFRESH_SKEW_MS = 5 * 60_000;
|
|
46
46
|
export const CCH_SALT = '59cf53e54c78';
|
|
47
47
|
export const CCH_POSITIONS = [4, 7, 20];
|
|
48
|
-
|
|
48
|
+
/**
|
|
49
|
+
* Spoofed Claude Code version. Anthropic gates model availability on this —
|
|
50
|
+
* newer models 400 with "Claude Code X does not support this model; version
|
|
51
|
+
* Y or newer is required" once the API's minimum climbs past it. Bump when
|
|
52
|
+
* that happens; keep this in sync with real Claude Code releases.
|
|
53
|
+
*/
|
|
54
|
+
export const CLAUDE_CODE_VERSION = '2.1.257';
|
|
49
55
|
export const CLAUDE_CODE_ENTRYPOINT = 'cli';
|
|
50
|
-
export const USER_AGENT =
|
|
56
|
+
export const USER_AGENT = `claude-cli/${CLAUDE_CODE_VERSION} (external, cli)`;
|
|
51
57
|
/**
|
|
52
58
|
* Anchors that identify paragraphs to remove from the system prompt.
|
|
53
59
|
* Any paragraph (text between blank lines) containing one of these
|