@adhdev/daemon-core 0.9.82-rc.103 → 0.9.82-rc.105
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 +10 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/commands/chat-commands.ts +7 -1
- package/src/providers/cli-provider-instance.ts +10 -1
package/dist/index.mjs
CHANGED
|
@@ -16920,8 +16920,9 @@ async function handleReadChat(h, args) {
|
|
|
16920
16920
|
const partialReason = typeof nativeHistory?.partialReason === "string" ? nativeHistory.partialReason : void 0;
|
|
16921
16921
|
const unavailableReason = typeof nativeHistory?.unavailableReason === "string" ? nativeHistory.unavailableReason : void 0;
|
|
16922
16922
|
const lookup = nativeHistory.lookup === "workspace" ? "workspace" : "session";
|
|
16923
|
+
const nativeHistorySessionForMapping = adapter.cliType === "antigravity-cli" && historyProviderSessionId && nativeHistorySessionId && historyProviderSessionId !== nativeHistorySessionId ? void 0 : nativeHistorySessionId;
|
|
16923
16924
|
const safeMapping = hasSafeNativeHistoryMapping({
|
|
16924
|
-
historySessionId: lookup === "workspace" ? void 0 :
|
|
16925
|
+
historySessionId: lookup === "workspace" ? void 0 : nativeHistorySessionForMapping,
|
|
16925
16926
|
providerSessionId: lookup === "workspace" ? void 0 : historyProviderSessionId || providerSessionId,
|
|
16926
16927
|
workspace,
|
|
16927
16928
|
nativeMessages,
|
|
@@ -19807,6 +19808,13 @@ var CliProviderInstance = class {
|
|
|
19807
19808
|
}
|
|
19808
19809
|
const mergedMessages = this.mergeConversationMessages(parsedMessages);
|
|
19809
19810
|
const canonicalBackedHistory = this.syncCanonicalSavedHistoryIfNeeded();
|
|
19811
|
+
const statusMessages = canonicalBackedHistory && this.lastPersistedHistoryMessages.length > 0 ? this.lastPersistedHistoryMessages.map((message) => ({
|
|
19812
|
+
role: message.role,
|
|
19813
|
+
content: message.content,
|
|
19814
|
+
kind: message.kind,
|
|
19815
|
+
senderName: message.senderName,
|
|
19816
|
+
receivedAt: message.receivedAt
|
|
19817
|
+
})) : mergedMessages;
|
|
19810
19818
|
const dirName = this.workingDir.split("/").filter(Boolean).pop() || "session";
|
|
19811
19819
|
const parsedChatStatus = typeof parsedStatus?.status === "string" && parsedStatus.status.trim() ? parsedStatus.status.trim() : void 0;
|
|
19812
19820
|
const suppressStaleParsedBusyStatus = this.shouldSuppressStaleParsedBusyStatus(parsedStatus, adapterStatus);
|
|
@@ -19858,7 +19866,7 @@ var CliProviderInstance = class {
|
|
|
19858
19866
|
id: activeChatId,
|
|
19859
19867
|
title: parsedStatus?.title || dirName,
|
|
19860
19868
|
status: activeChatStatus,
|
|
19861
|
-
messages:
|
|
19869
|
+
messages: statusMessages,
|
|
19862
19870
|
activeModal: autoApproveActive ? null : parsedStatus?.activeModal ?? adapterStatus.activeModal,
|
|
19863
19871
|
inputContent: ""
|
|
19864
19872
|
},
|