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

Method publish_session_event

crates/opencode-session/src/session.rs:789–793  ·  view source on GitHub ↗

Publish a session info event (Created/Updated/Deleted)

(&self, def: &'static BusEventDef, session: &Session)

Source from the content-addressed store, hash-verified

787
788 /// Publish a session info event (Created/Updated/Deleted)
789 fn publish_session_event(&self, def: &'static BusEventDef, session: &Session) {
790 if let Ok(json) = serde_json::to_value(session) {
791 self.publish_event(def, serde_json::json!({ "info": json }));
792 }
793 }
794
795 /// Publish a message event
796 fn publish_message_event(&self, def: &'static BusEventDef, msg: &SessionMessage) {

Callers 12

createMethod · 0.80
create_childMethod · 0.80
forkMethod · 0.80
shareMethod · 0.80
unshareMethod · 0.80
set_archivedMethod · 0.80
set_permissionMethod · 0.80
set_revertMethod · 0.80
clear_revertMethod · 0.80
set_summaryMethod · 0.80
deleteMethod · 0.80
updateMethod · 0.80

Calls 1

publish_eventMethod · 0.80

Tested by

no test coverage detected