claude-code-statusline
Version:
A cute pet-themed status line plugin for Claude Code that displays your token usage through adorable emoji pets!
48 lines (47 loc) âĒ 1.76 kB
JavaScript
// Pet states based on 5h usage percentage (internationalized)
export const CAT_STATES = {
JUST_STARTED: {
emojis: ['ðļ', 'ð', 'ðą'],
texts: ['Just getting started', 'Warming up...', 'Taking it easy'],
animationSpeed: 8000, // 8 seconds per frame
usageRange: [0, 10] // 0-10% usage
},
LIGHT_WORK: {
emojis: ['ðą', 'ð―', 'ðŧ'],
texts: ['Working casually', 'Staying relaxed', 'Nice and steady'],
animationSpeed: 6000, // 6 seconds per frame
usageRange: [10, 30] // 10-30% usage
},
GETTING_BUSY: {
emojis: ['ð', 'ðš', 'ðŧ'],
texts: ['Getting busy now', 'Picking up steam', 'Pace is quickening'],
animationSpeed: 5000, // 5 seconds per frame
usageRange: [30, 60] // 30-60% usage
},
VERY_ACTIVE: {
emojis: ['ðš', 'ðž', 'ðŧ'],
texts: ['Very active!', 'Deeply focused', 'Full of energy!'],
animationSpeed: 4000, // 4 seconds per frame
usageRange: [60, 80] // 60-80% usage
},
INTENSE_MODE: {
emojis: ['ðĪŠ', 'ðž', 'ðū'],
texts: ['High intensity!', 'Going full throttle!', 'Super focused!'],
animationSpeed: 3000, // 3 seconds per frame
usageRange: [80, 95] // 80-95% usage
},
NEARLY_EXHAUSTED: {
emojis: ['ðĩ', 'ðŋ', 'ð°'],
texts: ['Nearly exhausted...', 'Pushing the limits', 'Hang in there!'],
animationSpeed: 5000, // 5 seconds per frame
usageRange: [95, 100] // 95-100% usage
}
};
// Special states that appear randomly
export const SPECIAL_STATES = {
STRETCHING: { emoji: 'ð―', text: 'Stretching~' },
GROOMING: { emoji: 'ðŧ', text: 'Grooming' },
YAWNING: { emoji: 'ðĨą', text: 'Yawning~' },
CONTENT: { emoji: 'ð', text: 'Content purring' },
ALERT: { emoji: 'ð', text: 'Alert!' }
};