@cogit/cli 0.19.1 → 0.20.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/README.md
CHANGED
|
@@ -6,10 +6,7 @@ Git remembers what changed. cogit remembers why.
|
|
|
6
6
|
|
|
7
7
|
<p align="center"><img src="docs/images/cogit-descartes.jpg" width="360" alt="René Descartes with git branches running through his hair"><br><i>Cogito, ergo commit.</i></p>
|
|
8
8
|
|
|
9
|
-
<
|
|
10
|
-
<source media="(prefers-color-scheme: dark)" srcset="docs/images/map-dark.png">
|
|
11
|
-
<img src="docs/images/map-light.png" alt="The map: sessions, branches and the decision behind a message">
|
|
12
|
-
</picture>
|
|
9
|
+
<img src="docs/images/demo.gif" alt="cogit open shows the projects, then the map; pasting a message hash opens the decision behind it, and cogit why lists the thoughts behind a file">
|
|
13
10
|
|
|
14
11
|
cogit records every message you send to an AI coding agent as a *thought commit*: what you
|
|
15
12
|
asked, what came of it, and the message it answered. Your code commits point back to the
|
|
@@ -56,6 +53,9 @@ Then, in Claude Code:
|
|
|
56
53
|
/plugin install cogit --marketplace erensrtky/cogit
|
|
57
54
|
```
|
|
58
55
|
|
|
56
|
+
To get plugin updates on their own, turn on auto-update once: `/plugin` → Marketplaces →
|
|
57
|
+
cogit → Enable auto-update. Claude Code leaves it off for marketplaces outside its own.
|
|
58
|
+
|
|
59
59
|
## Quick start
|
|
60
60
|
|
|
61
61
|
```bash
|
|
@@ -20242,6 +20242,12 @@ var Config = external_exports.object({
|
|
|
20242
20242
|
* how to read the record (`log` / `show`). On by default; costs only tokens.
|
|
20243
20243
|
*/
|
|
20244
20244
|
startupContext: external_exports.boolean().default(true),
|
|
20245
|
+
/**
|
|
20246
|
+
* Whether sessions started without a person (`claude -p`, an SDK) are recorded.
|
|
20247
|
+
* Off by default: other plugins start them in the background, one per prompt,
|
|
20248
|
+
* and they would fill the map and the inbox.
|
|
20249
|
+
*/
|
|
20250
|
+
recordHeadless: external_exports.boolean().default(false),
|
|
20245
20251
|
/** Port the local map server binds on `127.0.0.1`. */
|
|
20246
20252
|
serverPort: external_exports.int().min(1).max(65535).default(4747),
|
|
20247
20253
|
/** Default for new projects; `init` asks per repo. Story 9.3: the record travels. */
|
|
@@ -20773,6 +20779,12 @@ function parseHookInput(stdin) {
|
|
|
20773
20779
|
const parsed = ClaudeHookInput.safeParse(raw);
|
|
20774
20780
|
return parsed.success ? parsed.data : void 0;
|
|
20775
20781
|
}
|
|
20782
|
+
function isHeadless(env) {
|
|
20783
|
+
return env.CLAUDE_CODE_ENTRYPOINT?.startsWith("sdk") ?? false;
|
|
20784
|
+
}
|
|
20785
|
+
function userNotice(text) {
|
|
20786
|
+
return { systemMessage: text };
|
|
20787
|
+
}
|
|
20776
20788
|
function additionalContext(event, text) {
|
|
20777
20789
|
return { hookSpecificOutput: { hookEventName: event, additionalContext: text } };
|
|
20778
20790
|
}
|
|
@@ -21257,7 +21269,9 @@ var claude = {
|
|
|
21257
21269
|
displayTurn,
|
|
21258
21270
|
excerpt,
|
|
21259
21271
|
parseHookInput,
|
|
21272
|
+
isHeadless,
|
|
21260
21273
|
additionalContext,
|
|
21274
|
+
userNotice,
|
|
21261
21275
|
readRetention,
|
|
21262
21276
|
readPluginInstalled,
|
|
21263
21277
|
readSkillAllowed,
|