From 00d3b831fc74aecde4617a008f0f2292064d72a5 Mon Sep 17 00:00:00 2001 From: Kamil Jopek Date: Tue, 24 Mar 2026 16:17:47 -0500 Subject: feat: add Poe OAuth auth plugin (#18477) --- packages/opencode/package.json | 1 + packages/opencode/src/plugin/index.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'packages') diff --git a/packages/opencode/package.json b/packages/opencode/package.json index 97a6457cf..6cd7862c5 100644 --- a/packages/opencode/package.json +++ b/packages/opencode/package.json @@ -135,6 +135,7 @@ "opencode-gitlab-auth": "2.0.0", "opentui-spinner": "0.0.6", "partial-json": "0.1.7", + "opencode-poe-auth": "0.0.1", "remeda": "catalog:", "semver": "^7.6.3", "solid-js": "catalog:", diff --git a/packages/opencode/src/plugin/index.ts b/packages/opencode/src/plugin/index.ts index e519f9f35..5cd379078 100644 --- a/packages/opencode/src/plugin/index.ts +++ b/packages/opencode/src/plugin/index.ts @@ -11,6 +11,7 @@ import { Session } from "../session" import { NamedError } from "@opencode-ai/util/error" import { CopilotAuthPlugin } from "./copilot" import { gitlabAuthPlugin as GitlabAuthPlugin } from "opencode-gitlab-auth" +import { PoeAuthPlugin } from "opencode-poe-auth" import { Effect, Layer, ServiceMap } from "effect" import { InstanceState } from "@/effect/instance-state" import { makeRunPromise } from "@/effect/run-service" @@ -44,7 +45,7 @@ export namespace Plugin { export class Service extends ServiceMap.Service()("@opencode/Plugin") {} // Built-in plugins that are directly imported (not installed from npm) - const INTERNAL_PLUGINS: PluginInstance[] = [CodexAuthPlugin, CopilotAuthPlugin, GitlabAuthPlugin] + const INTERNAL_PLUGINS: PluginInstance[] = [CodexAuthPlugin, CopilotAuthPlugin, GitlabAuthPlugin, PoeAuthPlugin] // Old npm package names for plugins that are now built-in — skip if users still have them in config const DEPRECATED_PLUGIN_PACKAGES = ["opencode-openai-codex-auth", "opencode-copilot-auth"] -- cgit v1.2.3