git-coco 0.22.0 → 0.22.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/dist/index.esm.mjs +15 -8
- package/dist/index.js +15 -8
- package/package.json +1 -1
package/dist/index.esm.mjs
CHANGED
|
@@ -48,7 +48,7 @@ import { pathToFileURL } from 'url';
|
|
|
48
48
|
/**
|
|
49
49
|
* Current build version from package.json
|
|
50
50
|
*/
|
|
51
|
-
const BUILD_VERSION = "0.22.
|
|
51
|
+
const BUILD_VERSION = "0.22.1";
|
|
52
52
|
|
|
53
53
|
const isInteractive = (config) => {
|
|
54
54
|
return config?.mode === 'interactive' || !!config?.interactive;
|
|
@@ -1020,12 +1020,7 @@ const schema$1 = {
|
|
|
1020
1020
|
"description": "API key to use when making requests to OpenAI. Defaults to the value of `OPENAI_API_KEY` environment variable."
|
|
1021
1021
|
},
|
|
1022
1022
|
"verbosity": {
|
|
1023
|
-
"
|
|
1024
|
-
"enum": [
|
|
1025
|
-
"low",
|
|
1026
|
-
"medium",
|
|
1027
|
-
"high"
|
|
1028
|
-
],
|
|
1023
|
+
"$ref": "#/definitions/OpenAIVerbosityParam",
|
|
1029
1024
|
"description": "The verbosity of the model's response."
|
|
1030
1025
|
}
|
|
1031
1026
|
}
|
|
@@ -1599,6 +1594,18 @@ const schema$1 = {
|
|
|
1599
1594
|
"gpt-3.5-turbo-16k-0613"
|
|
1600
1595
|
]
|
|
1601
1596
|
},
|
|
1597
|
+
"OpenAIVerbosityParam": {
|
|
1598
|
+
"type": [
|
|
1599
|
+
"string",
|
|
1600
|
+
"null"
|
|
1601
|
+
],
|
|
1602
|
+
"enum": [
|
|
1603
|
+
"low",
|
|
1604
|
+
"medium",
|
|
1605
|
+
"high",
|
|
1606
|
+
null
|
|
1607
|
+
]
|
|
1608
|
+
},
|
|
1602
1609
|
"OllamaLLMService": {
|
|
1603
1610
|
"type": "object",
|
|
1604
1611
|
"additionalProperties": false,
|
|
@@ -11430,7 +11437,7 @@ const handler$3 = async (argv, logger) => {
|
|
|
11430
11437
|
const schema = USE_CONVENTIONAL_COMMITS
|
|
11431
11438
|
? ConventionalCommitMessageResponseSchema
|
|
11432
11439
|
: CommitMessageResponseSchema;
|
|
11433
|
-
const formatInstructions = `You must always return valid JSON
|
|
11440
|
+
const formatInstructions = `You must always return a valid JSON object. Do not return any additional text. The JSON object you return should match the following schema:
|
|
11434
11441
|
${schema.description}
|
|
11435
11442
|
{
|
|
11436
11443
|
"title": "The commit title",
|
package/dist/index.js
CHANGED
|
@@ -70,7 +70,7 @@ var readline__namespace = /*#__PURE__*/_interopNamespaceDefault(readline);
|
|
|
70
70
|
/**
|
|
71
71
|
* Current build version from package.json
|
|
72
72
|
*/
|
|
73
|
-
const BUILD_VERSION = "0.22.
|
|
73
|
+
const BUILD_VERSION = "0.22.1";
|
|
74
74
|
|
|
75
75
|
const isInteractive = (config) => {
|
|
76
76
|
return config?.mode === 'interactive' || !!config?.interactive;
|
|
@@ -1042,12 +1042,7 @@ const schema$1 = {
|
|
|
1042
1042
|
"description": "API key to use when making requests to OpenAI. Defaults to the value of `OPENAI_API_KEY` environment variable."
|
|
1043
1043
|
},
|
|
1044
1044
|
"verbosity": {
|
|
1045
|
-
"
|
|
1046
|
-
"enum": [
|
|
1047
|
-
"low",
|
|
1048
|
-
"medium",
|
|
1049
|
-
"high"
|
|
1050
|
-
],
|
|
1045
|
+
"$ref": "#/definitions/OpenAIVerbosityParam",
|
|
1051
1046
|
"description": "The verbosity of the model's response."
|
|
1052
1047
|
}
|
|
1053
1048
|
}
|
|
@@ -1621,6 +1616,18 @@ const schema$1 = {
|
|
|
1621
1616
|
"gpt-3.5-turbo-16k-0613"
|
|
1622
1617
|
]
|
|
1623
1618
|
},
|
|
1619
|
+
"OpenAIVerbosityParam": {
|
|
1620
|
+
"type": [
|
|
1621
|
+
"string",
|
|
1622
|
+
"null"
|
|
1623
|
+
],
|
|
1624
|
+
"enum": [
|
|
1625
|
+
"low",
|
|
1626
|
+
"medium",
|
|
1627
|
+
"high",
|
|
1628
|
+
null
|
|
1629
|
+
]
|
|
1630
|
+
},
|
|
1624
1631
|
"OllamaLLMService": {
|
|
1625
1632
|
"type": "object",
|
|
1626
1633
|
"additionalProperties": false,
|
|
@@ -11452,7 +11459,7 @@ const handler$3 = async (argv, logger) => {
|
|
|
11452
11459
|
const schema = USE_CONVENTIONAL_COMMITS
|
|
11453
11460
|
? ConventionalCommitMessageResponseSchema
|
|
11454
11461
|
: CommitMessageResponseSchema;
|
|
11455
|
-
const formatInstructions = `You must always return valid JSON
|
|
11462
|
+
const formatInstructions = `You must always return a valid JSON object. Do not return any additional text. The JSON object you return should match the following schema:
|
|
11456
11463
|
${schema.description}
|
|
11457
11464
|
{
|
|
11458
11465
|
"title": "The commit title",
|