@ccusage/codex 17.1.6 → 17.1.7

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 CHANGED
@@ -895,7 +895,7 @@ async function executeCommand(cmd, ctx, name$1) {
895
895
  await resolved.run(ctx);
896
896
  }
897
897
  var name = "@ccusage/codex";
898
- var version = "17.1.6";
898
+ var version = "17.1.7";
899
899
  var description = "Usage analysis tool for OpenAI Codex sessions";
900
900
  var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
901
901
  let messages = [];
@@ -6553,7 +6553,7 @@ function createConsola$1(options = {}) {
6553
6553
  defaults: { level: level$1 },
6554
6554
  stdout: process.stdout,
6555
6555
  stderr: process.stderr,
6556
- prompt: (...args) => import("./prompt-CRRaPhnO.js").then((m$1) => m$1.prompt(...args)),
6556
+ prompt: (...args) => import("./prompt-aUb0trKM.js").then((m$1) => m$1.prompt(...args)),
6557
6557
  reporters: options.reporters || [options.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()],
6558
6558
  ...options
6559
6559
  });
@@ -6943,6 +6943,38 @@ function toPerMillion(value, fallback) {
6943
6943
  return (value ?? fallback ?? 0) * MILLION;
6944
6944
  }
6945
6945
  const PREFETCHED_CODEX_PRICING = {
6946
+ "azure/gpt-5.1-2025-11-13": {
6947
+ "input_cost_per_token": 125e-8,
6948
+ "output_cost_per_token": 1e-5,
6949
+ "cache_read_input_token_cost": 125e-9,
6950
+ "max_tokens": 128e3,
6951
+ "max_input_tokens": 272e3,
6952
+ "max_output_tokens": 128e3
6953
+ },
6954
+ "azure/gpt-5.1-chat-2025-11-13": {
6955
+ "input_cost_per_token": 125e-8,
6956
+ "output_cost_per_token": 1e-5,
6957
+ "cache_read_input_token_cost": 125e-9,
6958
+ "max_tokens": 16384,
6959
+ "max_input_tokens": 128e3,
6960
+ "max_output_tokens": 16384
6961
+ },
6962
+ "azure/gpt-5.1-codex-2025-11-13": {
6963
+ "input_cost_per_token": 125e-8,
6964
+ "output_cost_per_token": 1e-5,
6965
+ "cache_read_input_token_cost": 125e-9,
6966
+ "max_tokens": 128e3,
6967
+ "max_input_tokens": 272e3,
6968
+ "max_output_tokens": 128e3
6969
+ },
6970
+ "azure/gpt-5.1-codex-mini-2025-11-13": {
6971
+ "input_cost_per_token": 25e-8,
6972
+ "output_cost_per_token": 2e-6,
6973
+ "cache_read_input_token_cost": 25e-9,
6974
+ "max_tokens": 128e3,
6975
+ "max_input_tokens": 272e3,
6976
+ "max_output_tokens": 128e3
6977
+ },
6946
6978
  "azure/gpt-5": {
6947
6979
  "input_cost_per_token": 125e-8,
6948
6980
  "output_cost_per_token": 1e-5,
@@ -7022,6 +7054,46 @@ const PREFETCHED_CODEX_PRICING = {
7022
7054
  "max_input_tokens": 272e3,
7023
7055
  "max_output_tokens": 128e3
7024
7056
  },
7057
+ "azure/gpt-5.1": {
7058
+ "input_cost_per_token": 125e-8,
7059
+ "output_cost_per_token": 1e-5,
7060
+ "cache_read_input_token_cost": 125e-9,
7061
+ "max_tokens": 128e3,
7062
+ "max_input_tokens": 272e3,
7063
+ "max_output_tokens": 128e3
7064
+ },
7065
+ "azure/gpt-5.1-chat": {
7066
+ "input_cost_per_token": 125e-8,
7067
+ "output_cost_per_token": 1e-5,
7068
+ "cache_read_input_token_cost": 125e-9,
7069
+ "max_tokens": 128e3,
7070
+ "max_input_tokens": 272e3,
7071
+ "max_output_tokens": 128e3
7072
+ },
7073
+ "azure/gpt-5.1-codex": {
7074
+ "input_cost_per_token": 125e-8,
7075
+ "output_cost_per_token": 1e-5,
7076
+ "cache_read_input_token_cost": 125e-9,
7077
+ "max_tokens": 128e3,
7078
+ "max_input_tokens": 272e3,
7079
+ "max_output_tokens": 128e3
7080
+ },
7081
+ "azure/gpt-5.1-codex-max": {
7082
+ "input_cost_per_token": 125e-8,
7083
+ "output_cost_per_token": 1e-5,
7084
+ "cache_read_input_token_cost": 125e-9,
7085
+ "max_tokens": 128e3,
7086
+ "max_input_tokens": 4e5,
7087
+ "max_output_tokens": 128e3
7088
+ },
7089
+ "azure/gpt-5.1-codex-mini": {
7090
+ "input_cost_per_token": 25e-8,
7091
+ "output_cost_per_token": 2e-6,
7092
+ "cache_read_input_token_cost": 25e-9,
7093
+ "max_tokens": 128e3,
7094
+ "max_input_tokens": 272e3,
7095
+ "max_output_tokens": 128e3
7096
+ },
7025
7097
  "gpt-5": {
7026
7098
  "input_cost_per_token": 125e-8,
7027
7099
  "output_cost_per_token": 1e-5,
@@ -7108,6 +7180,14 @@ const PREFETCHED_CODEX_PRICING = {
7108
7180
  "max_input_tokens": 272e3,
7109
7181
  "max_output_tokens": 128e3
7110
7182
  },
7183
+ "gpt-5.1-codex-max": {
7184
+ "input_cost_per_token": 125e-8,
7185
+ "output_cost_per_token": 1e-5,
7186
+ "cache_read_input_token_cost": 125e-9,
7187
+ "max_tokens": 128e3,
7188
+ "max_input_tokens": 4e5,
7189
+ "max_output_tokens": 128e3
7190
+ },
7111
7191
  "gpt-5.1-codex-mini": {
7112
7192
  "input_cost_per_token": 25e-8,
7113
7193
  "output_cost_per_token": 2e-6,
@@ -444,7 +444,7 @@ var AD = Object.defineProperty, pD = (t, u$1, F$1) => u$1 in t ? AD(t, u$1, {
444
444
  var x = class {
445
445
  constructor(u$1, F$1 = true) {
446
446
  h(this, "input"), h(this, "output"), h(this, "_abortSignal"), h(this, "rl"), h(this, "opts"), h(this, "_render"), h(this, "_track", false), h(this, "_prevFrame", ""), h(this, "_subscribers", /* @__PURE__ */ new Map()), h(this, "_cursor", 0), h(this, "state", "initial"), h(this, "error", ""), h(this, "value");
447
- const { input: e$1 = stdin, output: s = stdout, render: i, signal: D,...C$1 } = u$1;
447
+ const { input: e$1 = stdin, output: s = stdout, render: i, signal: D, ...C$1 } = u$1;
448
448
  this.opts = C$1, this.onKeypress = this.onKeypress.bind(this), this.close = this.close.bind(this), this.render = this.render.bind(this), this._render = i.bind(this), this._track = F$1, this._abortSignal = D, this.input = e$1, this.output = s;
449
449
  }
450
450
  unsubscribe() {
@@ -840,4 +840,4 @@ async function prompt(message, opts = {}) {
840
840
  }).then(handleCancel);
841
841
  throw new Error(`Unknown prompt type: ${opts.type}`);
842
842
  }
843
- export { kCancel, prompt };
843
+ export { prompt };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccusage/codex",
3
- "version": "17.1.6",
3
+ "version": "17.1.7",
4
4
  "description": "Usage analysis tool for OpenAI Codex sessions",
5
5
  "homepage": "https://github.com/ryoppippi/ccusage#readme",
6
6
  "bugs": {
@@ -15,6 +15,7 @@
15
15
  "author": "ryoppippi",
16
16
  "type": "module",
17
17
  "main": "./dist/index.js",
18
+ "module": "./dist/index.js",
18
19
  "bin": {
19
20
  "ccusage-codex": "./dist/index.js"
20
21
  },