bxctl memory sync: the Honcho ledger's counts and failed items
Co-Authored-By: ornith-1.5-35b-a3b <agent@wntrmute.dev>
This commit is contained in:
@@ -34,8 +34,9 @@ usage: bxctl <command> [options]
|
||||
bxctl reindex [--memory-socket PATH]
|
||||
Rebuild memoryd's index from the session logs and notes.
|
||||
|
||||
bxctl memory log [N] | undo <id> | pending | accept <id> | reject <id> [--memory-socket PATH]
|
||||
bxctl memory log [N] | undo <id> | pending | accept <id> | reject <id> | sync [--memory-socket PATH]
|
||||
List memory edits, undo the latest edit of a file, or answer writes waiting for review.
|
||||
sync shows what memoryd sends to Honcho: counts, and each failed item by its label.
|
||||
|
||||
bxctl sanitize check [TEXT]
|
||||
Show which sanitizer rules TEXT, or standard input, breaks; writes nothing. Refuse shows
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//! The owner's memory commands over `memoryd`'s owner socket: `reindex`, and `memory log`,
|
||||
//! `undo`, `pending`, `accept`, `reject` (M5a spec, section 10).
|
||||
//! `undo`, `pending`, `accept`, `reject` (M5a spec, section 10), and `sync` (M5c spec, section 5).
|
||||
|
||||
use std::io::Write;
|
||||
use std::os::unix::net::UnixStream;
|
||||
@@ -39,8 +39,8 @@ pub fn parse_reindex(args: &[String], home: &Path) -> Result<Command, UsageError
|
||||
})
|
||||
}
|
||||
|
||||
/// `bxctl memory log [N] | undo <id> | pending | accept <id> | reject <id>`, each with an optional
|
||||
/// `--memory-socket PATH`.
|
||||
/// `bxctl memory log [N] | undo <id> | pending | accept <id> | reject <id> | sync`, each with an
|
||||
/// optional `--memory-socket PATH`.
|
||||
pub fn parse_memory(args: &[String], home: &Path) -> Result<Command, UsageError> {
|
||||
let (socket, rest) = socket_flag(args, home)?;
|
||||
let rest: Vec<&str> = rest.iter().map(String::as_str).collect();
|
||||
@@ -56,6 +56,7 @@ pub fn parse_memory(args: &[String], home: &Path) -> Result<Command, UsageError>
|
||||
["undo", id] => Ask::Admin(MemoryCommand::Undo, id.to_string()),
|
||||
["accept", id] => Ask::Admin(MemoryCommand::Accept, id.to_string()),
|
||||
["reject", id] => Ask::Admin(MemoryCommand::Reject, id.to_string()),
|
||||
["sync"] => Ask::Admin(MemoryCommand::Sync, String::new()),
|
||||
_ => return Err(UsageError),
|
||||
};
|
||||
Ok(Command::Memory { socket, ask })
|
||||
|
||||
Reference in New Issue
Block a user