Files
cline-multi-mirror/sdk/examples/hooks/TaskStart.sh
T
HybridTalentComputing 8d519391b1 Sync with upstream v3.83.0
Replace all files with clean upstream Cline v3.83.0 content.
ShengSuanYun provider code automatically removed.
2026-05-15 13:02:01 +08:00

15 lines
414 B
Bash
Executable File

#!/usr/bin/env bash
# Cline Hook: TaskStart
# Logs when an agent task starts
# Copy to ~/.cline/hooks/TaskStart.sh and chmod +x
input=$(cat)
timestamp=$(echo "$input" | jq -r '.timestamp // "unknown"')
sessionId=$(echo "$input" | jq -r '.sessionContext.rootSessionId // "unknown"')
echo "🚀 Task started at $timestamp" >&2
echo " Session: $sessionId" >&2
# Lifecycle events are informational only
echo '{}'