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

Function make_envelope

atomic-agent/src/envelope.rs:578–595  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

576 use super::*;
577
578 fn make_envelope() -> SessionEnvelope {
579 SessionEnvelope::builder("sess-abc-123", "claude-code")
580 .agent_display_name("Claude Code")
581 .turn_number(3)
582 .total_turns(7)
583 .session_started_at(1737000000)
584 .turn_started_at(1737000300)
585 .turn_ended_at(1737000312)
586 .turn_duration_ms(12400)
587 .prompt_summary("Fix the authentication bug in login.rs")
588 .files_in_turn(vec![
589 "src/auth.rs".to_string(),
590 "src/auth_test.rs".to_string(),
591 ])
592 .files_in_session(5)
593 .delegation_id("deleg-xyz")
594 .build()
595 }
596
597 fn make_minimal_envelope() -> SessionEnvelope {
598 SessionEnvelope::builder("s1", "test-agent").build()

Callers 11

test_builder_all_fieldsFunction · 0.85
test_turn_file_countFunction · 0.85
test_has_promptFunction · 0.85
test_is_session_completeFunction · 0.85
test_display_fullFunction · 0.85
test_json_roundtripFunction · 0.85
test_clone_eqFunction · 0.85

Calls 12

delegation_idMethod · 0.80
files_in_sessionMethod · 0.80
files_in_turnMethod · 0.80
turn_duration_msMethod · 0.80
turn_ended_atMethod · 0.80
turn_started_atMethod · 0.80
session_started_atMethod · 0.80
total_turnsMethod · 0.80
turn_numberMethod · 0.80
buildMethod · 0.45
prompt_summaryMethod · 0.45
agent_display_nameMethod · 0.45

Tested by 11

test_builder_all_fieldsFunction · 0.68
test_turn_file_countFunction · 0.68
test_has_promptFunction · 0.68
test_is_session_completeFunction · 0.68
test_display_fullFunction · 0.68
test_json_roundtripFunction · 0.68
test_clone_eqFunction · 0.68