MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / hook_cursor_after_shell

Function hook_cursor_after_shell

src/hooks/cursor.rs:309–320  ·  view source on GitHub ↗

Cursor `afterShellExecution` hook handler. Notifies the daemon after Cursor shell execution. The daemon decides whether the command requires branch tracking or coalesced incremental sync.

()

Source from the content-addressed store, hash-verified

307/// Notifies the daemon after Cursor shell execution. The daemon decides whether
308/// the command requires branch tracking or coalesced incremental sync.
309pub async fn hook_cursor_after_shell() -> i32 {
310 let event = read_hook_event!();
311 let root = cursor_project_root_from_event(&event);
312 record_hook_invoked(
313 root.as_deref(),
314 HintAgent::Cursor,
315 "afterShellExecution",
316 &event,
317 );
318 notify_cursor_after_shell_event(&event).await;
319 0
320}
321
322/// Cursor `workspaceOpen` hook handler.
323///

Callers 1

handle_hook_commandFunction · 0.85

Calls 3

record_hook_invokedFunction · 0.85

Tested by

no test coverage detected