UNPKG

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
// 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!' } };