@thehammer/danx-session-telemetry 0.1.11 → 0.1.13
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/pricing.d.ts +2 -2
- package/dist/pricing.js +2 -2
- package/dist/usage-ledger.d.ts +2 -2
- package/dist/usage-ledger.js +1 -1
- package/package.json +1 -1
package/dist/pricing.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* DX-2963 — the ONE pricing function, shared by every consumer that turns
|
|
3
3
|
* token counts into dollars: the danxbot server's usage-ledger writer (which
|
|
4
|
-
* prices each credit once, when it is credited), the router's Haiku calls
|
|
5
|
-
*
|
|
4
|
+
* prices each credit once, when it is credited), and the router's Haiku calls.
|
|
5
|
+
* Moved here from danxbot root `src/agent/pricing.ts`
|
|
6
6
|
* so the counter and the price list live side by side, and exported through
|
|
7
7
|
* the browser-safe `./browser` subpath (pure arithmetic, no `node:` imports).
|
|
8
8
|
*
|
package/dist/pricing.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* DX-2963 — the ONE pricing function, shared by every consumer that turns
|
|
3
3
|
* token counts into dollars: the danxbot server's usage-ledger writer (which
|
|
4
|
-
* prices each credit once, when it is credited), the router's Haiku calls
|
|
5
|
-
*
|
|
4
|
+
* prices each credit once, when it is credited), and the router's Haiku calls.
|
|
5
|
+
* Moved here from danxbot root `src/agent/pricing.ts`
|
|
6
6
|
* so the counter and the price list live side by side, and exported through
|
|
7
7
|
* the browser-safe `./browser` subpath (pure arithmetic, no `node:` imports).
|
|
8
8
|
*
|
package/dist/usage-ledger.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* DX-2963 — the ONE usage counter. Turns Claude Code transcript lines into
|
|
3
3
|
* per-reply usage-ledger entries; every counter in danxbot (the worker's
|
|
4
|
-
* accumulator,
|
|
4
|
+
* accumulator, `claude-probe.ts`'s usage summer, the stall sweep's productivity signal,
|
|
5
5
|
* the cross-consumer tests) uses it instead of its own summing.
|
|
6
6
|
*
|
|
7
7
|
* The rule it implements, measured on real transcripts (DX-2963 card,
|
|
@@ -121,7 +121,7 @@ export declare class UsageLedgerCounter {
|
|
|
121
121
|
* Pull the counter's {@link LedgerLine} fields out of one raw transcript
|
|
122
122
|
* line (a parsed JSONL object). Returns `null` for anything that is not an
|
|
123
123
|
* assistant line. Shared by every counter that reads a transcript from disk
|
|
124
|
-
* (the dashboard's reader,
|
|
124
|
+
* (the dashboard's reader, `claude-probe.ts`, the stall sweep).
|
|
125
125
|
*/
|
|
126
126
|
export declare function ledgerLineFromRaw(raw: Record<string, unknown>, source: string, byteOffset: number): LedgerLine | null;
|
|
127
127
|
/**
|
package/dist/usage-ledger.js
CHANGED
|
@@ -214,7 +214,7 @@ function snapshot(e) {
|
|
|
214
214
|
* Pull the counter's {@link LedgerLine} fields out of one raw transcript
|
|
215
215
|
* line (a parsed JSONL object). Returns `null` for anything that is not an
|
|
216
216
|
* assistant line. Shared by every counter that reads a transcript from disk
|
|
217
|
-
* (the dashboard's reader,
|
|
217
|
+
* (the dashboard's reader, `claude-probe.ts`, the stall sweep).
|
|
218
218
|
*/
|
|
219
219
|
export function ledgerLineFromRaw(raw, source, byteOffset) {
|
|
220
220
|
if (raw.type !== "assistant")
|
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.13",
|
|
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",
|