Skip to content

Commit 1a00dd9

Browse files
authored
Merge pull request #92 from AltimateAI/fix/typecheck-plugin-type
fix: resolve GitlabAuthPlugin type incompatibility
2 parents 473523e + 9d9e939 commit 1a00dd9

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/opencode/src/plugin/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ export namespace Plugin {
1919
const BUILTIN = ["opencode-anthropic-auth@0.0.13"]
2020

2121
// Built-in plugins that are directly imported (not installed from npm)
22-
const INTERNAL_PLUGINS: PluginInstance[] = [CodexAuthPlugin, CopilotAuthPlugin, GitlabAuthPlugin]
22+
// GitlabAuthPlugin uses a different version of @opencode-ai/plugin (from npm)
23+
// vs the workspace version, causing a type mismatch on internal HeyApiClient.
24+
// The types are structurally compatible at runtime.
25+
const INTERNAL_PLUGINS: PluginInstance[] = [CodexAuthPlugin, CopilotAuthPlugin, GitlabAuthPlugin as unknown as PluginInstance]
2326

2427
const state = Instance.state(async () => {
2528
const client = createOpencodeClient({

0 commit comments

Comments
 (0)