ai-hero-cli 0.2.11 → 0.2.12
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/bin.cjs +23 -11
- package/package.json +1 -1
package/bin.cjs
CHANGED
|
@@ -84342,6 +84342,15 @@ var GitService = class extends Effect_exports.Service()(
|
|
|
84342
84342
|
);
|
|
84343
84343
|
return (yield* Command_exports2.string(command2)).trim();
|
|
84344
84344
|
});
|
|
84345
|
+
const runCommandWithExitCode = Effect_exports.fn(
|
|
84346
|
+
"runCommandWithExitCode"
|
|
84347
|
+
)(function* (...commandArgs) {
|
|
84348
|
+
const cwd = yield* Config_exports.string("cwd");
|
|
84349
|
+
const command2 = Command_exports2.make(...commandArgs).pipe(
|
|
84350
|
+
Command_exports2.workingDirectory(cwd)
|
|
84351
|
+
);
|
|
84352
|
+
return yield* Command_exports2.exitCode(command2);
|
|
84353
|
+
});
|
|
84345
84354
|
return {
|
|
84346
84355
|
ensureIsGitRepo: Effect_exports.fn("ensureIsGitRepo")(
|
|
84347
84356
|
function* () {
|
|
@@ -84402,6 +84411,19 @@ var GitService = class extends Effect_exports.Service()(
|
|
|
84402
84411
|
})
|
|
84403
84412
|
);
|
|
84404
84413
|
}
|
|
84414
|
+
yield* runCommandWithExitCode(
|
|
84415
|
+
"git",
|
|
84416
|
+
"branch",
|
|
84417
|
+
"-D",
|
|
84418
|
+
targetBranch
|
|
84419
|
+
);
|
|
84420
|
+
yield* runCommandWithExitCode(
|
|
84421
|
+
"git",
|
|
84422
|
+
"branch",
|
|
84423
|
+
"--track",
|
|
84424
|
+
targetBranch,
|
|
84425
|
+
`upstream/${targetBranch}`
|
|
84426
|
+
);
|
|
84405
84427
|
}),
|
|
84406
84428
|
getCurrentBranch: Effect_exports.fn("getCurrentBranch")(
|
|
84407
84429
|
function* () {
|
|
@@ -84416,17 +84438,7 @@ var GitService = class extends Effect_exports.Service()(
|
|
|
84416
84438
|
)).trim();
|
|
84417
84439
|
}
|
|
84418
84440
|
),
|
|
84419
|
-
runCommandWithExitCode
|
|
84420
|
-
"runCommandWithExitCode"
|
|
84421
|
-
)(function* (...commandArgs) {
|
|
84422
|
-
const cwd = yield* Config_exports.string("cwd");
|
|
84423
|
-
const command2 = Command_exports2.make(...commandArgs).pipe(
|
|
84424
|
-
Command_exports2.workingDirectory(cwd),
|
|
84425
|
-
Command_exports2.stdout("inherit"),
|
|
84426
|
-
Command_exports2.stderr("inherit")
|
|
84427
|
-
);
|
|
84428
|
-
return yield* Command_exports2.exitCode(command2);
|
|
84429
|
-
}),
|
|
84441
|
+
runCommandWithExitCode,
|
|
84430
84442
|
runCommandWithString
|
|
84431
84443
|
};
|
|
84432
84444
|
}),
|