git-coco 0.14.4 โ 0.14.5
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 +3 -6
- package/dist/index.esm.mjs +9 -7
- package/dist/index.js +9 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
[](https://www.npmjs.com/package/git-coco)
|
|
7
7
|
[](https://www.npmjs.com/package/git-coco)
|
|
8
8
|
|
|
9
|
-
`coco`, the
|
|
9
|
+
`coco`, your AI-powered git assistant for the command line, is more than just a robotic scribe. Powered by [LangChain๐ฆ๐](https://js.langchain.com/) and available in both CommonJS and ESM, it generates commit messages, creates changelogs, summarizes code changes, performs code reviews, and more - with new features being added regularly!
|
|
10
10
|
|
|
11
11
|
## Commands
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
- **`changelog`**: create changelogs for the current branch or a range of commits.
|
|
16
16
|
|
|
17
|
-
- **`recap`**: summarize changes from working-tree, or yesterday, or in the last month, or since the last tag
|
|
17
|
+
- **`recap`**: summarize changes from working-tree, or yesterday, or in the last month, or since the last tag.
|
|
18
18
|
|
|
19
19
|
- **`review`**: perform a code review on the changes in the working directory.
|
|
20
20
|
|
|
@@ -50,7 +50,6 @@ coco commit
|
|
|
50
50
|
|
|
51
51
|
#### Useful options
|
|
52
52
|
|
|
53
|
-
|
|
54
53
|
```bash
|
|
55
54
|
# --append
|
|
56
55
|
# Add content to the end of the generated commit
|
|
@@ -65,7 +64,6 @@ coco --append-ticket
|
|
|
65
64
|
coco --additional "Resolves UX bug with sign up button"
|
|
66
65
|
```
|
|
67
66
|
|
|
68
|
-
|
|
69
67
|
### **`coco changelog`**
|
|
70
68
|
|
|
71
69
|
Creates changelogs.
|
|
@@ -121,7 +119,6 @@ The `.coco.config` documentation has moved to our [wiki](https://github.com/gfar
|
|
|
121
119
|
|
|
122
120
|
You can specify files to be ignored when generating commit messages by adding them to your config file or via command line flags. Read more about ignoring files & extensions in the [wiki](https://github.com/gfargo/coco/wiki/Ignoring-Files-&-Extensions).
|
|
123
121
|
|
|
124
|
-
|
|
125
122
|
## Contribution
|
|
126
123
|
|
|
127
124
|
We welcome contributions! Check out our [CONTRIBUTING.md](CONTRIBUTING.md) for more information.
|
|
@@ -132,4 +129,4 @@ We welcome contributions! Check out our [CONTRIBUTING.md](CONTRIBUTING.md) for m
|
|
|
132
129
|
|
|
133
130
|
## License
|
|
134
131
|
|
|
135
|
-
MIT ยฉ [gfargo](https://github.com/gfargo/)
|
|
132
|
+
MIT ยฉ [gfargo](https://github.com/gfargo/)
|
package/dist/index.esm.mjs
CHANGED
|
@@ -55,7 +55,7 @@ import * as readline from 'readline';
|
|
|
55
55
|
/**
|
|
56
56
|
* Current build version from package.json
|
|
57
57
|
*/
|
|
58
|
-
const BUILD_VERSION = "0.14.
|
|
58
|
+
const BUILD_VERSION = "0.14.5";
|
|
59
59
|
|
|
60
60
|
const isInteractive = (config) => {
|
|
61
61
|
return config?.mode === 'interactive' || !!config?.interactive;
|
|
@@ -230,7 +230,7 @@ function getDefaultServiceApiKey(config) {
|
|
|
230
230
|
}
|
|
231
231
|
const DEFAULT_OPENAI_LLM_SERVICE = {
|
|
232
232
|
provider: 'openai',
|
|
233
|
-
model: 'gpt-
|
|
233
|
+
model: 'gpt-4o',
|
|
234
234
|
tokenLimit: 2024,
|
|
235
235
|
temperature: 0.32,
|
|
236
236
|
authentication: {
|
|
@@ -532,12 +532,12 @@ function loadIgnore(config) {
|
|
|
532
532
|
/**
|
|
533
533
|
* Schema ID for JSON validation
|
|
534
534
|
*/
|
|
535
|
-
const SCHEMA_PUBLIC_URL = "
|
|
535
|
+
const SCHEMA_PUBLIC_URL = "https://git-co.co/schema.json";
|
|
536
536
|
/**
|
|
537
537
|
* Generated JSON schema
|
|
538
538
|
*/
|
|
539
539
|
const schema$1 = {
|
|
540
|
-
"$id": "
|
|
540
|
+
"$id": "https://git-co.co/schema.json",
|
|
541
541
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
542
542
|
"$ref": "#/definitions/ConfigWithServiceObject",
|
|
543
543
|
"definitions": {
|
|
@@ -2431,10 +2431,12 @@ const options$3 = {
|
|
|
2431
2431
|
appendTicket: {
|
|
2432
2432
|
description: 'Append ticket ID from branch name to the commit message',
|
|
2433
2433
|
type: 'boolean',
|
|
2434
|
+
alias: 't',
|
|
2434
2435
|
},
|
|
2435
2436
|
additional: {
|
|
2436
2437
|
description: 'Add extra contextual information to the prompt',
|
|
2437
2438
|
type: 'string',
|
|
2439
|
+
alias: 'a',
|
|
2438
2440
|
},
|
|
2439
2441
|
};
|
|
2440
2442
|
const builder$3 = (yargs) => {
|
|
@@ -6233,7 +6235,7 @@ const handler$3 = async (argv, logger) => {
|
|
|
6233
6235
|
logger.log(`No API Key found. ๐๏ธ๐ช`, { color: 'red' });
|
|
6234
6236
|
process.exit(1);
|
|
6235
6237
|
}
|
|
6236
|
-
const tokenizer = await getTokenCounter(provider === 'openai' ? model : 'gpt-
|
|
6238
|
+
const tokenizer = await getTokenCounter(provider === 'openai' ? model : 'gpt-4o');
|
|
6237
6239
|
const llm = getLlm(provider, model, config);
|
|
6238
6240
|
const INTERACTIVE = isInteractive(config);
|
|
6239
6241
|
if (INTERACTIVE) {
|
|
@@ -6877,7 +6879,7 @@ const handler$1 = async (argv, logger) => {
|
|
|
6877
6879
|
logger.log(`No API Key found. ๐๏ธ๐ช`, { color: 'red' });
|
|
6878
6880
|
process.exit(1);
|
|
6879
6881
|
}
|
|
6880
|
-
const tokenizer = await getTokenCounter(provider === 'openai' ? model : 'gpt-
|
|
6882
|
+
const tokenizer = await getTokenCounter(provider === 'openai' ? model : 'gpt-4o');
|
|
6881
6883
|
const llm = getLlm(provider, model, config);
|
|
6882
6884
|
const INTERACTIVE = isInteractive(config);
|
|
6883
6885
|
if (INTERACTIVE) {
|
|
@@ -28218,7 +28220,7 @@ const handler = async (argv, logger) => {
|
|
|
28218
28220
|
logger.log(`No API Key found. ๐๏ธ๐ช`, { color: 'red' });
|
|
28219
28221
|
process.exit(1);
|
|
28220
28222
|
}
|
|
28221
|
-
const tokenizer = await getTokenCounter(provider === 'openai' ? model : 'gpt-
|
|
28223
|
+
const tokenizer = await getTokenCounter(provider === 'openai' ? model : 'gpt-4o');
|
|
28222
28224
|
const llm = getLlm(provider, model, config);
|
|
28223
28225
|
const INTERACTIVE = isInteractive(config);
|
|
28224
28226
|
if (INTERACTIVE) {
|
package/dist/index.js
CHANGED
|
@@ -77,7 +77,7 @@ var readline__namespace = /*#__PURE__*/_interopNamespaceDefault(readline$1);
|
|
|
77
77
|
/**
|
|
78
78
|
* Current build version from package.json
|
|
79
79
|
*/
|
|
80
|
-
const BUILD_VERSION = "0.14.
|
|
80
|
+
const BUILD_VERSION = "0.14.5";
|
|
81
81
|
|
|
82
82
|
const isInteractive = (config) => {
|
|
83
83
|
return config?.mode === 'interactive' || !!config?.interactive;
|
|
@@ -252,7 +252,7 @@ function getDefaultServiceApiKey(config) {
|
|
|
252
252
|
}
|
|
253
253
|
const DEFAULT_OPENAI_LLM_SERVICE = {
|
|
254
254
|
provider: 'openai',
|
|
255
|
-
model: 'gpt-
|
|
255
|
+
model: 'gpt-4o',
|
|
256
256
|
tokenLimit: 2024,
|
|
257
257
|
temperature: 0.32,
|
|
258
258
|
authentication: {
|
|
@@ -554,12 +554,12 @@ function loadIgnore(config) {
|
|
|
554
554
|
/**
|
|
555
555
|
* Schema ID for JSON validation
|
|
556
556
|
*/
|
|
557
|
-
const SCHEMA_PUBLIC_URL = "
|
|
557
|
+
const SCHEMA_PUBLIC_URL = "https://git-co.co/schema.json";
|
|
558
558
|
/**
|
|
559
559
|
* Generated JSON schema
|
|
560
560
|
*/
|
|
561
561
|
const schema$1 = {
|
|
562
|
-
"$id": "
|
|
562
|
+
"$id": "https://git-co.co/schema.json",
|
|
563
563
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
564
564
|
"$ref": "#/definitions/ConfigWithServiceObject",
|
|
565
565
|
"definitions": {
|
|
@@ -2453,10 +2453,12 @@ const options$3 = {
|
|
|
2453
2453
|
appendTicket: {
|
|
2454
2454
|
description: 'Append ticket ID from branch name to the commit message',
|
|
2455
2455
|
type: 'boolean',
|
|
2456
|
+
alias: 't',
|
|
2456
2457
|
},
|
|
2457
2458
|
additional: {
|
|
2458
2459
|
description: 'Add extra contextual information to the prompt',
|
|
2459
2460
|
type: 'string',
|
|
2461
|
+
alias: 'a',
|
|
2460
2462
|
},
|
|
2461
2463
|
};
|
|
2462
2464
|
const builder$3 = (yargs) => {
|
|
@@ -6255,7 +6257,7 @@ const handler$3 = async (argv, logger) => {
|
|
|
6255
6257
|
logger.log(`No API Key found. ๐๏ธ๐ช`, { color: 'red' });
|
|
6256
6258
|
process.exit(1);
|
|
6257
6259
|
}
|
|
6258
|
-
const tokenizer = await getTokenCounter(provider === 'openai' ? model : 'gpt-
|
|
6260
|
+
const tokenizer = await getTokenCounter(provider === 'openai' ? model : 'gpt-4o');
|
|
6259
6261
|
const llm = getLlm(provider, model, config);
|
|
6260
6262
|
const INTERACTIVE = isInteractive(config);
|
|
6261
6263
|
if (INTERACTIVE) {
|
|
@@ -6899,7 +6901,7 @@ const handler$1 = async (argv, logger) => {
|
|
|
6899
6901
|
logger.log(`No API Key found. ๐๏ธ๐ช`, { color: 'red' });
|
|
6900
6902
|
process.exit(1);
|
|
6901
6903
|
}
|
|
6902
|
-
const tokenizer = await getTokenCounter(provider === 'openai' ? model : 'gpt-
|
|
6904
|
+
const tokenizer = await getTokenCounter(provider === 'openai' ? model : 'gpt-4o');
|
|
6903
6905
|
const llm = getLlm(provider, model, config);
|
|
6904
6906
|
const INTERACTIVE = isInteractive(config);
|
|
6905
6907
|
if (INTERACTIVE) {
|
|
@@ -28240,7 +28242,7 @@ const handler = async (argv, logger) => {
|
|
|
28240
28242
|
logger.log(`No API Key found. ๐๏ธ๐ช`, { color: 'red' });
|
|
28241
28243
|
process.exit(1);
|
|
28242
28244
|
}
|
|
28243
|
-
const tokenizer = await getTokenCounter(provider === 'openai' ? model : 'gpt-
|
|
28245
|
+
const tokenizer = await getTokenCounter(provider === 'openai' ? model : 'gpt-4o');
|
|
28244
28246
|
const llm = getLlm(provider, model, config);
|
|
28245
28247
|
const INTERACTIVE = isInteractive(config);
|
|
28246
28248
|
if (INTERACTIVE) {
|