@cogit/cli 0.24.0 → 0.25.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/.claude-plugin/plugin.json +1 -1
- package/README.md +9 -3
- package/dist/{chunk-FLS6H2KL.js → chunk-YU7XXCX3.js} +5753 -1359
- package/dist/cli.js +5661 -8844
- package/dist/{git-hooks-BB2A42YO.js → git-hooks-DQ2SKMD3.js} +1 -1
- package/dist/mermaid.min.js +3636 -0
- package/package.json +2 -1
- package/skills/record/SKILL.md +25 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cogit/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.25.1",
|
|
4
4
|
"description": "Git remembers what changed. cogit remembers why.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@inquirer/prompts": "^8.7.4",
|
|
47
47
|
"commander": "^15.0.0",
|
|
48
|
+
"mermaid": "^11.17.2",
|
|
48
49
|
"tsup": "^9.0.0",
|
|
49
50
|
"zod": "^4.6.7"
|
|
50
51
|
}
|
package/skills/record/SKILL.md
CHANGED
|
@@ -78,6 +78,31 @@ Every message grows from an earlier one; a thread that starts something new is a
|
|
|
78
78
|
- Hints, not rules: `gapMinutes`, `resumed`, `commitBetween` (a real commit landed in this
|
|
79
79
|
repo between them), `lastMessages`, and for a first message `candidates`/`continuesHint`.
|
|
80
80
|
|
|
81
|
+
## Shape
|
|
82
|
+
|
|
83
|
+
A message that landed commits gets a `shape`: a small representation of what the change does,
|
|
84
|
+
between its Intent (the decision and reason above) and its Code (the diff). Add it on that
|
|
85
|
+
message's node, with the node's commit hashes:
|
|
86
|
+
|
|
87
|
+
```json
|
|
88
|
+
"shape": { "tools": [{ "kind": "pseudo", "text": "1. ...\n2. ..." }], "commits": ["abc1234"] }
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
Three tools:
|
|
92
|
+
|
|
93
|
+
- `mermaid`: a Mermaid `flowchart TD` (or `LR`) of the new path between files or functions,
|
|
94
|
+
at most 15 nodes. Quote labels that hold spaces or punctuation.
|
|
95
|
+
- `table`: Before / After, one `case | before | after` line per case (at most 8), for a
|
|
96
|
+
change someone can see: a fix, a new default, a rule that now says yes or no.
|
|
97
|
+
- `pseudo`: numbered plain-language steps of the new logic, naming the functions and files.
|
|
98
|
+
|
|
99
|
+
A change across two or more files gets the diagram and the steps; a visible behaviour change
|
|
100
|
+
also gets the table; order them diagram, table, steps. `{ "tools": [] }` means nothing worth
|
|
101
|
+
showing. Skip messages whose
|
|
102
|
+
commits are only release/version bumps, lockfiles or CHANGELOG, or change fewer than 5 lines
|
|
103
|
+
in total. Write it in the conversation's language; the CLI validates each output and keeps an
|
|
104
|
+
invalid diagram as text.
|
|
105
|
+
|
|
81
106
|
## Branch summary
|
|
82
107
|
|
|
83
108
|
A branch starts at a root or where a message gets a second child. Its first message carries a
|