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

Function sample_token

atomic-agent/src/turn/capture.rs:436–450  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

434 use crate::turn::session::SessionStore;
435
436 fn sample_token() -> atomic_repository::GitObservationToken {
437 atomic_repository::GitObservationToken {
438 head: atomic_repository::GitHeadObservation::Attached {
439 symref: "refs/heads/main".to_string(),
440 oid: "a".repeat(40),
441 },
442 head_tree: Some("tree-head".to_string()),
443 index_digest: atomic_core::types::Hash::of(b"index"),
444 index_tree: Some("tree-index".to_string()),
445 index_stages: Vec::new(),
446 index_locked: false,
447 repository_state: String::new(),
448 markers: Vec::new(),
449 }
450 }
451
452 fn make_session(id: &str) -> AgentSession {
453 AgentSession::new(id, "claude-code", "Claude Code")

Calls

no outgoing calls