@snelusha/noto 1.1.4 → 1.1.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.
- package/dist/index.js +27 -3
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -63,6 +63,7 @@ var AvailableModelsSchema = z.enum([
|
|
|
63
63
|
"gemini-1.5-pro",
|
|
64
64
|
"gemini-1.5-pro-latest",
|
|
65
65
|
"gemini-2.0-flash-001",
|
|
66
|
+
"gemini-2.0-flash-lite-preview-02-05",
|
|
66
67
|
"gemini-2.5-pro-exp-03-25"
|
|
67
68
|
]);
|
|
68
69
|
|
|
@@ -134,7 +135,8 @@ var exit = async (code) => {
|
|
|
134
135
|
var withAuth = (fn, options = { enabled: true }) => {
|
|
135
136
|
return async (opts) => {
|
|
136
137
|
const storage = await StorageManager.get();
|
|
137
|
-
|
|
138
|
+
const apiKey = storage.llm?.apiKey || process.env.NOTO_API_KEY;
|
|
139
|
+
if (!apiKey && options.enabled) {
|
|
138
140
|
p.log.error(
|
|
139
141
|
dedent`${color.red("noto api key is missing.")}
|
|
140
142
|
${color.dim(`run ${color.cyan("`noto config key`")} to set it up.`)}`
|
|
@@ -289,12 +291,15 @@ var models = {
|
|
|
289
291
|
"gemini-1.5-pro": google("gemini-1.5-pro"),
|
|
290
292
|
"gemini-1.5-pro-latest": google("gemini-1.5-pro-latest"),
|
|
291
293
|
"gemini-2.0-flash-001": google("gemini-2.0-flash-001"),
|
|
294
|
+
"gemini-2.0-flash-lite-preview-02-05": google(
|
|
295
|
+
"gemini-2.0-flash-lite-preview-02-05"
|
|
296
|
+
),
|
|
292
297
|
"gemini-2.5-pro-exp-03-25": google("gemini-2.5-pro-exp-03-25")
|
|
293
298
|
};
|
|
294
299
|
var availableModels = Object.keys(models);
|
|
295
300
|
var getModel = async () => {
|
|
296
301
|
let model2 = (await StorageManager.get()).llm?.model;
|
|
297
|
-
if (!model2
|
|
302
|
+
if (!model2) {
|
|
298
303
|
model2 = defaultModel;
|
|
299
304
|
await StorageManager.update((current2) => ({
|
|
300
305
|
...current2,
|
|
@@ -700,6 +705,24 @@ var command3 = {
|
|
|
700
705
|
flag: "--remote",
|
|
701
706
|
alias: "-r",
|
|
702
707
|
description: "list branches including remotes"
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
type: Boolean,
|
|
711
|
+
flag: "--delete",
|
|
712
|
+
alias: "-d",
|
|
713
|
+
description: "delete a branch"
|
|
714
|
+
},
|
|
715
|
+
{
|
|
716
|
+
type: Boolean,
|
|
717
|
+
flag: "--force",
|
|
718
|
+
alias: "-f",
|
|
719
|
+
description: "force delete a branch"
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
type: Boolean,
|
|
723
|
+
flag: "--all",
|
|
724
|
+
alias: "-a",
|
|
725
|
+
description: "select all branches except the current one"
|
|
703
726
|
}
|
|
704
727
|
],
|
|
705
728
|
execute: withRepository(
|
|
@@ -711,6 +734,7 @@ var command3 = {
|
|
|
711
734
|
);
|
|
712
735
|
return await exit(1);
|
|
713
736
|
}
|
|
737
|
+
if (options["--delete"]) return del.execute(options);
|
|
714
738
|
const remote = options["--remote"];
|
|
715
739
|
const branches = await getBranches(remote);
|
|
716
740
|
if (!branches) {
|
|
@@ -976,7 +1000,7 @@ var listCommand = () => {
|
|
|
976
1000
|
};
|
|
977
1001
|
|
|
978
1002
|
// package.json
|
|
979
|
-
var version = "1.1.
|
|
1003
|
+
var version = "1.1.6";
|
|
980
1004
|
|
|
981
1005
|
// src/index.ts
|
|
982
1006
|
var globalSpec = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@snelusha/noto",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.6",
|
|
4
4
|
"description": "Generate clean commit messages in a snap! ✨",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -45,18 +45,18 @@
|
|
|
45
45
|
"@types/node": "^22.14.1",
|
|
46
46
|
"tsup": "^8.4.0",
|
|
47
47
|
"typescript": "^5.8.3",
|
|
48
|
-
"vitest": "^3.1.
|
|
48
|
+
"vitest": "^3.1.2"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@ai-sdk/google": "^1.2.
|
|
51
|
+
"@ai-sdk/google": "^1.2.12",
|
|
52
52
|
"@clack/prompts": "^0.10.1",
|
|
53
|
-
"ai": "^4.3.
|
|
53
|
+
"ai": "^4.3.9",
|
|
54
54
|
"arg": "^5.0.2",
|
|
55
55
|
"clipboardy": "^4.0.0",
|
|
56
56
|
"dedent": "^1.5.3",
|
|
57
57
|
"picocolors": "^1.1.1",
|
|
58
58
|
"simple-git": "^3.27.0",
|
|
59
59
|
"tinyexec": "^0.3.2",
|
|
60
|
-
"zod": "^3.24.
|
|
60
|
+
"zod": "^3.24.3"
|
|
61
61
|
}
|
|
62
62
|
}
|