hive-agent: guarantee a wake after a self-requested /compact
This commit is contained in:
parent
fa658567db
commit
2c7872841a
8 changed files with 227 additions and 48 deletions
|
|
@ -80,6 +80,19 @@ pub struct RemindArgs {
|
|||
pub file_path: Option<String>,
|
||||
}
|
||||
|
||||
/// MCP tool args for `compact`.
|
||||
#[derive(Debug, serde::Deserialize, schemars::JsonSchema)]
|
||||
pub struct CompactArgs {
|
||||
/// Optional wake-up prompt. When set and the compact actually runs
|
||||
/// (gated on context usage — see the tool description), the harness
|
||||
/// drives one synthetic follow-up turn with this string as its body
|
||||
/// as soon as compaction finishes, so you don't have to wait for the
|
||||
/// next external event to continue. Omit for a fire-and-forget compact
|
||||
/// with no follow-up.
|
||||
#[serde(default)]
|
||||
pub wake_prompt: Option<String>,
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// Privileged tool arg types (lifecycle, approvals, scheduling, diagnostics)
|
||||
// -----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Reference in a new issue