zames_pro 2.82.41 → 2.82.43
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/CHANGELOG.md +12 -0
- package/dist/send-runtime.js +6 -0
- package/dist/send-throttle.js +12 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [2.82.43] - 2026-10-22
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- **telemetry:** record the block start with the adaptive throttle off
|
|
15
|
+
|
|
16
|
+
## [2.82.42] - 2026-10-22
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
|
|
20
|
+
- **throttle:** let a forced Retry-After wait expire
|
|
21
|
+
|
|
10
22
|
## [2.82.41] - 2026-10-22
|
|
11
23
|
|
|
12
24
|
### Fixed
|
package/dist/send-runtime.js
CHANGED
|
@@ -81,6 +81,12 @@ export class SendRuntime {
|
|
|
81
81
|
if (this.opts.adaptive) {
|
|
82
82
|
this.state = applySendEvent(this.state, e, this.cfg, this.now());
|
|
83
83
|
}
|
|
84
|
+
else if (outcome === 'rate_limit' && !this.state.blockedAt) {
|
|
85
|
+
// The block START is telemetry bookkeeping, not learning: with the
|
|
86
|
+
// adaptive throttle off the fold above is skipped, so a rate-limit
|
|
87
|
+
// event used to carry NO blockMs and /limits could not average it.
|
|
88
|
+
this.state = { ...this.state, blocked: true, blockedAt: this.now() };
|
|
89
|
+
}
|
|
84
90
|
if (outcome === 'rate_limit') {
|
|
85
91
|
e = withBlockDuration(e, this.state.blockedAt, this.now());
|
|
86
92
|
}
|
package/dist/send-throttle.js
CHANGED
|
@@ -38,8 +38,18 @@ function prune(recent, now, windowMs) {
|
|
|
38
38
|
* since the last send.
|
|
39
39
|
*/
|
|
40
40
|
export function nextWaitMs(state, lastSentAt, now) {
|
|
41
|
-
if (state.forcedWaitMs > 0)
|
|
41
|
+
if (state.forcedWaitMs > 0) {
|
|
42
|
+
// A forced wait must EXPIRE: a long Retry-After used to block every
|
|
43
|
+
// send forever (the check was `> 0` only), until another event cleared
|
|
44
|
+
// it. With the request stamp the remaining time is exact; without one
|
|
45
|
+
// (a caller-built or restored state) the wait is reported ONCE, from
|
|
46
|
+
// the current call, and expires on the next.
|
|
47
|
+
if (state.forcedWaitAt) {
|
|
48
|
+
const left = state.forcedWaitMs - (now - state.forcedWaitAt);
|
|
49
|
+
return left > 0 ? left : 0;
|
|
50
|
+
}
|
|
42
51
|
return state.forcedWaitMs;
|
|
52
|
+
}
|
|
43
53
|
if (!lastSentAt)
|
|
44
54
|
return 0;
|
|
45
55
|
const gap = state.intervalMs - (now - lastSentAt);
|
|
@@ -80,6 +90,7 @@ export function applySendEvent(state, event, cfg, now = Date.now()) {
|
|
|
80
90
|
typeof event.retryAfterMs === 'number' && event.retryAfterMs > 0
|
|
81
91
|
? event.retryAfterMs
|
|
82
92
|
: cfg.rateLimitWaitMs;
|
|
93
|
+
next.forcedWaitAt = now;
|
|
83
94
|
const floor = Math.max(cfg.baseMs, cfg.limitFloorMs);
|
|
84
95
|
next.intervalMs = Math.min(cfg.maxMs, Math.max(next.intervalMs, floor) * 2);
|
|
85
96
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zames_pro",
|
|
3
|
-
"version": "2.82.
|
|
3
|
+
"version": "2.82.43",
|
|
4
4
|
"description": "Terminal coding agent that drives a real browser to chat with DeepSeek, Qwen and other web LLMs — no API key required. Reads and edits files, runs commands, commits to git, like Claude Code / Codex CLI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|