Flatten the OpenTUI shell into src/tui - #435
Merged
Merged
Conversation
The ANSI SemanticRole helpers and the OpenTUI UI palette both lived at theme.ts once the shells share a directory. Move the older helpers to semantic-theme.ts and point their importers at the new path; leave the OpenTUI palette API alone.
Flatten src/tui-opentui into src/tui so the shipping shell and the runner share one tree. Paths only — import and doc rewrites come next.
After the OpenTUI shell landed under src/tui/, rewrite imports, package scripts, living docs, and path fixtures so nothing still names the old tui-opentui tree. Behavior is unchanged — path rewrites only.
TheGreatAxios
force-pushed
the
merge-tui-flatten-only
branch
from
August 9, 2026 10:33
bf10420 to
71a4825
Compare
3 tasks
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
Mechanical merge of
src/tui-opentui/intosrc/tui/so the shipping shell and runner share one product root. Zero behavior change — rename + path rewrites only.semantic-theme.tsso OpenTUI can owntheme.tsgit mvof every file undersrc/tui-opentui/intosrc/tui/tui:smoke), and path fixturesWhy
The dual directory was a hangover from the OpenTUI cutover. Runner lived in
src/tui/and imported heavily fromsrc/tui-opentui/; shell files reached back intosrc/tui/. One root ends the cross-tree tax.Plan compliance
src/tui/shell/subfoldersemantic-theme.ts; OpenTUI UI palette →theme.ts)Test plan
bun run build(worktree)bun test ./src/tui— 1588 pass / 0 fail/model, gate overlay, observe, resume pickersrc/tui-opentui/in tree after mergeNotes
@intx/typesnoise (same onmain)docs/tui-opentui-packaging.md; drop stale “Ink remains production” banners inshell.ts/demo.ts