chatccc 0.2.299 → 0.2.300

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
@@ -438,7 +438,7 @@ ChatCCC 通过 Codex 的 **app-server 模式**(一个常驻进程 + WebSocket
438
438
  | `/cd` | 查看或设置后续新建会话的默认工作目录,不改变当前会话;飞书私聊自身始终使用系统用户目录 |
439
439
  | `/sessions` | 查看所有会话状态 |
440
440
  | `/session <数字>` | 将当前群聊切换到 `/sessions` 列表中的指定会话;飞书私聊不支持切换 |
441
- | `/usage` | 查看当前会话对应 Agent 的用量;Codex 显示 5h/7天窗口,主动重置次数查询失败时会明确展示上次成功快照及其查询时间(缓存结果不提供重置按钮);Cursor 显示当前周期用量,CCC Agent 和 DSH 仅在官方 DeepSeek 端点时显示账户余额(其他兼容端点自动跳过) |
441
+ | `/usage` | 查看当前会话对应 Agent 的用量;Codex 使用本机 Codex 登录凭据中的账户 ID 查询额度,只显示接口实际返回的 5h/7天窗口,主动重置次数查询失败时会明确展示上次成功快照及其查询时间(缓存结果不提供重置按钮);Cursor 显示当前周期用量,CCC Agent 和 DSH 仅在官方 DeepSeek 端点时显示账户余额(其他兼容端点自动跳过) |
442
442
  | `/git <子命令>` | 在当前会话工作目录执行 `git ...` 并回传输出 |
443
443
  | `/abd<内容>` | 去掉 `/abd` 前缀后把内容发给 Agent,并在消息末尾追加第一性原理需求澄清提示 |
444
444
  | `/plan <内容>` | 只读计划模式:仅允许读文件和 stop-stuck-loop 请求,不执行任何写操作 |
@@ -434,7 +434,9 @@ export async function getCodexUsageSummary(options = {}) {
434
434
  const includeResetCredits = options.includeResetCredits !== false;
435
435
  const resetCreditsPromise = includeResetCredits ? fetchCodexRateLimitResetCredits(auth) : null;
436
436
  const resp = await fetch(CODEX_USAGE_URL, {
437
- headers: { Authorization: `Bearer ${auth.accessToken}` },
437
+ // An unscoped request can return a different workspace's quota for the
438
+ // same login. Match the account headers used by Codex and reset-credit reads.
439
+ headers: codexAuthHeaders(auth),
438
440
  });
439
441
  const text = await resp.text();
440
442
  if (!resp.ok)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chatccc",
3
- "version": "0.2.299",
3
+ "version": "0.2.300",
4
4
  "description": "Feishu bot bridge for Claude Code",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",