tokenoscopy 0.3.0 → 0.3.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.
@@ -368,7 +368,9 @@ var DIAG = {
368
368
  BLOAT_CTX_TOKENS: 2e5,
369
369
  BLOAT_MIN_COST: 5,
370
370
  CYCLE_MIN: 25,
371
- REPEAT_MIN: 5
371
+ REPEAT_MIN: 5,
372
+ /** Requests that rebuilt the cache, summed, before it's worth a habit change. */
373
+ REBUILD_MIN_COST: 3
372
374
  };
373
375
 
374
376
  // ../shared/src/guard-contract.ts
@@ -464,6 +466,9 @@ function withRelPath(event, root) {
464
466
  return { ...event, payload: { ...event.payload, rel_path: rel } };
465
467
  }
466
468
 
469
+ // ../shared/src/anatomy.ts
470
+ var CACHE_TTL_MS = 5 * 6e4;
471
+
467
472
  // src/transcript.ts
468
473
  var SKIPPED_TYPES = /* @__PURE__ */ new Set([
469
474
  "summary",
package/dist/cli.js CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  redactValue,
10
10
  truncatePayload,
11
11
  withRelPath
12
- } from "./chunk-L62TVAWB.js";
12
+ } from "./chunk-AZYPMFOF.js";
13
13
 
14
14
  // src/commands/doctor.ts
15
15
  import { existsSync as existsSync2, readFileSync as readFileSync2 } from "fs";
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  redactText,
9
9
  redactValue,
10
10
  repoLabelFromCwd
11
- } from "./chunk-L62TVAWB.js";
11
+ } from "./chunk-AZYPMFOF.js";
12
12
  export {
13
13
  classifyAuth,
14
14
  costIsRealMoney,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tokenoscopy",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Flight recorder & spend control for coding-agent fleets. Records Claude Code sessions (hooks + transcripts), replays them, and enforces budgets.",
5
5
  "license": "MIT",
6
6
  "type": "module",