@adhdev/daemon-core 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.mjs
CHANGED
|
@@ -13127,7 +13127,13 @@ function parseClaudeHeaderlessInteractiveTuiQuestion(page, index) {
|
|
|
13127
13127
|
let question = "";
|
|
13128
13128
|
for (let i = firstOptionIndex - 1; i >= 0; i -= 1) {
|
|
13129
13129
|
const candidate = lines[i].trim();
|
|
13130
|
-
if (!candidate || /^─+$/.test(candidate)
|
|
13130
|
+
if (!candidate || /^─+$/.test(candidate)) continue;
|
|
13131
|
+
if (/^[☐☒]\s*$/.test(candidate)) continue;
|
|
13132
|
+
const markerMatch = candidate.match(/^[☐☒]\s+(.+)$/);
|
|
13133
|
+
if (markerMatch) {
|
|
13134
|
+
question = markerMatch[1].trim();
|
|
13135
|
+
break;
|
|
13136
|
+
}
|
|
13131
13137
|
question = candidate;
|
|
13132
13138
|
break;
|
|
13133
13139
|
}
|
|
@@ -23588,8 +23594,10 @@ function summarizeStateForDebug(state) {
|
|
|
23588
23594
|
title: activeChat.title,
|
|
23589
23595
|
messageCount: Array.isArray(activeChat.messages) ? activeChat.messages.length : void 0,
|
|
23590
23596
|
activeModal: activeChat.activeModal,
|
|
23597
|
+
activeInteractivePrompt: activeChat.activeInteractivePrompt ?? null,
|
|
23591
23598
|
messagesTail: Array.isArray(activeChat.messages) ? activeChat.messages.slice(-10) : void 0
|
|
23592
23599
|
} : null,
|
|
23600
|
+
activeInteractivePrompt: state.activeInteractivePrompt ?? null,
|
|
23593
23601
|
controlValues: state.controlValues,
|
|
23594
23602
|
summaryMetadata: state.summaryMetadata
|
|
23595
23603
|
};
|
|
@@ -41463,6 +41471,8 @@ function prepareSessionChatTailUpdate(input) {
|
|
|
41463
41471
|
const messages = fullMessages;
|
|
41464
41472
|
const title = typeof result.title === "string" ? result.title : void 0;
|
|
41465
41473
|
const activeModal = normalizeChatTailActiveModal(result.activeModal);
|
|
41474
|
+
const activeInteractivePrompt = result.activeInteractivePrompt;
|
|
41475
|
+
const promptForUpdate = activeInteractivePrompt && typeof activeInteractivePrompt === "object" ? activeInteractivePrompt : null;
|
|
41466
41476
|
const status = typeof result.status === "string" ? result.status : "idle";
|
|
41467
41477
|
const messageSource = result.messageSource && typeof result.messageSource === "object" ? result.messageSource : void 0;
|
|
41468
41478
|
const deliverySignature = buildChatTailDeliverySignature({
|
|
@@ -41471,7 +41481,8 @@ function prepareSessionChatTailUpdate(input) {
|
|
|
41471
41481
|
messages,
|
|
41472
41482
|
status,
|
|
41473
41483
|
...title ? { title } : {},
|
|
41474
|
-
...activeModal ? { activeModal } : {}
|
|
41484
|
+
...activeModal ? { activeModal } : {},
|
|
41485
|
+
...promptForUpdate ? { activeInteractivePrompt: promptForUpdate } : {}
|
|
41475
41486
|
});
|
|
41476
41487
|
const seq = input.seq + 1;
|
|
41477
41488
|
if (deliverySignature === input.lastDeliveredSignature) {
|
|
@@ -41498,6 +41509,7 @@ function prepareSessionChatTailUpdate(input) {
|
|
|
41498
41509
|
status,
|
|
41499
41510
|
...title ? { title } : {},
|
|
41500
41511
|
...activeModal ? { activeModal } : {},
|
|
41512
|
+
...promptForUpdate ? { activeInteractivePrompt: promptForUpdate } : {},
|
|
41501
41513
|
...messageSource ? { messageSource } : {}
|
|
41502
41514
|
}
|
|
41503
41515
|
};
|