Skip to content

Commit 00d3b83

Browse files
authored
feat: add Poe OAuth auth plugin (anomalyco#18477)
1 parent b848b7e commit 00d3b83

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

bun.lock

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/opencode/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@
135135
"opencode-gitlab-auth": "2.0.0",
136136
"opentui-spinner": "0.0.6",
137137
"partial-json": "0.1.7",
138+
"opencode-poe-auth": "0.0.1",
138139
"remeda": "catalog:",
139140
"semver": "^7.6.3",
140141
"solid-js": "catalog:",

packages/opencode/src/plugin/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { Session } from "../session"
1111
import { NamedError } from "@opencode-ai/util/error"
1212
import { CopilotAuthPlugin } from "./copilot"
1313
import { gitlabAuthPlugin as GitlabAuthPlugin } from "opencode-gitlab-auth"
14+
import { PoeAuthPlugin } from "opencode-poe-auth"
1415
import { Effect, Layer, ServiceMap } from "effect"
1516
import { InstanceState } from "@/effect/instance-state"
1617
import { makeRunPromise } from "@/effect/run-service"
@@ -44,7 +45,7 @@ export namespace Plugin {
4445
export class Service extends ServiceMap.Service<Service, Interface>()("@opencode/Plugin") {}
4546

4647
// Built-in plugins that are directly imported (not installed from npm)
47-
const INTERNAL_PLUGINS: PluginInstance[] = [CodexAuthPlugin, CopilotAuthPlugin, GitlabAuthPlugin]
48+
const INTERNAL_PLUGINS: PluginInstance[] = [CodexAuthPlugin, CopilotAuthPlugin, GitlabAuthPlugin, PoeAuthPlugin]
4849

4950
// Old npm package names for plugins that are now built-in — skip if users still have them in config
5051
const DEPRECATED_PLUGIN_PACKAGES = ["opencode-openai-codex-auth", "opencode-copilot-auth"]

0 commit comments

Comments
 (0)