claude-usage-limits 1.13.1 → 1.13.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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "usage-limits",
3
3
  "displayName": "Usage Limits",
4
- "version": "1.13.1",
4
+ "version": "1.13.2",
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.13.1",
3
+ "version": "1.13.2",
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.13.1",
3
+ "version": "1.13.2",
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",
@@ -917,6 +917,11 @@ async function run(now, hookInput) {
917
917
  turnsLeft: binding && Number.isFinite(binding.turnsLeft) ? binding.turnsLeft : null,
918
918
  session: data.session,
919
919
  othersSummary: summariseOthers(data.windows, binding && binding.key),
920
+ // Every window, trimmed to the cacheable fields, so the corrected reading
921
+ // can be recorded for all three columns of the status line on a cache
922
+ // hit too. Recording the binding window alone left the other two at
923
+ // their raw snapshots on every short turn, where the pulse never runs.
924
+ windows: (data.windows || []).map(cacheableBinding),
920
925
  sessions: data.sessions,
921
926
  staleWindows: data.staleWindows,
922
927
  planChanged: data.planChanged,
@@ -957,7 +962,7 @@ async function run(now, hookInput) {
957
962
  // too often to scan for itself, and without this it shows the raw snapshot,
958
963
  // which during a heavy session is wrong by tens of points in the flattering
959
964
  // direction.
960
- reading.record(binding, now, usage.isCodex() ? require('./codex.js').homeDir() : null);
965
+ reading.recordAll(view.windows && view.windows.length ? view.windows : [binding], now, usage.isCodex() ? require('./codex.js').homeDir() : null);
961
966
  const carry = relayState(now, hookInput, binding, sessionId);
962
967
  // An instruction the user typed at /usage-limits:voice set. The learned
963
968
  // traits are for writing AS them and stay out of the way; this is them