@nightlab-agent/turn-tally 0.2.3 → 0.2.4
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/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/CHANGELOG.md +7 -0
- package/README.md +15 -1
- package/hooks/register.ts +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "turn-tally",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "Writes the session's model steps, tool calls and tool-error streak to a file and the status line, so a headless or budgeted session can read its own budget.",
|
|
5
5
|
"author": { "name": "Nightlab" },
|
|
6
6
|
"license": "MIT",
|
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,13 @@ The form is Keep a Changelog; versions follow SemVer.
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## 0.2.4 - 2026-10-28 - says what each hook does, and that nothing leaves the machine
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
- README: a table of each hook, what it does, what it changes (nothing) and the file it writes each day; it says plainly that no data leaves the machine.
|
|
11
|
+
- The design comment and CLAUDE.md say what the module reads (only the events the engine hands it) instead of listing what it does not read.
|
|
12
|
+
- plugin.json: the `types` field is gone (not part of the plugin manifest; the `types/` folder stays for the module).
|
|
13
|
+
|
|
7
14
|
## 0.2.3 - 2026-10-28
|
|
8
15
|
|
|
9
16
|
### Added
|
package/README.md
CHANGED
|
@@ -63,6 +63,20 @@ rewritten whole each step, so a reader never sees a partial line. Two
|
|
|
63
63
|
sessions on the same day write the same file; the last step wins, and the
|
|
64
64
|
`updated` line says when.
|
|
65
65
|
|
|
66
|
+
## What each hook does, what it changes, what it writes
|
|
67
|
+
|
|
68
|
+
Everything stays on your machine: the mod makes no network request and sends
|
|
69
|
+
nothing anywhere. It only reads the events Claude Code hands it.
|
|
70
|
+
|
|
71
|
+
| Hook | What it does | Changes |
|
|
72
|
+
|---|---|---|
|
|
73
|
+
| `tool.call` | Counts the call, and whether it came back as an error. | Nothing: the call runs as asked and its result passes through. |
|
|
74
|
+
| `turn.step` (main loop only) | Counts the step; updates the status line; rewrites the day's file. | Nothing: the request and the response pass through untouched. |
|
|
75
|
+
|
|
76
|
+
It writes one file per day, `~/.turn-tally/<YYYY-MM-DD>.txt` (or under
|
|
77
|
+
`TURN_TALLY_DIR`), holding only counts, the model name and a time. No tool
|
|
78
|
+
input, prompt or reply text is stored.
|
|
79
|
+
|
|
66
80
|
## What it does not do
|
|
67
81
|
|
|
68
82
|
No tokens or dollars: see
|
|
@@ -89,7 +103,7 @@ falls back to `$HOME`, and a failed write does not fail the step.
|
|
|
89
103
|
|
|
90
104
|
## Status
|
|
91
105
|
|
|
92
|
-
Version 0.2.
|
|
106
|
+
Version 0.2.4, 2026-10-28. An earlier private version has run in the
|
|
93
107
|
author's own headless sessions since 2026-10-27 (one session read its own
|
|
94
108
|
count: steps 18, tool calls 17, errors 0). Not yet confirmed in an
|
|
95
109
|
interactive session on another machine; if the status line or the file does
|
package/hooks/register.ts
CHANGED
|
@@ -9,7 +9,7 @@ import type { Register } from 'claude-code'
|
|
|
9
9
|
// cap fires silently.
|
|
10
10
|
//
|
|
11
11
|
// DESIGN NOTE, deliberately narrow: it never denies, never rewrites a call,
|
|
12
|
-
//
|
|
12
|
+
// reads only the events the engine hands it, sends nothing off the machine. A failed
|
|
13
13
|
// write is swallowed: the tally is advisory, and a gauge that stops the
|
|
14
14
|
// engine would be worse than no gauge. Steady state is one status line and
|
|
15
15
|
// one file; nothing is printed to the transcript.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nightlab-agent/turn-tally",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "Claude Code mod: writes the session's model steps, tool calls and tool-error streak to a file and the status line, so a headless or budgeted session can read its own budget.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"claude-code",
|