claude-usage-limits 1.39.3 → 1.39.4

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "usage-limits",
3
3
  "displayName": "Usage Limits",
4
- "version": "1.39.3",
4
+ "version": "1.39.4",
5
5
  "description": "Puts your remaining Claude Code usage limit into Claude's context before every prompt, so it opens with what fits in the budget instead of starting work that gets cut off. Reports headroom as turns rather than percentages, prices a job before you start it, and detects your plan tier.",
6
6
  "author": {
7
7
  "name": "Ridelink",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "usage-limits",
3
- "version": "1.39.3",
3
+ "version": "1.39.4",
4
4
  "description": "Reports how much of your Codex usage limit is left as turns of work rather than a percentage, prices a job before you start it, and counts the other agents sharing the same budget.",
5
5
  "author": {
6
6
  "name": "Ridelink",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-usage-limits",
3
- "version": "1.39.3",
3
+ "version": "1.39.4",
4
4
  "description": "Puts your remaining Claude Code usage limit into Claude's context before every prompt, so it opens with what fits in the budget instead of starting work that gets cut off. Reports headroom as turns rather than percentages, prices a job before you start it, and detects your plan tier.",
5
5
  "keywords": [
6
6
  "claude",
@@ -686,11 +686,19 @@ function briefText(input) {
686
686
  if (Number.isFinite(parts.turnsLeft)) {
687
687
  // Another session spending the same budget means fewer of those turns are
688
688
  // yours, so say both numbers rather than the flattering one.
689
+ // The stance below is judged on yourTurnsLeft, so whenever that is the
690
+ // smaller number it has to be on the line too. Printing only the window's
691
+ // figure is how a brief came to say "the budget is nearly gone" beside
692
+ // "about 594 turns of headroom": both were true, of different numbers.
693
+ const yours = Number.isFinite(parts.yourTurnsLeft) ? parts.yourTurnsLeft : null;
694
+ const fewerYours = yours !== null && yours < parts.turnsLeft * 0.75;
689
695
  const shared =
690
- parts.sessions > 1 && Number.isFinite(parts.yourTurnsLeft)
691
- ? ' (' + parts.sessions + ' sessions active, roughly ' + parts.yourTurnsLeft +
696
+ parts.sessions > 1 && yours !== null
697
+ ? ' (' + parts.sessions + ' sessions active, roughly ' + yours +
692
698
  ' of them yours)'
693
- : '';
699
+ : fewerYours
700
+ ? ' (about ' + count(yours, 'turn') + ' of that yours at this context size)'
701
+ : '';
694
702
  bound.push('about ' + count(parts.turnsLeft, 'turn') + ' of headroom' + shared);
695
703
  // A turn count is a poor sense of urgency when several agents are spending
696
704
  // at once: two hundred turns sounds like plenty and can be gone in ten