MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / hook_event

Function hook_event

atomic-cli/tests/it/diagnostics_integration_test.rs:636–648  ·  view source on GitHub ↗
(agent: &str, at: &str, outcome: &str)

Source from the content-addressed store, hash-verified

634}
635
636fn hook_event(agent: &str, at: &str, outcome: &str) -> atomic_agent::hook_log::SessionLogEvent {
637 atomic_agent::hook_log::SessionLogEvent {
638 event_id: uuid::Uuid::new_v4().to_string(),
639 session_id: None,
640 parent_session_id: None,
641 agent: agent.to_string(),
642 display_name: agent.to_string(),
643 verb: "session-start".to_string(),
644 outcome: outcome.to_string(),
645 detail: Some("SYNTHETIC_PRIVATE_DETAIL".to_string()),
646 at: at.to_string(),
647 }
648}
649
650#[test]
651fn last_fired_uses_repository_history_and_pending_events() {

Calls

no outgoing calls

Tested by

no test coverage detected