Feat/genspec tui#38
Open
fredbi wants to merge 2 commits into
Open
Conversation
6edc3d8 to
9c48c39
Compare
A bubbletea front-end in a separate module (cmd/genspec-tui) that scans a Go package set and renders the Swagger spec live as the source changes: source-tree, spec (JSON/YAML with search) and diagnostics panes, an fsnotify-debounced whole-scope rescan, a scanner-options popup, a read-only navigable file viewer with an opt-in editor, mouse focus/scroll and clipboard copy. Position-backed cross-reference navigation, uniform on `f` across panes: spec node ↔ Go source, source line ↔ spec node, and diagnostic → source. Each is a persistent auto-follow mode — the driver pane keeps focus and the follower mirrors on every cursor move, with both sides highlighting the linked node. Built on a caller-owned SpecIndex (rendered line ↔ JSON pointer) and SourceIndex (pointer ↔ token.Position, nearest-ancestor both ways); the diagnostics pane is navigable and follows the position carried on each grammar.Diagnostic. The spec-side index uses encoding/json/jsontext, so the module REQUIRES GOEXPERIMENT=jsonv2 to build and test. Kept out of the lean library via its own go.mod (replace → ../..); bubbletea deps stay off the library. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
Tie cmd/genspec-tui into the repo as a second module via go.work, and add its CI: a monorepo test workflow, release/tag automation and dependabot, plus the lint config and .gitignore (go.work.sum is generated, not committed). The TUI module builds under GOEXPERIMENT=jsonv2 (jsontext); official binaries/wasm are pinned to go1.26 with the flag, and users building their own are warned. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
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.
Change type
Please select: 🆕 New feature or enhancement|🔧 Bug fix'|📃 Documentation update
Short description
Fixes
Full description
Checklist