ai-hero-cli 0.2.1 → 0.2.3
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 +46 -6
- package/package.json +1 -1
package/bin.cjs
CHANGED
|
@@ -83157,12 +83157,28 @@ var cherryPick = Command_exports2.make(
|
|
|
83157
83157
|
yield* Console_exports.log(
|
|
83158
83158
|
`Searching for lesson ${lessonId} on branch ${branch}...`
|
|
83159
83159
|
);
|
|
83160
|
+
const gitFetchCommand = Command_exports.make(
|
|
83161
|
+
"git",
|
|
83162
|
+
"fetch",
|
|
83163
|
+
"origin"
|
|
83164
|
+
).pipe(
|
|
83165
|
+
Command_exports.workingDirectory(cwd),
|
|
83166
|
+
Command_exports.stdout("inherit"),
|
|
83167
|
+
Command_exports.stderr("inherit")
|
|
83168
|
+
);
|
|
83169
|
+
const fetchExitCode = yield* Command_exports.exitCode(
|
|
83170
|
+
gitFetchCommand
|
|
83171
|
+
);
|
|
83172
|
+
if (fetchExitCode !== 0) {
|
|
83173
|
+
yield* Console_exports.error("Failed to fetch branch");
|
|
83174
|
+
process.exitCode = 1;
|
|
83175
|
+
return;
|
|
83176
|
+
}
|
|
83160
83177
|
const gitLogCommand = Command_exports.make(
|
|
83161
83178
|
"git",
|
|
83162
83179
|
"log",
|
|
83163
83180
|
branch,
|
|
83164
|
-
"--oneline"
|
|
83165
|
-
"--all"
|
|
83181
|
+
"--oneline"
|
|
83166
83182
|
).pipe(Command_exports.workingDirectory(cwd));
|
|
83167
83183
|
const commitHistory = yield* Command_exports.string(gitLogCommand);
|
|
83168
83184
|
const commits = commitHistory.trim().split("\n").filter(Boolean).map((line4) => {
|
|
@@ -84914,6 +84930,23 @@ var reset2 = Command_exports2.make(
|
|
|
84914
84930
|
})
|
|
84915
84931
|
);
|
|
84916
84932
|
}
|
|
84933
|
+
const gitFetchCommand = Command_exports.make(
|
|
84934
|
+
"git",
|
|
84935
|
+
"fetch",
|
|
84936
|
+
"origin"
|
|
84937
|
+
).pipe(
|
|
84938
|
+
Command_exports.workingDirectory(cwd),
|
|
84939
|
+
Command_exports.stdout("inherit"),
|
|
84940
|
+
Command_exports.stderr("inherit")
|
|
84941
|
+
);
|
|
84942
|
+
const fetchExitCode = yield* Command_exports.exitCode(
|
|
84943
|
+
gitFetchCommand
|
|
84944
|
+
);
|
|
84945
|
+
if (fetchExitCode !== 0) {
|
|
84946
|
+
yield* Console_exports.error("Failed to fetch branch");
|
|
84947
|
+
process.exitCode = 1;
|
|
84948
|
+
return;
|
|
84949
|
+
}
|
|
84917
84950
|
yield* Console_exports.log(
|
|
84918
84951
|
`Searching for lesson ${lessonId} on branch ${branch}...`
|
|
84919
84952
|
);
|
|
@@ -84921,8 +84954,7 @@ var reset2 = Command_exports2.make(
|
|
|
84921
84954
|
"git",
|
|
84922
84955
|
"log",
|
|
84923
84956
|
branch,
|
|
84924
|
-
"--oneline"
|
|
84925
|
-
"--all"
|
|
84957
|
+
"--oneline"
|
|
84926
84958
|
).pipe(Command_exports.workingDirectory(cwd));
|
|
84927
84959
|
const commitHistory = yield* Command_exports.string(gitLogCommand);
|
|
84928
84960
|
const commits = commitHistory.trim().split("\n").filter(Boolean).map((line4) => {
|
|
@@ -84995,7 +85027,11 @@ var reset2 = Command_exports2.make(
|
|
|
84995
85027
|
"-b",
|
|
84996
85028
|
branchName,
|
|
84997
85029
|
targetCommit.sha
|
|
84998
|
-
).pipe(
|
|
85030
|
+
).pipe(
|
|
85031
|
+
Command_exports.workingDirectory(cwd),
|
|
85032
|
+
Command_exports.stdout("inherit"),
|
|
85033
|
+
Command_exports.stderr("inherit")
|
|
85034
|
+
);
|
|
84999
85035
|
const exitCode4 = yield* Command_exports.exitCode(
|
|
85000
85036
|
createBranchCommand
|
|
85001
85037
|
).pipe(Effect_exports.catchAll(() => Effect_exports.succeed(1)));
|
|
@@ -85043,7 +85079,11 @@ var reset2 = Command_exports2.make(
|
|
|
85043
85079
|
"reset",
|
|
85044
85080
|
"--hard",
|
|
85045
85081
|
targetCommit.sha
|
|
85046
|
-
).pipe(
|
|
85082
|
+
).pipe(
|
|
85083
|
+
Command_exports.workingDirectory(cwd),
|
|
85084
|
+
Command_exports.stdout("inherit"),
|
|
85085
|
+
Command_exports.stderr("inherit")
|
|
85086
|
+
);
|
|
85047
85087
|
const exitCode3 = yield* Command_exports.exitCode(
|
|
85048
85088
|
resetCommand
|
|
85049
85089
|
).pipe(Effect_exports.catchAll(() => Effect_exports.succeed(1)));
|