claude-code-wrapped 0.1.8 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -31,25 +31,9 @@ CONTRIB_COLORS = ["#161B22", "#0E4429", "#006D32", "#26A641", "#39D353"]
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
def wait_for_keypress():
|
|
34
|
-
"""Wait for user to press Enter
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
import tty
|
|
38
|
-
fd = sys.stdin.fileno()
|
|
39
|
-
old_settings = termios.tcgetattr(fd)
|
|
40
|
-
try:
|
|
41
|
-
tty.setraw(fd)
|
|
42
|
-
ch = sys.stdin.read(1)
|
|
43
|
-
# Also handle escape sequences for special keys
|
|
44
|
-
if ch == '\x1b':
|
|
45
|
-
sys.stdin.read(2) # consume rest of escape sequence
|
|
46
|
-
return ch
|
|
47
|
-
finally:
|
|
48
|
-
termios.tcsetattr(fd, termios.TCSADRAIN, old_settings)
|
|
49
|
-
except (ImportError, AttributeError, OSError):
|
|
50
|
-
# Fallback for non-Unix systems (Windows) or piped input
|
|
51
|
-
input()
|
|
52
|
-
return '\n'
|
|
34
|
+
"""Wait for user to press Enter."""
|
|
35
|
+
input()
|
|
36
|
+
return '\n'
|
|
53
37
|
|
|
54
38
|
|
|
55
39
|
def create_dramatic_stat(value: str, label: str, subtitle: str = "", color: str = COLORS["orange"], extra_lines: list[tuple[str, str]] = None) -> Text:
|
|
@@ -475,23 +459,7 @@ def create_credits_roll(stats: WrappedStats) -> list[Text]:
|
|
|
475
459
|
averages.append(" [ENTER]", style=Style(color=COLORS["dark"]))
|
|
476
460
|
frames.append(averages)
|
|
477
461
|
|
|
478
|
-
# Frame 4:
|
|
479
|
-
code_activity = Text()
|
|
480
|
-
code_activity.append("\n\n\n")
|
|
481
|
-
code_activity.append(" C O D E A C T I V I T Y\n\n", style=Style(color=COLORS["orange"], bold=True))
|
|
482
|
-
total_code_changes = stats.total_edits + stats.total_writes
|
|
483
|
-
code_activity.append(" File Changes\n", style=Style(color=COLORS["white"], bold=True))
|
|
484
|
-
code_activity.append(f" Edits: {stats.total_edits:,}\n", style=Style(color=COLORS["gray"]))
|
|
485
|
-
code_activity.append(f" Writes: {stats.total_writes:,}\n", style=Style(color=COLORS["gray"]))
|
|
486
|
-
code_activity.append(f" Total: {total_code_changes:,}\n", style=Style(color=COLORS["orange"], bold=True))
|
|
487
|
-
code_activity.append("\n Averages\n", style=Style(color=COLORS["white"], bold=True))
|
|
488
|
-
code_activity.append(f" Per day: {stats.avg_edits_per_day:.1f}\n", style=Style(color=COLORS["gray"]))
|
|
489
|
-
code_activity.append(f" Per week: {stats.avg_edits_per_week:.1f}\n", style=Style(color=COLORS["gray"]))
|
|
490
|
-
code_activity.append("\n\n")
|
|
491
|
-
code_activity.append(" [ENTER]", style=Style(color=COLORS["dark"]))
|
|
492
|
-
frames.append(code_activity)
|
|
493
|
-
|
|
494
|
-
# Frame 5: Longest Conversation
|
|
462
|
+
# Frame 4: Longest Conversation
|
|
495
463
|
if stats.longest_conversation_messages > 0:
|
|
496
464
|
longest = Text()
|
|
497
465
|
longest.append("\n\n\n")
|
package/package.json
CHANGED