@tokz/cli 0.2.18 → 0.2.20

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.
@@ -905,13 +905,12 @@ async function parseCodexRollout(file, seen = /* @__PURE__ */ new Set()) {
905
905
  }
906
906
  if (type === "event_msg" && payload2?.type === "token_count") {
907
907
  const info = asDict(payload2.info);
908
+ const ts = typeof parsed.obj.timestamp === "string" ? parsed.obj.timestamp : void 0;
908
909
  if (replaySecond !== void 0 && skipReplay) {
909
- const ts = timestamp ?? parsed.obj.timestamp;
910
- const matchesReplay = typeof ts === "string" && ts.length >= 19 && ts.slice(0, 19) === replaySecond;
910
+ const matchesReplay = ts && ts.length >= 19 && ts.slice(0, 19) === replaySecond;
911
911
  if (matchesReplay) {
912
912
  const totals = rawUsage(info?.total_token_usage);
913
913
  if (totals) prev = totals;
914
- turnTools = [];
915
914
  continue;
916
915
  }
917
916
  skipReplay = false;
@@ -925,7 +924,6 @@ async function parseCodexRollout(file, seen = /* @__PURE__ */ new Set()) {
925
924
  if (usage2.input === 0 && usage2.cached === 0 && usage2.output === 0 && usage2.reasoning === 0) {
926
925
  continue;
927
926
  }
928
- const ts = nonEmpty(timestamp) ?? normalizeTimestamp(parsed.obj.timestamp);
929
927
  const parsedModel = modelFromParts(payload2) ?? modelFromParts(info);
930
928
  const model2 = resolveModel(parsedModel, ts ?? "", modelState);
931
929
  accumulate(usage2, model2, ts);
package/dist/cli.js CHANGED
@@ -276,7 +276,7 @@ program.action(async () => {
276
276
  const [{ render }, React, { Root }, { Fullscreen }] = await Promise.all([
277
277
  import("ink"),
278
278
  import("react"),
279
- import("./Root-IVPGDV7M.js"),
279
+ import("./Root-KXHC63O2.js"),
280
280
  import("./Fullscreen-GK2ZYXHV.js")
281
281
  ]);
282
282
  render(React.createElement(Fullscreen, null, React.createElement(Root)));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tokz/cli",
3
- "version": "0.2.18",
3
+ "version": "0.2.20",
4
4
  "description": "See where your coding agents' tokens and dollars actually go.",
5
5
  "keywords": [
6
6
  "claude",