ci / rust (push) Failing after 5m11s
Per-attached-session task:
- Owns one WS to `WS /api/attach/:id` and a `vt100::Parser`.
- Binary frames → `parser.process(bytes)`. Text frames → `ClientControl::Ping`
is replied to as Pong; other text frames are ignored in v1.
- `SessionInput::Bytes(b)` becomes a binary frame; `Resize { cols, rows }`
resizes the parser AND sends `ClientControl::Resize` on the wire.
- WS drop → `Reconnecting` with exponential backoff (1s → 30s, ±25% jitter).
Parser screen is **not** reset across reconnects, so the user keeps seeing
the last-known frame instead of a blank.
- `SessionHandle::end()` transitions the task to `Ended` and stops it.
SessionEmulators:
- `(SessionId → SessionHandle)` registry.
- Owns a `ResizeTracker` whose `set_pane_size(sid, pane_id, (cols, rows))`
and `session_size(sid) -> Option<(cols, rows)>` compute the per-dimension
minimum across all panes bound to the same session — the value the
dispatcher feeds to the daemon.
Tests:
- 7 unit tests for `ResizeTracker` covering per-dim min, cross-session
isolation, and pane/session drop semantics.
- 2 unit tests for `SessionState` transitions.
- 1 axum-WS round-trip integration test asserting `"hello"` lands in the
vt100 screen within 500ms.
46 lines
1.5 KiB
TOML
46 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"] }
|
|
vt100 = "0.15"
|
|
|
|
[profile.release]
|
|
lto = "thin"
|
|
codegen-units = 1
|