@ex-machina/opencode-anthropic-auth 1.8.4 → 1.8.5
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/README.md +1 -1
- package/dist/config.js +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -114,7 +114,7 @@ The plugin reads the following environment variables:
|
|
|
114
114
|
- **`ANTHROPIC_INSECURE`** — Skips TLS certificate verification. Behavior differs by OpenCode version:
|
|
115
115
|
- **OpenCode v1** — Set to `1` or `true` to skip verification. Only effective when `ANTHROPIC_BASE_URL` is also set.
|
|
116
116
|
- **OpenCode v2** — Not supported. OpenCode v2 plugin request hooks cannot disable TLS verification. If set, the plugin logs a warning and leaves verification enabled; requests to an untrusted or self-signed `ANTHROPIC_BASE_URL` will fail.
|
|
117
|
-
- **`ANTHROPIC_CLAUDE_CODE_VERSION`** — Overrides the Claude Code version reported to Anthropic for both release lines. Must be `major.minor.patch` (for example, `2.1.
|
|
117
|
+
- **`ANTHROPIC_CLAUDE_CODE_VERSION`** — Overrides the Claude Code version reported to Anthropic for both release lines. Must be `major.minor.patch` (for example, `2.1.280`). Defaults to the bundled version; a malformed value is logged and the bundled version is used instead. A value older than the bundled version is honored but logs a warning, since reporting an older version can make newer models reject the request. Read once when the plugin loads, so restart OpenCode after changing it.
|
|
118
118
|
|
|
119
119
|
Anthropic gates model access on the reported Claude Code version server-side, returning a 400 `claude_code_version_too_old` error for models that require a newer client. `ANTHROPIC_CLAUDE_CODE_VERSION` lets you raise the reported version without waiting for a plugin release.
|
|
120
120
|
|
package/dist/config.js
CHANGED
|
@@ -14,7 +14,7 @@ const VERSION_PATTERN = /^\d+\.\d+\.\d+$/;
|
|
|
14
14
|
* Is `candidate` an older Claude Code release than `baseline`?
|
|
15
15
|
*
|
|
16
16
|
* Both arguments must already match `VERSION_PATTERN`. Components are compared
|
|
17
|
-
* numerically rather than lexically — `2.1.99` sorts after `2.1.
|
|
17
|
+
* numerically rather than lexically — `2.1.99` sorts after `2.1.280` as a
|
|
18
18
|
* string but is the older release — and as `BigInt`, so an unbounded component
|
|
19
19
|
* cannot silently lose precision the way `Number` would.
|
|
20
20
|
*/
|
package/dist/constants.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export declare const CCH_POSITIONS: number[];
|
|
|
22
22
|
* newer is required"). Keep this at or above the latest published
|
|
23
23
|
* `@anthropic-ai/claude-code` release, otherwise new models are unreachable.
|
|
24
24
|
*/
|
|
25
|
-
export declare const CLAUDE_CODE_VERSION = "2.1.
|
|
25
|
+
export declare const CLAUDE_CODE_VERSION = "2.1.280";
|
|
26
26
|
export declare const CLAUDE_CODE_ENTRYPOINT = "sdk-cli";
|
|
27
27
|
/**
|
|
28
28
|
* Build the `user-agent` value for a reported Claude Code version.
|
package/dist/constants.js
CHANGED
|
@@ -32,7 +32,7 @@ export const CCH_POSITIONS = [4, 7, 20];
|
|
|
32
32
|
* newer is required"). Keep this at or above the latest published
|
|
33
33
|
* `@anthropic-ai/claude-code` release, otherwise new models are unreachable.
|
|
34
34
|
*/
|
|
35
|
-
export const CLAUDE_CODE_VERSION = '2.1.
|
|
35
|
+
export const CLAUDE_CODE_VERSION = '2.1.280';
|
|
36
36
|
export const CLAUDE_CODE_ENTRYPOINT = 'sdk-cli';
|
|
37
37
|
/**
|
|
38
38
|
* Build the `user-agent` value for a reported Claude Code version.
|