opencommit 3.0.0 → 3.0.2
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 +2 -0
- package/out/cli.cjs +5 -4
- package/package.json +3 -2
- package/out/github-action.cjs +0 -28782
package/README.md
CHANGED
|
@@ -29,6 +29,8 @@ You can use OpenCommit by simply running it via the CLI like this `oco`. 2 secon
|
|
|
29
29
|
npm install -g opencommit
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
+
MacOS may ask to run the command with `sudo` when installing a package globally.
|
|
33
|
+
|
|
32
34
|
2. Get your API key from [OpenAI](https://platform.openai.com/account/api-keys). Make sure that you add your payment details, so the API works.
|
|
33
35
|
|
|
34
36
|
3. Set the key to OpenCommit config:
|
package/out/cli.cjs
CHANGED
|
@@ -16410,7 +16410,8 @@ var package_default = {
|
|
|
16410
16410
|
author: "https://github.com/di-sukharev",
|
|
16411
16411
|
license: "MIT",
|
|
16412
16412
|
files: [
|
|
16413
|
-
"out
|
|
16413
|
+
"out/cli.cjs",
|
|
16414
|
+
"out/tiktoken_bg.wasm"
|
|
16414
16415
|
],
|
|
16415
16416
|
release: {
|
|
16416
16417
|
branches: [
|
|
@@ -21906,7 +21907,7 @@ var commitlintPrompts = {
|
|
|
21906
21907
|
// src/modules/commitlint/pwd-commitlint.ts
|
|
21907
21908
|
var import_path2 = __toESM(require("path"), 1);
|
|
21908
21909
|
var nodeModulesPath = import_path2.default.join(
|
|
21909
|
-
process.env.PWD,
|
|
21910
|
+
process.env.PWD || process.cwd(),
|
|
21910
21911
|
"node_modules",
|
|
21911
21912
|
"@commitlint",
|
|
21912
21913
|
"load"
|
|
@@ -21997,10 +21998,10 @@ var translation3 = i18n[config5?.OCO_LANGUAGE || "en"];
|
|
|
21997
21998
|
var IDENTITY = "You are to act as the author of a commit message in git.";
|
|
21998
21999
|
var INIT_MAIN_PROMPT2 = (language) => ({
|
|
21999
22000
|
role: import_openai3.ChatCompletionRequestMessageRoleEnum.System,
|
|
22000
|
-
content: `${IDENTITY} Your mission is to create clean and comprehensive commit messages
|
|
22001
|
+
content: `${IDENTITY} Your mission is to create clean and comprehensive commit messages as per the conventional commit convention and explain WHAT were the changes and mainly WHY the changes were done. I'll send you an output of 'git diff --staged' command, and you are to convert it into a commit message.
|
|
22001
22002
|
${config5?.OCO_EMOJI ? "Use GitMoji convention to preface the commit." : "Do not preface the commit with anything."}
|
|
22002
22003
|
${config5?.OCO_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."}
|
|
22003
|
-
Use the present tense. Lines must not be longer than 74 characters. Use ${language}
|
|
22004
|
+
Use the present tense. Lines must not be longer than 74 characters. Use ${language} for the commit message.`
|
|
22004
22005
|
});
|
|
22005
22006
|
var INIT_DIFF_PROMPT = {
|
|
22006
22007
|
role: import_openai3.ChatCompletionRequestMessageRoleEnum.User,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencommit",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"description": "Auto-generate impressive commits in 1 second. Killing lame commits with AI 🤯🔫",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"git",
|
|
@@ -26,7 +26,8 @@
|
|
|
26
26
|
"author": "https://github.com/di-sukharev",
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"files": [
|
|
29
|
-
"out
|
|
29
|
+
"out/cli.cjs",
|
|
30
|
+
"out/tiktoken_bg.wasm"
|
|
30
31
|
],
|
|
31
32
|
"release": {
|
|
32
33
|
"branches": [
|