@wengine-ai/llms 2.3.2422 → 2.3.2423

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
@@ -93,6 +93,7 @@ npm install -g @wengine-ai/claude-code-router-next@latest && ccr restart
93
93
 
94
94
  | 版本 | 发布内容 |
95
95
  | --- | --- |
96
+ | **v2.3.2423** | <ul><li>**新增 Grok、Cursor 订阅 provider 插件**:Grok 走官方 CLI 设备码登录;Cursor 支持浏览器 / cursor-agent CLI / API Key 登录(订阅代理下自动降为 HTTP/1),均含模型管理与用量卡片。</li><li>**Responses 流按客户端格式转换**:修复原生 Responses 帧直接给 Chat/Anthropic 客户端造成的空回合;短回合第三段模型不再显示 unknown;终帧内联答案不再丢失。</li><li>**Qoder / WorkBuddy 中国站每日自动签到/领取积分**(启动抖动、失败当日有界重试),手动按钮保留。</li></ul> |
96
97
  | **v2.3.2422** | <ul><li>**send 级插件失败不再误报**:插件 fetch 在拿到 HTTP 状态前失败(本地代理拒连/DNS/TLS/超时)时,此前只报笼统的"invalid upstream response";status 0 的发送失败现在归类为 <code>plugin_network_error</code>,附带上界受控、严格消毒的传输诊断(cause 链错误码 + host:port)。</li><li>**恢复探活不再被失败时间饿死**:受托恢复门控改用 lastProbeTime 判定,失败刷新 lastFailureTime 不再推迟探活,熔断可正常自愈。</li><li>**首页失败横幅显示最后失败时间**:过期红条与持续故障一眼可分。</li><li>**仓库对齐已发运状态**:合并堆积 PR #95-#100(workspace 根 private 守卫、codex 1.0.10 缓存键锚定、qoder 0.3.x 签到与卡片统一),插件版本对齐 codex 1.0.10 / qoder 0.3.3。</li></ul> |
97
98
  | **v2.3.2421** | <ul><li>**插件更新重新能被发现**:插件记录保存的是安装时的 npm specifier(如 `@wengine-ai/ccr-provider-qoder@0.2.0`),而 catalog 行按裸包名索引,带版本号的安装匹配不到记录、退化为把本地 manifest 版本当成 registry 版本,`updateAvailable` 永远为 false,旧版插件显示为已是最新且升级按钮从不出现;现在匹配前剥离 specifier 版本尾部。</li><li>**`upstream_model` 不再写成 `unknown`**:Responses 每个生命周期事件的 `response` 都带 model,但此前只从 `response.completed` 读取,长流提前结束(中断/尾包截断/代理重连)就记成 `unknown`;现在捕获首个非空值,完全未回显时回退到路由模型。</li><li>**转换帧不再使用路由前模型名**:Responses→Chat 转换给早期分块贴的是路由前的 `body.model`,现在优先路由后模型。</li><li>**新增插件市场卡片升级按钮**:已安装且版本与 registry 不一致的卡片显示更新按钮,以 force 重装并展示进度。</li></ul> |
98
99
  | **v2.3.2420** | <ul><li>**codex 用量统计修复**:`response.completed` 转 chat 结束帧时漏带 usage,导致 codex 回合内容正常、TTFT 正常但输出/缓存命中/速度全为 0;现在结束帧携带完整 usage(含缓存读写与推理 token)。</li><li>**不再泄漏占位模型名**:早期分块缺少上游 model 时回退到请求的模型名,不再显示 `unknown` / `gpt-5-codex-`。</li></ul> |
@@ -29,6 +29,12 @@ import { EventEmitter } from "node:events";
29
29
  */
30
30
  export declare function isRateLimitMessage(statusCode: number, message?: string): boolean;
31
31
  export declare function getPipelineEventEmitter(): EventEmitter;
32
+ /** A real upstream model echo: non-empty and never the converter's
33
+ * "unknown" placeholder. The Anthropic SSE converter initializes its model
34
+ * label to "unknown" until the first chat chunk names one; a short stream whose
35
+ * first chunk omits the model would otherwise lock that placeholder into
36
+ * req.upstreamModel (first-write-wins), recording "unknown" in the usage row. */
37
+ export declare function isRealUpstreamModel(model: unknown): model is string;
32
38
  /**
33
39
  * Register all CCR request-pipeline hooks on the server instance.
34
40
  * Called by createCcrServer after admin routes are registered.