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
parent d9f9f1553b
commit 159964b172
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"