(raw: &str, tracedecay_bin: &str)
| 710 | } |
| 711 | |
| 712 | fn codex_plugin_hooks(raw: &str, tracedecay_bin: &str) -> Result<String> { |
| 713 | let mut hooks: serde_json::Value = serde_json::from_str(raw)?; |
| 714 | for hook in CODEX_MANAGED_HOOKS { |
| 715 | install_codex_hook_event( |
| 716 | &mut hooks, |
| 717 | hook.event, |
| 718 | tracedecay_bin, |
| 719 | hook.subcommand, |
| 720 | hook.timeout_secs, |
| 721 | hook.matcher, |
| 722 | ); |
| 723 | } |
| 724 | Ok(format!("{}\n", serde_json::to_string_pretty(&hooks)?)) |
| 725 | } |
| 726 | |
| 727 | fn install_codex_marketplace_entry( |
| 728 | marketplace_path: &Path, |