Add initial project structure with CLAUDE.md guidelines, local settings, and various agent definitions for frontend development, including memory and planning tools.
This commit is contained in:
26
.claude/hooks/pre-tool-hook.sh
Executable file
26
.claude/hooks/pre-tool-hook.sh
Executable file
@@ -0,0 +1,26 @@
|
||||
#!/usr/bin/env bash
|
||||
# Claude Code - PreToolUse 훅
|
||||
# 툴 실행 직전에 실행되어 Telegram으로 알림을 보낸다.
|
||||
#
|
||||
# stdin JSON 형식:
|
||||
# {"session_id": "...", "tool_name": "...", "tool_input": {...}}
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
HOOK_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
INPUT="$(cat)"
|
||||
|
||||
TOOL_NAME="$(echo "$INPUT" | jq -r '.tool_name // ""')"
|
||||
TOOL_INPUT="$(echo "$INPUT" | jq -r '.tool_input // {} | to_entries | map("\(.key): \(.value)") | join(", ")')"
|
||||
|
||||
if [[ -z "$TOOL_NAME" ]]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
TELEGRAM_MESSAGE="⚙️ *툴 실행*
|
||||
|
||||
🔧 \`${TOOL_NAME}\`
|
||||
📝 ${TOOL_INPUT}"
|
||||
|
||||
"$HOOK_DIR/notify_telegram.sh" "$TELEGRAM_MESSAGE"
|
||||
Reference in New Issue
Block a user