@drakulavich/cogload 0.14.1 → 0.14.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/CHANGELOG.md +7 -0
- package/package.json +2 -2
- package/src/lib/transcripts/parse.ts +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,13 @@ All notable changes to this project are documented here. The format follows
|
|
|
5
5
|
|
|
6
6
|
## [Unreleased]
|
|
7
7
|
|
|
8
|
+
## [0.14.2] - 2026-10-17
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- Messages from your other Claude Code sessions count as agent reports
|
|
12
|
+
again. Since Claude Code 2.1.280 they had dropped out of the index and the
|
|
13
|
+
card. (#226)
|
|
14
|
+
|
|
8
15
|
## [0.14.1] - 2026-10-17
|
|
9
16
|
|
|
10
17
|
### Fixed
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@drakulavich/cogload",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.2",
|
|
4
4
|
"description": "Keep your head cold. A thermometer for your Claude Code days: every hour scored 0 to 100 from the transcripts already on your disk. Nothing leaves your machine.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Anton Yakutovich",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"scripts": {
|
|
17
17
|
"dev": "bun run src/cli/index.ts",
|
|
18
18
|
"stats": "bun scripts/signal-stats.ts",
|
|
19
|
-
"test": "TZ=UTC bun test ./tests",
|
|
19
|
+
"test": "TZ=UTC bun test --randomize ./tests",
|
|
20
20
|
"typecheck": "bun --check && bun scripts/typecheck-plugin.ts",
|
|
21
21
|
"lint": "biome ci && knip --include files,exports,types",
|
|
22
22
|
"check": "bun run typecheck && bun run lint && bun run test"
|
|
@@ -109,9 +109,11 @@ export function parseTranscript(text: string, cutoffMs = -Infinity): Event[] {
|
|
|
109
109
|
if (toolUseId !== null && askedIds.has(toolUseId)) events.push({ ts, sessionId, kind: "answer" });
|
|
110
110
|
}
|
|
111
111
|
const head = firstText(content);
|
|
112
|
+
// Claude Code 2.1.280+ marks a message from another session `isMeta` (#226).
|
|
113
|
+
const peer = isObj(rec.origin) && rec.origin.kind === "peer";
|
|
112
114
|
if (head?.startsWith(INTERRUPT_PREFIX)) events.push({ ts, sessionId, kind: "interrupt" });
|
|
113
|
-
else if (head !== null && rec.isMeta !== true && rec.isCompactSummary !== true && !OUTPUT_MARKERS.some((marker) => head.startsWith(marker))) {
|
|
114
|
-
if (rec.promptSource === "system" || AGENT_MARKERS.some((marker) => head.startsWith(marker))) events.push({ ts, sessionId, kind: "report" });
|
|
115
|
+
else if (head !== null && (rec.isMeta !== true || peer) && rec.isCompactSummary !== true && !OUTPUT_MARKERS.some((marker) => head.startsWith(marker))) {
|
|
116
|
+
if (peer || rec.promptSource === "system" || AGENT_MARKERS.some((marker) => head.startsWith(marker))) events.push({ ts, sessionId, kind: "report" });
|
|
115
117
|
else events.push({ ts, sessionId, kind: "prompt" });
|
|
116
118
|
}
|
|
117
119
|
} else {
|