MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / trigger_session_event

Function trigger_session_event

crates/opencode-plugin/src/lib.rs:335–337  ·  view source on GitHub ↗

Convenience: build a HookContext with session and trigger it.

(event: HookEvent, session_id: &str)

Source from the content-addressed store, hash-verified

333
334/// Convenience: build a HookContext with session and trigger it.
335pub async fn trigger_session_event(event: HookEvent, session_id: &str) {
336 trigger(HookContext::new(event).with_session(session_id)).await;
337}
338
339#[cfg(test)]
340mod tests {

Callers

nothing calls this directly

Calls 3

triggerFunction · 0.85
newFunction · 0.85
with_sessionMethod · 0.80

Tested by

no test coverage detected