opencode-crs-bedrock 1.0.7 → 1.0.8

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.ts +2 -2
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -1074,8 +1074,8 @@ export const CRSAuthPlugin: Plugin = async ({ client }: PluginContext) => {
1074
1074
 
1075
1075
  const auth = await getAuth();
1076
1076
  // OpenCode stores API keys as 'key' field when type is 'api'
1077
- const apiKey = (auth.key || auth.apiKey) as string | undefined;
1078
- const baseURL = (auth.baseURL as string | undefined) || process.env.ANTHROPIC_BASE_URL || "https://crs.tonob.net/api";
1077
+ const apiKey = auth.key as string | undefined;
1078
+ const baseURL = process.env.ANTHROPIC_BASE_URL || "https://crs.tonob.net/api";
1079
1079
 
1080
1080
  debugLog("Auth details:", { hasApiKey: !!apiKey, baseURL, authKeys: Object.keys(auth) });
1081
1081
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-crs-bedrock",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "OpenCode plugin for FeedMob CRS proxy to AWS Bedrock Anthropic models",
5
5
  "type": "module",
6
6
  "main": "index.ts",