feat(core): add connector authentication (#31837)

This commit is contained in:
Dax
2026-06-11 02:31:17 -04:00
committed by GitHub
parent 7ab01d6e54
commit 7489190405
47 changed files with 5433 additions and 862 deletions
@@ -14,7 +14,7 @@ export const OpencodePlugin = PluginV2.define({
process.env.OPENCODE_API_KEY ||
item.provider.env.some((env) => process.env[env]) ||
item.provider.request.body.apiKey ||
(item.provider.enabled && item.provider.enabled.via === "account"),
(item.provider.enabled && item.provider.enabled.via === "credential"),
)
evt.provider.update(item.provider.id, (provider) => {
if (!hasKey) provider.request.body.apiKey = "public"