codexmeter 1.0.24 → 1.0.25

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/server/ingest.js +12 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codexmeter",
3
- "version": "1.0.24",
3
+ "version": "1.0.25",
4
4
  "description": "Local telemetry dashboard for Codex CLI usage",
5
5
  "type": "module",
6
6
  "bin": {
package/server/ingest.js CHANGED
@@ -410,7 +410,19 @@ export function createPartialAggregateSessions(sessions, toDayKey) {
410
410
  .filter(isSafeForPartialAggregation)
411
411
  .map((session) => {
412
412
  const clone = { ...session };
413
+ const isUnparsedRollout = clone.rollout_path && !clone.materialized;
414
+ if (isUnparsedRollout) {
415
+ clone.model_name = null;
416
+ clone.cost = null;
417
+ clone.cost_source = 'unavailable';
418
+ clone.has_usage_by_day = true;
419
+ clone.usage_by_day = [];
420
+ }
413
421
  finalizeSessionMetrics(clone, toDayKey);
422
+ if (isUnparsedRollout) {
423
+ clone.cost = null;
424
+ clone.cost_source = 'unavailable';
425
+ }
414
426
  return clone;
415
427
  });
416
428
  }