@snelusha/noto 1.3.0-beta.0 → 1.3.0-beta.1

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/README.md CHANGED
@@ -28,7 +28,7 @@ Before using noto, you must configure your [Google Generative API](https://aistu
28
28
 
29
29
  ### 1. Using an environment variable (recommended)
30
30
 
31
- Set the `NOTO_API_KEY` environment variable globally os it's available across your system.
31
+ Set the `NOTO_API_KEY` environment variable globally so it's available across your system.
32
32
 
33
33
  #### macOS/Linux (eg., in .bashrc, .zshrc or .profile)
34
34
 
@@ -104,9 +104,9 @@ noto prev --amend --edit # or simply: noto prev --amend -e
104
104
 
105
105
  > Note: When using the `--amend` flag with the noto prev command, the `--edit` (`-e`) flag is also required. This combination will allow you to modify (amend) the previous commit message before applying it.
106
106
 
107
- Note: All of the flags shown above (`--apply`, `--copy`, `--type`, `--edit`) can also be used with the `noto prev` command to work with the previously generated commit message.
107
+ Note: All of the flags shown above (`--apply`, `--copy`, `--edit`) can also be used with the `noto prev` command to work with the previously generated commit message.
108
108
 
109
- Switch between branches in you git repo with an interactive prompt:
109
+ Switch between branches in your git repo with an interactive prompt:
110
110
 
111
111
  ```bash
112
112
  noto checkout
@@ -124,11 +124,11 @@ noto checkout -b new-branch-name
124
124
 
125
125
  ## Contributing
126
126
 
127
- We welcome contributions and suggestions! If you have ideas or improvements, feel free to reach out or open a pull request.
127
+ We welcome contributions and suggestions! If you have ideas or improvements, feel free to open a pull request or reach out with feedback.
128
128
 
129
- Thank you for using `noto`! If you have any feedback or suggestions, feel free to reach out or contribute to the project. ✨
129
+ Thank you for using noto!
130
130
 
131
131
  ## License
132
132
 
133
133
  This project is licensed under the MIT License.
134
- © 2024 [Sithija Nelusha Silva](https://github.com/snelusha)
134
+ © 2025 [Sithija Nelusha Silva](https://github.com/snelusha)
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  // src/index.ts
2
2
  import { createCli } from "trpc-cli";
3
3
  // package.json
4
- var version = "1.3.0-beta.0";
4
+ var version = "1.3.0-beta.1";
5
5
 
6
6
  // src/trpc.ts
7
7
  import fs3 from "node:fs/promises";
@@ -431,7 +431,7 @@ import { createGoogleGenerativeAI } from "@ai-sdk/google";
431
431
  var google = createGoogleGenerativeAI({
432
432
  apiKey: (await StorageManager.get()).llm?.apiKey ?? "api-key"
433
433
  });
434
- var defaultModel = "gemini-2.0-flash";
434
+ var DEFAULT_MODEL = "gemini-2.0-flash";
435
435
  var models = {
436
436
  "gemini-1.5-flash": google("gemini-1.5-flash"),
437
437
  "gemini-1.5-flash-latest": google("gemini-1.5-flash-latest"),
@@ -449,12 +449,12 @@ var availableModels = Object.keys(models);
449
449
  var getModel = async () => {
450
450
  let model = (await StorageManager.get()).llm?.model;
451
451
  if (!model || !availableModels.includes(model)) {
452
- model = defaultModel;
452
+ model = DEFAULT_MODEL;
453
453
  await StorageManager.update((current) => ({
454
454
  ...current,
455
455
  llm: {
456
456
  ...current.llm,
457
- model: defaultModel
457
+ model: DEFAULT_MODEL
458
458
  }
459
459
  }));
460
460
  }
@@ -1003,7 +1003,7 @@ var EMPTY_TEMPLATE = dedent4`
1003
1003
 
1004
1004
  # Add your custom guidelines here.
1005
1005
  # When no guidelines are present, noto will use conventional commits format by default.`;
1006
- var init = gitProcedure.meta({
1006
+ var init = authedGitProcedure.meta({
1007
1007
  description: "initialize noto in the repository"
1008
1008
  }).input(z7.object({
1009
1009
  root: z7.boolean().meta({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snelusha/noto",
3
- "version": "1.3.0-beta.0",
3
+ "version": "1.3.0-beta.1",
4
4
  "description": "Generate clean commit messages in a snap! ✨",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -42,25 +42,24 @@
42
42
  "cli"
43
43
  ],
44
44
  "devDependencies": {
45
- "@types/node": "^22.15.23",
45
+ "@types/node": "^24.9.1",
46
+ "bunup": "^0.15.7",
46
47
  "typescript": "^5.8.3",
47
- "vitest": "^3.2.4"
48
+ "vitest": "^4.0.3"
48
49
  },
49
50
  "dependencies": {
50
- "@ai-sdk/google": "^2.0.17",
51
+ "@ai-sdk/google": "^2.0.23",
51
52
  "@ai-sdk/provider": "^2.0.0",
52
53
  "@clack/prompts": "^0.11.0",
53
- "@trpc/server": "^11.6.0",
54
- "ai": "^5.0.60",
55
- "arg": "^5.0.2",
56
- "bunup": "^0.14.19",
54
+ "@trpc/server": "^11.7.0",
55
+ "ai": "^5.0.80",
57
56
  "clipboardy": "^5.0.0",
58
57
  "dedent": "^1.7.0",
59
58
  "picocolors": "^1.1.1",
60
59
  "simple-git": "^3.28.0",
61
- "superjson": "^2.2.2",
60
+ "superjson": "^2.2.3",
62
61
  "tinyexec": "^1.0.1",
63
- "trpc-cli": "^0.11.0",
62
+ "trpc-cli": "^0.12.0",
64
63
  "zod": "^4.1.12"
65
64
  }
66
65
  }