engine7 7.1.66 → 7.1.67
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/cli.mjs +9 -2
- package/dist/engine-startup.mjs +9 -2
- package/dist/main.mjs +9 -2
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -7318,8 +7318,15 @@ async function readSessionHistory(filePath) {
|
|
|
7318
7318
|
let filtered = filterUnresolvedToolUses(sessionMsgs);
|
|
7319
7319
|
filtered = filterOrphanedThinkingOnly(filtered);
|
|
7320
7320
|
filtered = filterWhitespaceOnlyAssistant(filtered);
|
|
7321
|
-
const
|
|
7322
|
-
const
|
|
7321
|
+
const seenStartTexts = /* @__PURE__ */ new Set();
|
|
7322
|
+
const sessionStarts = attachmentMsgs.filter((m) => {
|
|
7323
|
+
if (m.attachment.type !== "session_start") return false;
|
|
7324
|
+
const key = JSON.stringify(m.attachment);
|
|
7325
|
+
if (seenStartTexts.has(key)) return false;
|
|
7326
|
+
seenStartTexts.add(key);
|
|
7327
|
+
return true;
|
|
7328
|
+
});
|
|
7329
|
+
const restAttachments = attachmentMsgs.filter((m) => m.type === "attachment" && m.attachment.type !== "session_start");
|
|
7323
7330
|
return [...sessionStarts, ...filtered, ...restAttachments];
|
|
7324
7331
|
}
|
|
7325
7332
|
async function readAllLines(filePath) {
|
package/dist/engine-startup.mjs
CHANGED
|
@@ -18673,8 +18673,15 @@ async function readSessionHistory(filePath) {
|
|
|
18673
18673
|
let filtered = filterUnresolvedToolUses(sessionMsgs);
|
|
18674
18674
|
filtered = filterOrphanedThinkingOnly(filtered);
|
|
18675
18675
|
filtered = filterWhitespaceOnlyAssistant(filtered);
|
|
18676
|
-
const
|
|
18677
|
-
const
|
|
18676
|
+
const seenStartTexts = /* @__PURE__ */ new Set();
|
|
18677
|
+
const sessionStarts = attachmentMsgs.filter((m) => {
|
|
18678
|
+
if (m.attachment.type !== "session_start") return false;
|
|
18679
|
+
const key = JSON.stringify(m.attachment);
|
|
18680
|
+
if (seenStartTexts.has(key)) return false;
|
|
18681
|
+
seenStartTexts.add(key);
|
|
18682
|
+
return true;
|
|
18683
|
+
});
|
|
18684
|
+
const restAttachments = attachmentMsgs.filter((m) => m.type === "attachment" && m.attachment.type !== "session_start");
|
|
18678
18685
|
return [...sessionStarts, ...filtered, ...restAttachments];
|
|
18679
18686
|
}
|
|
18680
18687
|
async function readAllLines(filePath) {
|
package/dist/main.mjs
CHANGED
|
@@ -19047,8 +19047,15 @@ async function readSessionHistory(filePath) {
|
|
|
19047
19047
|
let filtered = filterUnresolvedToolUses(sessionMsgs);
|
|
19048
19048
|
filtered = filterOrphanedThinkingOnly(filtered);
|
|
19049
19049
|
filtered = filterWhitespaceOnlyAssistant(filtered);
|
|
19050
|
-
const
|
|
19051
|
-
const
|
|
19050
|
+
const seenStartTexts = /* @__PURE__ */ new Set();
|
|
19051
|
+
const sessionStarts = attachmentMsgs.filter((m) => {
|
|
19052
|
+
if (m.attachment.type !== "session_start") return false;
|
|
19053
|
+
const key = JSON.stringify(m.attachment);
|
|
19054
|
+
if (seenStartTexts.has(key)) return false;
|
|
19055
|
+
seenStartTexts.add(key);
|
|
19056
|
+
return true;
|
|
19057
|
+
});
|
|
19058
|
+
const restAttachments = attachmentMsgs.filter((m) => m.type === "attachment" && m.attachment.type !== "session_start");
|
|
19052
19059
|
return [...sessionStarts, ...filtered, ...restAttachments];
|
|
19053
19060
|
}
|
|
19054
19061
|
async function readAllLines(filePath) {
|