fix for o2switch

This commit is contained in:
2026-07-30 15:24:02 +02:00
parent 1e28f9837a
commit 8fcf49a7f0
39 changed files with 1719 additions and 3 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 "C:/Users/tony1/PhpstormProjects/Convert" 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
+10
View File
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
# code-review-graph: incremental update after write/replace (Gemini CLI hook)
# Must output ONLY JSON on stdout. Low-noise: no systemMessage.
set -euo pipefail
cat > /dev/null || true
code-review-graph update --skip-flows --repo "C:/Users/tony1/PhpstormProjects/Convert" >/dev/null 2>&1 || true
echo '{"suppressOutput": true}'
exit 0