Repository navigation
fix(inbox): load TUI panel and ship scripts/ in the npm pack - #239
Merged
Merged
Conversation
- add /** @jsxImportSource @opentui/solid */ to tui.tsx: OpenCode's bun-plugin-solid skips paths under node_modules/, so Bun's default .tsx loader transpiled the JSX with the React transform and the panel failed to load with "Cannot find package 'react'" - add scripts to the files array: core.ts resolves the CLI relative to the package, but files:["src"] excluded scripts/inbox from github: installs, so inbox state was unreadable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The OpenCode inbox plugin (installed via
github:St0nefish/agent-toolkit#master::path:plugins-opencode/inbox) had two install-time bugs, both observed on a machine where the plugin is consumed fromnode_modules/:Cannot find package 'react' imported from .../src/tui.tsx. OpenCode'sbun-plugin-solidskips paths undernode_modules/, so Bun's built-in.tsxloader transpiled the JSX with the default React transform instead of Solid's. The in-file/** @jsxImportSource @opentui/solid */pragma makes the transform explicit regardless of where the plugin is installed.scripts/inboxmissing from the packed package.core.tsresolves the inbox CLI relative to the package root (../scripts/inbox), but"files": ["src"]excludedscripts/from the npm pack, sogithub:installs never shipped it.Test plan
opencode mcp list-era plugin reconciliation no longer logsCannot find package 'react'and the inbox panel appears in the TUI.