@adhdev/daemon-standalone 0.9.82-rc.185 → 0.9.82-rc.186
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 +14 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -48264,7 +48264,13 @@ ${lastSnapshot}`;
|
|
|
48264
48264
|
let question = "";
|
|
48265
48265
|
for (let i = firstOptionIndex - 1; i >= 0; i -= 1) {
|
|
48266
48266
|
const candidate = lines[i].trim();
|
|
48267
|
-
if (!candidate || /^─+$/.test(candidate)
|
|
48267
|
+
if (!candidate || /^─+$/.test(candidate)) continue;
|
|
48268
|
+
if (/^[☐☒]\s*$/.test(candidate)) continue;
|
|
48269
|
+
const markerMatch = candidate.match(/^[☐☒]\s+(.+)$/);
|
|
48270
|
+
if (markerMatch) {
|
|
48271
|
+
question = markerMatch[1].trim();
|
|
48272
|
+
break;
|
|
48273
|
+
}
|
|
48268
48274
|
question = candidate;
|
|
48269
48275
|
break;
|
|
48270
48276
|
}
|
|
@@ -58591,8 +58597,10 @@ ${effect.notification.body || ""}`.trim();
|
|
|
58591
58597
|
title: activeChat.title,
|
|
58592
58598
|
messageCount: Array.isArray(activeChat.messages) ? activeChat.messages.length : void 0,
|
|
58593
58599
|
activeModal: activeChat.activeModal,
|
|
58600
|
+
activeInteractivePrompt: activeChat.activeInteractivePrompt ?? null,
|
|
58594
58601
|
messagesTail: Array.isArray(activeChat.messages) ? activeChat.messages.slice(-10) : void 0
|
|
58595
58602
|
} : null,
|
|
58603
|
+
activeInteractivePrompt: state.activeInteractivePrompt ?? null,
|
|
58596
58604
|
controlValues: state.controlValues,
|
|
58597
58605
|
summaryMetadata: state.summaryMetadata
|
|
58598
58606
|
};
|
|
@@ -76381,6 +76389,8 @@ ${ptyResult.output.slice(-2e3)}`);
|
|
|
76381
76389
|
const messages = fullMessages;
|
|
76382
76390
|
const title = typeof result.title === "string" ? result.title : void 0;
|
|
76383
76391
|
const activeModal = normalizeChatTailActiveModal(result.activeModal);
|
|
76392
|
+
const activeInteractivePrompt = result.activeInteractivePrompt;
|
|
76393
|
+
const promptForUpdate = activeInteractivePrompt && typeof activeInteractivePrompt === "object" ? activeInteractivePrompt : null;
|
|
76384
76394
|
const status = typeof result.status === "string" ? result.status : "idle";
|
|
76385
76395
|
const messageSource = result.messageSource && typeof result.messageSource === "object" ? result.messageSource : void 0;
|
|
76386
76396
|
const deliverySignature = buildChatTailDeliverySignature({
|
|
@@ -76389,7 +76399,8 @@ ${ptyResult.output.slice(-2e3)}`);
|
|
|
76389
76399
|
messages,
|
|
76390
76400
|
status,
|
|
76391
76401
|
...title ? { title } : {},
|
|
76392
|
-
...activeModal ? { activeModal } : {}
|
|
76402
|
+
...activeModal ? { activeModal } : {},
|
|
76403
|
+
...promptForUpdate ? { activeInteractivePrompt: promptForUpdate } : {}
|
|
76393
76404
|
});
|
|
76394
76405
|
const seq = input.seq + 1;
|
|
76395
76406
|
if (deliverySignature === input.lastDeliveredSignature) {
|
|
@@ -76416,6 +76427,7 @@ ${ptyResult.output.slice(-2e3)}`);
|
|
|
76416
76427
|
status,
|
|
76417
76428
|
...title ? { title } : {},
|
|
76418
76429
|
...activeModal ? { activeModal } : {},
|
|
76430
|
+
...promptForUpdate ? { activeInteractivePrompt: promptForUpdate } : {},
|
|
76419
76431
|
...messageSource ? { messageSource } : {}
|
|
76420
76432
|
}
|
|
76421
76433
|
};
|