@ccusage/codex 17.1.1 → 17.1.3
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/index.js +19 -14
- package/dist/{prompt-C-goQ9sU.js → prompt-B7JRxMsC.js} +10 -10
- 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.
|
|
900
|
+
var version = "17.1.3";
|
|
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,
|
|
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:
|
|
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,
|
|
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:
|
|
2934
|
+
timeZone: "UTC"
|
|
2937
2935
|
}).format(date);
|
|
2938
2936
|
}
|
|
2939
2937
|
function formatDisplayDateTime(timestamp, locale, timezone) {
|
|
@@ -6576,7 +6574,7 @@ function createConsola$1(options = {}) {
|
|
|
6576
6574
|
defaults: { level: level$1 },
|
|
6577
6575
|
stdout: process.stdout,
|
|
6578
6576
|
stderr: process.stderr,
|
|
6579
|
-
prompt: (...args) => import("./prompt-
|
|
6577
|
+
prompt: (...args) => import("./prompt-B7JRxMsC.js").then((m$1) => m$1.prompt(...args)),
|
|
6580
6578
|
reporters: options.reporters || [options.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()],
|
|
6581
6579
|
...options
|
|
6582
6580
|
});
|
|
@@ -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":
|
|
6999
|
-
"max_input_tokens":
|
|
7000
|
-
"max_output_tokens":
|
|
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,
|
|
@@ -7047,6 +7045,13 @@ const PREFETCHED_CODEX_PRICING = {
|
|
|
7047
7045
|
"max_input_tokens": 272e3,
|
|
7048
7046
|
"max_output_tokens": 128e3
|
|
7049
7047
|
},
|
|
7048
|
+
"gpt-5-pro": {
|
|
7049
|
+
"input_cost_per_token": 15e-6,
|
|
7050
|
+
"output_cost_per_token": 12e-5,
|
|
7051
|
+
"max_tokens": 272e3,
|
|
7052
|
+
"max_input_tokens": 4e5,
|
|
7053
|
+
"max_output_tokens": 272e3
|
|
7054
|
+
},
|
|
7050
7055
|
"gpt-5-codex": {
|
|
7051
7056
|
"input_cost_per_token": 125e-8,
|
|
7052
7057
|
"output_cost_per_token": 1e-5,
|
|
@@ -7075,9 +7080,9 @@ const PREFETCHED_CODEX_PRICING = {
|
|
|
7075
7080
|
"input_cost_per_token": 125e-8,
|
|
7076
7081
|
"output_cost_per_token": 1e-5,
|
|
7077
7082
|
"cache_read_input_token_cost": 125e-9,
|
|
7078
|
-
"max_tokens":
|
|
7079
|
-
"max_input_tokens":
|
|
7080
|
-
"max_output_tokens":
|
|
7083
|
+
"max_tokens": 16384,
|
|
7084
|
+
"max_input_tokens": 128e3,
|
|
7085
|
+
"max_output_tokens": 16384
|
|
7081
7086
|
},
|
|
7082
7087
|
"gpt-5-mini": {
|
|
7083
7088
|
"input_cost_per_token": 25e-8,
|
|
@@ -399,16 +399,16 @@ function G(t, u$1, F$1) {
|
|
|
399
399
|
`).map((e$1) => oD(e$1, u$1, F$1)).join(`
|
|
400
400
|
`);
|
|
401
401
|
}
|
|
402
|
-
const
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
402
|
+
const c = {
|
|
403
|
+
actions: new Set([
|
|
404
|
+
"up",
|
|
405
|
+
"down",
|
|
406
|
+
"left",
|
|
407
|
+
"right",
|
|
408
|
+
"space",
|
|
409
|
+
"enter",
|
|
410
|
+
"cancel"
|
|
411
|
+
]),
|
|
412
412
|
aliases: new Map([
|
|
413
413
|
["k", "up"],
|
|
414
414
|
["j", "down"],
|