@ccusage/codex 17.1.1 → 17.1.2

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/dist/index.js +11 -13
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -897,7 +897,7 @@ async function executeCommand(cmd, ctx, name$1) {
897
897
  await resolved.run(ctx);
898
898
  }
899
899
  var name = "@ccusage/codex";
900
- var version = "17.1.1";
900
+ var version = "17.1.2";
901
901
  var description = "Usage analysis tool for OpenAI Codex sessions";
902
902
  var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
903
903
  let messages = [];
@@ -2900,8 +2900,7 @@ function isWithinRange(dateKey, since, until) {
2900
2900
  if (untilValue != null && value > untilValue) return false;
2901
2901
  return true;
2902
2902
  }
2903
- function formatDisplayDate(dateKey, locale, timezone) {
2904
- const tz = safeTimeZone(timezone);
2903
+ function formatDisplayDate(dateKey, locale, _timezone) {
2905
2904
  const [yearStr = "0", monthStr = "1", dayStr = "1"] = dateKey.split("-");
2906
2905
  const year = Number.parseInt(yearStr, 10);
2907
2906
  const month = Number.parseInt(monthStr, 10);
@@ -2911,7 +2910,7 @@ function formatDisplayDate(dateKey, locale, timezone) {
2911
2910
  year: "numeric",
2912
2911
  month: "short",
2913
2912
  day: "2-digit",
2914
- timeZone: tz
2913
+ timeZone: "UTC"
2915
2914
  }).format(date);
2916
2915
  }
2917
2916
  function toMonthKey(timestamp, timezone) {
@@ -2924,8 +2923,7 @@ function toMonthKey(timestamp, timezone) {
2924
2923
  }).format(date).split("-");
2925
2924
  return `${year}-${month}`;
2926
2925
  }
2927
- function formatDisplayMonth(monthKey, locale, timezone) {
2928
- const tz = safeTimeZone(timezone);
2926
+ function formatDisplayMonth(monthKey, locale, _timezone) {
2929
2927
  const [yearStr = "0", monthStr = "1"] = monthKey.split("-");
2930
2928
  const year = Number.parseInt(yearStr, 10);
2931
2929
  const month = Number.parseInt(monthStr, 10);
@@ -2933,7 +2931,7 @@ function formatDisplayMonth(monthKey, locale, timezone) {
2933
2931
  return new Intl.DateTimeFormat(locale ?? "en-US", {
2934
2932
  year: "numeric",
2935
2933
  month: "short",
2936
- timeZone: tz
2934
+ timeZone: "UTC"
2937
2935
  }).format(date);
2938
2936
  }
2939
2937
  function formatDisplayDateTime(timestamp, locale, timezone) {
@@ -6995,9 +6993,9 @@ const PREFETCHED_CODEX_PRICING = {
6995
6993
  "input_cost_per_token": 125e-8,
6996
6994
  "output_cost_per_token": 1e-5,
6997
6995
  "cache_read_input_token_cost": 125e-9,
6998
- "max_tokens": 128e3,
6999
- "max_input_tokens": 272e3,
7000
- "max_output_tokens": 128e3
6996
+ "max_tokens": 16384,
6997
+ "max_input_tokens": 128e3,
6998
+ "max_output_tokens": 16384
7001
6999
  },
7002
7000
  "azure/gpt-5-codex": {
7003
7001
  "input_cost_per_token": 125e-8,
@@ -7075,9 +7073,9 @@ const PREFETCHED_CODEX_PRICING = {
7075
7073
  "input_cost_per_token": 125e-8,
7076
7074
  "output_cost_per_token": 1e-5,
7077
7075
  "cache_read_input_token_cost": 125e-9,
7078
- "max_tokens": 128e3,
7079
- "max_input_tokens": 272e3,
7080
- "max_output_tokens": 128e3
7076
+ "max_tokens": 16384,
7077
+ "max_input_tokens": 128e3,
7078
+ "max_output_tokens": 16384
7081
7079
  },
7082
7080
  "gpt-5-mini": {
7083
7081
  "input_cost_per_token": 25e-8,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccusage/codex",
3
- "version": "17.1.1",
3
+ "version": "17.1.2",
4
4
  "description": "Usage analysis tool for OpenAI Codex sessions",
5
5
  "homepage": "https://github.com/ryoppippi/ccusage#readme",
6
6
  "bugs": {