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

Function trigger_event

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

Convenience: build a HookContext and trigger it on the global system.

(event: HookEvent)

Source from the content-addressed store, hash-verified

328
329/// Convenience: build a HookContext and trigger it on the global system.
330pub async fn trigger_event(event: HookEvent) {
331 trigger(HookContext::new(event)).await;
332}
333
334/// Convenience: build a HookContext with session and trigger it.
335pub async fn trigger_session_event(event: HookEvent, session_id: &str) {

Callers

nothing calls this directly

Calls 2

triggerFunction · 0.85
newFunction · 0.85

Tested by

no test coverage detected