@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 +1 -1
- package/dist/core.js +3 -2
- package/package.json +1 -1
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.
|
|
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
|
-
|
|
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) {
|