claude-usage-limits 1.16.1 → 1.17.0

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.1",
4
+ "version": "1.17.0",
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.1",
3
+ "version": "1.17.0",
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.1",
3
+ "version": "1.17.0",
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",
@@ -552,8 +552,12 @@ function briefText(parts) {
552
552
  // The command, in the host's own vocabulary. /effort does not exist
553
553
  // in Codex, and naming it there is telling Codex to do nothing while
554
554
  // believing it acted.
555
+ // The host this line is being written FOR, not whatever the process
556
+ // happens to be set to. Reading global state here meant the sentence
557
+ // was only accidentally right, and a caller that built a line for
558
+ // the other host got a command that does not exist there.
555
559
  (warning.cheaper && warning.cheaper.effort
556
- ? ' To drop it: ' + usage.levers(usage.currentHost()).effort(warning.cheaper.effort) + '.'
560
+ ? ' To drop it: ' + usage.levers(parts.host || usage.currentHost()).effort(warning.cheaper.effort) + '.'
557
561
  : '')
558
562
  );
559
563
  }
@@ -1063,6 +1067,7 @@ async function run(now, hookInput) {
1063
1067
  : null,
1064
1068
  othersSummary: view.othersSummary,
1065
1069
  escape: view.escape || null,
1070
+ host: usage.currentHost(),
1066
1071
  turnsLeft: view.turnsLeft,
1067
1072
  effortWarning: view.effortWarning || null,
1068
1073
  // Outside the cache: it is cheap, and it belongs to the other agent's