@adhdev/daemon-core 0.9.76-rc.46 → 0.9.76-rc.48
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/index.js +19 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +19 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/commands/router.ts +19 -1
- package/src/mesh/mesh-events.ts +1 -1
package/dist/index.mjs
CHANGED
|
@@ -20402,7 +20402,7 @@ function formatCompletionMetadata(event) {
|
|
|
20402
20402
|
function buildMeshSystemMessage(args) {
|
|
20403
20403
|
const metadata = formatCompletionMetadata(args.metadataEvent);
|
|
20404
20404
|
if (args.event === "agent:generating_completed") {
|
|
20405
|
-
return `[System] ${args.nodeLabel} has completed its task and is now idle${metadata}.
|
|
20405
|
+
return `[System] ${args.nodeLabel} has completed its task and is now idle${metadata}. This completion came from the agent status event path; use mesh_read_chat once to review its final progress, but do not poll repeatedly.`;
|
|
20406
20406
|
}
|
|
20407
20407
|
if (args.event === "agent:waiting_approval") {
|
|
20408
20408
|
return `[System] ${args.nodeLabel} is waiting for approval to proceed${metadata}. You may use mesh_read_chat and mesh_approve to handle it.`;
|
|
@@ -21355,6 +21355,7 @@ var DaemonCommandRouter = class {
|
|
|
21355
21355
|
const stoppedSessionIds = [];
|
|
21356
21356
|
const deletedSessionIds = [];
|
|
21357
21357
|
const skippedSessionIds = [];
|
|
21358
|
+
const deleteUnsupportedSessionIds = [];
|
|
21358
21359
|
const errors = [];
|
|
21359
21360
|
for (const record of matched) {
|
|
21360
21361
|
const sessionId = String(record.sessionId);
|
|
@@ -21384,7 +21385,22 @@ var DaemonCommandRouter = class {
|
|
|
21384
21385
|
continue;
|
|
21385
21386
|
}
|
|
21386
21387
|
} catch (e) {
|
|
21387
|
-
|
|
21388
|
+
const message = e?.message || String(e);
|
|
21389
|
+
if (message.includes("Unsupported session host request: delete_session") && (args.mode === "delete_stopped" || args.mode === "stop_and_delete")) {
|
|
21390
|
+
deleteUnsupportedSessionIds.push(sessionId);
|
|
21391
|
+
if (args.mode === "stop_and_delete" && !completed) {
|
|
21392
|
+
try {
|
|
21393
|
+
await this.deps.sessionHostControl.stopSession(sessionId);
|
|
21394
|
+
stoppedSessionIds.push(sessionId);
|
|
21395
|
+
} catch (stopError) {
|
|
21396
|
+
errors.push({ sessionId, error: stopError?.message || String(stopError) });
|
|
21397
|
+
continue;
|
|
21398
|
+
}
|
|
21399
|
+
}
|
|
21400
|
+
skippedSessionIds.push(sessionId);
|
|
21401
|
+
continue;
|
|
21402
|
+
}
|
|
21403
|
+
errors.push({ sessionId, error: message });
|
|
21388
21404
|
}
|
|
21389
21405
|
}
|
|
21390
21406
|
return {
|
|
@@ -21395,6 +21411,7 @@ var DaemonCommandRouter = class {
|
|
|
21395
21411
|
stoppedSessionIds,
|
|
21396
21412
|
deletedSessionIds,
|
|
21397
21413
|
skippedSessionIds,
|
|
21414
|
+
...deleteUnsupportedSessionIds.length ? { deleteUnsupportedSessionIds } : {},
|
|
21398
21415
|
...errors.length ? { errors } : {}
|
|
21399
21416
|
};
|
|
21400
21417
|
}
|