@cogit/cli 0.23.2 → 0.25.0
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-5XT524HQ.js → chunk-T7B243ZT.js} +5902 -1402
- package/dist/cli.js +5626 -8811
- package/dist/{git-hooks-4SF6WXLZ.js → git-hooks-DDPCNHQ6.js} +1 -1
- package/dist/mermaid.min.js +3636 -0
- package/package.json +2 -1
- package/skills/record/SKILL.md +23 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cogit/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.25.0",
|
|
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
|
@@ -68,6 +68,8 @@ Every message grows from an earlier one; a thread that starts something new is a
|
|
|
68
68
|
branches with the message each ends at (`last`), and its last messages. Read `leftOff`
|
|
69
69
|
first, then the branches; the usual target is a branch's `last`. The target must be a
|
|
70
70
|
message of an earlier session of this project.
|
|
71
|
+
- `forkedFrom` (a forked session): the first message's parent is that value; no candidates
|
|
72
|
+
are listed, and the CLI sets it when you send none.
|
|
71
73
|
- Unsure: use the previous message. A wrong "continue" hides a branch; a wrong branch breaks
|
|
72
74
|
the chain.
|
|
73
75
|
- `links`: up to 5 earlier messages it builds on besides the parent.
|
|
@@ -76,6 +78,27 @@ Every message grows from an earlier one; a thread that starts something new is a
|
|
|
76
78
|
- Hints, not rules: `gapMinutes`, `resumed`, `commitBetween` (a real commit landed in this
|
|
77
79
|
repo between them), `lastMessages`, and for a first message `candidates`/`continuesHint`.
|
|
78
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
|
+
Two tools:
|
|
92
|
+
|
|
93
|
+
- `pseudo`: numbered plain-language steps of the new logic, naming the functions and files.
|
|
94
|
+
- `mermaid`: a Mermaid `flowchart TD` (or `LR`) of the new path between files or functions,
|
|
95
|
+
at most 15 nodes. Quote labels that hold spaces or punctuation.
|
|
96
|
+
|
|
97
|
+
Pick one, both, or none (`{ "tools": [] }` means nothing worth showing). Skip messages whose
|
|
98
|
+
commits are only release/version bumps, lockfiles or CHANGELOG, or change fewer than 5 lines
|
|
99
|
+
in total. Write it in the conversation's language; the CLI validates each output and keeps an
|
|
100
|
+
invalid diagram as text.
|
|
101
|
+
|
|
79
102
|
## Branch summary
|
|
80
103
|
|
|
81
104
|
A branch starts at a root or where a message gets a second child. Its first message carries a
|