[Fix] Remove all emoji violations from code files

- Replaced emojis with ASCII text markers ([OK], [ERROR], [WARNING], etc.)
- Fixed 38+ violations across 20 files (7 Python, 6 shell scripts, 6 hooks, 1 API)
- All modified files pass syntax verification
- Conforms to CODING_GUIDELINES.md NO EMOJIS rule

Details:
- Python test files: check_record_counts.py, test_*.py (31 fixes)
- API utils: context_compression.py regex pattern updated
- Shell scripts: setup/test/install/upgrade scripts (64+ fixes)
- Hook scripts: task-complete, user-prompt-submit, sync-contexts (10 fixes)

Verification: All files pass syntax checks (python -m py_compile, bash -n)
Report: FIXES_APPLIED.md contains complete change log

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-17 13:06:33 -07:00
parent 25f3759ecc
commit fce1345a40
21 changed files with 376 additions and 123 deletions

View File

@@ -25,7 +25,7 @@ echo ""
# Check if hooks directory exists
if [ ! -d "$HOOKS_DIR" ]; then
echo " ERROR: Hooks directory not found at $HOOKS_DIR"
echo "[ERROR] ERROR: Hooks directory not found at $HOOKS_DIR"
exit 1
fi
@@ -36,12 +36,12 @@ mkdir -p "$BACKUP_DIR"
if [ -f "$HOOKS_DIR/user-prompt-submit" ]; then
cp "$HOOKS_DIR/user-prompt-submit" "$BACKUP_DIR/"
echo " Backed up user-prompt-submit"
echo " [OK] Backed up user-prompt-submit"
fi
if [ -f "$HOOKS_DIR/task-complete" ]; then
cp "$HOOKS_DIR/task-complete" "$BACKUP_DIR/"
echo " Backed up task-complete"
echo " [OK] Backed up task-complete"
fi
echo " Backup location: $BACKUP_DIR"
@@ -53,24 +53,24 @@ echo "[2/5] Installing offline-capable hooks..."
if [ -f "$HOOKS_DIR/user-prompt-submit-v2" ]; then
cp "$HOOKS_DIR/user-prompt-submit-v2" "$HOOKS_DIR/user-prompt-submit"
chmod +x "$HOOKS_DIR/user-prompt-submit"
echo " Installed user-prompt-submit (v2)"
echo " [OK] Installed user-prompt-submit (v2)"
else
echo " Warning: user-prompt-submit-v2 not found"
echo " [WARNING] Warning: user-prompt-submit-v2 not found"
fi
if [ -f "$HOOKS_DIR/task-complete-v2" ]; then
cp "$HOOKS_DIR/task-complete-v2" "$HOOKS_DIR/task-complete"
chmod +x "$HOOKS_DIR/task-complete"
echo " Installed task-complete (v2)"
echo " [OK] Installed task-complete (v2)"
else
echo " Warning: task-complete-v2 not found"
echo " [WARNING] Warning: task-complete-v2 not found"
fi
if [ -f "$HOOKS_DIR/sync-contexts" ]; then
chmod +x "$HOOKS_DIR/sync-contexts"
echo " Made sync-contexts executable"
echo " [OK] Made sync-contexts executable"
else
echo " Warning: sync-contexts not found"
echo " [WARNING] Warning: sync-contexts not found"
fi
echo ""
@@ -81,8 +81,8 @@ mkdir -p "$PROJECT_ROOT/.claude/context-cache"
mkdir -p "$PROJECT_ROOT/.claude/context-queue/pending"
mkdir -p "$PROJECT_ROOT/.claude/context-queue/uploaded"
mkdir -p "$PROJECT_ROOT/.claude/context-queue/failed"
echo " Created .claude/context-cache/"
echo " Created .claude/context-queue/{pending,uploaded,failed}/"
echo " [OK] Created .claude/context-cache/"
echo " [OK] Created .claude/context-queue/{pending,uploaded,failed}/"
echo ""
# Step 4: Update .gitignore
@@ -96,12 +96,12 @@ if [ -f "$GITIGNORE" ]; then
echo "# Context recall local storage (offline mode)" >> "$GITIGNORE"
echo ".claude/context-cache/" >> "$GITIGNORE"
echo ".claude/context-queue/" >> "$GITIGNORE"
echo " Added entries to .gitignore"
echo " [OK] Added entries to .gitignore"
else
echo " .gitignore already updated"
fi
else
echo " Warning: .gitignore not found"
echo " [WARNING] Warning: .gitignore not found"
fi
echo ""
@@ -113,35 +113,35 @@ VERIFICATION_PASSED=true
# Check hooks are executable
if [ ! -x "$HOOKS_DIR/user-prompt-submit" ]; then
echo " user-prompt-submit is not executable"
echo " [ERROR] user-prompt-submit is not executable"
VERIFICATION_PASSED=false
fi
if [ ! -x "$HOOKS_DIR/task-complete" ]; then
echo " task-complete is not executable"
echo " [ERROR] task-complete is not executable"
VERIFICATION_PASSED=false
fi
if [ ! -x "$HOOKS_DIR/sync-contexts" ]; then
echo " sync-contexts is not executable"
echo " [ERROR] sync-contexts is not executable"
VERIFICATION_PASSED=false
fi
# Check directories exist
if [ ! -d "$PROJECT_ROOT/.claude/context-cache" ]; then
echo " context-cache directory missing"
echo " [ERROR] context-cache directory missing"
VERIFICATION_PASSED=false
fi
if [ ! -d "$PROJECT_ROOT/.claude/context-queue/pending" ]; then
echo " context-queue/pending directory missing"
echo " [ERROR] context-queue/pending directory missing"
VERIFICATION_PASSED=false
fi
if [ "$VERIFICATION_PASSED" = "true" ]; then
echo " All checks passed"
echo " [OK] All checks passed"
else
echo " Some checks failed - please review"
echo " [WARNING] Some checks failed - please review"
fi
echo ""
@@ -149,7 +149,7 @@ echo "=========================================="
echo "Upgrade Complete!"
echo "=========================================="
echo ""
echo " Offline mode is now active!"
echo "[SUCCESS] Offline mode is now active!"
echo ""
echo "Features enabled:"
echo " • Context caching for offline reading"