@snelusha/noto 1.2.6 → 1.2.7

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/dist/index.js +25 -7
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -877,6 +877,24 @@ var command4 = {
877
877
  p6.log.error(
878
878
  `branch ${color6.red(branchName)} does not exist in the repository`
879
879
  );
880
+ const createBranch = await p6.confirm({
881
+ message: `do you want to create branch ${color6.green(branchName)}?`
882
+ });
883
+ if (p6.isCancel(createBranch)) {
884
+ p6.log.error("aborted");
885
+ return await exit(1);
886
+ }
887
+ if (createBranch) {
888
+ const result3 = await checkoutLocalBranch(branchName);
889
+ if (!result3) {
890
+ p6.log.error(
891
+ `failed to create and checkout ${color6.bold(branchName)}`
892
+ );
893
+ return await exit(1);
894
+ }
895
+ p6.log.success(`created and checked out ${color6.green(branchName)}`);
896
+ return await exit(0);
897
+ }
880
898
  return await exit(1);
881
899
  }
882
900
  if (branchName === currentBranch) {
@@ -943,10 +961,10 @@ var key = {
943
961
  usage: "noto config key [options]",
944
962
  execute: async (options) => {
945
963
  if ((await StorageManager.get()).llm?.apiKey) {
946
- const confirm2 = await p7.confirm({
964
+ const confirm3 = await p7.confirm({
947
965
  message: "noto api key already configured, do you want to update it?"
948
966
  });
949
- if (p7.isCancel(confirm2) || !confirm2) {
967
+ if (p7.isCancel(confirm3) || !confirm3) {
950
968
  p7.log.error(color7.red("nothing changed!"));
951
969
  return await exit(1);
952
970
  }
@@ -991,10 +1009,10 @@ var model = {
991
1009
  return await exit(1);
992
1010
  }
993
1011
  if (model2 === "gemini-2.5-pro-preview-05-06") {
994
- const confirm2 = await p7.confirm({
1012
+ const confirm3 = await p7.confirm({
995
1013
  message: "this model does not have free quota tier, do you want to continue?"
996
1014
  });
997
- if (p7.isCancel(confirm2) || !confirm2) {
1015
+ if (p7.isCancel(confirm3) || !confirm3) {
998
1016
  p7.log.error(color7.red("nothing changed!"));
999
1017
  return await exit(1);
1000
1018
  }
@@ -1015,10 +1033,10 @@ var reset = {
1015
1033
  description: "reset configuration",
1016
1034
  usage: "noto config reset",
1017
1035
  execute: async () => {
1018
- const confirm2 = await p7.confirm({
1036
+ const confirm3 = await p7.confirm({
1019
1037
  message: "are you sure you want to reset the configuration?"
1020
1038
  });
1021
- if (p7.isCancel(confirm2) || !confirm2) {
1039
+ if (p7.isCancel(confirm3) || !confirm3) {
1022
1040
  p7.log.error(color7.red("nothing changed!"));
1023
1041
  return await exit(1);
1024
1042
  }
@@ -1099,7 +1117,7 @@ var listCommand = () => {
1099
1117
  };
1100
1118
 
1101
1119
  // package.json
1102
- var version = "1.2.6";
1120
+ var version = "1.2.7";
1103
1121
 
1104
1122
  // src/index.ts
1105
1123
  var globalSpec = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snelusha/noto",
3
- "version": "1.2.6",
3
+ "version": "1.2.7",
4
4
  "description": "Generate clean commit messages in a snap! ✨",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -44,7 +44,7 @@
44
44
  "@types/node": "^22.15.23",
45
45
  "tsup": "^8.5.0",
46
46
  "typescript": "^5.8.3",
47
- "vitest": "^3.2.0"
47
+ "vitest": "^3.2.2"
48
48
  },
49
49
  "dependencies": {
50
50
  "@ai-sdk/google": "^1.2.19",
@@ -56,6 +56,6 @@
56
56
  "picocolors": "^1.1.1",
57
57
  "simple-git": "^3.27.0",
58
58
  "tinyexec": "^0.3.2",
59
- "zod": "^3.25.49"
59
+ "zod": "^3.25.51"
60
60
  }
61
61
  }