@gilbert_oliveira/commit-wizard 2.0.2 → 2.1.0
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 +13 -14
- package/dist/commit-wizard.d.ts +1 -0
- package/dist/commit-wizard.js +52 -110
- package/package.json +29 -26
- package/{bin → src/bin}/commit-wizard.ts +6 -5
- package/src/core/cache.ts +2 -2
- package/src/core/index.ts +15 -11
- package/src/core/openai.ts +30 -12
- package/src/core/smart-split.ts +72 -48
- package/src/git/index.ts +16 -4
- package/src/ui/index.ts +1 -1
- package/src/ui/smart-split.ts +1 -1
- package/src/utils/polyfill.ts +0 -82
package/README.md
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
[](https://github.com/gilbert-oliveira/commit-wizard/actions)
|
|
6
6
|
[](https://github.com/gilbert-oliveira/commit-wizard/actions)
|
|
7
7
|
[](https://github.com/gilbert-oliveira/commit-wizard/actions)
|
|
8
|
-
|
|
8
|
+
|
|
9
9
|
[](https://www.npmjs.com/package/@gilbert_oliveira/commit-wizard)
|
|
10
10
|
[](https://opensource.org/licenses/MIT)
|
|
11
11
|
|
|
12
|
-
Um CLI desenvolvido
|
|
12
|
+
Um CLI desenvolvido para Node.js que analisa suas mudanças no Git e gera mensagens de commit personalizadas usando a API da OpenAI.
|
|
13
13
|
|
|
14
14
|
## 📊 Status do Projeto
|
|
15
15
|
|
|
@@ -60,13 +60,13 @@ Um CLI desenvolvido com Bun.js que analisa suas mudanças no Git e gera mensagen
|
|
|
60
60
|
|
|
61
61
|
### Pré-requisitos
|
|
62
62
|
|
|
63
|
-
-
|
|
63
|
+
- Node.js 18+ instalado
|
|
64
64
|
- Chave da API OpenAI
|
|
65
65
|
|
|
66
66
|
### Instalação Global
|
|
67
67
|
|
|
68
68
|
```bash
|
|
69
|
-
|
|
69
|
+
npm install -g @gilbert_oliveira/commit-wizard
|
|
70
70
|
```
|
|
71
71
|
|
|
72
72
|
### Uso via npx (sem instalação)
|
|
@@ -168,9 +168,9 @@ Crie um arquivo `.commit-wizardrc` no seu projeto ou no diretório home:
|
|
|
168
168
|
"compactMode": false
|
|
169
169
|
},
|
|
170
170
|
"cache": {
|
|
171
|
-
"enabled": true,
|
|
172
|
-
"ttl": 60,
|
|
173
|
-
"maxSize": 100
|
|
171
|
+
"enabled": true, // ✅ Cache inteligente implementado
|
|
172
|
+
"ttl": 60, // Tempo de vida em minutos
|
|
173
|
+
"maxSize": 100 // Máximo de entradas no cache
|
|
174
174
|
},
|
|
175
175
|
"advanced": {
|
|
176
176
|
"maxFileSize": 1024,
|
|
@@ -358,9 +358,7 @@ commit-wizard --split
|
|
|
358
358
|
### Executar Testes
|
|
359
359
|
|
|
360
360
|
```bash
|
|
361
|
-
|
|
362
|
-
bun test src/__tests__ # Testes unitários
|
|
363
|
-
bun test tests/ # Testes de integração
|
|
361
|
+
npm run test # Todos os testes
|
|
364
362
|
```
|
|
365
363
|
|
|
366
364
|
### Desenvolvimento Local
|
|
@@ -368,14 +366,15 @@ bun test tests/ # Testes de integração
|
|
|
368
366
|
```bash
|
|
369
367
|
git clone https://github.com/gilbert-oliveira/commit-wizard
|
|
370
368
|
cd commit-wizard
|
|
371
|
-
|
|
372
|
-
|
|
369
|
+
|
|
370
|
+
npm install
|
|
371
|
+
npm run dev
|
|
373
372
|
```
|
|
374
373
|
|
|
375
374
|
### Build
|
|
376
375
|
|
|
377
376
|
```bash
|
|
378
|
-
|
|
377
|
+
npm run build
|
|
379
378
|
```
|
|
380
379
|
|
|
381
380
|
---
|
|
@@ -437,7 +436,7 @@ MIT © [Gilbert Oliveira](https://github.com/gilbert-oliveira)
|
|
|
437
436
|
|
|
438
437
|
- [Documentação da OpenAI](https://platform.openai.com/docs)
|
|
439
438
|
- [Conventional Commits](https://www.conventionalcommits.org/)
|
|
440
|
-
- [
|
|
439
|
+
- [Node.js](https://nodejs.org/) (alternativa)
|
|
441
440
|
- [📋 Guia para Contribuidores](.github/README.md) - Informações sobre desenvolvimento e CI/CD
|
|
442
441
|
|
|
443
442
|
---
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#!/usr/bin/env node
|