Fix Windows console encoding in cc_status.py
Removed emoji characters that cause UnicodeEncodeError on Windows. Script now works perfectly on all platforms! 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
28
cc_status.py
28
cc_status.py
@@ -20,63 +20,63 @@ def show_status():
|
||||
memory = json.load(f)
|
||||
|
||||
print("=" * 60)
|
||||
print("🧠 CC'S CURRENT STATUS")
|
||||
print("CC'S CURRENT STATUS")
|
||||
print("=" * 60)
|
||||
|
||||
# Session info
|
||||
print(f"\n📅 Last Session: {memory.get('last_session', 'Unknown')}")
|
||||
print(f"📊 Total Sessions: {memory.get('sessions_count', 0)}")
|
||||
print(f"\nLast Session: {memory.get('last_session', 'Unknown')}")
|
||||
print(f"Total Sessions: {memory.get('sessions_count', 0)}")
|
||||
|
||||
# Current context
|
||||
print(f"\n💭 Current Context:")
|
||||
print(f"\nCurrent Context:")
|
||||
print(f" {memory.get('quick_context', 'No context set')}")
|
||||
|
||||
# Active projects
|
||||
print(f"\n🚀 Active Projects:")
|
||||
print(f"\nActive Projects:")
|
||||
projects = memory.get('active_projects', [])
|
||||
if projects:
|
||||
for project in projects:
|
||||
project_info = memory.get('project_notes', {}).get(project, {})
|
||||
status = project_info.get('status', 'unknown')
|
||||
print(f" • {project} ({status})")
|
||||
print(f" - {project} ({status})")
|
||||
else:
|
||||
print(" No active projects")
|
||||
|
||||
# What's next
|
||||
print(f"\n📝 Next Up:")
|
||||
print(f"\nNext Up:")
|
||||
next_items = memory.get('next_up', [])
|
||||
if next_items:
|
||||
for item in next_items:
|
||||
print(f" • {item}")
|
||||
print(f" - {item}")
|
||||
else:
|
||||
print(" Nothing scheduled")
|
||||
|
||||
# Recent learnings
|
||||
print(f"\n🧠 Recent Learnings:")
|
||||
print(f"\nRecent Learnings:")
|
||||
learnings = memory.get('key_learnings', [])
|
||||
if learnings:
|
||||
for learning in learnings[-3:]: # Show last 3
|
||||
print(f" • {learning}")
|
||||
print(f" - {learning}")
|
||||
else:
|
||||
print(" No learnings yet")
|
||||
|
||||
# Recent sessions
|
||||
print(f"\n📚 Recent Sessions:")
|
||||
print(f"\nRecent Sessions:")
|
||||
session_files = sorted(SESSIONS_DIR.glob('*.md'), reverse=True)[:3]
|
||||
if session_files:
|
||||
for session in session_files:
|
||||
print(f" • {session.name}")
|
||||
print(f" - {session.name}")
|
||||
else:
|
||||
print(" No sessions logged")
|
||||
|
||||
# User preferences
|
||||
print(f"\n👤 User Profile:")
|
||||
print(f"\nUser Profile:")
|
||||
prefs = memory.get('user_preferences', {})
|
||||
print(f" Skill Level: {prefs.get('skill_level', 'Unknown')}")
|
||||
print(f" Style: {prefs.get('style', 'Unknown')}")
|
||||
|
||||
print("\n" + "=" * 60)
|
||||
print("Ready to code! 💪🔥")
|
||||
print("Ready to code!")
|
||||
print("=" * 60)
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
Reference in New Issue
Block a user