ci / rust (push) Failing after 4m44s
Adds the full visual layer: - `state.rs` — `AppState` (tabs/focus/mode/sidebar visibility/overlay). v1 keeps each tab to one optional session; the split tree is v1.5. - `terminal.rs` — `TerminalGuard` (raw mode + alt screen + mouse capture with RAII restore) and an idempotent panic hook that restores the terminal before re-panicking. - `sidebar.rs` — daemon → session tree with ●/○/✗ glyphs. Pulls a label out of `metadata.label` (the protocol's shape), falls back to the command. - `tabs.rs` — top-row TabBar with active highlight. - `pane.rs` — `vt100::Screen` → ratatui `Buffer` cell-by-cell, with full fg/bg/bold/italic/underline/reverse translation. `PaneStatus` round-trips from `SessionState`. - `overlays.rs` — SpawnModal (5-field form with rotation), KillConfirm, HelpOverlay, Toast. All centered popups with `Clear` underlay. - `render.rs` — `draw(f, RenderInputs)` composes everything; returns a `RegionMap` whose `region_at(col, row)` resolves a mouse coordinate to a tagged Region (modal eclipses the rest). 22 new unit tests bringing the crate total to 80 passing. Tests use content-based assertions over `ratatui::backend::TestBackend` output rather than file-based goldens — less brittle to whitespace shifts while still covering the visible content.
47 lines
1.5 KiB
TOML
47 lines
1.5 KiB
TOML
[workspace]
|
|
resolver = "2"
|
|
members = ["crates/*"]
|
|
|
|
[workspace.package]
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
license = "MIT"
|
|
repository = "https://git.naps.pt/naps62/maestro"
|
|
publish = false
|
|
|
|
[workspace.dependencies]
|
|
axum = { version = "0.7", features = ["ws"] }
|
|
chrono = { version = "0.4", default-features = false, features = ["clock", "serde"] }
|
|
clap = { version = "4.5", features = ["derive", "env"] }
|
|
crossterm = { version = "0.28", features = ["event-stream"] }
|
|
dirs = "5"
|
|
futures-util = { version = "0.3", default-features = false, features = ["sink", "std"] }
|
|
jsonwebtoken = { version = "9", default-features = false }
|
|
libc = "0.2"
|
|
maestro-config = { path = "crates/maestro-config" }
|
|
maestro-protocol = { path = "crates/maestro-protocol" }
|
|
maestro-tui = { path = "crates/maestro-tui" }
|
|
nix = { version = "0.29", default-features = false, features = ["term", "signal"] }
|
|
rand = "0.8"
|
|
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls", "cookies", "stream"] }
|
|
rust-embed = "8"
|
|
include_dir = "0.7"
|
|
mime_guess = "2"
|
|
bytes = "1"
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
tempfile = "3"
|
|
thiserror = "1"
|
|
tokio = { version = "1", features = ["macros", "rt-multi-thread", "sync", "time", "net", "io-util", "fs", "signal", "process"] }
|
|
tokio-tungstenite = "0.21"
|
|
toml = "0.8"
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
uuid = { version = "1", features = ["v4", "serde"] }
|
|
ratatui = "0.28"
|
|
vt100 = "0.15"
|
|
|
|
[profile.release]
|
|
lto = "thin"
|
|
codegen-units = 1
|