[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

@@ -20,7 +20,7 @@ CONFIG_FILE="$PROJECT_ROOT/.claude/context-recall-config.env"
# Load configuration
if [ ! -f "$CONFIG_FILE" ]; then
echo " ERROR: Configuration file not found: $CONFIG_FILE"
echo "[ERROR] ERROR: Configuration file not found: $CONFIG_FILE"
echo ""
echo "Please run setup first:"
echo " bash scripts/setup-context-recall.sh"
@@ -48,11 +48,11 @@ run_test() {
echo -n "Testing: $test_name... "
if eval "$test_command" >/dev/null 2>&1; then
echo " PASS"
echo "[OK] PASS"
((TESTS_PASSED++))
return 0
else
echo " FAIL"
echo "[ERROR] FAIL"
((TESTS_FAILED++))
return 1
fi
@@ -155,7 +155,7 @@ echo "[Test 7] Hook Execution"
echo -n "Testing: user-prompt-submit hook execution... "
HOOK_OUTPUT=$("$PROJECT_ROOT/.claude/hooks/user-prompt-submit" 2>&1)
if [ $? -eq 0 ]; then
echo " PASS"
echo "[OK] PASS"
((TESTS_PASSED++))
if echo "$HOOK_OUTPUT" | grep -q "Previous Context"; then
@@ -164,7 +164,7 @@ if [ $? -eq 0 ]; then
echo " Hook ran successfully (no context to display)"
fi
else
echo " FAIL"
echo "[ERROR] FAIL"
((TESTS_FAILED++))
echo " Output: $HOOK_OUTPUT"
fi
@@ -176,11 +176,11 @@ export TASK_FILES="test_file1.py,test_file2.py"
HOOK_OUTPUT=$("$PROJECT_ROOT/.claude/hooks/task-complete" 2>&1)
if [ $? -eq 0 ]; then
echo " PASS"
echo "[OK] PASS"
((TESTS_PASSED++))
echo " Hook completed successfully"
else
echo " FAIL"
echo "[ERROR] FAIL"
((TESTS_FAILED++))
echo " Output: $HOOK_OUTPUT"
fi
@@ -217,9 +217,9 @@ if [ -n "$TEST_CONTEXT_ID" ]; then
-H "Authorization: Bearer $JWT_TOKEN" >/dev/null 2>&1
if [ $? -eq 0 ]; then
echo " Cleaned"
echo "[OK] Cleaned"
else
echo " Failed (manual cleanup may be needed)"
echo "[WARNING] Failed (manual cleanup may be needed)"
fi
fi
echo ""
@@ -234,7 +234,7 @@ echo "Tests Failed: $TESTS_FAILED"
echo ""
if [ $TESTS_FAILED -eq 0 ]; then
echo " All tests passed! Context recall system is working correctly."
echo "[OK] All tests passed! Context recall system is working correctly."
echo ""
echo "You can now use Claude Code with automatic context recall:"
echo " 1. Start a Claude Code conversation"
@@ -243,7 +243,7 @@ if [ $TESTS_FAILED -eq 0 ]; then
echo ""
exit 0
else
echo " Some tests failed. Please check the output above."
echo "[ERROR] Some tests failed. Please check the output above."
echo ""
echo "Common issues:"
echo " - API not running: Start with 'uvicorn api.main:app --reload'"