feat: TUI pipeline builder (Phase 1 MVP) + auto-versioning#92
Merged
benbernard merged 5 commits intomasterfrom Feb 23, 2026
Merged
feat: TUI pipeline builder (Phase 1 MVP) + auto-versioning#92benbernard merged 5 commits intomasterfrom
benbernard merged 5 commits intomasterfrom
Conversation
Implements the core data model for the TUI pipeline builder: - types.ts: All TypeScript types (Stage, Fork, PipelineState, PipelineAction union, etc.) - reducer.ts: pipelineReducer with undo/redo middleware, all action handlers - selectors.ts: getActivePath, isDownstreamOfError, getStageOutput, etc. - undo.ts: extractSnapshot, describeAction, UNDOABLE_ACTIONS set Also fixes OpenTUI prop usage (color -> fg, backgroundColor -> bg) in modal components to resolve type errors. Includes 42 unit tests covering add/delete/move stages, undo/redo, toggle enabled, error propagation, cursor movement, and selectors. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Wire `recs tui` subcommand in bin/recs.ts (spawns bin/recs-tui.ts) - Add bin/recs-tui.ts CLI entry with --session, --pipeline, --list, --clean - Add src/tui/index.tsx with launchTui() using OpenTUI React renderer - Add src/tui/components/App.tsx root component with welcome/main scaffolding - Add src/tui/utils/fuzzy-match.ts for AddStageModal search (13 tests) - Configure tsconfig.json for JSX (react-jsx, @opentui/react, .tsx includes) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- serialization.ts: exportAsPipeScript() for multi-line shell scripts with shebang and proper shellEscape(), exportAsChainCommand() for single-line recs chain format, copyToClipboard() via pbcopy/xclip - ExportPicker.tsx: format picker modal (pipe script / chain / save) - 17 tests for shell escaping, pipe script output, and chain format Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
11 integration tests exercising the real reducer, executor, and operations together: - Full pipeline lifecycle (grep → sort, grep → sort → collate) - Undo/redo with execution verification - Cache invalidation after stage modification - Error propagation and isDownstreamOfError - Export round-trip (pipe script and chain command) - Toggle stage enabled/disabled during execution - Large pipeline (10 stages) with full path execution - Input op integration (fromcsv with file input) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Fix P0 bug where UPDATE_STAGE_ARGS and TOGGLE_STAGE did not invalidate cache entries, causing the inspector to show stale results after editing a stage's arguments or toggling enabled state. Cache invalidation now cascades to all downstream stages in the fork. Wire missing keybindings: x (export pipe script), X (ExportPicker), r (re-run from cursor), t (cycle inspector view), J/K (reorder stages), v (export records to temp file), Ctrl+C (quit). Remove Phase 2+ shortcuts (f, b, i, p) from HelpPanel and StatusBar. Additional UX fixes: auto-calculate RecordTable column widths from data, show "N of M records (X%)" ratio in InspectorHeader, increase pipeline panel width from 28 to 32. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Performance Benchmark Results
103 benchmarks: 7 faster, 19 slower, 77 within noise (10%)
Full benchmark resultsJSON Parsing
JSON Serialization
KeySpec Access
Core Operations
Pipeline Overhead
Record Creation & Serialization
Chain vs Pipe
Line Reading
|
benbernard
added a commit
that referenced
this pull request
Feb 23, 2026
feat: TUI pipeline builder (Phase 1 MVP) + auto-versioning
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
TUI Pipeline Builder (Phase 1 MVP)
Interactive TUI for building RecordStream pipelines, built with OpenTUI + React.
createOperation(). Handles line-oriented, bulk-content, and self-contained input ops.xcopies pipeline as shell pipe script to clipboard.Xopens format picker (pipe script / chain command / save to file).?).recs tui [file]orrecs tui --helpNew files: 32 source files under
src/tui/+bin/recs-tui.tsAuto-Versioning
package.jsonversion stamped into build artifacts but not committed backAdvisory Benchmarks
Test plan
🤖 Generated with Claude Code