diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-22 00:02:56 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-22 00:03:21 +0300 |
| commit | a5182282a490cfb60b22776257edc5ac0fce6adc (patch) | |
| tree | 648555f1d5ce4696bc22f9a8e22682f8c7f46c93 /src | |
| parent | 003bef7592d6df68f7cf0806d5796ed64478d68c (diff) | |
fix: support devin hook on python 3.9
refs #719
Diffstat (limited to 'src')
| -rw-r--r-- | src/integration/assets/devin/herdr-agent-state.sh | 4 | ||||
| -rw-r--r-- | src/integration/mod.rs | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/integration/assets/devin/herdr-agent-state.sh b/src/integration/assets/devin/herdr-agent-state.sh index 83f8c190..86249b88 100644 --- a/src/integration/assets/devin/herdr-agent-state.sh +++ b/src/integration/assets/devin/herdr-agent-state.sh @@ -3,7 +3,7 @@ # managed by herdr; reinstalling or updating the integration overwrites this file. # add custom hooks beside this file instead of editing it. # HERDR_INTEGRATION_ID=devin -# HERDR_INTEGRATION_VERSION=1 +# HERDR_INTEGRATION_VERSION=2 set -eu @@ -23,6 +23,8 @@ esac command -v python3 >/dev/null 2>&1 || exit 0 HERDR_HOOK_INPUT_FILE="$hook_input_file" python3 - <<'PY' +from __future__ import annotations + import json import os import random diff --git a/src/integration/mod.rs b/src/integration/mod.rs index 14d88e19..d08ad32e 100644 --- a/src/integration/mod.rs +++ b/src/integration/mod.rs @@ -93,7 +93,7 @@ const COPILOT_REMOVED_LIFECYCLE_HOOK_EVENTS: [&str; 9] = [ ]; const DEVIN_HOOK_INSTALL_NAME: &str = "herdr-agent-state.sh"; const DEVIN_HOOK_ASSET: &str = include_str!("assets/devin/herdr-agent-state.sh"); -const DEVIN_INTEGRATION_VERSION: u32 = 1; +const DEVIN_INTEGRATION_VERSION: u32 = 2; const DEVIN_HOOK_EVENTS: [(&str, &str); 6] = [ ("SessionStart", "session"), ("UserPromptSubmit", "session"), |
