@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.js
CHANGED
|
@@ -791,10 +791,10 @@ function readInjected(value) {
|
|
|
791
791
|
}
|
|
792
792
|
function getDaemonBuildInfo() {
|
|
793
793
|
if (cached) return cached;
|
|
794
|
-
const commit = readInjected(true ? "
|
|
795
|
-
const commitShort = readInjected(true ? "
|
|
796
|
-
const version = readInjected(true ? "1.0.28-rc.
|
|
797
|
-
const builtAt = readInjected(true ? "2026-07-
|
|
794
|
+
const commit = readInjected(true ? "2ab22815548d9465b9f6a28a058049ba230dfb61" : void 0) ?? "unknown";
|
|
795
|
+
const commitShort = readInjected(true ? "2ab22815" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
|
|
796
|
+
const version = readInjected(true ? "1.0.28-rc.18" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
|
|
797
|
+
const builtAt = readInjected(true ? "2026-07-27T05:51:47.959Z" : void 0);
|
|
798
798
|
cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
|
|
799
799
|
return cached;
|
|
800
800
|
}
|
|
@@ -29548,7 +29548,10 @@ var init_cli_state_engine = __esm({
|
|
|
29548
29548
|
const session = this.runParseSession(snap);
|
|
29549
29549
|
if (!session) return;
|
|
29550
29550
|
const { status, messages } = session;
|
|
29551
|
-
const
|
|
29551
|
+
const rawModal = session.activeModal ?? session.modal ?? null;
|
|
29552
|
+
const modal = rawModal && Array.isArray(rawModal.buttons) && rawModal.buttons.some(
|
|
29553
|
+
(button) => typeof button === "string" && button.trim().length > 0
|
|
29554
|
+
) ? rawModal : null;
|
|
29552
29555
|
const parsedStatus = session.parsedStatus ?? null;
|
|
29553
29556
|
const parsedMessages = normalizeCliParsedMessages(messages, {
|
|
29554
29557
|
scope: null,
|
|
@@ -40208,7 +40211,7 @@ async function handleReadChat(h, args) {
|
|
|
40208
40211
|
});
|
|
40209
40212
|
}
|
|
40210
40213
|
}
|
|
40211
|
-
if (isGeneratingLikeStatus(selectedStatus) && selectedTranscriptAuthority === "provider" && !hasNonEmptyModalButtons(activeModal) && hasFinalVisibleAssistantMessage(selectedMessages)) {
|
|
40214
|
+
if (isGeneratingLikeStatus(selectedStatus) && selectedTranscriptAuthority === "provider" && !hasNonEmptyModalButtons(activeModal) && hasFinalVisibleAssistantMessage(selectedMessages) && !hasTrailingToolActivityAfterFinalAssistant(selectedMessages) && !hasTrailingToolActivityAfterFinalAssistant(returnedMessages)) {
|
|
40212
40215
|
selectedStatus = "idle";
|
|
40213
40216
|
selectedMessages = finalizeStreamingMessagesWhenIdle(selectedMessages, selectedStatus);
|
|
40214
40217
|
messageSource = {
|