diff --git a/work-items/open/20260531-074258-tui-extract-cli-parsing/artifacts/.gitkeep b/work-items/closed/20260531-074258-tui-extract-cli-parsing/artifacts/.gitkeep similarity index 100% rename from work-items/open/20260531-074258-tui-extract-cli-parsing/artifacts/.gitkeep rename to work-items/closed/20260531-074258-tui-extract-cli-parsing/artifacts/.gitkeep diff --git a/work-items/open/20260531-074258-tui-extract-cli-parsing/item.md b/work-items/closed/20260531-074258-tui-extract-cli-parsing/item.md similarity index 97% rename from work-items/open/20260531-074258-tui-extract-cli-parsing/item.md rename to work-items/closed/20260531-074258-tui-extract-cli-parsing/item.md index 6110c019..0713be7a 100644 --- a/work-items/open/20260531-074258-tui-extract-cli-parsing/item.md +++ b/work-items/closed/20260531-074258-tui-extract-cli-parsing/item.md @@ -2,12 +2,12 @@ id: 20260531-074258-tui-extract-cli-parsing slug: tui-extract-cli-parsing title: TUI: extract CLI parsing from main.rs -status: open +status: closed kind: task priority: P2 labels: [tui, cleanup] created_at: 2026-05-31T07:42:58Z -updated_at: 2026-05-31T07:42:58Z +updated_at: 2026-05-31T13:38:30Z assignee: null legacy_ticket: null --- diff --git a/work-items/closed/20260531-074258-tui-extract-cli-parsing/resolution.md b/work-items/closed/20260531-074258-tui-extract-cli-parsing/resolution.md new file mode 100644 index 00000000..ec46abf2 --- /dev/null +++ b/work-items/closed/20260531-074258-tui-extract-cli-parsing/resolution.md @@ -0,0 +1,19 @@ +This ticket is completed/superseded by `insomnia-crate-cli-owner`. + +The original goal was to remove CLI parsing from `crates/tui/src/main.rs` so the TUI crate would stop owning top-level product CLI parsing. The later `insomnia-crate-cli-owner` implementation went further: + +- the product binary moved from package `tui` to package `insomnia`; +- top-level CLI parsing and dispatch now live in `crates/insomnia/src/main.rs`; +- `tui` is now a library implementation crate with no product `main.rs`; +- `insomnia pod ...` and `insomnia memory lint ...` are routed by the `insomnia` crate; +- normal TUI launch is delegated to `tui::launch(...)`. + +Because the TUI crate no longer owns the product entrypoint or CLI parser, there is no remaining `tui/src/main.rs` CLI parsing extraction to implement under this ticket. Further CLI parser cleanup, if desired, belongs to the `insomnia` crate, not this TUI cleanup ticket. + +Validation evidence from `insomnia-crate-cli-owner` closure: +- `cargo test -p insomnia` +- CLI smoke for `--help`, `pod --help`, `memory lint --help`, invalid `--session`, and resume/Pod selection conflicts +- `cargo check -p client -p pod -p tui -p insomnia` +- `nix build .#insomnia` +- `./tickets.sh doctor` +- `git diff --check` diff --git a/work-items/closed/20260531-074258-tui-extract-cli-parsing/thread.md b/work-items/closed/20260531-074258-tui-extract-cli-parsing/thread.md new file mode 100644 index 00000000..07dff8b7 --- /dev/null +++ b/work-items/closed/20260531-074258-tui-extract-cli-parsing/thread.md @@ -0,0 +1,34 @@ + + +## Created + +Created by tickets.sh create. + +--- + + + +## Closed + +This ticket is completed/superseded by `insomnia-crate-cli-owner`. + +The original goal was to remove CLI parsing from `crates/tui/src/main.rs` so the TUI crate would stop owning top-level product CLI parsing. The later `insomnia-crate-cli-owner` implementation went further: + +- the product binary moved from package `tui` to package `insomnia`; +- top-level CLI parsing and dispatch now live in `crates/insomnia/src/main.rs`; +- `tui` is now a library implementation crate with no product `main.rs`; +- `insomnia pod ...` and `insomnia memory lint ...` are routed by the `insomnia` crate; +- normal TUI launch is delegated to `tui::launch(...)`. + +Because the TUI crate no longer owns the product entrypoint or CLI parser, there is no remaining `tui/src/main.rs` CLI parsing extraction to implement under this ticket. Further CLI parser cleanup, if desired, belongs to the `insomnia` crate, not this TUI cleanup ticket. + +Validation evidence from `insomnia-crate-cli-owner` closure: +- `cargo test -p insomnia` +- CLI smoke for `--help`, `pod --help`, `memory lint --help`, invalid `--session`, and resume/Pod selection conflicts +- `cargo check -p client -p pod -p tui -p insomnia` +- `nix build .#insomnia` +- `./tickets.sh doctor` +- `git diff --check` + + +--- diff --git a/work-items/open/20260531-074258-tui-extract-cli-parsing/thread.md b/work-items/open/20260531-074258-tui-extract-cli-parsing/thread.md deleted file mode 100644 index 0a95f1aa..00000000 --- a/work-items/open/20260531-074258-tui-extract-cli-parsing/thread.md +++ /dev/null @@ -1,7 +0,0 @@ - - -## Created - -Created by tickets.sh create. - ----