@snelusha/noto 1.2.1 → 1.2.3
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 +15 -7
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -66,7 +66,8 @@ var AvailableModelsSchema = z.enum([
|
|
|
66
66
|
"gemini-2.0-flash-exp",
|
|
67
67
|
"gemini-2.0-flash-lite-preview-02-05",
|
|
68
68
|
"gemini-2.5-pro-exp-03-25",
|
|
69
|
-
"gemini-2.5-flash-preview-04-17"
|
|
69
|
+
"gemini-2.5-flash-preview-04-17",
|
|
70
|
+
"gemini-2.5-pro-preview-05-06"
|
|
70
71
|
]);
|
|
71
72
|
|
|
72
73
|
// src/utils/storage.ts
|
|
@@ -298,7 +299,8 @@ var models = {
|
|
|
298
299
|
"gemini-2.0-flash-lite-preview-02-05"
|
|
299
300
|
),
|
|
300
301
|
"gemini-2.5-pro-exp-03-25": google("gemini-2.5-pro-exp-03-25"),
|
|
301
|
-
"gemini-2.5-flash-preview-04-17": google("gemini-2.5-flash-preview-04-17")
|
|
302
|
+
"gemini-2.5-flash-preview-04-17": google("gemini-2.5-flash-preview-04-17"),
|
|
303
|
+
"gemini-2.5-pro-preview-05-06": google("gemini-2.5-pro-preview-05-06")
|
|
302
304
|
};
|
|
303
305
|
var availableModels = Object.keys(models);
|
|
304
306
|
var getModel = async () => {
|
|
@@ -387,12 +389,9 @@ var generateCommitMessage = async (diff, type, context) => {
|
|
|
387
389
|
${context ?? "[none]"}
|
|
388
390
|
\`\`\`
|
|
389
391
|
|
|
390
|
-
|
|
391
|
-
|
|
392
392
|
\`\`\`diff
|
|
393
393
|
${diff}
|
|
394
|
-
|
|
395
|
-
`
|
|
394
|
+
\`\`\``
|
|
396
395
|
}
|
|
397
396
|
]
|
|
398
397
|
});
|
|
@@ -957,6 +956,15 @@ var model = {
|
|
|
957
956
|
p7.log.error(color7.red("nothing changed!"));
|
|
958
957
|
return await exit(1);
|
|
959
958
|
}
|
|
959
|
+
if (model2 === "gemini-2.5-pro-preview-05-06") {
|
|
960
|
+
const confirm2 = await p7.confirm({
|
|
961
|
+
message: "this model does not have free quota tier, do you want to continue?"
|
|
962
|
+
});
|
|
963
|
+
if (p7.isCancel(confirm2) || !confirm2) {
|
|
964
|
+
p7.log.error(color7.red("nothing changed!"));
|
|
965
|
+
return await exit(1);
|
|
966
|
+
}
|
|
967
|
+
}
|
|
960
968
|
await StorageManager.update((current2) => ({
|
|
961
969
|
...current2,
|
|
962
970
|
llm: {
|
|
@@ -1057,7 +1065,7 @@ var listCommand = () => {
|
|
|
1057
1065
|
};
|
|
1058
1066
|
|
|
1059
1067
|
// package.json
|
|
1060
|
-
var version = "1.2.
|
|
1068
|
+
var version = "1.2.3";
|
|
1061
1069
|
|
|
1062
1070
|
// src/index.ts
|
|
1063
1071
|
var globalSpec = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@snelusha/noto",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "Generate clean commit messages in a snap! ✨",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -41,21 +41,21 @@
|
|
|
41
41
|
"cli"
|
|
42
42
|
],
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@types/node": "^22.15.
|
|
44
|
+
"@types/node": "^22.15.18",
|
|
45
45
|
"tsup": "^8.4.0",
|
|
46
46
|
"typescript": "^5.8.3",
|
|
47
|
-
"vitest": "^3.1.
|
|
47
|
+
"vitest": "^3.1.3"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@ai-sdk/google": "^1.2.
|
|
50
|
+
"@ai-sdk/google": "^1.2.18",
|
|
51
51
|
"@clack/prompts": "^0.10.1",
|
|
52
|
-
"ai": "^4.3.
|
|
52
|
+
"ai": "^4.3.15",
|
|
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
57
|
"simple-git": "^3.27.0",
|
|
58
58
|
"tinyexec": "^0.3.2",
|
|
59
|
-
"zod": "^3.24.
|
|
59
|
+
"zod": "^3.24.4"
|
|
60
60
|
}
|
|
61
61
|
}
|