@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.js
CHANGED
|
@@ -13437,7 +13437,13 @@ function parseClaudeHeaderlessInteractiveTuiQuestion(page, index) {
|
|
|
13437
13437
|
let question = "";
|
|
13438
13438
|
for (let i = firstOptionIndex - 1; i >= 0; i -= 1) {
|
|
13439
13439
|
const candidate = lines[i].trim();
|
|
13440
|
-
if (!candidate || /^─+$/.test(candidate)
|
|
13440
|
+
if (!candidate || /^─+$/.test(candidate)) continue;
|
|
13441
|
+
if (/^[☐☒]\s*$/.test(candidate)) continue;
|
|
13442
|
+
const markerMatch = candidate.match(/^[☐☒]\s+(.+)$/);
|
|
13443
|
+
if (markerMatch) {
|
|
13444
|
+
question = markerMatch[1].trim();
|
|
13445
|
+
break;
|
|
13446
|
+
}
|
|
13441
13447
|
question = candidate;
|
|
13442
13448
|
break;
|
|
13443
13449
|
}
|
|
@@ -23898,8 +23904,10 @@ function summarizeStateForDebug(state) {
|
|
|
23898
23904
|
title: activeChat.title,
|
|
23899
23905
|
messageCount: Array.isArray(activeChat.messages) ? activeChat.messages.length : void 0,
|
|
23900
23906
|
activeModal: activeChat.activeModal,
|
|
23907
|
+
activeInteractivePrompt: activeChat.activeInteractivePrompt ?? null,
|
|
23901
23908
|
messagesTail: Array.isArray(activeChat.messages) ? activeChat.messages.slice(-10) : void 0
|
|
23902
23909
|
} : null,
|
|
23910
|
+
activeInteractivePrompt: state.activeInteractivePrompt ?? null,
|
|
23903
23911
|
controlValues: state.controlValues,
|
|
23904
23912
|
summaryMetadata: state.summaryMetadata
|
|
23905
23913
|
};
|
|
@@ -41768,6 +41776,8 @@ function prepareSessionChatTailUpdate(input) {
|
|
|
41768
41776
|
const messages = fullMessages;
|
|
41769
41777
|
const title = typeof result.title === "string" ? result.title : void 0;
|
|
41770
41778
|
const activeModal = normalizeChatTailActiveModal(result.activeModal);
|
|
41779
|
+
const activeInteractivePrompt = result.activeInteractivePrompt;
|
|
41780
|
+
const promptForUpdate = activeInteractivePrompt && typeof activeInteractivePrompt === "object" ? activeInteractivePrompt : null;
|
|
41771
41781
|
const status = typeof result.status === "string" ? result.status : "idle";
|
|
41772
41782
|
const messageSource = result.messageSource && typeof result.messageSource === "object" ? result.messageSource : void 0;
|
|
41773
41783
|
const deliverySignature = buildChatTailDeliverySignature({
|
|
@@ -41776,7 +41786,8 @@ function prepareSessionChatTailUpdate(input) {
|
|
|
41776
41786
|
messages,
|
|
41777
41787
|
status,
|
|
41778
41788
|
...title ? { title } : {},
|
|
41779
|
-
...activeModal ? { activeModal } : {}
|
|
41789
|
+
...activeModal ? { activeModal } : {},
|
|
41790
|
+
...promptForUpdate ? { activeInteractivePrompt: promptForUpdate } : {}
|
|
41780
41791
|
});
|
|
41781
41792
|
const seq = input.seq + 1;
|
|
41782
41793
|
if (deliverySignature === input.lastDeliveredSignature) {
|
|
@@ -41803,6 +41814,7 @@ function prepareSessionChatTailUpdate(input) {
|
|
|
41803
41814
|
status,
|
|
41804
41815
|
...title ? { title } : {},
|
|
41805
41816
|
...activeModal ? { activeModal } : {},
|
|
41817
|
+
...promptForUpdate ? { activeInteractivePrompt: promptForUpdate } : {},
|
|
41806
41818
|
...messageSource ? { messageSource } : {}
|
|
41807
41819
|
}
|
|
41808
41820
|
};
|