@drakulavich/zapara 0.7.0 → 0.7.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/CHANGELOG.md CHANGED
@@ -5,6 +5,17 @@ All notable changes to this project are documented here. The format follows
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [0.7.1] - 2026-09-25
9
+
10
+ ### Added
11
+ - `zapara --help` ends with where to report bugs, share ideas and star the
12
+ project.
13
+
14
+ ### Fixed
15
+ - Sessions started by a script through `claude -p` or the Agent SDK no longer
16
+ count as yours. A batch of 200 of them showed up as "204 sessions at once"
17
+ and inflated that hour's prompts, context switches and index.
18
+
8
19
  ## [0.7.0] - 2026-09-23
9
20
 
10
21
  ### Added
package/README.md CHANGED
@@ -112,6 +112,8 @@ open it? [Y/n]
112
112
 
113
113
  This one comes from the same `busy-week` fixture as the pictures above. A headless browser that Bun drives takes the picture: WebKit on macOS, an installed Google Chrome elsewhere. On Linux or Windows, install Chrome or write `--out card.html` and open the page in any browser.
114
114
 
115
+ If your card told you something about your week, star [the repository](https://github.com/drakulavich/zapara) so other people can find zapara.
116
+
115
117
  ## Usage
116
118
 
117
119
  | Command | What it does |
@@ -223,7 +225,7 @@ Weights and norms live in one exported constant in `src/score.ts`, so a recalibr
223
225
  | Column | What it counts |
224
226
  |---|---|
225
227
  | `sess` | Distinct session ids with at least one user or assistant record in the hour. |
226
- | `prompts` | Messages the human typed. A `user` record whose text is neither an interrupt marker nor an agent-message marker; `isMeta` and sidechain records are excluded. |
228
+ | `prompts` | Messages the human typed. A `user` record whose text is neither an interrupt marker nor an agent-message marker; `isMeta`, sidechain, `claude -p` and Agent SDK records are excluded. |
227
229
  | `rep` | Inbound messages from subagents, other sessions and background tasks. A `user` record whose text starts with one of the agent-message markers, which is something to read and react to rather than something typed. |
228
230
  | `intr` | Interrupts. A `user` record whose text block starts with `[Request interrupted by user`, covering both the plain and the tool-use form. |
229
231
  | `rej` | Tool rejections. A `tool_result` block saying the user did not want to proceed with that tool use. |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drakulavich/zapara",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "Cognitive load index for people driving Claude Code, computed locally from transcripts",
5
5
  "license": "MIT",
6
6
  "author": "Anton Yakutovich",
package/src/index.ts CHANGED
@@ -42,7 +42,9 @@ options:
42
42
  --no-color no ANSI colors; NO_COLOR does the same
43
43
  -h, --help -V, --version
44
44
 
45
- levels: calm 0-29 warming 30-59 heating 60-84 fried 85-100`;
45
+ levels: calm 0-29 warming 30-59 heating 60-84 fried 85-100
46
+
47
+ bugs, ideas and a star: github.com/drakulavich/zapara`;
46
48
  const HINT = "run 'zapara --help' for usage";
47
49
 
48
50
  type Args = { command: "grid" | "day" | "card" | "status"; to: string; days: number; explain: boolean; json: boolean; out: string | null; projects: string; color: boolean };
package/src/parse.ts CHANGED
@@ -49,6 +49,7 @@ export function parseTranscript(text: string): Event[] {
49
49
  const sessionId = str(rec.sessionId);
50
50
  if (type === null || sessionId === null) continue;
51
51
  if (rec.isSidechain === true) continue;
52
+ if (str(rec.entrypoint)?.startsWith("sdk-")) continue; // a script ran `claude -p` or the Agent SDK
52
53
 
53
54
  if (type === "permission-mode") {
54
55
  const m = str(rec.permissionMode);