ccus-cli 0.2.15 → 0.2.16

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/README.md CHANGED
@@ -170,7 +170,8 @@ ccus aggregate serve --input-dir ./team-exports
170
170
  - 当前导出 bundle / weeklySummary 的 `schemaVersion` 为 `10`。顶层 `pricing` 记录本地价格目录版本、USD 币种和 `event-time-standard-api` 基准;`weeklySummary.apiEquivalentCost` 与 `dailySummaries[].apiEquivalentCost` 分别包含 `claude`、`codex`、`total` 的金额及定价覆盖度。v10 延续 v9 的 Codex token 口径:`inputTokens = max(0, input_tokens - cached_input_tokens)`,缓存输入由 `cacheReadInputTokens` 单列
171
171
  - 等效 API 成本按每次请求的模型、发生时间和 token 分类套用内置标准同步 API 价格。Claude 区分输入、输出、缓存读取及 5 分钟/1 小时缓存写入;Codex 区分净输入、缓存输入和输出。它不是 Claude/Codex 订阅账单,也不含税费、折扣、批处理、工具附加费或区域溢价
172
172
  - 未知模型不会丢弃:有部分请求可定价时金额是已知小计,页面显示“至少为”;全部请求均无法定价时金额为不可用。个人 dashboard 在顶部第五张卡显示 Claude 与 Codex 的合计成本,不显示来源分项。全部模型价格集中维护在 `src/lib/api-pricing-catalog.json`,价格目录随 ccus 发布,统计过程不联网;个人与多人 dashboard 的合计成本卡下链接独立 `pricing.html` 并在新页面打开,价格页只保留一套标题,Codex 排在 Claude 前并按模型版本从新到旧排列。当前 Claude 目录包含 Opus 4.7、Opus 4.8、Opus 5、Sonnet 5 和 Fable 5;Sonnet 5 按事件时间区分活动价与标准价
173
- - GPT-6 使用 `gpt-6-astra` 定价,兼容 `gpt-6` 别名及推理强度后缀。自 2026-09-03 起,每百万 token 输入 / 缓存读取 / 输出为 $10 / $1 / $50;输入与缓存读取合计超过 272K 时为 $20 / $2 / $75。来源:[OpenAI 模型定价](https://developers.openai.com/api/docs/models/gpt-6-astra)。价格目录版本为 `2026-09-07`,导出 schemaVersion 仍为 10
173
+ - GPT-6 使用 `gpt-6-astra` 定价,兼容 `gpt-6` 别名及推理强度后缀。自 2026-09-03 起,每百万 token 输入 / 缓存读取 / 输出为 $10 / $1 / $50;输入与缓存读取合计超过 272K 时为 $20 / $2 / $75。来源:[OpenAI 模型定价](https://developers.openai.com/api/docs/models/gpt-6-astra)。价格目录版本为 `2026-09-14`,导出 schemaVersion 仍为 10
174
+ - `gpt-5.3-codex-spark` 自 2026-02-12 起按 `gpt-5.3-codex` 价格估算:每百万 token 输入 $1.75、输出 $14、缓存读取 $0.175。这是本项目采用的估算单价,并非 Spark 官方公开 API 定价。
174
175
  - 默认文件名会带 git email 的帐号名前缀和起止日期,例如:`alice_export_2026-05-26_to_2026-06-01.json.gz`
175
176
  - `userMessageCount` 来自 `~/.claude/projects/**/*.jsonl` 的非 meta `type:user` 事件
176
177
  - `apiRequestCount` 与 token 指标来自 `~/.claude/projects/**/*.jsonl` 中带 `message.usage` 的 `type:assistant` 事件
@@ -1,5 +1,5 @@
1
1
  {
2
- "catalogVersion": "2026-09-07",
2
+ "catalogVersion": "2026-09-14",
3
3
  "currency": "USD",
4
4
  "basis": "event-time-standard-api",
5
5
  "entries": [
@@ -211,6 +211,13 @@
211
211
  "effectiveTo": null,
212
212
  "prices": { "inputUsdPerMillion": 1.75, "outputUsdPerMillion": 14, "cacheReadInputUsdPerMillion": 0.175 }
213
213
  },
214
+ {
215
+ "provider": "codex",
216
+ "model": "gpt-5.3-codex-spark",
217
+ "effectiveFrom": "2026-02-12T00:00:00.000Z",
218
+ "effectiveTo": null,
219
+ "prices": { "inputUsdPerMillion": 1.75, "outputUsdPerMillion": 14, "cacheReadInputUsdPerMillion": 0.175 }
220
+ },
214
221
  {
215
222
  "provider": "codex",
216
223
  "model": "gpt-5.4",
@@ -154,6 +154,7 @@ function buildApiPricingPage(generatedAt = new Date(), catalog = api_equivalent_
154
154
  <h1>当前模型价格</h1>
155
155
  </div>
156
156
  <p class="muted">标准同步 API 参考价格,不是订阅或实际账单。</p>
157
+ <p class="muted">gpt-5.3-codex-spark 按 gpt-5.3-codex 价格估算,非 Spark 官方公开 API 定价。</p>
157
158
  </section>
158
159
  ${renderCurrentApiPricingTable(catalog, generatedAt)}
159
160
  </main>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccus-cli",
3
- "version": "0.2.15",
3
+ "version": "0.2.16",
4
4
  "description": "Claude Code statusline usage logger and dashboard CLI",
5
5
  "type": "commonjs",
6
6
  "bin": {