TUI hosts sessions: new-session form, named worktrees, resume, faster permissions
- Use the terminal's own colors and background; the key bar and the Needs-you panel wrap, fixed-width panels shrink on narrow terminals. - Sessions run on threads of the TUI (tui/host.rs), capped by the profile's `workers`; quitting asks for `yes` and suspends them. New `suspend` command keeps the state so a session can be resumed. - `N` opens a new-session form: machine, name, --after, a named branch or worktree (place.rs; never deleted by orch), and a "keep for a PR" option. - `u` resumes suspended sessions and ones whose process died. - `A` allows identical permission requests across sessions, `P` saves an allow rule to the profile with toml_edit (comments kept). - Fix clippy lint in report.rs so tests/all.sh passes; add GLOSSARY.md. Includes the already staged `orch init` work (init.rs, example profile). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5a80bc9fe1
commit
cfb735cdb3
22 files changed
+1623
-115
No files matched your search
+20
@@ -5,9 +5,11 @@ mod checks;
|
||||
mod db;
|
||||
mod detail;
|
||||
mod goal;
|
||||
mod init;
|
||||
mod junit;
|
||||
mod lock;
|
||||
mod machine;
|
||||
mod place;
|
||||
mod policy;
|
||||
mod profile;
|
||||
mod report;
|
||||
@@ -36,6 +38,14 @@ struct Cli {
|
||||
|
||||
#[derive(Subcommand)]
|
||||
enum Cmd {
|
||||
/// Write example machines to REPO/.hx/machines and an example profile to the config dir.
|
||||
Init {
|
||||
#[arg(long, default_value = ".")]
|
||||
repo: PathBuf,
|
||||
/// Overwrite files that already exist.
|
||||
#[arg(long)]
|
||||
force: bool,
|
||||
},
|
||||
/// Run one task (Markdown file) in a fresh git worktree of REPO.
|
||||
Run {
|
||||
task: PathBuf,
|
||||
@@ -184,6 +194,16 @@ fn main() -> Result<std::process::ExitCode> {
|
||||
return Ok(code(true));
|
||||
};
|
||||
match cmd {
|
||||
Cmd::Init { repo, force } => {
|
||||
let written = init::run(&repo, &config_dir(), force)?;
|
||||
for p in &written {
|
||||
println!("wrote {}", p.display());
|
||||
}
|
||||
if written.is_empty() {
|
||||
println!("nothing to do (use --force to overwrite)");
|
||||
}
|
||||
Ok(code(true))
|
||||
}
|
||||
Cmd::Goal { text, export, repo } => {
|
||||
let db = open_db(repo.as_deref())?;
|
||||
if let Some(t) = text {
|
||||
|
||||
Reference in new issue
Block a user