chore: generate

This commit is contained in:
opencode-agent[bot] 2026-06-14 12:46:12 +00:00
commit 3ab19bfd7d
8 changed files with 1303 additions and 1866 deletions

View file

@ -14,9 +14,7 @@ export const OpencodePlugin = PluginV2.define({
if (!item) return
const integration = yield* integrations.get(Integration.ID.make(item.provider.id))
hasKey = Boolean(
process.env.OPENCODE_API_KEY ||
integration?.connections.length ||
item.provider.request.body.apiKey,
process.env.OPENCODE_API_KEY || integration?.connections.length || item.provider.request.body.apiKey,
)
evt.provider.update(item.provider.id, (provider) => {
if (!hasKey) provider.request.body.apiKey = "public"