claude-usage-limits 1.16.0 → 1.16.1

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.16.0",
4
+ "version": "1.16.1",
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.16.0",
3
+ "version": "1.16.1",
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.16.0",
3
+ "version": "1.16.1",
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",
@@ -717,7 +717,15 @@ function briefText(parts) {
717
717
  // that is a real session: the Fable weekly hit 89 per cent, the line said
718
718
  // the budget was nearly gone, and the work ended with the five-hour window
719
719
  // at 46 and every other model untouched.
720
- escapeText && (parts.pressure === 'tight' || parts.pressure === 'gone')
720
+ // Only a MODEL switch survives to 'gone'. It retires a scoped window
721
+ // outright, so the budget really is still there. Effort does not: a
722
+ // cheaper turn against an exhausted window is still a turn you cannot
723
+ // take, and telling a session at 100 per cent that it is "not out of
724
+ // budget" because medium is cheaper than high would be this plugin
725
+ // producing the exact failure it exists to prevent, in reverse - refusing
726
+ // to stop at the one moment stopping is right.
727
+ escapeText &&
728
+ (parts.pressure === 'tight' || (parts.pressure === 'gone' && escape && escape.kind === 'model'))
721
729
  ? 'This window is nearly gone, but you are not out of budget and you must ' +
722
730
  'not stop as though you were. ' + escapeText + ' Do that, say in one ' +
723
731
  'line that you switched and why, and carry on with the whole request at ' +