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

Function lifecycle

atomic-cli/src/commands/agent/lifecycle.rs:1177–1192  ·  view source on GitHub ↗
(run_id: &str, owner: &str, workdir: &Path, expires_at: i64)

Source from the content-addressed store, hash-verified

1175 use tempfile::TempDir;
1176
1177 fn lifecycle(run_id: &str, owner: &str, workdir: &Path, expires_at: i64) -> ManagedLifecycle {
1178 ManagedLifecycle {
1179 run_id: run_id.to_string(),
1180 owner_agent: owner.to_string(),
1181 owner_session_id: format!("{}-session", owner),
1182 executor_agent: None,
1183 work_item_id: None,
1184 view: Some("sherpa-run".to_string()),
1185 refusal: None,
1186 workdir: workdir.to_path_buf(),
1187 created_at: 1,
1188 updated_at: 1,
1189 expires_at,
1190 stop_state: None,
1191 }
1192 }
1193
1194 #[test]
1195 fn keyed_store_holds_concurrent_runs() {

Calls

no outgoing calls