ai-hero-cli 0.2.5 → 0.2.6

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 +24 -4
  2. package/package.json +1 -1
package/bin.cjs CHANGED
@@ -83935,7 +83935,17 @@ var chooseLessonAndRunIt = (opts) => Effect_exports.gen(function* () {
83935
83935
  cwd: opts.cwd,
83936
83936
  forceSubfolderIndex: void 0
83937
83937
  });
83938
- }).pipe(Effect_exports.catchAll(Console_exports.log));
83938
+ }).pipe(
83939
+ Effect_exports.catchTags({
83940
+ PromptCancelledError: () => {
83941
+ return Effect_exports.gen(function* () {
83942
+ yield* Console_exports.log("Operation cancelled");
83943
+ process.exitCode = 0;
83944
+ });
83945
+ }
83946
+ }),
83947
+ Effect_exports.catchAll(Console_exports.log)
83948
+ );
83939
83949
  var exercise = Command_exports2.make(
83940
83950
  "exercise",
83941
83951
  {
@@ -85149,7 +85159,7 @@ var editCommit = Command_exports2.make(
85149
85159
  "\u2713 Reset complete with unstaged changes"
85150
85160
  );
85151
85161
  yield* Console_exports.log(
85152
- "\nSession active. Make your changes to the code."
85162
+ "\nSession active. Make your changes to the code. ALL unstaged changes will be added to the commit."
85153
85163
  );
85154
85164
  const { ready } = yield* runPrompt(
85155
85165
  () => (0, import_prompts3.default)([
@@ -85170,7 +85180,7 @@ var editCommit = Command_exports2.make(
85170
85180
  yield* Console_exports.log(
85171
85181
  `Committing with original message: "${originalMessage}"`
85172
85182
  );
85173
- const addCommand = Command_exports.make("git", "add", "-A").pipe(
85183
+ const addCommand = Command_exports.make("git", "add", ".").pipe(
85174
85184
  Command_exports.workingDirectory(cwd),
85175
85185
  Command_exports.stdout("inherit"),
85176
85186
  Command_exports.stderr("inherit")
@@ -85337,6 +85347,16 @@ Cherry-picking ${followingCommitCount} commit${followingCommitCount === 1 ? "" :
85337
85347
  yield* Console_exports.log(
85338
85348
  `\u2713 Successfully pushed ${branch} to origin`
85339
85349
  );
85350
+ yield* Console_exports.log(
85351
+ `Switching back to ${currentBranch}...`
85352
+ );
85353
+ const switchBackCommand = Command_exports.make(
85354
+ "git",
85355
+ "checkout",
85356
+ currentBranch
85357
+ ).pipe(Command_exports.workingDirectory(cwd));
85358
+ yield* Command_exports.exitCode(switchBackCommand);
85359
+ yield* Console_exports.log(`\u2713 Switched back to ${currentBranch}`);
85340
85360
  }).pipe(
85341
85361
  Effect_exports.catchTags({
85342
85362
  NotAGitRepoError: (error4) => {
@@ -85487,7 +85507,7 @@ var upgradePackages = Command_exports2.make(
85487
85507
  "ai@latest",
85488
85508
  "@ai-sdk/*@latest",
85489
85509
  "ai-hero-cli@latest",
85490
- "evalite@latest",
85510
+ "evalite@beta",
85491
85511
  "vitest@latest"
85492
85512
  ).pipe(
85493
85513
  verbose ? Command_exports.stdout("inherit") : Command_exports.stdout("pipe"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-hero-cli",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "type": "module",
5
5
  "description": "The CLI used to run exercises for the AI Hero course",
6
6
  "bin": "bin.cjs",