@leantli/agent-handoff 0.5.1 → 0.5.2

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.js CHANGED
@@ -25,7 +25,7 @@ function buildProgram(stdout, stderr, stdin, cwd) {
25
25
  program
26
26
  .name("agent-handoff")
27
27
  .description("Shared vault handoff memory for coding agents.")
28
- .version("agent-handoff 0.5.1")
28
+ .version("agent-handoff 0.5.2")
29
29
  .exitOverride()
30
30
  .configureOutput({
31
31
  writeOut: (str) => stdout.write(str),
package/dist/core.js CHANGED
@@ -264,10 +264,11 @@ export function syncVault(opts = {}) {
264
264
  }
265
265
  const branch = gitOutput(setup.vault, ["branch", "--show-current"]) ?? "main";
266
266
  const pull = gitRun(setup.vault, ["pull", "--rebase", "--autostash", "origin", branch]);
267
- if (pull.status !== 0 && !isEmptyRemotePull(pull.output)) {
267
+ const ignoredEmptyRemotePull = pull.status !== 0 && isEmptyRemotePull(pull.output);
268
+ if (pull.status !== 0 && !ignoredEmptyRemotePull) {
268
269
  throw new HandoffError(pull.output.trim() || "git pull failed");
269
270
  }
270
- if (pull.output.trim())
271
+ if (!ignoredEmptyRemotePull && pull.output.trim())
271
272
  outputs.push(pull.output.trim());
272
273
  const push = gitRun(setup.vault, ["push", "-u", "origin", branch]);
273
274
  if (push.status !== 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leantli/agent-handoff",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "Shared vault handoff memory for coding agents.",
5
5
  "type": "module",
6
6
  "license": "MIT",