[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:
@@ -25,14 +25,14 @@ echo ""
|
||||
SHARED_TEMPLATE="C:/Users/MikeSwanson/claude-projects/shared-data/context-recall-config.env"
|
||||
|
||||
if [ ! -f "$SHARED_TEMPLATE" ]; then
|
||||
echo "❌ ERROR: Template not found at $SHARED_TEMPLATE"
|
||||
echo "[ERROR] ERROR: Template not found at $SHARED_TEMPLATE"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Copy template
|
||||
echo "[1/3] Copying configuration template..."
|
||||
cp "$SHARED_TEMPLATE" "$CONFIG_FILE"
|
||||
echo "✓ Configuration file created"
|
||||
echo "[OK] Configuration file created"
|
||||
echo ""
|
||||
|
||||
# Get project ID from git
|
||||
@@ -45,12 +45,12 @@ if [ -z "$PROJECT_ID" ]; then
|
||||
if [ -n "$GIT_REMOTE" ]; then
|
||||
PROJECT_ID=$(echo -n "$GIT_REMOTE" | md5sum | cut -d' ' -f1)
|
||||
git config --local claude.projectid "$PROJECT_ID"
|
||||
echo "✓ Generated project ID: $PROJECT_ID"
|
||||
echo "[OK] Generated project ID: $PROJECT_ID"
|
||||
else
|
||||
echo "⚠ Warning: Could not detect project ID"
|
||||
echo "[WARNING] Could not detect project ID"
|
||||
fi
|
||||
else
|
||||
echo "✓ Project ID: $PROJECT_ID"
|
||||
echo "[OK] Project ID: $PROJECT_ID"
|
||||
fi
|
||||
|
||||
# Update config with project ID
|
||||
@@ -69,7 +69,7 @@ read -sp "Password: " API_PASSWORD
|
||||
echo ""
|
||||
|
||||
if [ -z "$API_PASSWORD" ]; then
|
||||
echo "❌ ERROR: Password required"
|
||||
echo "[ERROR] ERROR: Password required"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@@ -79,14 +79,14 @@ JWT_TOKEN=$(curl -s -X POST http://172.16.3.30:8001/api/auth/login \
|
||||
grep -o '"access_token":"[^"]*' | sed 's/"access_token":"//')
|
||||
|
||||
if [ -z "$JWT_TOKEN" ]; then
|
||||
echo "❌ ERROR: Failed to get JWT token"
|
||||
echo "[ERROR] ERROR: Failed to get JWT token"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Update config with token
|
||||
sed -i "s|JWT_TOKEN=.*|JWT_TOKEN=$JWT_TOKEN|" "$CONFIG_FILE"
|
||||
|
||||
echo "✓ JWT token obtained and saved"
|
||||
echo "[OK] JWT token obtained and saved"
|
||||
echo ""
|
||||
|
||||
echo "=========================================="
|
||||
|
||||
Reference in New Issue
Block a user