From 62f609755a28de16499d2444156464ac9d04738f Mon Sep 17 00:00:00 2001 From: diegosouzapw Date: Mon, 18 May 2026 19:30:01 -0300 Subject: [PATCH] fix(types): add explicit cast to silence TS7053 on FREE_PROVIDERS string index noImplicitAny check rejects FREE_PROVIDERS[resolvedId] because resolveProviderId returns string but FREE_PROVIDERS has literal key types. Cast to Record to express the intent clearly. --- src/sse/services/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sse/services/auth.ts b/src/sse/services/auth.ts index 2a42030229..358acd45ba 100644 --- a/src/sse/services/auth.ts +++ b/src/sse/services/auth.ts @@ -794,7 +794,7 @@ export async function getProviderCredentials( // noAuth free providers (e.g. opencode) need no DB connection — return synthetic credentials // so the executor receives a valid credentials object without auth headers being added. const resolvedId = resolveProviderId(provider); - if (FREE_PROVIDERS[resolvedId]?.noAuth) { + if ((FREE_PROVIDERS as Record)[resolvedId]?.noAuth) { return { apiKey: null, accessToken: null,