fix(tui): inline ProgressBar to fix empty home/sidebar (#210)
Merged
FO
14d ago+70+70+01234567890123456789-3-3-0123456789
Closes #210
Root cause: @four-bytes/opencode-plugin-lib/tui-components ships raw untranspiled .jsx. The import fails to load, which takes down the whole TUI module — slots.register never runs, so home and sidebar render nothing.
Fix: Inline the ProgressBar component locally in src/progress.tsx (Apache-2.0 attribution kept), same pattern as the existing src/spinner.tsx, and swap the import in src/tui.tsx.
Tests: two regression tests in test/dist-integrity.test.ts — TUI dist must not reference tui-components, and dist/progress.jsx must exist.
Version bumped 1.8.5 → 1.8.6.
Summary by cubic
Fixes the empty home/sidebar in the TUI by replacing the broken @four-bytes/opencode-plugin-lib/tui-components import with a locally inlined ProgressBar.
- The dependency ships raw untranspiled
.jsx, which fails to load and crashes the whole TUI module before home and sidebar render. - Copies
ProgressBarintosrc/progress.tsx(Apache-2.0 attribution kept) and updates the import insrc/tui.tsx. - Adds two regression tests ensuring the TUI dist no longer references
tui-componentsand thatdist/progress.jsxis emitted. - Bumps version from
1.8.5to1.8.6.