diff options
Diffstat (limited to 'src/integration/assets/antigravity_cli')
| -rw-r--r-- | src/integration/assets/antigravity_cli/herdr-agent-state.ps1 | 5 | ||||
| -rw-r--r-- | src/integration/assets/antigravity_cli/herdr-agent-state.sh | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/integration/assets/antigravity_cli/herdr-agent-state.ps1 b/src/integration/assets/antigravity_cli/herdr-agent-state.ps1 index aecb42a9..04717757 100644 --- a/src/integration/assets/antigravity_cli/herdr-agent-state.ps1 +++ b/src/integration/assets/antigravity_cli/herdr-agent-state.ps1 @@ -2,7 +2,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=antigravity_cli -# HERDR_INTEGRATION_VERSION=1 +# HERDR_INTEGRATION_VERSION=2 # Session-only: this hook reports the Antigravity conversation so Herdr can # resume the pane. Lifecycle state comes from Herdr's screen detection. @@ -33,6 +33,7 @@ $conversationId = if ($payload.conversationId -is [string]) { $payload.conversat if ([string]::IsNullOrWhiteSpace($conversationId)) { Exit-Hook } $seq = [DateTimeOffset]::UtcNow.ToUnixTimeMilliseconds() +$herdr = if ([string]::IsNullOrWhiteSpace($env:HERDR_BIN_PATH)) { "herdr" } else { $env:HERDR_BIN_PATH } try { $sessionArgs = @( "pane", @@ -50,7 +51,7 @@ try { if ($payload.transcriptPath -is [string] -and -not [string]::IsNullOrWhiteSpace($payload.transcriptPath)) { $sessionArgs += @("--agent-session-path", "$($payload.transcriptPath)") } - & herdr @sessionArgs 2>$null | Out-Null + & $herdr @sessionArgs 2>$null | Out-Null } catch { } diff --git a/src/integration/assets/antigravity_cli/herdr-agent-state.sh b/src/integration/assets/antigravity_cli/herdr-agent-state.sh index dd3db028..859ec378 100644 --- a/src/integration/assets/antigravity_cli/herdr-agent-state.sh +++ b/src/integration/assets/antigravity_cli/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=antigravity_cli -# HERDR_INTEGRATION_VERSION=1 +# HERDR_INTEGRATION_VERSION=2 # Session-only: this hook reports the Antigravity conversation so Herdr can # resume the pane. Lifecycle state comes from Herdr's screen detection. |
