@wengine-ai/llms 2.3.2423 → 2.3.2425
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 +2 -0
- package/dist/ccr/usage-store.d.ts +2 -0
- package/dist/cjs/server.cjs +131 -130
- package/dist/cjs/server.cjs.map +4 -4
- package/dist/esm/server.mjs +135 -134
- package/dist/esm/server.mjs.map +4 -4
- package/dist/index.html +47 -46
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -93,6 +93,8 @@ npm install -g @wengine-ai/claude-code-router-next@latest && ccr restart
|
|
|
93
93
|
|
|
94
94
|
| 版本 | 发布内容 |
|
|
95
95
|
| --- | --- |
|
|
96
|
+
| **v2.3.2425** | <ul><li>**供应商拖动排序**:卡片可拖动重排,顺序立即写入配置;拖拽按稳定行 ID 定位,搜索过滤下依然正确,无 name 的供应商也能拖。</li><li>**grok 与 cursor 卡片对齐家族样式**:统一按钮词汇、尺寸、图标与 destructive 变体,七张供应商卡片外观一致。</li></ul> |
|
|
97
|
+
| **v2.3.2424** | <ul><li>**新增 Kiro 订阅 provider 插件**:Kiro 门户 / AWS Builder ID / IAM Identity Center 三种 OAuth 登录,运行时区域由 profile ARN 推导,多账号卡片与配额管理。</li><li>**估算用量溯源**:用量库新增 <code>usage_estimated</code> 列(v3 加法式迁移),估算值不再被当作精确计量展示,也不参与缓存读推断。</li></ul> |
|
|
96
98
|
| **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> |
|
|
97
99
|
| **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> |
|
|
98
100
|
| **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> |
|
|
@@ -11,6 +11,7 @@ export interface UsageRecord {
|
|
|
11
11
|
scenarioType: string;
|
|
12
12
|
clientType?: string;
|
|
13
13
|
stream: boolean;
|
|
14
|
+
usageEstimated?: boolean;
|
|
14
15
|
inputTokens: number;
|
|
15
16
|
outputTokens: number;
|
|
16
17
|
cacheReadInputTokens: number;
|
|
@@ -23,6 +24,7 @@ export interface UsageRecord {
|
|
|
23
24
|
responseBody?: string;
|
|
24
25
|
}
|
|
25
26
|
export interface UsageSummary {
|
|
27
|
+
estimatedCount: number;
|
|
26
28
|
totalRequests: number;
|
|
27
29
|
successCount: number;
|
|
28
30
|
errorCount: number;
|