claude-monitor
Version:
Real-time terminal monitoring tool for Claude AI token usage
39 lines • 989 B
JavaScript
export const PLANS = {
pro: {
name: 'Pro',
tokenLimit: 19_000,
messageLimit: 100,
description: 'Claude Pro subscription',
},
max5: {
name: 'Max5',
tokenLimit: 88_000,
messageLimit: 500,
description: 'Claude Max 5 subscription',
},
max20: {
name: 'Max20',
tokenLimit: 220_000,
messageLimit: 2000,
description: 'Claude Max 20 subscription',
},
custom: {
name: 'Custom',
tokenLimit: 0,
messageLimit: 0,
description: 'Custom plan with auto-detected limits',
},
};
export function getPlan(planType) {
return PLANS[planType];
}
export function getTokenLimit(planType, customLimit) {
if (planType === 'custom' && customLimit) {
return customLimit;
}
return PLANS[planType].tokenLimit;
}
export function formatPlanName(planType) {
return PLANS[planType].name.toUpperCase();
}
//# sourceMappingURL=plans.js.map