tokentracker-cli 0.14.2 → 0.14.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.
@@ -104,7 +104,7 @@ async function fetchClaudeUsageLimits(accessToken, { fetchImpl = fetch, maxAttem
104
104
  for (let attempt = 0; attempt < maxAttempts; attempt++) {
105
105
  const res = await fetchImpl(url, { method: "GET", headers });
106
106
  if (res.status === 401) {
107
- throw new Error("token_expired");
107
+ throw new Error("Claude token expired — run `claude` once to refresh.");
108
108
  }
109
109
  if ((res.status === 429 || res.status === 503) && attempt < maxAttempts - 1) {
110
110
  const ra = res.headers.get("retry-after");
@@ -116,7 +116,7 @@ async function fetchClaudeUsageLimits(accessToken, { fetchImpl = fetch, maxAttem
116
116
  if (!res.ok) {
117
117
  if (res.status === 429) {
118
118
  throw new Error(
119
- "Claude API rate limited (429). Too many usage checks — wait ~1 minute and refresh.",
119
+ "Claude API rate limited (429) — wait ~1 minute and refresh.",
120
120
  );
121
121
  }
122
122
  throw new Error(`Claude API returned ${res.status}`);