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

Function manifest_json

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

Source from the content-addressed store, hash-verified

387 }
388
389 fn manifest_json(target: &Path, prefix: &str) -> Value {
390 json!({
391 "target": target.to_string_lossy(),
392 "command_prefix": prefix,
393 "hooks": {
394 "SessionStart": [
395 { "hooks": [ { "type": "command", "command": format!("{} session-start", prefix), "statusMessage": "Atomic" } ] }
396 ],
397 "Stop": [
398 { "hooks": [ { "type": "command", "command": format!("{} stop", prefix) } ] }
399 ]
400 }
401 })
402 }
403
404 #[test]
405 fn installs_into_empty_target() {

Calls

no outgoing calls

Tested by 4