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

Function managed_lifecycle

atomic-cli/src/commands/agent/hooks.rs:831–847  ·  view source on GitHub ↗
(root: &Path)

Source from the content-addressed store, hash-verified

829 }
830
831 fn managed_lifecycle(root: &Path) -> super::super::lifecycle::ManagedLifecycle {
832 let now = Utc::now().timestamp();
833 super::super::lifecycle::ManagedLifecycle {
834 run_id: "run-cb0c".into(),
835 owner_agent: "sherpa".into(),
836 owner_session_id: "owner-session".into(),
837 executor_agent: Some("codex".into()),
838 work_item_id: Some("CB-0C".into()),
839 view: Some("agent-view".into()),
840 refusal: None,
841 workdir: root.to_path_buf(),
842 created_at: now,
843 updated_at: now,
844 expires_at: now + 60,
845 stop_state: None,
846 }
847 }
848
849 fn save_managed_lifecycle(root: &Path, lifecycle: &super::super::lifecycle::ManagedLifecycle) {
850 let directory = root.join(".atomic/agent-lifecycle");

Calls 1

timestampMethod · 0.45