← Files NightshiftARCHIVED FILE
hooks/dispatch/claude-session-end.ps1
618 Bytes · Oct 5, 2026 · 18:31 UTC
#!/bin/sh
echo --% >/dev/null;: ' | Out-Null
<#'
case "${OS:-}:$(uname -s 2>/dev/null)" in
Windows_NT:* | *:MINGW* | *:MSYS* | *:CYGWIN*)
script="$CLAUDE_PLUGIN_ROOT/hooks/windows/session-end.ps1"
command -v cygpath >/dev/null 2>&1 && script="$(cygpath -w "$script")"
exec powershell.exe -NoProfile -NonInteractive -ExecutionPolicy Bypass -File "$script" -HostName claude
;;
esac
exec "$CLAUDE_PLUGIN_ROOT/hooks/session-end.sh"
exit #>
powershell.exe -NoProfile -NonInteractive -ExecutionPolicy Bypass -File "$env:CLAUDE_PLUGIN_ROOT\hooks\windows\session-end.ps1" -HostName claude
exit $LASTEXITCODE
SHA-256: 97d29ebd0ff4a04bdffcfdfd8be367fe728dc2085b707ae5fcd5b2212db1ac1b