@snelusha/noto 1.2.7 → 1.2.8

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 +31 -1
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -434,6 +434,11 @@ var command = {
434
434
  flag: "--push",
435
435
  alias: "-p",
436
436
  description: "commit and push the changes"
437
+ },
438
+ {
439
+ type: Boolean,
440
+ flag: "--manual",
441
+ description: "commit and push the changes"
437
442
  }
438
443
  ],
439
444
  execute: withAuth(
@@ -441,6 +446,31 @@ var command = {
441
446
  const spin = p3.spinner();
442
447
  try {
443
448
  const { diff } = options;
449
+ const manual = options["--manual"];
450
+ if (manual) {
451
+ const message2 = await p3.text({
452
+ message: "edit the generated commit message",
453
+ placeholder: "chore: init repo"
454
+ });
455
+ if (p3.isCancel(message2)) {
456
+ p3.log.error(color3.red("nothing changed!"));
457
+ return await exit(1);
458
+ }
459
+ p3.log.step(color3.green(message2));
460
+ await StorageManager.update((current2) => ({
461
+ ...current2,
462
+ lastGeneratedMessage: message2
463
+ }));
464
+ if (options["--apply"]) {
465
+ const success = await commit(message2);
466
+ if (success) {
467
+ p3.log.step(color3.dim("commit successful"));
468
+ } else {
469
+ p3.log.error(color3.red("failed to commit changes"));
470
+ }
471
+ }
472
+ return await exit(0);
473
+ }
444
474
  const type = options["--type"];
445
475
  if (typeof type === "string" && !availableTypes.includes(type) || typeof type === "boolean") {
446
476
  const type2 = await p3.select({
@@ -1117,7 +1147,7 @@ var listCommand = () => {
1117
1147
  };
1118
1148
 
1119
1149
  // package.json
1120
- var version = "1.2.7";
1150
+ var version = "1.2.8";
1121
1151
 
1122
1152
  // src/index.ts
1123
1153
  var globalSpec = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snelusha/noto",
3
- "version": "1.2.7",
3
+ "version": "1.2.8",
4
4
  "description": "Generate clean commit messages in a snap! ✨",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -44,18 +44,18 @@
44
44
  "@types/node": "^22.15.23",
45
45
  "tsup": "^8.5.0",
46
46
  "typescript": "^5.8.3",
47
- "vitest": "^3.2.2"
47
+ "vitest": "^3.2.4"
48
48
  },
49
49
  "dependencies": {
50
- "@ai-sdk/google": "^1.2.19",
50
+ "@ai-sdk/google": "^1.2.22",
51
51
  "@clack/prompts": "^0.10.1",
52
- "ai": "^4.3.16",
52
+ "ai": "^4.3.19",
53
53
  "arg": "^5.0.2",
54
54
  "clipboardy": "^4.0.0",
55
55
  "dedent": "^1.6.0",
56
56
  "picocolors": "^1.1.1",
57
- "simple-git": "^3.27.0",
57
+ "simple-git": "^3.28.0",
58
58
  "tinyexec": "^0.3.2",
59
- "zod": "^3.25.51"
59
+ "zod": "^3.25.76"
60
60
  }
61
61
  }