From 07261e09be60ac0c145685fd11f94351cc0e5ba6 Mon Sep 17 00:00:00 2001 From: Eric Yue Date: Mon, 15 Jun 2026 21:50:24 +0800 Subject: feat: add devin cli detection and restore support (#622) * feat: add devin cli detection and restore support refs #606 * fix: keep devin integration session-only --------- Co-authored-by: Ogulcan Celik --- tests/cli_wrapper.rs | 140 +++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 136 insertions(+), 4 deletions(-) (limited to 'tests/cli_wrapper.rs') diff --git a/tests/cli_wrapper.rs b/tests/cli_wrapper.rs index 33cea043..53d91c43 100644 --- a/tests/cli_wrapper.rs +++ b/tests/cli_wrapper.rs @@ -544,7 +544,29 @@ fn run_copilot_hook(hook_input: &str) -> Option { ) } +fn run_devin_hook( + action: &str, + hook_input: &str, + envs: &[(&str, &str)], +) -> Option { + run_shell_hook_with_env( + "src/integration/assets/devin/herdr-agent-state.sh", + &[action], + hook_input, + envs, + ) +} + fn run_shell_hook(asset_path: &str, args: &[&str], hook_input: &str) -> Option { + run_shell_hook_with_env(asset_path, args, hook_input, &[]) +} + +fn run_shell_hook_with_env( + asset_path: &str, + args: &[&str], + hook_input: &str, + envs: &[(&str, &str)], +) -> Option { let base = unique_test_dir(); fs::create_dir_all(&base).unwrap(); let socket_path = base.join("herdr.sock"); @@ -574,7 +596,8 @@ fn run_shell_hook(asset_path: &str, args: &[&str], hook_input: &str) -> Option Option