@wjarka/cezarion 0.14.9-dev.829 → 0.14.9-pr546.830
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.
|
@@ -18,8 +18,11 @@ const CONTROL_RE = /[\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]/gu;
|
|
|
18
18
|
* prose like "context length exceeded" or "model not found" matches none of these.
|
|
19
19
|
* Cursor's explicit RetriableError includes stream-protocol failures (#508);
|
|
20
20
|
* the word boundary keeps NonRetriableError and unknown protocol errors fatal.
|
|
21
|
+
* `[resource_exhausted]` is the capacity class (#531) and must stay transient
|
|
22
|
+
* even when Cursor omits the RetriableError wrapper. Do not treat every
|
|
23
|
+
* Cursor `[internal]` code as transient.
|
|
21
24
|
*/
|
|
22
|
-
const TRANSIENT_SIGNAL_RE = /\b(?:429|500|502|503|504|rate[ _-]?limit(?:ed)?|overloaded|temporar(?:y|ily)|timed?[ _-]?out|bad gateway|service unavailable|internal server error|connection (?:reset|refused|closed|error)|econn(?:reset|refused|aborted)|socket hang up|try again|retry|RetriableError)\b/i;
|
|
25
|
+
const TRANSIENT_SIGNAL_RE = /\b(?:429|500|502|503|504|rate[ _-]?limit(?:ed)?|overloaded|temporar(?:y|ily)|timed?[ _-]?out|bad gateway|service unavailable|internal server error|connection (?:reset|refused|closed|error)|econn(?:reset|refused|aborted)|socket hang up|try again|retry|RetriableError|resource_exhausted)\b/i;
|
|
23
26
|
/**
|
|
24
27
|
* Strip the envelope prefix, control characters and runs of whitespace. Uncapped — this is the
|
|
25
28
|
* form classification and limit parsing read, so a verbose envelope cannot bury its reset
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cursor-provider-error.js","sourceRoot":"","sources":["../../src/core/cursor-provider-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEnD;;;;;;;GAOG;AAEH,0EAA0E;AAC1E,MAAM,CAAC,MAAM,+BA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W,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,CAAC;IAChE,IAAI,mBAAmB,CAAC,IAAI,CAAC,MAAM,CAAC;QAAE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;IACnE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;AAC3B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wjarka/cezarion",
|
|
3
|
-
"version": "0.14.9-
|
|
3
|
+
"version": "0.14.9-pr546.830",
|
|
4
4
|
"description": "Local cockpit for running and tracking AI agent tasks in your repo. Uses your logged-in `claude` CLI and `gh` — zero config, zero database.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"zod": "^4.4.3"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@open-mercato/cezar-api-client": "0.14.9-
|
|
55
|
-
"@open-mercato/cezar-contract": "0.14.9-
|
|
54
|
+
"@open-mercato/cezar-api-client": "0.14.9-pr546.830",
|
|
55
|
+
"@open-mercato/cezar-contract": "0.14.9-pr546.830",
|
|
56
56
|
"@types/node": "^20.14.0",
|
|
57
57
|
"@types/ws": "^8.18.1",
|
|
58
58
|
"esbuild": "^0.28.1",
|
|
@@ -36,6 +36,11 @@ async function prompt(id, content) {
|
|
|
36
36
|
// bare 'mock:provider-error' prefix, which every one of them contains.
|
|
37
37
|
// #508: observed Cursor 2026.09.18-9a7762b error envelope, followed by end_turn.
|
|
38
38
|
if (input.includes('mock:provider-error-protocol') && (input.includes('-exhaust') || prompts === 1)) { text('\n\nError: RetriableError: [invalid_argument] protocol error: missing EndStreamResponse'); complete(id); return; }
|
|
39
|
+
// #531: observed run 2f891027 seq 2005 capacity envelope. Match before the bare prefix.
|
|
40
|
+
// Do not reuse the protocol mock's `includes('-exhaust')` check: that token is a
|
|
41
|
+
// substring of `resource-exhausted` and would never recover.
|
|
42
|
+
if (input.includes('mock:provider-error-resource-exhausted-exhaust')) { text('\n\nError: RetriableError: [resource_exhausted] Error'); complete(id); return; }
|
|
43
|
+
if (input.includes('mock:provider-error-resource-exhausted') && prompts === 1) { text('\n\nError: RetriableError: [resource_exhausted] Error'); complete(id); return; }
|
|
39
44
|
if (input.includes('mock:provider-error-unknown-protocol')) { text('\n\nError: [invalid_argument] protocol error: unknown frame'); complete(id); return; }
|
|
40
45
|
if (input.includes('mock:provider-error-transient') && prompts === 1) { text('\n\nError: 502 bad gateway.'); complete(id); return; }
|
|
41
46
|
if (input.includes('mock:provider-error-bare')) { text('\n\nError: 502 bad gateway.'); complete(id); return; }
|