mirror of
https://github.com/Earth-Genesis-Games/Ajedrez_Purgatorio.git
synced 2026-09-11 09:47:35 +00:00
- Install CCGS agent/skill/hook framework (.claude/, docs templates, GitHub issue/PR templates) - Configure CLAUDE.md and technical-preferences.md for Unity 6000.3.3f1 (C#, URP, collider-based mouse picking) - Point engine reference import at docs/engine-reference/unity/ and remove unused Godot/Unreal reference docs - Add Version Awareness section to unity-specialist agent - Set production/review-mode.txt to lean - Add design/gdd/combat-mode.md: reverse-documented GDD for the vs-AI Combat mode, confirming it as the foundation for the guion.md narrative campaign (separate from Classic mode) - Add docs/architecture/ADR-0001: documents the existing board-state/singleton/per-mode architecture and the decision to keep Classic and Combat modes permanently separate - Add docs/architecture/control-manifest.md: programmer rules sheet sourced from ADR-0001 and Unity 6 engine reference docs - Continue in-progress Mono/Classic and Mono/Combat refactor (ScoreManager, scene/prefab updates) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
36 lines
1.2 KiB
Bash
36 lines
1.2 KiB
Bash
#!/usr/bin/env bash
|
|
# Notification hook — fires when Claude Code sends a notification
|
|
# Shows a Windows toast via PowerShell
|
|
|
|
# Read notification JSON from stdin
|
|
INPUT=$(cat)
|
|
|
|
# Extract message — try jq first, fall back to grep
|
|
if command -v jq &>/dev/null; then
|
|
MESSAGE=$(echo "$INPUT" | jq -r '.message // empty' 2>/dev/null)
|
|
fi
|
|
if [ -z "$MESSAGE" ]; then
|
|
MESSAGE=$(echo "$INPUT" | grep -oE '"message":"[^"]*"' | sed 's/"message":"//;s/"//')
|
|
fi
|
|
if [ -z "$MESSAGE" ]; then
|
|
MESSAGE="Claude Code needs your attention"
|
|
fi
|
|
|
|
# Sanitize message for PowerShell string embedding (escape single quotes)
|
|
MESSAGE_SAFE=$(echo "$MESSAGE" | sed "s/'/''/g" | head -c 200)
|
|
|
|
# Show Windows balloon tip notification (works on all Windows 10/11 without extra modules)
|
|
powershell.exe -NonInteractive -WindowStyle Hidden -Command "
|
|
Add-Type -AssemblyName System.Windows.Forms
|
|
\$notify = New-Object System.Windows.Forms.NotifyIcon
|
|
\$notify.Icon = [System.Drawing.SystemIcons]::Information
|
|
\$notify.BalloonTipTitle = 'Claude Code'
|
|
\$notify.BalloonTipText = '$MESSAGE_SAFE'
|
|
\$notify.Visible = \$true
|
|
\$notify.ShowBalloonTip(5000)
|
|
Start-Sleep -Seconds 6
|
|
\$notify.Dispose()
|
|
" 2>/dev/null &
|
|
|
|
echo "Notification: $MESSAGE_SAFE"
|