Files
MetaCrate/vendor/mentra/src/background/hook.rs
Chili Palmer 360203d647
Some checks failed
CI / rust-skia (Rust only) (push) Has been cancelled
CI / required (push) Has been cancelled
Add operator Mentra memory browser
2026-08-23 19:18:41 +02:00

21 lines
411 B
Rust

use std::path::Path;
use crate::error::RuntimeError;
pub(crate) trait BackgroundHookSink: Send + Sync {
fn task_started(
&self,
agent_id: &str,
task_id: &str,
command: &str,
cwd: &Path,
) -> Result<(), RuntimeError>;
fn task_finished(
&self,
agent_id: &str,
task_id: &str,
status: &str,
) -> Result<(), RuntimeError>;
}