ai-hero-cli 0.0.14 → 0.0.15

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.
Files changed (2) hide show
  1. package/bin.cjs +10 -4
  2. package/package.json +1 -1
package/bin.cjs CHANGED
@@ -68363,10 +68363,11 @@ var runLesson = Effect_exports.fn("runLesson")(function* (opts) {
68363
68363
  cwd
68364
68364
  });
68365
68365
  }
68366
- if (foundLesson.isExplainer() && readmeFile) {
68366
+ const isExplainer = yield* foundLesson.isExplainer();
68367
+ if (isExplainer && readmeFile) {
68367
68368
  yield* logReadmeFile({ readmeFile });
68368
68369
  }
68369
- const lessonNoun = foundLesson.isExplainer() ? {
68370
+ const lessonNoun = isExplainer ? {
68370
68371
  successMessage: `Explainer executed! Once you've read the readme and understand the code, you can go to the next exercise.`,
68371
68372
  failureMessage: `Looks like the explainer errored! Want to try again?`,
68372
68373
  lowercase: "explainer"
@@ -68625,7 +68626,7 @@ var runLessonSimple = (opts) => Effect_exports.gen(function* () {
68625
68626
  stdio: "inherit",
68626
68627
  cwd
68627
68628
  });
68628
- if (foundLesson.isExplainer() && readmeFile) {
68629
+ if ((yield* foundLesson.isExplainer()) && readmeFile) {
68629
68630
  yield* logReadmeFile({ readmeFile });
68630
68631
  }
68631
68632
  });
@@ -68776,7 +68777,12 @@ var updateCVM = Command_exports2.make(
68776
68777
  yield* Effect_exports.log(
68777
68778
  "[update-cvm] Successfully updated the CVM"
68778
68779
  );
68779
- })
68780
+ }).pipe(
68781
+ Effect_exports.catchAll((e) => {
68782
+ process.exitCode = 1;
68783
+ return Effect_exports.logError(e);
68784
+ })
68785
+ )
68780
68786
  );
68781
68787
  var createErrorTracker = () => {
68782
68788
  const groupedErrors = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-hero-cli",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "type": "module",
5
5
  "description": "The CLI used to run exercises for the AI Hero course",
6
6
  "bin": "bin.cjs",