@snelusha/noto 1.1.5 → 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.
Files changed (2) hide show
  1. package/dist/index.js +16 -3
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -135,7 +135,8 @@ var exit = async (code) => {
135
135
  var withAuth = (fn, options = { enabled: true }) => {
136
136
  return async (opts) => {
137
137
  const storage = await StorageManager.get();
138
- if (!storage.llm?.apiKey && options.enabled) {
138
+ const apiKey = storage.llm?.apiKey || process.env.NOTO_API_KEY;
139
+ if (!apiKey && options.enabled) {
139
140
  p.log.error(
140
141
  dedent`${color.red("noto api key is missing.")}
141
142
  ${color.dim(`run ${color.cyan("`noto config key`")} to set it up.`)}`
@@ -298,7 +299,7 @@ var models = {
298
299
  var availableModels = Object.keys(models);
299
300
  var getModel = async () => {
300
301
  let model2 = (await StorageManager.get()).llm?.model;
301
- if (!model2 || model2 === "gemini-2.0-pro-exp-02-05") {
302
+ if (!model2) {
302
303
  model2 = defaultModel;
303
304
  await StorageManager.update((current2) => ({
304
305
  ...current2,
@@ -710,6 +711,18 @@ var command3 = {
710
711
  flag: "--delete",
711
712
  alias: "-d",
712
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"
713
726
  }
714
727
  ],
715
728
  execute: withRepository(
@@ -987,7 +1000,7 @@ var listCommand = () => {
987
1000
  };
988
1001
 
989
1002
  // package.json
990
- var version = "1.1.5";
1003
+ var version = "1.1.6";
991
1004
 
992
1005
  // src/index.ts
993
1006
  var globalSpec = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snelusha/noto",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "description": "Generate clean commit messages in a snap! ✨",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -45,7 +45,7 @@
45
45
  "@types/node": "^22.14.1",
46
46
  "tsup": "^8.4.0",
47
47
  "typescript": "^5.8.3",
48
- "vitest": "^3.1.1"
48
+ "vitest": "^3.1.2"
49
49
  },
50
50
  "dependencies": {
51
51
  "@ai-sdk/google": "^1.2.12",