@yankeguo/dsh-devlead-protocol 0.4.3-rc.3 → 0.4.3-rc.4
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/lib/client.js +3 -1
- package/lib/index.js +3 -1
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -101,8 +101,10 @@ function notificationLine(notification) {
|
|
|
101
101
|
const summary = typeof notification.summary === "string" ? excerptLine(notification.summary, DEVLEAD_ASSISTANT_EXCERPT_MAX) : void 0;
|
|
102
102
|
const detail = error51 ?? (summary === void 0 ? void 0 : `${summary}${notification.summaryTruncated === true ? " [truncated]" : ""}`);
|
|
103
103
|
const suffix = detail === void 0 ? "" : `: ${detail}`;
|
|
104
|
+
const running = notification.subagentsRunning;
|
|
105
|
+
const waiting = running !== void 0 && running > 0 ? ` (${String(running)} subagent${running === 1 ? "" : "s"} still running; it will wake itself)` : "";
|
|
104
106
|
const interrupt = notification.cancelledByLeadInterrupt === true ? " (cancelled by your interrupt)" : "";
|
|
105
|
-
return `${who} \u2014 turn ${notification.turn} ${transitionLabel(notification.transition)}${interrupt}${suffix}`;
|
|
107
|
+
return `${who} \u2014 turn ${notification.turn} ${transitionLabel(notification.transition)}${waiting}${interrupt}${suffix}`;
|
|
106
108
|
}
|
|
107
109
|
function notificationDigest(notifications) {
|
|
108
110
|
return notifications.map(notificationLine);
|
package/lib/index.js
CHANGED
|
@@ -101,8 +101,10 @@ function notificationLine(notification) {
|
|
|
101
101
|
const summary = typeof notification.summary === "string" ? excerptLine(notification.summary, DEVLEAD_ASSISTANT_EXCERPT_MAX) : void 0;
|
|
102
102
|
const detail = error51 ?? (summary === void 0 ? void 0 : `${summary}${notification.summaryTruncated === true ? " [truncated]" : ""}`);
|
|
103
103
|
const suffix = detail === void 0 ? "" : `: ${detail}`;
|
|
104
|
+
const running = notification.subagentsRunning;
|
|
105
|
+
const waiting = running !== void 0 && running > 0 ? ` (${String(running)} subagent${running === 1 ? "" : "s"} still running; it will wake itself)` : "";
|
|
104
106
|
const interrupt = notification.cancelledByLeadInterrupt === true ? " (cancelled by your interrupt)" : "";
|
|
105
|
-
return `${who} \u2014 turn ${notification.turn} ${transitionLabel(notification.transition)}${interrupt}${suffix}`;
|
|
107
|
+
return `${who} \u2014 turn ${notification.turn} ${transitionLabel(notification.transition)}${waiting}${interrupt}${suffix}`;
|
|
106
108
|
}
|
|
107
109
|
function notificationDigest(notifications) {
|
|
108
110
|
return notifications.map(notificationLine);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yankeguo/dsh-devlead-protocol",
|
|
3
|
-
"version": "0.4.3-rc.
|
|
3
|
+
"version": "0.4.3-rc.4",
|
|
4
4
|
"description": "Pure shared protocol of the devlead plugin suite: durable mode, watched-session and notification types, the project-board wire schema shared by Host and browser, plus the pure fold and formatting rules both sides use.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|