Skip to main content

ActivationSummaryHook

Type Alias ActivationSummaryHook 

Source
pub type ActivationSummaryHook = Arc<dyn Fn(&Path, &str) -> Option<String> + Send + Sync>;
Expand description

Optional hook that returns a short agent-facing summary appended to the activation result message — the “graph ready” mini-map / opening steer (e.g. "Graph ready: 9,999 Functions · 656 Classes · 31k CALLS. Open with graph_overview() → cypher_query; grep = literal text only.").

Kept separate from PostActivateHook so adding it is a non-breaking addition — existing consumers that register only the build hook are unaffected. Receives the repo path + name; returns Some(text) to append (blank-line separated), or None for the terse default message. Called after a successful activation (skipped when the build hook failed).

Aliased Type§

pub struct ActivationSummaryHook { /* private fields */ }