tokburn 0.2.1 → 0.2.2

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.
package/init-ui.mjs CHANGED
@@ -309,8 +309,8 @@ function PlanStep({ onSelect }) {
309
309
  React.createElement(Box, { paddingLeft: 4 },
310
310
  React.createElement(Select, {
311
311
  options: [
312
- { label: 'Pro ~500K tokens / 5hr window', value: 'pro' },
313
- { label: 'Max ~2M tokens / 5hr window', value: 'max' },
312
+ { label: 'Pro ~500K usage limit / 5hr', value: 'pro' },
313
+ { label: 'Max ~2M usage limit / 5hr', value: 'max' },
314
314
  { label: 'API only (no plan limits)', value: 'api' },
315
315
  ],
316
316
  onChange: onSelect,
package/init.js CHANGED
@@ -42,8 +42,8 @@ async function runInit() {
42
42
 
43
43
  console.log(' [1/4] Which Claude plan are you on?');
44
44
  console.log('');
45
- console.log(' 1) Pro ~500K tokens / 5hr window');
46
- console.log(' 2) Max ~2M tokens / 5hr window');
45
+ console.log(' 1) Pro ~500K usage limit / 5hr');
46
+ console.log(' 2) Max ~2M usage limit / 5hr');
47
47
  console.log(' 3) API only (no plan limits)');
48
48
  console.log('');
49
49
  const planChoice = (await ask(' > ')).trim();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tokburn",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "See exactly how fast you're burning tokens and money across Claude Code sessions",
5
5
  "main": "cli.js",
6
6
  "bin": {
package/statusline.js CHANGED
@@ -57,8 +57,11 @@ function formatResetTime(resetTimestamp) {
57
57
  function buildModules(data) {
58
58
  return {
59
59
  model_context: function () {
60
- const model = (data.model && data.model.display_name) || '?';
60
+ const model = (data.model && data.model.display_name)
61
+ || (data.model && data.model.id)
62
+ || '';
61
63
  const ctxPct = Math.round((data.context_window && data.context_window.used_percentage) || 0);
64
+ if (!model) return 'ctx ' + ctxPct + '%';
62
65
  return model + ' | ctx ' + ctxPct + '%';
63
66
  },
64
67