@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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trunk-sync",
3
- "version": "2.3.3",
3
+ "version": "2.3.4",
4
4
  "description": "Maximum continuous integration for multi-agent coding — every edit is committed and pushed to trunk immediately",
5
5
  "author": {
6
6
  "name": "Eli Mydlarz"
@@ -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
- const cutoff = new Date(commitTimestamp).getTime();
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@susu-eng/trunk-sync",
3
- "version": "2.3.3",
3
+ "version": "2.3.4",
4
4
  "type": "module",
5
5
  "description": "Maximum continuous integration for multi-agent coding — every edit is committed and pushed to trunk immediately",
6
6
  "bin": {