feat(plugin): add DigitalOcean OAuth + Inference Routers (#26095)

This commit is contained in:
Musa 2026-05-12 14:22:40 -07:00 committed by GitHub
commit 159964b172
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 692 additions and 5 deletions

View file

@ -8,10 +8,9 @@ import type {
UserMessage,
Message,
Part,
Auth,
Config as SDKConfig,
} from "@opencode-ai/sdk"
import type { Provider as ProviderV2, Model as ModelV2 } from "@opencode-ai/sdk/v2"
import type { Provider as ProviderV2, Model as ModelV2, Auth } from "@opencode-ai/sdk/v2"
import type { BunShell } from "./shell.js"
import { type ToolDefinition } from "./tool.js"
@ -153,6 +152,7 @@ export type AuthHook = {
type: "success"
key: string
provider?: string
metadata?: Record<string, string>
}
| {
type: "failed"
@ -177,7 +177,7 @@ export type AuthOAuthResult = { url: string; instructions: string } & (
accountId?: string
enterpriseUrl?: string
}
| { key: string }
| { key: string; metadata?: Record<string, string> }
))
| {
type: "failed"
@ -198,7 +198,7 @@ export type AuthOAuthResult = { url: string; instructions: string } & (
accountId?: string
enterpriseUrl?: string
}
| { key: string }
| { key: string; metadata?: Record<string, string> }
))
| {
type: "failed"