chore: add AI tool configs and fix server.py indentation

This commit is contained in:
2026-05-22 12:16:21 +08:00
parent 58dcc38cc9
commit f6a801b1ac
32 changed files with 709 additions and 2 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/usr/bin/env bash
# code-review-graph: session start status (Gemini CLI hook)
# Must output ONLY JSON on stdout. Logs go to stderr. Never blocks the session.
set -euo pipefail
cat > /dev/null || true
msg="$(code-review-graph status --repo "/home/v6ole/PythonProject/NetBrain_MCP" 2>&1 | head -n 1 || true)"
CRG_MSG="$msg" python3 -c '
import json,os
m=os.environ.get("CRG_MSG","")
print(json.dumps({"systemMessage":m,"suppressOutput":True}))
' 2>/dev/null || echo '{"suppressOutput": true}'
exit 0