refactor: split auditui into auditui-core + auditui workspace#20
Merged
Conversation
Phase 0 of adding a future web launcher UI: the transcript/session/cost
logic now lives in a shared `auditui-core` library crate so multiple
frontends can depend on it without duplicating parsers.
Layout:
auditit-tui/
├── Cargo.toml # workspace root
├── core/ # auditui-core lib (providers, session, cache,
│ # cost, dashboard, memory, skills)
└── tui/ # auditui bin (TUI-only: main, tui, md, update)
No behavior changes:
- All files moved with `git mv` (git shows renames, zero content diff)
- tui/src/main.rs replaces its `mod X;` declarations with
`pub use auditui_core::{X};` so `crate::session::…` references
inside `tui.rs` keep resolving — no edits to business code.
- `cargo build --release` + `--dry-run` / `--memory-dump` /
`--group-dump` smoke pass (10495 sessions indexed as before).
- Makefile / deploy-xserver.sh untouched — `cargo build --release`
at workspace root still produces `target/release/auditui`.
Co-Authored-By: Claude <noreply@anthropic.com>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (20)
📝 WalkthroughWalkthroughRepository converted from a single-crate Rust TUI into a Cargo workspace with two crates: Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
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
audituiinto a Cargo workspace withauditui-core(lib) +auditui(bin), so future frontends (e.g. the planned web launcher) can depend on the same transcript/session/cost/dashboard code without duplicating parsers.git mvrenames (100% similarity — no content diff). The only non-rename change is 9 lines intui/src/main.rswheremod X;declarations becomepub use auditui_core::{X};, which keepscrate::session::…references insidetui.rsresolving so business code is untouched.Makefile/deploy-xserver.shuntouched: workspace-rootcargo build --releasestill producestarget/release/audituiat the same path.Layout
Test plan
cargo build --releasegreen at workspace root./target/release/auditui --dry-run→ indexes 10502 sessions (CLA/COD/HER/QWN breakdown unchanged)./target/release/auditui --memory-dump→ global + 21 projects listed./target/release/auditui --group-dump→ 213 groups from 10502 sessions./target/release/auditui --bench→ cold 210ms, warm 9ms (in the same range as before the split)🤖 Generated with Claude Code
Summary by CodeRabbit