🏗️ 项目重构:模块化清理完成
This commit is contained in:
11
agents/pre-commit-hook
Executable file
11
agents/pre-commit-hook
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
# Agent提交前的钩子
|
||||
|
||||
echo "🔍 检查agent身份..."
|
||||
AGENT_NAME=$(git config user.name)
|
||||
if [[ -z "$AGENT_NAME" ]]; then
|
||||
echo "❌ 未设置agent身份,请先使用agent协作系统"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "✅ 当前agent: $AGENT_NAME"
|
||||
Reference in New Issue
Block a user