21 lines
411 B
Rust
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>;
|
|
}
|