@andre-barbosa/opencode-commit 0.1.0 → 0.1.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/LICENSE +1 -1
- package/README.md +11 -6
- package/agents/commit-writer.md +1 -1
- package/opencode.example.json +2 -2
- package/package.json +5 -2
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# opencode-commit
|
|
1
|
+
# @andre-barbosa/opencode-commit
|
|
2
2
|
|
|
3
3
|
OpenCode plugin that generates **Conventional Commits** messages from staged git changes using a dedicated sub-agent on a model you choose.
|
|
4
4
|
|
|
@@ -45,19 +45,24 @@ cp commands/commit.md .opencode/commands/commit.md
|
|
|
45
45
|
],
|
|
46
46
|
"agent": {
|
|
47
47
|
"commit-writer": {
|
|
48
|
-
"model": "
|
|
48
|
+
"model": "opencode-go/deepseek-v4-flash"
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
```
|
|
53
53
|
|
|
54
|
-
**From npm
|
|
54
|
+
**From npm:**
|
|
55
55
|
|
|
56
56
|
```json
|
|
57
57
|
{
|
|
58
58
|
"plugin": [
|
|
59
|
-
["opencode-commit", { "agent": "commit-writer" }]
|
|
60
|
-
]
|
|
59
|
+
["@andre-barbosa/opencode-commit", { "agent": "commit-writer" }]
|
|
60
|
+
],
|
|
61
|
+
"agent": {
|
|
62
|
+
"commit-writer": {
|
|
63
|
+
"model": "opencode-go/deepseek-v4-flash"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
61
66
|
}
|
|
62
67
|
```
|
|
63
68
|
|
|
@@ -68,7 +73,7 @@ See [opencode.example.json](opencode.example.json) for a full example.
|
|
|
68
73
|
Edit the model on the `commit-writer` agent in `opencode.json` or in `.opencode/agents/commit-writer.md`:
|
|
69
74
|
|
|
70
75
|
```yaml
|
|
71
|
-
model:
|
|
76
|
+
model: opencode-go/deepseek-v4-flash
|
|
72
77
|
```
|
|
73
78
|
|
|
74
79
|
Run `opencode models` to list available models.
|
package/agents/commit-writer.md
CHANGED
package/opencode.example.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://opencode.ai/config.json",
|
|
3
3
|
"plugin": [
|
|
4
4
|
[
|
|
5
|
-
"opencode-commit",
|
|
5
|
+
"@andre-barbosa/opencode-commit",
|
|
6
6
|
{
|
|
7
7
|
"agent": "commit-writer",
|
|
8
8
|
"maxDiffChars": 12000
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
],
|
|
12
12
|
"agent": {
|
|
13
13
|
"commit-writer": {
|
|
14
|
-
"model": "
|
|
14
|
+
"model": "opencode-go/deepseek-v4-flash"
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@andre-barbosa/opencode-commit",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "OpenCode plugin that generates Conventional Commit messages via a dedicated sub-agent",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -35,6 +35,9 @@
|
|
|
35
35
|
"url": "https://github.com/AndreB10/opencode-commit/issues"
|
|
36
36
|
},
|
|
37
37
|
"homepage": "https://github.com/AndreB10/opencode-commit#readme",
|
|
38
|
+
"publishConfig": {
|
|
39
|
+
"access": "public"
|
|
40
|
+
},
|
|
38
41
|
"dependencies": {
|
|
39
42
|
"@opencode-ai/plugin": "^1.3.3"
|
|
40
43
|
},
|
|
@@ -45,4 +48,4 @@
|
|
|
45
48
|
"engines": {
|
|
46
49
|
"node": ">=18"
|
|
47
50
|
}
|
|
48
|
-
}
|
|
51
|
+
}
|