@susu-eng/trunk-sync 2.3.3 → 2.3.4
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/commands/seance.js
CHANGED
|
@@ -70,7 +70,10 @@ function rewindTranscript(transcriptPath, commitTimestamp, worktreePath) {
|
|
|
70
70
|
const expandedPath = transcriptPath.replace(/^~/, process.env.HOME || "~");
|
|
71
71
|
if (!existsSync(expandedPath))
|
|
72
72
|
return null;
|
|
73
|
-
|
|
73
|
+
// Git timestamps have second precision; transcript timestamps have millisecond
|
|
74
|
+
// precision. Adding 999ms includes the full second of the commit so we don't
|
|
75
|
+
// cut off transcript entries that fall within the same second as the commit.
|
|
76
|
+
const cutoff = new Date(commitTimestamp).getTime() + 999;
|
|
74
77
|
const lines = readFileSync(expandedPath, "utf-8").split("\n").filter(Boolean);
|
|
75
78
|
// Find the last line whose timestamp is <= the commit timestamp.
|
|
76
79
|
let cutIndex = -1;
|
package/package.json
CHANGED