@thehammer/danx-session-telemetry 0.1.23 → 0.1.24
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/dist/.source-hash
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
89cd1ca4f2b51d45e885401f25cd2013ae9a293b3f3788aa820d45ea63e2a004
|
|
@@ -285,7 +285,7 @@ export declare function findNewestJsonlFile(dir: string, sessionId?: string): Pr
|
|
|
285
285
|
* detection for that dispatch.
|
|
286
286
|
*
|
|
287
287
|
* So we scan BOTH a head window and a tail window (they overlap, covering
|
|
288
|
-
* the whole file, for any file ≤
|
|
288
|
+
* the whole file, for any file ≤ 2x`SCAN_BYTES`). A resumed tag always
|
|
289
289
|
* lands in the freshly-appended tail; a fresh tag always lands in the head.
|
|
290
290
|
*
|
|
291
291
|
* Returns the full path to the matching file, or null if no file matches.
|
|
@@ -223,7 +223,7 @@ export async function findNewestJsonlFile(dir, sessionId) {
|
|
|
223
223
|
* detection for that dispatch.
|
|
224
224
|
*
|
|
225
225
|
* So we scan BOTH a head window and a tail window (they overlap, covering
|
|
226
|
-
* the whole file, for any file ≤
|
|
226
|
+
* the whole file, for any file ≤ 2x`SCAN_BYTES`). A resumed tag always
|
|
227
227
|
* lands in the freshly-appended tail; a fresh tag always lands in the head.
|
|
228
228
|
*
|
|
229
229
|
* Returns the full path to the matching file, or null if no file matches.
|
|
@@ -349,7 +349,7 @@ export function convertJsonlEntry(raw, lastTimestamp) {
|
|
|
349
349
|
// thinking + text + tool_use, etc.) into one JSONL line per content
|
|
350
350
|
// block, but stamps the SAME response-level `message.usage` on every
|
|
351
351
|
// line. Surface `messageId` so downstream usage accumulators can dedupe
|
|
352
|
-
// — without it, every multi-block turn over-counts tokens 2-
|
|
352
|
+
// — without it, every multi-block turn over-counts tokens 2-5x. See
|
|
353
353
|
// `.claude/rules/agent-dispatch.md`.
|
|
354
354
|
const messageId = typeof message.id === "string" && message.id.length > 0
|
|
355
355
|
? message.id
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thehammer/danx-session-telemetry",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.24",
|
|
4
4
|
"description": "Shared Claude Code transcript collector (DX-2962) — incremental JSONL tailing for the danxbot worker and the danx-dashboard-mcp desktop bridge, so both run identical collector code.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|