Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions crates/pu-cli/src/commands/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ pub mod init;
pub mod kill;
pub mod logs;
pub mod prompt;
pub mod recap;
pub mod schedule;
pub mod send;
pub mod spawn;
Expand Down
17 changes: 17 additions & 0 deletions crates/pu-cli/src/commands/recap.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
use crate::client;
use crate::commands::cwd_string;
use crate::daemon_ctrl;
use crate::error::CliError;
use crate::output;
use pu_core::protocol::Request;
use std::path::Path;

pub async fn run(socket: &Path, json: bool) -> Result<(), CliError> {
daemon_ctrl::ensure_daemon(socket).await?;

let project_root = cwd_string()?;
let resp = client::send_request(socket, &Request::Recap { project_root }).await?;
let resp = output::check_response(resp, json)?;
output::print_response(&resp, json);
Ok(())
}
7 changes: 7 additions & 0 deletions crates/pu-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,12 @@ enum Commands {
#[command(subcommand)]
action: ScheduleAction,
},
/// Recap workspace activity: agent status + code changes at a glance
Recap {
/// Output as JSON
#[arg(long)]
json: bool,
},
/// Show git diffs across agent worktrees
Diff {
/// Diff a specific worktree
Expand Down Expand Up @@ -616,6 +622,7 @@ async fn main() {
json,
} => commands::send::run(&socket, &agent_id, text, no_enter, keys, json).await,
Commands::Grid { action } => commands::grid::run(&socket, action).await,
Commands::Recap { json } => commands::recap::run(&socket, json).await,
Commands::Diff {
worktree,
stat,
Expand Down
Loading
Loading