instar 1.3.90 → 1.3.91
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/dist/commands/server.d.ts.map +1 -1
- package/dist/commands/server.js +7 -0
- package/dist/commands/server.js.map +1 -1
- package/dist/core/SessionManager.d.ts +20 -3
- package/dist/core/SessionManager.d.ts.map +1 -1
- package/dist/core/SessionManager.js +54 -6
- package/dist/core/SessionManager.js.map +1 -1
- package/dist/monitoring/RateLimitSentinel.d.ts +24 -2
- package/dist/monitoring/RateLimitSentinel.d.ts.map +1 -1
- package/dist/monitoring/RateLimitSentinel.js +25 -14
- package/dist/monitoring/RateLimitSentinel.js.map +1 -1
- package/package.json +1 -1
- package/src/data/builtin-manifest.json +3 -3
- package/upgrades/1.3.91.md +54 -0
- package/upgrades/side-effects/session-error-nudge-rearm.md +17 -0
- package/upgrades/side-effects/transient-api-error-recovery-generalization.md +18 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/commands/server.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAkSH,UAAU,YAAY;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;2DACuD;IACvD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAksDD,wBAAsB,WAAW,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/commands/server.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAkSH,UAAU,YAAY;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;2DACuD;IACvD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAksDD,wBAAsB,WAAW,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAuhOtE;AAED,wBAAsB,UAAU,CAAC,OAAO,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAsDzE;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,aAAa,CAAC,OAAO,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAuD5E"}
|
package/dist/commands/server.js
CHANGED
|
@@ -5245,6 +5245,13 @@ export async function startServer(options) {
|
|
|
5245
5245
|
sessionManager.on('rateLimitedAtIdle', (sessionName) => {
|
|
5246
5246
|
rateLimitSentinel.report(sessionName, 'idle-error');
|
|
5247
5247
|
});
|
|
5248
|
+
// Generic transient API errors (500/502/503, timeout, connection drop) ride the
|
|
5249
|
+
// SAME backoff→verify→escalate lifecycle as throttles, with a faster backoff
|
|
5250
|
+
// schedule (they usually clear in seconds). Generalizing the proven recovery to
|
|
5251
|
+
// the whole transient-API class is the 2026-05-29 future-proofing ask (topic 13481).
|
|
5252
|
+
sessionManager.on('apiErrorAtIdle', (sessionName) => {
|
|
5253
|
+
rateLimitSentinel.report(sessionName, 'idle-error', { errorClass: 'transient-api' });
|
|
5254
|
+
});
|
|
5248
5255
|
if (rlsCfg.enabled !== false) {
|
|
5249
5256
|
console.log(pc.green(' RateLimitSentinel enabled (server-throttle backoff + check-ins)'));
|
|
5250
5257
|
}
|