@wjarka/cezarion 0.17.0-pr2158.3294 → 0.17.0-pr2164.3305
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": "@wjarka/cezarion",
|
|
3
|
-
"version": "0.17.0-
|
|
3
|
+
"version": "0.17.0-pr2164.3305",
|
|
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",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"zod": "^4.4.3"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@open-mercato/cezar-api-client": "0.17.0-
|
|
57
|
-
"@open-mercato/cezar-contract": "0.17.0-
|
|
56
|
+
"@open-mercato/cezar-api-client": "0.17.0-pr2164.3305",
|
|
57
|
+
"@open-mercato/cezar-contract": "0.17.0-pr2164.3305",
|
|
58
58
|
"@types/node": "^24.19.1",
|
|
59
59
|
"@types/ws": "^8.18.1",
|
|
60
60
|
"esbuild": "^0.28.1",
|
|
@@ -1106,17 +1106,17 @@ function deliveryPromptText(body, received) {
|
|
|
1106
1106
|
return deliveryText;
|
|
1107
1107
|
}
|
|
1108
1108
|
|
|
1109
|
-
async function acknowledgeSteer(body, res) {
|
|
1109
|
+
async function acknowledgeSteer(body, res, deliveryText) {
|
|
1110
1110
|
const text = JSON.parse(body).parts.map(part => part.text ?? '').join('\n');
|
|
1111
1111
|
const userId = `msg_steer_user_${++steerSerial}`;
|
|
1112
|
-
// #505 review: acknowledge a steer later than the runner's lost-wake window.
|
|
1113
1112
|
const ackDelay = Number(process.env.CEZ_MOCK_OPENCODE_STEER_ACK_MS ?? 0);
|
|
1114
|
-
|
|
1115
|
-
|
|
1113
|
+
const ack = () => { res.writeHead(204); res.end(); };
|
|
1114
|
+
const acknowledge = () => { if (ackDelay > 0) setTimeout(ack, ackDelay); else ack(); };
|
|
1115
|
+
// Hold busy-input ACKs too; native consumption still streams (hearsay-tools/cezarion#2127).
|
|
1116
|
+
if (delivery) delivery.ack(deliveryText, acknowledge); else acknowledge();
|
|
1116
1117
|
send({ type: 'message.updated', properties: { info: { id: userId, sessionID: SESSION_ID, role: 'user', time: { created: Date.now() } } } });
|
|
1117
1118
|
send({ type: 'message.part.updated', properties: { part: { id: `prt_${userId}`, messageID: userId, sessionID: SESSION_ID, type: 'text', text } } });
|
|
1118
1119
|
steers.push({ userId, text });
|
|
1119
|
-
return;
|
|
1120
1120
|
}
|
|
1121
1121
|
|
|
1122
1122
|
function acknowledgePrompt(res, body, deliveryText) {
|
|
@@ -1173,7 +1173,7 @@ async function preparePromptTurn(res, url, body, received) {
|
|
|
1173
1173
|
return true;
|
|
1174
1174
|
}
|
|
1175
1175
|
if (heldBeats && url.endsWith('/prompt_async')) { clearInterval(heldBeats); heldBeats = undefined; turnActive = false; }
|
|
1176
|
-
if (turnActive && url.endsWith('/prompt_async')) { await acknowledgeSteer(body, res); return true; }
|
|
1176
|
+
if (turnActive && url.endsWith('/prompt_async')) { await acknowledgeSteer(body, res, deliveryText); return true; }
|
|
1177
1177
|
// A prompt posted while a follow-on run is due runs after it.
|
|
1178
1178
|
if (followOn) await followOn;
|
|
1179
1179
|
turnActive = true;
|