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

Function manifest_json

atomic-agent/src/hooks/manifest.rs:351–364  ·  view source on GitHub ↗
(target: &Path, prefix: &str)

Source from the content-addressed store, hash-verified

349 }
350
351 fn manifest_json(target: &Path, prefix: &str) -> Value {
352 json!({
353 "target": target.to_string_lossy(),
354 "command_prefix": prefix,
355 "hooks": {
356 "SessionStart": [
357 { "hooks": [ { "type": "command", "command": format!("{} session-start", prefix), "statusMessage": "Atomic" } ] }
358 ],
359 "Stop": [
360 { "hooks": [ { "type": "command", "command": format!("{} stop", prefix) } ] }
361 ]
362 }
363 })
364 }
365
366 #[test]
367 fn installs_into_empty_target() {

Calls

no outgoing calls

Tested by 4