@wengine-ai/llms 2.3.2432 → 2.3.2433

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.2433** | <ul><li>**桌面控制中心套件**:菜单栏全供应商额度面板(K/M/B + 焦点看门狗防卡死)、独立本地控制中心与内置网关运行时、项目配置页(按项目路由/别名/客户端接管)。</li><li>**桌面用量分析**:缓存感知有效输入总 tokens(不重复计数)、模型/提供方/日期缓存列、纯 CSS 图表、分页调用记录(成功率/TTFT/速度)。</li><li>**火山 Coding Plan 配额**(AK/SK 本地凭证面板 + SigV4 适配);**Kimi 5h 窗口恢复**(上游缺 remaining 时不再消失)。</li><li>**Codex 套餐升级配额恢复 + UI HTML 协商缓存 + 卡片确认居中模态 + 冷却中同步模型可点**;插件:codex 1.0.14 / kiro 0.1.3 / workbuddy 1.0.3 / gemini-oauth 1.0.14。</li></ul> |
96
97
  | **v2.3.2432** | <ul><li>**Gemini 独立配额池(Argon / Hydrogen / Claude,插件 1.0.13)**:供应商卡片按模型家族分池展示配额,不再只看汇总——Argon 池耗尽一眼可见(此前周汇总 71% 却 429 的迷惑场景消除)。</li><li>**PID 文件失效时 restart 兜底杀真实监听进程**:修「页面更新一直失败」——PID 文件残留尸体 PID 时什么都杀不掉、respawn 撞 EADDRINUSE 旧版本永远在线;现在带 CCR 身份校验的端口兜底 + 等待端口释放 + PID 文件 bind 成功后才写入。</li></ul> |
97
98
  | **v2.3.2431** | <ul><li>**Kiro 拒答不再误冷却且额度恢复(插件 0.1.2)**:上游 `CONTENT_FILTERED` / `REASONING_EXTRACTION` 空拒答流正确分类为 `kiro_content_filtered`(422),不再误判截断 502 并冷却全账号 5 分钟;只读额度/模型同步在 429 冷却期仍可用,并实现 `fetchQuota` 在主供应商列表展示 Kiro credits 额度,过滤过期 bonus 窗口。</li><li>**插件升级死循环修复与防呆守卫**:定位 `kiro@0.1.1` npm 包内含陈旧 `0.1.0` 清单导致反复提示升级;目录页改用 `semver` 比较防止本地较新版本被降级提示,安装器拦截 `package.json` 与 `plugin.json` 版本不一致的压缩包,Kiro 增加 `prepack` 自动构建与前置守卫。</li></ul> |
98
99
  | **v2.3.2430** | <ul><li>**Gemini OAuth 长会话 400 修复(插件 1.0.11)**:无签名的工具调用历史补哨兵、伪造/非法/外部(GLM 24位 hex)签名在发送前拦截;带 schema 的客户端 `web_search` 不再被误转成 Google 内置搜索。111 条消息/39 个工具的失败会话重放流式与非流式均 200。</li><li>**Gemini 流式缓存命中统计恢复(插件 1.0.11)**:收尾空文本帧携带的 `cachedContentTokenCount` 与 `finishReason` 不再被整帧丢弃,流式请求的缓存命中/最终 token 数/stop reason 正确记录(实测 ~93k token 提示词缓存命中 91067,此前恒为 0)。</li></ul> |
@@ -0,0 +1,41 @@
1
+ /**
2
+ * User-authorized live probe for GetCodingPlanUsage (slice 2 of the design doc).
3
+ * Reads credentials from env only — never write real AK/SK into this file or config.
4
+ * Usage:
5
+ * VOLC_AK=... VOLC_SK=... [HTTPS_PROXY=http://127.0.0.1:7897] \
6
+ * node_modules/.bin/tsx /tmp/ccr-volc-live-probe.mts
7
+ */
8
+ import { getQuotaAdapter } from './src/services/quota-adapters';
9
+ import type { LLMProvider } from './src/types/llm';
10
+
11
+ const ak = process.env.VOLC_AK?.trim();
12
+ const sk = process.env.VOLC_SK?.trim();
13
+ if (!ak || !sk) {
14
+ console.error('Set VOLC_AK and VOLC_SK env vars first. Nothing was sent.');
15
+ process.exit(2);
16
+ }
17
+
18
+ const adapter = getQuotaAdapter(
19
+ 'https://ark.cn-beijing.volces.com/api/coding/v3/chat/completions'
20
+ );
21
+ if (!adapter) {
22
+ console.error('No adapter matched the coding-plan base URL');
23
+ process.exit(2);
24
+ }
25
+
26
+ const provider = {
27
+ name: 'live-probe-temp',
28
+ baseUrl: 'https://ark.cn-beijing.volces.com/api/coding/v3/chat/completions',
29
+ apiKey: 'not-used-by-this-adapter',
30
+ models: ['ark-code-latest'],
31
+ quotaAccessKey: ak,
32
+ quotaSecretKey: sk,
33
+ } as LLMProvider;
34
+
35
+ const result = await adapter.queryQuota(
36
+ provider,
37
+ 15000,
38
+ process.env.HTTPS_PROXY || process.env.https_proxy
39
+ );
40
+ // Response contains only usage percentages/resets — no credentials.
41
+ console.log(JSON.stringify({ ok: result !== null, result }, null, 2));