claude-code-cache-fix 3.5.4 → 3.5.5
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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-code-cache-fix",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.5",
|
|
4
4
|
"description": "Cache optimization proxy and interceptor for Claude Code. Fixes prompt cache bugs, stabilizes prefix, reduces quota burn.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./preload.mjs",
|
|
@@ -71,11 +71,15 @@ function parseHeaders(headers) {
|
|
|
71
71
|
const overage_status = get("anthropic-ratelimit-unified-overage-status");
|
|
72
72
|
const overage_util = num("anthropic-ratelimit-unified-overage-utilization");
|
|
73
73
|
const overage_reset = parseInt(get("anthropic-ratelimit-unified-overage-reset")) || 0;
|
|
74
|
+
const unified_reset = parseInt(get("anthropic-ratelimit-unified-reset")) || 0;
|
|
74
75
|
const fallback_pct = get("anthropic-ratelimit-unified-fallback-percentage");
|
|
75
76
|
const representative = get("anthropic-ratelimit-unified-representative-claim");
|
|
76
77
|
const surpassed = get("anthropic-ratelimit-unified-7d-surpassed-threshold");
|
|
77
78
|
|
|
78
|
-
|
|
79
|
+
// Accept any reset timestamp — accounts without 5h/7d quota windows (overage
|
|
80
|
+
// billing) return anthropic-ratelimit-unified-reset and/or
|
|
81
|
+
// anthropic-ratelimit-unified-overage-reset instead.
|
|
82
|
+
if (!q5h_reset && !q7d_reset && !unified_reset && !overage_reset) return null;
|
|
79
83
|
|
|
80
84
|
const now = new Date();
|
|
81
85
|
const hour = now.getUTCHours();
|