- crates/terminal: portable-pty sessions (ConPTY on Windows) with reader, writer and waiter threads, UTF-8 chunking, a 1 MiB output buffer with backpressure, a non-blocking input queue, resize, kill and exit codes; default shell pwsh -> powershell -> cmd on Windows, $SHELL or /bin/sh. - Engine: terminal.create/input/resize/close, terminalOutput (capped per terminal and per pump, round-robin) and terminalExited through the pump; terminals close with the project and on app.quit. - UI: Terminal tab in the bottom panel (tabs next to Find), xterm.js with the fit addon, sub-tabs, copy/paste, a focus rule that leaves plain Ctrl keys to the shell, terminal.open (Mod+Shift+T), --lt-terminal-* ANSI tokens in both themes (text colours AA) and a 4.5:1 minimum contrast. - Tests: real-shell crate tests (UTF-8, backpressure), engine and TCP control tests, Vitest with a mocked xterm; live check on port 7936; docs and parity rows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
32 lines
748 B
TOML
32 lines
748 B
TOML
[package]
|
|
name = "lutra-engine"
|
|
description = "Command registry, workspace state, guard and recovery journal"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
license.workspace = true
|
|
authors.workspace = true
|
|
publish.workspace = true
|
|
|
|
[package.metadata.lutra]
|
|
layer = 4
|
|
|
|
[dependencies]
|
|
lutra-index.workspace = true
|
|
lutra-lsp.workspace = true
|
|
lutra-search.workspace = true
|
|
lutra-syntax.workspace = true
|
|
lutra-terminal.workspace = true
|
|
lutra-text.workspace = true
|
|
lutra-vfs.workspace = true
|
|
serde = { version = "1.0.229", features = ["derive"] }
|
|
serde_json = "1.0.154"
|
|
thiserror = "2.0.21"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dev-dependencies]
|
|
lutra-testkit.workspace = true
|
|
proptest.workspace = true
|
|
tempfile.workspace = true
|