opencommit 1.1.30 → 1.1.32
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/out/cli.cjs +15 -5
- package/package.json +1 -1
package/out/cli.cjs
CHANGED
|
@@ -15763,7 +15763,7 @@ function G3(t, e2) {
|
|
|
15763
15763
|
// package.json
|
|
15764
15764
|
var package_default = {
|
|
15765
15765
|
name: "opencommit",
|
|
15766
|
-
version: "1.1.
|
|
15766
|
+
version: "1.1.31",
|
|
15767
15767
|
description: "GPT CLI to auto-generate impressive commits in 1 second. Killing lame commits with AI \u{1F92F}\u{1F52B}",
|
|
15768
15768
|
keywords: [
|
|
15769
15769
|
"git",
|
|
@@ -16973,6 +16973,14 @@ var sv_default = {
|
|
|
16973
16973
|
commitDescription: "Variabeln som inneh\xE5ller portnumret heter nu PORT vilket f\xF6rb\xE4ttrar konsekvensen med namngivningskonventionerna eftersom PORT \xE4r en konstant. St\xF6d f\xF6r en milj\xF6variabel g\xF6r att applikationen kan vara mer flexibel d\xE5 den nu kan k\xF6ras p\xE5 vilken port som helst som specificeras via milj\xF6variabeln process.env.PORT."
|
|
16974
16974
|
};
|
|
16975
16975
|
|
|
16976
|
+
// src/i18n/ru.json
|
|
16977
|
+
var ru_default = {
|
|
16978
|
+
localLanguage: "\u0440\u0443\u0441\u0441\u043A\u0438\u0439",
|
|
16979
|
+
commitFix: "fix(server.ts): \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430 \u043F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043F\u043E\u0440\u0442\u0430 \u0441 \u043D\u0438\u0436\u043D\u0435\u0433\u043E \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430 port \u043D\u0430 \u0432\u0435\u0440\u0445\u043D\u0438\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 PORT",
|
|
16980
|
+
commitFeat: "feat(server.ts): \u0434\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u0430 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0430 \u043F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u043A\u0440\u0443\u0436\u0435\u043D\u0438\u044F process.env.PORT",
|
|
16981
|
+
commitDescription: "\u041F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u0430\u044F port \u0442\u0435\u043F\u0435\u0440\u044C \u043D\u0430\u0437\u044B\u0432\u0430\u0435\u0442\u0441\u044F PORT, \u0447\u0442\u043E \u0443\u043B\u0443\u0447\u0448\u0430\u0435\u0442 \u0441\u043E\u0433\u043B\u0430\u0441\u043E\u0432\u0430\u043D\u043D\u043E\u0441\u0442\u044C \u0441 \u0441\u043E\u0433\u043B\u0430\u0448\u0435\u043D\u0438\u044F\u043C\u0438 \u043E\u0431 \u0438\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u0438\u0438 \u043A\u043E\u043D\u0441\u0442\u0430\u043D\u0442. \u041F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0430 \u043F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u043A\u0440\u0443\u0436\u0435\u043D\u0438\u044F \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044E \u0431\u044B\u0442\u044C \u0431\u043E\u043B\u0435\u0435 \u0433\u0438\u0431\u043A\u0438\u043C, \u0437\u0430\u043F\u0443\u0441\u043A\u0430\u044F\u0441\u044C \u043D\u0430 \u043B\u044E\u0431\u043E\u043C \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u043E\u043C \u043F\u043E\u0440\u0442\u0443, \u0443\u043A\u0430\u0437\u0430\u043D\u043D\u043E\u043C \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E \u043F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u043A\u0440\u0443\u0436\u0435\u043D\u0438\u044F process.env.PORT."
|
|
16982
|
+
};
|
|
16983
|
+
|
|
16976
16984
|
// src/i18n/index.ts
|
|
16977
16985
|
var i18n = {
|
|
16978
16986
|
en: en_default,
|
|
@@ -16986,7 +16994,8 @@ var i18n = {
|
|
|
16986
16994
|
pt_br: pt_br_default,
|
|
16987
16995
|
vi_VN: vi_VN_default,
|
|
16988
16996
|
es_ES: es_ES_default,
|
|
16989
|
-
sv: sv_default
|
|
16997
|
+
sv: sv_default,
|
|
16998
|
+
ru: ru_default
|
|
16990
16999
|
};
|
|
16991
17000
|
var I18N_CONFIG_ALIAS = {
|
|
16992
17001
|
zh_CN: ["zh_CN", "\u7B80\u4F53\u4E2D\u6587", "\u4E2D\u6587", "\u7B80\u4F53"],
|
|
@@ -17000,7 +17009,8 @@ var I18N_CONFIG_ALIAS = {
|
|
|
17000
17009
|
vi_VN: ["vi_VN", "Vietnamese", "ti\u1EBFng Vi\u1EC7t"],
|
|
17001
17010
|
en: ["en", "English", "english"],
|
|
17002
17011
|
es_ES: ["es_ES", "Spanish", "espa\xF1ol"],
|
|
17003
|
-
sv: ["sv", "Swedish", "Svenska"]
|
|
17012
|
+
sv: ["sv", "Swedish", "Svenska"],
|
|
17013
|
+
ru: ["ru", "Russian", "\u0440\u0443\u0441\u0441\u043A\u0438\u0439"]
|
|
17004
17014
|
};
|
|
17005
17015
|
function getI18nLocal(value) {
|
|
17006
17016
|
for (const key in I18N_CONFIG_ALIAS) {
|
|
@@ -21082,8 +21092,8 @@ var INIT_MESSAGES_PROMPT = [
|
|
|
21082
21092
|
{
|
|
21083
21093
|
role: import_openai2.ChatCompletionRequestMessageRoleEnum.System,
|
|
21084
21094
|
content: `You are to act as the author of a commit message in git. Your mission is to create clean and comprehensive commit messages in the conventional commit convention and explain why a change was done. I'll send you an output of 'git diff --staged' command, and you convert it into a commit message.
|
|
21085
|
-
${config2?.emoji ? "Use
|
|
21086
|
-
${config2?.description ? `Add a short description of
|
|
21095
|
+
${config2?.emoji ? "Use GitMoji convention to preface the commit." : "Do not preface the commit with anything."}
|
|
21096
|
+
${config2?.description ? `Add a short description of WHY the changes are done after the commit message. Don't start it with "This commit", just describe the changes.` : "Don't add any descriptions to the commit, only commit message."}
|
|
21087
21097
|
Use the present tense. Lines must not be longer than 74 characters. Use ${translation.localLanguage} to answer.`
|
|
21088
21098
|
},
|
|
21089
21099
|
{
|