@adhdev/daemon-standalone 0.8.38 → 0.8.40
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
|
@@ -33074,7 +33074,7 @@ ${data.message || ""}`.trim();
|
|
|
33074
33074
|
const lines = newMessages.map((m) => JSON.stringify(m)).join("\n") + "\n";
|
|
33075
33075
|
fs32.appendFileSync(filePath, lines, "utf-8");
|
|
33076
33076
|
const prevCount = this.lastSeenCounts.get(dedupKey) || 0;
|
|
33077
|
-
if (messages.length < prevCount * 0.5 && prevCount > 3) {
|
|
33077
|
+
if (!historySessionId && messages.length < prevCount * 0.5 && prevCount > 3) {
|
|
33078
33078
|
seenHashes.clear();
|
|
33079
33079
|
this.lastSeenSignatures.delete(dedupKey);
|
|
33080
33080
|
this.lastSeenTurnSignatures.delete(dedupKey);
|
|
@@ -35627,16 +35627,7 @@ ${effect.notification.body || ""}`.trim();
|
|
|
35627
35627
|
const provider = h.getProvider(args?.agentType);
|
|
35628
35628
|
const transport = getTargetTransport(h, provider);
|
|
35629
35629
|
const dedupeKey = buildRecentSendKey(h, args, provider, text);
|
|
35630
|
-
const historySessionId = getHistorySessionId(h, args);
|
|
35631
35630
|
const _logSendSuccess = (method, targetAgent) => {
|
|
35632
|
-
h.historyWriter.appendNewMessages(
|
|
35633
|
-
targetAgent || provider?.type || getCurrentProviderType(h, "unknown_agent"),
|
|
35634
|
-
[{ role: "user", content: text, receivedAt: Date.now() }],
|
|
35635
|
-
void 0,
|
|
35636
|
-
// title
|
|
35637
|
-
args?.targetSessionId,
|
|
35638
|
-
historySessionId
|
|
35639
|
-
);
|
|
35640
35631
|
return { success: true, sent: true, method, targetAgent };
|
|
35641
35632
|
};
|
|
35642
35633
|
if (isRecentDuplicateSend(dedupeKey)) {
|