claude-usage-limits 1.11.3 → 1.11.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.11.
|
|
4
|
+
"version": "1.11.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.11.
|
|
3
|
+
"version": "1.11.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.11.
|
|
3
|
+
"version": "1.11.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",
|
|
@@ -421,9 +421,17 @@ function render(built, options) {
|
|
|
421
421
|
footer.push(colour ? bars.paint(built.note, colour, mode) : bars.dim(built.note, mode));
|
|
422
422
|
}
|
|
423
423
|
if (built.pace && built.pace.runsOut && Number.isFinite(built.pace.headroomMs)) {
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
424
|
+
// The longest form that fits: a sentence in a wide pane, a phrase in a
|
|
425
|
+
// narrow one, never a sentence cut off halfway.
|
|
426
|
+
const left = usage.formatDuration(built.pace.headroomMs);
|
|
427
|
+
const turns = Number.isFinite(built.pace.turnsLeft) ? ', about ' + built.pace.turnsLeft + ' turns' : '';
|
|
428
|
+
const forms = [
|
|
429
|
+
'at this pace the ' + built.pace.label + ' window runs out in ' + left + turns,
|
|
430
|
+
'runs out in ' + left + ' at this pace' + turns,
|
|
431
|
+
'runs out in ' + left + ' at this pace',
|
|
432
|
+
'wall in ' + left,
|
|
433
|
+
];
|
|
434
|
+
const text = forms.find((form) => form.length <= real) || forms[forms.length - 1];
|
|
427
435
|
const colour = built.pace.headroomMs < 10 * MINUTE ? bars.THEME.error : built.pace.headroomMs < 30 * MINUTE ? bars.THEME.warning : null;
|
|
428
436
|
footer.push(colour ? bars.paint(text, colour, mode) : bars.dim(text, mode));
|
|
429
437
|
}
|