@xtruder/opencode-claude-max-plugin 0.4.4 → 0.4.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/build/index.js CHANGED
@@ -1643,7 +1643,7 @@ function resolveAuth(options) {
1643
1643
  return { apiKey: process.env.ANTHROPIC_API_KEY, isOAuth: false };
1644
1644
  }
1645
1645
  const credentialsPath = typeof options.credentialsPath === "string" ? options.credentialsPath : undefined;
1646
- const creds = getCachedCredentials(credentialsPath);
1646
+ const creds = readClaudeCredentials(credentialsPath);
1647
1647
  if (creds) {
1648
1648
  return { apiKey: null, authToken: creds.accessToken, isOAuth: true };
1649
1649
  }
package/build/server.js CHANGED
@@ -1643,7 +1643,7 @@ function resolveAuth(options) {
1643
1643
  return { apiKey: process.env.ANTHROPIC_API_KEY, isOAuth: false };
1644
1644
  }
1645
1645
  const credentialsPath = typeof options.credentialsPath === "string" ? options.credentialsPath : undefined;
1646
- const creds = getCachedCredentials(credentialsPath);
1646
+ const creds = readClaudeCredentials(credentialsPath);
1647
1647
  if (creds) {
1648
1648
  return { apiKey: null, authToken: creds.accessToken, isOAuth: true };
1649
1649
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xtruder/opencode-claude-max-plugin",
3
- "version": "0.4.4",
3
+ "version": "0.4.5",
4
4
  "description": "OpenCode plugin for Claude Max/Pro subscription via @anthropic-ai/sdk - uses Claude Code OAuth credentials",
5
5
  "keywords": [
6
6
  "ai-sdk",