@jacobbd/relay-ai 0.12.5 → 0.12.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.
@@ -47,6 +47,7 @@ import {
47
47
  injectClaudeCodeBillingSystemLine,
48
48
  injectClaudeIdentity,
49
49
  isBrowserRedirectOAuth,
50
+ isOpencodeApi,
50
51
  isOpencodeOAuth,
51
52
  isSdkMigratedNpm,
52
53
  isValidProviderId,
@@ -86,7 +87,7 @@ import {
86
87
  translateRequest,
87
88
  upstreamHttpStatus,
88
89
  validateCustomEndpointUrl
89
- } from "./chunk-2LUDFIZX.js";
90
+ } from "./chunk-HLPRPOIV.js";
90
91
 
91
92
  // src/registry/google-model-id.ts
92
93
  var GOOGLE_MODEL_PREFIX = "models/";
@@ -3910,7 +3911,12 @@ function buildImportProviderList(raw, authEntries) {
3910
3911
  const oauthByProviderId = /* @__PURE__ */ new Map();
3911
3912
  const covered = /* @__PURE__ */ new Set();
3912
3913
  const merged = [];
3913
- for (const provider of normalizeProviders(raw)) {
3914
+ const rawWithLegacyKeys = raw.map((provider) => {
3915
+ const authEntry = authEntries[provider.id];
3916
+ if (provider.key?.trim() || !isOpencodeApi(authEntry)) return provider;
3917
+ return { ...provider, key: authEntry.key };
3918
+ });
3919
+ for (const provider of normalizeProviders(rawWithLegacyKeys)) {
3914
3920
  const normalized = normalizeImportProviderIdentity(provider);
3915
3921
  if (covered.has(normalized.id)) continue;
3916
3922
  merged.push(normalized);
@@ -3967,7 +3973,7 @@ function listCredentialSkippedProviders(raw, authEntries, importedIds, alreadyRe
3967
3973
  if (isOpencodeOAuth(authEntries[provider.id])) continue;
3968
3974
  if (!provider.models || Object.keys(provider.models).length === 0) continue;
3969
3975
  const reason = classifyOpencodeCredentialGap(provider.id);
3970
- if (reason !== "oauth-no-token" && !registryProviderIds.has(provider.id)) continue;
3976
+ if (reason !== "oauth-no-token" && !provider.configured && !registryProviderIds.has(provider.id)) continue;
3971
3977
  skipped.push({ id: provider.id, name: provider.name, reason });
3972
3978
  }
3973
3979
  return skipped;
@@ -9800,4 +9806,4 @@ export {
9800
9806
  supportsClaudeTransparentMode,
9801
9807
  buildHttpProxyRoutes
9802
9808
  };
9803
- //# sourceMappingURL=chunk-S7HYE2FI.js.map
9809
+ //# sourceMappingURL=chunk-BK34AFR4.js.map