@ex-machina/opencode-anthropic-auth 1.7.0 → 1.7.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.
package/README.md CHANGED
@@ -26,7 +26,7 @@ Add the plugin to your OpenCode configuration:
26
26
 
27
27
  ```json
28
28
  {
29
- "plugin": ["@ex-machina/opencode-anthropic-auth@1.6.1"]
29
+ "plugin": ["@ex-machina/opencode-anthropic-auth@1.7.0"]
30
30
  }
31
31
  ```
32
32
 
package/dist/auth.js CHANGED
@@ -1,5 +1,5 @@
1
- import { AUTHORIZE_URLS, CLIENT_ID, CODE_CALLBACK_URL, OAUTH_SCOPES, TOKEN_URL, } from './constants';
2
- import { generatePKCE } from './pkce';
1
+ import { AUTHORIZE_URLS, CLIENT_ID, CODE_CALLBACK_URL, OAUTH_SCOPES, TOKEN_URL, } from "./constants.js";
2
+ import { generatePKCE } from "./pkce.js";
3
3
  function generateState() {
4
4
  return crypto.randomUUID().replace(/-/g, '');
5
5
  }
package/dist/cch.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createHash } from 'node:crypto';
2
- import { CCH_POSITIONS, CCH_SALT, CLAUDE_CODE_VERSION } from './constants';
2
+ import { CCH_POSITIONS, CCH_SALT, CLAUDE_CODE_VERSION } from "./constants.js";
3
3
  /**
4
4
  * Extract text from the first user message's first text block.
5
5
  */
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import { authorize, exchange } from './auth';
2
- import { CLIENT_ID, TOKEN_URL } from './constants';
3
- import { createStrippedStream, isInsecure, mergeHeaders, rewriteRequestBody, rewriteUrl, setOAuthHeaders, } from './transform';
1
+ import { authorize, exchange } from "./auth.js";
2
+ import { CLIENT_ID, TOKEN_URL } from "./constants.js";
3
+ import { createStrippedStream, isInsecure, mergeHeaders, rewriteRequestBody, rewriteUrl, setOAuthHeaders, } from "./transform.js";
4
4
  export const AnthropicAuthPlugin = async ({ client }) => {
5
5
  return {
6
6
  auth: {
package/dist/transform.js CHANGED
@@ -1,5 +1,5 @@
1
- import { buildBillingHeaderValue } from './cch';
2
- import { CLAUDE_CODE_ENTRYPOINT, CLAUDE_CODE_IDENTITY, OPENCODE_IDENTITY_PREFIX, PARAGRAPH_REMOVAL_ANCHORS, REQUIRED_BETAS, TEXT_REPLACEMENTS, TOOL_PREFIX, USER_AGENT, } from './constants';
1
+ import { buildBillingHeaderValue } from "./cch.js";
2
+ import { CLAUDE_CODE_ENTRYPOINT, CLAUDE_CODE_IDENTITY, OPENCODE_IDENTITY_PREFIX, PARAGRAPH_REMOVAL_ANCHORS, REQUIRED_BETAS, TEXT_REPLACEMENTS, TOOL_PREFIX, USER_AGENT, } from "./constants.js";
3
3
  /**
4
4
  * Prefix a tool name with TOOL_PREFIX and uppercase the first character.
5
5
  * Claude Code uses PascalCase tool names (e.g. mcp_Bash, mcp_Read);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ex-machina/opencode-anthropic-auth",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/ex-machina-co/opencode-anthropic-auth"