Skip to content

fix: resolve GitlabAuthPlugin type incompatibility#92

Merged
kulvirgit merged 1 commit intomainfrom
fix/typecheck-plugin-type
Mar 7, 2026
Merged

fix: resolve GitlabAuthPlugin type incompatibility#92
kulvirgit merged 1 commit intomainfrom
fix/typecheck-plugin-type

Conversation

@kulvirgit
Copy link
Copy Markdown
Collaborator

Summary

  • Fix TS2322 typecheck error in src/plugin/index.ts caused by @gitlab/opencode-gitlab-auth depending on @opencode-ai/plugin@1.2.10 (npm) while workspace has @1.2.20
  • The _HeyApiClient protected property differs between versions, causing type incompatibility
  • Cast GitlabAuthPlugin to PluginInstance since the types are structurally compatible at runtime

Test plan

  • Full turbo typecheck passes (13/13 packages)
  • All 1561 tests pass (0 failures)
  • Pre-push hook passes without --no-verify

`@gitlab/opencode-gitlab-auth` depends on `@opencode-ai/plugin@1.2.10` (npm)
while the workspace has `@opencode-ai/plugin@1.2.20`. The `_HeyApiClient`
protected property differs between versions, causing a TS2322 error.
Cast to `PluginInstance` since the types are structurally compatible at runtime.

Co-Authored-By: Kai (Claude Opus 4.6) <noreply@anthropic.com>
@kulvirgit kulvirgit merged commit 1a00dd9 into main Mar 7, 2026
7 of 12 checks passed
@kulvirgit kulvirgit deleted the fix/typecheck-plugin-type branch March 9, 2026 20:50
anandgupta42 pushed a commit that referenced this pull request Mar 17, 2026
fix: resolve GitlabAuthPlugin type incompatibility
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant