@wjarka/cezarion 0.14.9-dev.1009 → 0.14.9-dev.1011
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/core/codex-app-server-runner.js +79 -0
- package/dist/core/codex-app-server-runner.js.map +1 -1
- package/dist/core/codex-stream-error.d.ts +2 -0
- package/dist/core/codex-stream-error.js +12 -0
- package/dist/core/codex-stream-error.js.map +1 -0
- package/dist/core/codex-ui-mapper.js +9 -0
- package/dist/core/codex-ui-mapper.js.map +1 -1
- package/dist/delegation/routes.d.ts +13 -13
- package/dist/delegation/transport.d.ts +13 -13
- package/dist/workflows/run.js +37 -7
- package/dist/workflows/run.js.map +1 -1
- package/package.json +3 -3
- package/scripts/mock-codex-app-server.mjs +16 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wjarka/cezarion",
|
|
3
|
-
"version": "0.14.9-dev.
|
|
3
|
+
"version": "0.14.9-dev.1011",
|
|
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-dev.
|
|
55
|
-
"@open-mercato/cezar-contract": "0.14.9-dev.
|
|
54
|
+
"@open-mercato/cezar-api-client": "0.14.9-dev.1011",
|
|
55
|
+
"@open-mercato/cezar-contract": "0.14.9-dev.1011",
|
|
56
56
|
"@types/node": "^20.14.0",
|
|
57
57
|
"@types/ws": "^8.18.1",
|
|
58
58
|
"esbuild": "^0.28.1",
|
|
@@ -259,6 +259,22 @@ rl.on('line', async (line) => {
|
|
|
259
259
|
}, 250);
|
|
260
260
|
return;
|
|
261
261
|
}
|
|
262
|
+
if (turnText.includes('mock:stream-retry')) {
|
|
263
|
+
// Error payloads from the real 0.155.1 reconnect probe; see stream-retry.md.
|
|
264
|
+
const frames = [{"method": "error", "params": {"error": {"message": "Reconnecting... 2/5", "codexErrorInfo": {"responseStreamDisconnected": {"httpStatusCode": null}}, "additionalDetails": "stream disconnected before completion: invalid peer certificate: UnknownIssuer"}, "willRetry": true}}, {"method": "error", "params": {"error": {"message": "Reconnecting... waiting for network", "additionalDetails": "Connection failed: error sending request"}, "willRetry": true}}];
|
|
265
|
+
const send = frame => emit({ ...frame, params: { ...frame.params, threadId: 'th_mock_1', turnId: 'turn_mock_1' } });
|
|
266
|
+
send(frames[0]);
|
|
267
|
+
if (turnText.includes('recover')) {
|
|
268
|
+
await sleep(20);
|
|
269
|
+
emit({ method: 'item/completed', params: { threadId: 'th_mock_1', turnId: 'turn_mock_1', item: { type: 'agentMessage', id: 'recovered_message', text: 'Recovered after reconnect.' } } });
|
|
270
|
+
emit({ method: 'turn/completed', params: { threadId: 'th_mock_1', turn: { id: 'turn_mock_1', status: 'completed' } } });
|
|
271
|
+
} else {
|
|
272
|
+
send(frames[1]);
|
|
273
|
+
const retries = setInterval(() => send(frames[1]), 10_000);
|
|
274
|
+
rl.once('close', () => clearInterval(retries));
|
|
275
|
+
}
|
|
276
|
+
return;
|
|
277
|
+
}
|
|
262
278
|
if (turnText.includes('mock:provider-error') || turnText.includes('mock:empty-success')) {
|
|
263
279
|
// Derived from the 0.147 rollout and upstream envelope; see the source
|
|
264
280
|
// core/__fixtures__/codex/provider-error.md and its independent golden NDJSON.
|