11 lines
372 B
Bash
11 lines
372 B
Bash
#!/bin/bash
|
|
# PreToolUse hook wrapper — auto_approve.py로 위임
|
|
# stdin JSON: {tool_name, tool_input}
|
|
# stdout JSON: {hookSpecificOutput: {permissionDecision: allow|deny|ask}}
|
|
|
|
REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null)
|
|
[ -z "$REPO_ROOT" ] && REPO_ROOT="."
|
|
|
|
# Python 실행 (UTF-8 강제)
|
|
PYTHONIOENCODING=utf-8 python "$REPO_ROOT/scripts/auto_approve.py"
|