[PR #5402] fix: resolve typecheck errors #11384

Closed
opened 2026-02-16 18:16:13 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/5402

State: closed
Merged: No


Summary

Fixes two pre-existing TypeScript typecheck errors that were blocking builds.

Changes

  1. script/build.ts: Fixed import path for solid-plugin

    • Changed from relative path ../node_modules/@opentui/solid/scripts/solid-plugin
    • To package export: @opentui/solid/bun-plugin
    • The package exports ./bun-plugin which points to the solid-plugin file
  2. src/mcp/index.ts: Fixed Tool type mismatch

    • MCP client tools have FlexibleSchema<unknown> but Tool type expects FlexibleSchema<any>
    • Added type assertion as Tool with explanatory comment
    • Safe because schema is validated at runtime

Testing

  • Typecheck passes without errors
  • No runtime behavior changes
  • All existing functionality preserved

Related

These were pre-existing errors not related to the LM Studio support PRs.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/5402 **State:** closed **Merged:** No --- ## Summary Fixes two pre-existing TypeScript typecheck errors that were blocking builds. ## Changes 1. **script/build.ts**: Fixed import path for solid-plugin - Changed from relative path `../node_modules/@opentui/solid/scripts/solid-plugin` - To package export: `@opentui/solid/bun-plugin` - The package exports `./bun-plugin` which points to the solid-plugin file 2. **src/mcp/index.ts**: Fixed Tool type mismatch - MCP client tools have `FlexibleSchema<unknown>` but `Tool` type expects `FlexibleSchema<any>` - Added type assertion `as Tool` with explanatory comment - Safe because schema is validated at runtime ## Testing - ✅ Typecheck passes without errors - ✅ No runtime behavior changes - ✅ All existing functionality preserved ## Related These were pre-existing errors not related to the LM Studio support PRs.
yindo added the pull-request label 2026-02-16 18:16:13 -05:00
yindo closed this issue 2026-02-16 18:16:13 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11384