dsh-codearts 1.2.10 → 1.2.11
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/CHANGELOG.md +17 -0
- package/lib/bin.mjs +1 -4
- package/lib/client/index.d.cts +39 -0
- package/lib/client/index.js +502 -195
- package/lib/index.d.mts +75 -1
- package/lib/index.mjs +203 -13
- package/lib/{usage-CjPd0Gok.mjs → version-Dq3wXMop.mjs} +176 -13
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,23 @@
|
|
|
3
3
|
本文件记录本插件的重要改动。格式参考 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.1.0/),
|
|
4
4
|
版本号遵循 [语义化版本](https://semver.org/lang/zh-CN/)。
|
|
5
5
|
|
|
6
|
+
## [1.2.11] - 2026-11-08
|
|
7
|
+
|
|
8
|
+
### 新增
|
|
9
|
+
|
|
10
|
+
- **用量页能看到「失败率」和「首字延迟」**:失败率按「今日失败 /(成功 + 失败)」算,
|
|
11
|
+
悬停副行给出失败次数;首字延迟给 P50 与 P95,从请求进入 shim 算起(包含排队和换号),
|
|
12
|
+
超过 30 秒的样本单列进溢出档,显示成 `>30 s` 而不是编一个假数字。这两个数只记本机
|
|
13
|
+
shim 发出的请求,和 token 账本同一口径。
|
|
14
|
+
- **账号可以「暂停」和「置顶」**:暂停只是不参与轮转,凭证、备注、顺序都保留,恢复
|
|
15
|
+
不需要重新登录;置顶让该账号优先被挑中,但不会绕过冷却和并发上限。账号行还会显示
|
|
16
|
+
今日请求数和失败次数。
|
|
17
|
+
- **模型行显示上游给的规格**:每个模型行标出上下文窗口与最大输出(拿不到时显示 `—`,
|
|
18
|
+
不再把 32768 的兜底值当成真实值)。测试结果也改成常驻 —— 关掉卡片再打开还在。
|
|
19
|
+
- **设置页内置「体检」**:卡片里直接跑一遍 CLI `doctor` 的检查(版本、账号文件、每个
|
|
20
|
+
账号的 stale / 缺密钥 / 过期、模型目录、用量账本、pi-ai 兼容性),不联网,逐项给出
|
|
21
|
+
结论和修复提示。
|
|
22
|
+
|
|
6
23
|
## [1.2.10] - 2026-11-06
|
|
7
24
|
|
|
8
25
|
### 新增
|
package/lib/bin.mjs
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
2
|
+
import { G as codeartsAccountsPath, H as CodeArtsAccountStore, f as fetchCallerIdentity, i as discoverModels, n as CodeArtsUsageTracker, r as codeartsUsagePath, t as CODEARTS_VERSION, z as isBenefitModel } from "./version-Dq3wXMop.mjs";
|
|
3
3
|
import { existsSync, statSync } from "node:fs";
|
|
4
|
-
//#region src/version.ts
|
|
5
|
-
const CODEARTS_VERSION = "1.2.10";
|
|
6
|
-
//#endregion
|
|
7
4
|
//#region src/bin.ts
|
|
8
5
|
/**
|
|
9
6
|
* dsh-codearts CLI: sign-in state, diagnostics and sign-out.
|
package/lib/client/index.d.cts
CHANGED
|
@@ -89,6 +89,45 @@ interface CodeArtsSettingsKey {
|
|
|
89
89
|
usageTipHit: string;
|
|
90
90
|
usageStatHit: string;
|
|
91
91
|
usageStatRequests: string;
|
|
92
|
+
/** 今日失败率(失败 /(成功 + 失败))。 */
|
|
93
|
+
usageStatFailures: string;
|
|
94
|
+
usageStatFailureCount: string;
|
|
95
|
+
/** 首字延迟(P95,毫秒)。 */
|
|
96
|
+
usageStatLatency: string;
|
|
97
|
+
usageStatLatencyDetail: string;
|
|
98
|
+
usageStatLatencyEmpty: string;
|
|
99
|
+
/** 行内的上下文窗口 / 最大输出(`1M · 64K`)。 */
|
|
100
|
+
modelSpec: string;
|
|
101
|
+
modelSpecTitle: string;
|
|
102
|
+
/** 账号暂停/置顶。 */
|
|
103
|
+
accountPaused: string;
|
|
104
|
+
accountPinned: string;
|
|
105
|
+
accountPause: string;
|
|
106
|
+
accountResume: string;
|
|
107
|
+
accountPin: string;
|
|
108
|
+
accountUnpin: string;
|
|
109
|
+
accountToday: string;
|
|
110
|
+
/** 体检(doctor)区块。 */
|
|
111
|
+
doctorTitle: string;
|
|
112
|
+
doctorHint: string;
|
|
113
|
+
doctorRun: string;
|
|
114
|
+
doctorRunning: string;
|
|
115
|
+
doctorFailed: string;
|
|
116
|
+
doctorCheckAccount: string;
|
|
117
|
+
doctorCheckRuntime: string;
|
|
118
|
+
doctorCheckAccounts: string;
|
|
119
|
+
doctorCheckModels: string;
|
|
120
|
+
doctorCheckUsage: string;
|
|
121
|
+
doctorCheckPiAi: string;
|
|
122
|
+
doctorHintNoAccount: string;
|
|
123
|
+
doctorHintAccountStale: string;
|
|
124
|
+
doctorHintAccountNoKey: string;
|
|
125
|
+
doctorHintAccountExpired: string;
|
|
126
|
+
doctorHintEmptyCatalog: string;
|
|
127
|
+
doctorHintUsageMissing: string;
|
|
128
|
+
doctorHintDshHome: string;
|
|
129
|
+
doctorHintPiAi: string;
|
|
130
|
+
doctorHintOther: string;
|
|
92
131
|
/** 趋势两张图的标题与悬停提示(近 7 天命中率 / 今天逐小时)。 */
|
|
93
132
|
usageTrendWeek: string;
|
|
94
133
|
usageTrendHour: string;
|