feat(plugin): add DigitalOcean OAuth + Inference Routers (#26095)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user