MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / write

Method write

src/automation/artifacts.rs:41–59  ·  view source on GitHub ↗
(
        &mut self,
        kind: AutomationRunArtifactKind,
        payload: &Value,
        summary: Option<String>,
    )

Source from the content-addressed store, hash-verified

39 }
40
41 async fn write(
42 &mut self,
43 kind: AutomationRunArtifactKind,
44 payload: &Value,
45 summary: Option<String>,
46 ) -> Result<Value> {
47 let artifact = write_run_artifact(
48 self.dashboard_root,
49 self.run_id,
50 kind,
51 payload,
52 summary,
53 self.created_at,
54 )
55 .await?;
56 let artifact_ref = artifact_ref(&artifact);
57 self.artifacts.push(artifact);
58 Ok(artifact_ref)
59 }
60
61 fn finish(self) -> Vec<AutomationRunArtifact> {
62 self.artifacts

Callers 15

write_entry_innerFunction · 0.45
runFunction · 0.45
write_fileMethod · 0.45
write_private_fileFunction · 0.45
try_acquire_sync_lock_atFunction · 0.45
create_lock_fileFunction · 0.45
set_mtimeFunction · 0.45
patch_settingsFunction · 0.45

Calls 3

write_run_artifactFunction · 0.85
artifact_refFunction · 0.85
pushMethod · 0.80

Tested by 1

set_mtimeFunction · 0.36