@adhdev/daemon-core 1.0.28-rc.17 → 1.0.28-rc.18
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 +9 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/cli-adapters/cli-state-engine.ts +19 -1
- package/src/commands/chat-commands-read.ts +33 -1
package/dist/index.mjs
CHANGED
|
@@ -786,10 +786,10 @@ function readInjected(value) {
|
|
|
786
786
|
}
|
|
787
787
|
function getDaemonBuildInfo() {
|
|
788
788
|
if (cached) return cached;
|
|
789
|
-
const commit = readInjected(true ? "
|
|
790
|
-
const commitShort = readInjected(true ? "
|
|
791
|
-
const version = readInjected(true ? "1.0.28-rc.
|
|
792
|
-
const builtAt = readInjected(true ? "2026-07-
|
|
789
|
+
const commit = readInjected(true ? "2ab22815548d9465b9f6a28a058049ba230dfb61" : void 0) ?? "unknown";
|
|
790
|
+
const commitShort = readInjected(true ? "2ab22815" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
|
|
791
|
+
const version = readInjected(true ? "1.0.28-rc.18" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
|
|
792
|
+
const builtAt = readInjected(true ? "2026-07-27T05:51:47.959Z" : void 0);
|
|
793
793
|
cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
|
|
794
794
|
return cached;
|
|
795
795
|
}
|
|
@@ -29555,7 +29555,10 @@ var init_cli_state_engine = __esm({
|
|
|
29555
29555
|
const session = this.runParseSession(snap);
|
|
29556
29556
|
if (!session) return;
|
|
29557
29557
|
const { status, messages } = session;
|
|
29558
|
-
const
|
|
29558
|
+
const rawModal = session.activeModal ?? session.modal ?? null;
|
|
29559
|
+
const modal = rawModal && Array.isArray(rawModal.buttons) && rawModal.buttons.some(
|
|
29560
|
+
(button) => typeof button === "string" && button.trim().length > 0
|
|
29561
|
+
) ? rawModal : null;
|
|
29559
29562
|
const parsedStatus = session.parsedStatus ?? null;
|
|
29560
29563
|
const parsedMessages = normalizeCliParsedMessages(messages, {
|
|
29561
29564
|
scope: null,
|
|
@@ -39765,7 +39768,7 @@ async function handleReadChat(h, args) {
|
|
|
39765
39768
|
});
|
|
39766
39769
|
}
|
|
39767
39770
|
}
|
|
39768
|
-
if (isGeneratingLikeStatus(selectedStatus) && selectedTranscriptAuthority === "provider" && !hasNonEmptyModalButtons(activeModal) && hasFinalVisibleAssistantMessage(selectedMessages)) {
|
|
39771
|
+
if (isGeneratingLikeStatus(selectedStatus) && selectedTranscriptAuthority === "provider" && !hasNonEmptyModalButtons(activeModal) && hasFinalVisibleAssistantMessage(selectedMessages) && !hasTrailingToolActivityAfterFinalAssistant(selectedMessages) && !hasTrailingToolActivityAfterFinalAssistant(returnedMessages)) {
|
|
39769
39772
|
selectedStatus = "idle";
|
|
39770
39773
|
selectedMessages = finalizeStreamingMessagesWhenIdle(selectedMessages, selectedStatus);
|
|
39771
39774
|
messageSource = {
|