op-anthropic-auth-v2 0.1.0 → 0.1.1

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.js +2 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -20,12 +20,12 @@ const PARAGRAPH_REMOVAL_ANCHORS = [
20
20
  const TEXT_REPLACEMENTS = [
21
21
  { match: "if OpenCode honestly", replacement: "if the assistant honestly" },
22
22
  ];
23
- const CLAUDE_CODE_VERSION = "2.1.87";
23
+ const CLAUDE_CODE_VERSION = "2.1.257";
24
24
  const CLAUDE_CODE_ENTRYPOINT = "sdk-cli";
25
25
  const BILLING_HEADER_PREFIX = "x-anthropic-billing-header:";
26
26
  const CCH_SALT = "59cf53e54c78";
27
27
  const CCH_POSITIONS = [4, 7, 20];
28
- const REQUEST_USER_AGENT = "claude-cli/2.1.87 (external, cli)";
28
+ const REQUEST_USER_AGENT = `claude-cli/${CLAUDE_CODE_VERSION} (external, cli)`;
29
29
  const TOKEN_USER_AGENT = "axios/1.13.6";
30
30
 
31
31
  const AUTH_FILE =
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "op-anthropic-auth-v2",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "OpenCode 2 plugin for Anthropic OAuth with Claude Pro/Max",
5
5
  "type": "module",
6
6
  "main": "./index.js",