dsh-cost-meter 1.8.17 → 1.8.19
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 +10 -6
- package/README.zh-CN.md +10 -6
- package/docs/context-costs-design.md +90 -0
- package/docs/context-costs-preview.png +0 -0
- package/docs/cost-share-overview.png +0 -0
- package/docs/maintenance-review-2026-10-10.md +27 -0
- package/lib/client.js +5 -5
- package/lib/client.openrouter.js +2 -2
- package/lib/client.statistics.js +28 -3
- package/lib/context-costs.js +113 -0
- package/lib/index.js +14 -8
- package/lib/session-tree.js +28 -12
- package/lib/store.js +5 -0
- package/lib/turn-cost.js +16 -1
- package/lib/typert.host.js +19 -0
- package/package.json +6 -2
package/README.md
CHANGED
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
|
|
9
9
|
Per-conversation cost · daily totals · OpenCode Go subscription quota display · budget with usage percentage · official account balance · custom provider balance · balance progress bar · history · peak/off-peak pricing hours display (peak hours UTC 01:00–04:00, 06:00–10:00; weekends and Chinese public holidays are off-peak all day, with separate labels) · pre-switch popup & system-notification alerts for peak/off-peak changes (position / lead time / alert type configurable) · one-click price sync from the official docs · Codex-style token usage heat grid · multi-vendor model pricing (built-in 170+ model-ID catalog with auto-matching) · mainstream Coding Plan quota queries & display (Anthropic / Z.ai / MiniMax / Kimi / OpenRouter / SiliconFlow / CommandCode / SCNet / Volcano Ark / Qwen / Xiaomi MiMo) plan/API dual-track billing (subscription quota vs pay-as-you-go money separated, per-1% & full-window token/equivalent-cost estimates with daily/weekly/monthly curves) · · quota strip above the input box (budget / Go / coding-plan usage in one row, toggleable)
|
|
10
10
|
|
|
11
|
-
[](https://github.com/Han-1413141/dsh-cost-meter)
|
|
12
12
|
|
|
13
|
-
**v1.8.
|
|
13
|
+
**v1.8.19** brings compact Overview, Context and Call details views, brighter donut charts, full-conversation call shares, cache comparisons and model/activity breakdowns. High-cost calls link directly to their details, including across pages. Current-conversation preloading, shared directory reads and immediate local-setting saves reduce waiting. Context measurement stays off the overview loading path; no extra model API requests. See the [guide and preview](docs/context-costs-design.md#english).
|
|
14
14
|
|
|
15
15
|
Desktop users: follow the [Desktop installation instructions](docs/install-troubleshooting.md#desktop-安装与更新) for the application's own CLI and `desktop` Profile.
|
|
16
16
|
|
|
@@ -323,22 +323,22 @@ On Node.js 20, use `npm install -g pnpm@10` instead. See [pnpm installation and
|
|
|
323
323
|
dsh plugin --profile web add dsh-cost-meter
|
|
324
324
|
```
|
|
325
325
|
|
|
326
|
-
**PowerShell one-click script** (copy the whole line, paste, press Enter; pnpm is provisioned automatically, git is auto-detected — no clone needed; the install chain is **pinned to the release tag `v1.8.
|
|
326
|
+
**PowerShell one-click script** (copy the whole line, paste, press Enter; pnpm is provisioned automatically, git is auto-detected — no clone needed; the install chain is **pinned to the release tag `v1.8.19`** — review the script before running):
|
|
327
327
|
|
|
328
328
|
```powershell
|
|
329
|
-
irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.8.
|
|
329
|
+
irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.8.19/install.ps1 | iex
|
|
330
330
|
```
|
|
331
331
|
|
|
332
332
|
**Or a plain command line** (the machine must already have pnpm and git; also pinned to the tag):
|
|
333
333
|
|
|
334
334
|
```sh
|
|
335
|
-
dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.8.
|
|
335
|
+
dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.8.19
|
|
336
336
|
```
|
|
337
337
|
|
|
338
338
|
Without git, use the GitHub tag archive:
|
|
339
339
|
|
|
340
340
|
```sh
|
|
341
|
-
dsh plugin --profile web add https://github.com/Han-1413141/dsh-cost-meter/archive/refs/tags/v1.8.
|
|
341
|
+
dsh plugin --profile web add https://github.com/Han-1413141/dsh-cost-meter/archive/refs/tags/v1.8.19.tar.gz
|
|
342
342
|
```
|
|
343
343
|
|
|
344
344
|
After installing, **restart** `dsh web` (plugin rows, the Typert manifest and the client bundle are all scanned at startup):
|
|
@@ -513,6 +513,10 @@ Check and clear the host search before changing stored data.
|
|
|
513
513
|
|
|
514
514
|
A per-version overview and the community-issue resolution log live in [docs/UPDATE-HISTORY.md](docs/UPDATE-HISTORY.md) (中文); the itemized changelog is [CHANGELOG.md](CHANGELOG.md).
|
|
515
515
|
|
|
516
|
+
## Star History
|
|
517
|
+
|
|
518
|
+

|
|
519
|
+
|
|
516
520
|
## License
|
|
517
521
|
|
|
518
522
|
[MIT](LICENSE) © 2026 dsh-cost-meter contributors
|
package/README.zh-CN.md
CHANGED
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
|
|
9
9
|
本会话费用 · 当日费用 · OpenCode Go 订阅额度显示 · 预算与已用百分比 · 官方账户余额 · 自定义 Provider 余额查询(可配任意 HTTP 端点) · 余额三段进度条 · 历史记录 · 峰谷计价时段显示(UTC 01:00–04:00、06:00–10:00 为峰时段;周末与中国法定假日全天按谷价,分别标注) · 峰/谷切换前弹窗与系统通知提醒(位置/提前量/提醒类型可配) · 官方价格一键同步 · 类 Codex Token 用量热图 · 多厂商多模型价格计费(内置 170+ 模型 ID 价格目录与自动匹配) · 主流 Coding Plan 额度查询与显示(Anthropic / Z.ai / MiniMax / Kimi / OpenRouter / SiliconFlow / CommandCode / SCNet / 火山方舟 / 千问 / 小米 MiMo 十一家,含 Volcano Ark AK/SK 签名与 MiMo 控制台 Cookie 查询) · Plan/API 双轨计费(订阅额度与按量金额分离统计,每 1% 额度与满窗的 token/等值金额估算及日/周/月曲线) · 输入框上方额度横条(预算/Go/Coding Plan 用量一条横排显示,可开关)
|
|
10
10
|
|
|
11
|
-
[](https://github.com/Han-1413141/dsh-cost-meter)
|
|
12
12
|
|
|
13
|
-
**v1.8.
|
|
13
|
+
**v1.8.19** 将费用明细整理为紧凑的“费用概览、上下文、调用明细”,采用明亮圆环图,新增逐次调用占比、缓存对比和模型/环节分布。高费用调用可直接定位,跨页保持相同分母。当前对话提前加载,共享目录查询,本地显示设置保存不再等待无关额度接口;概览不等待上下文测量,不增加模型 API 请求。详见[使用说明与界面预览](docs/context-costs-design.md)。
|
|
14
14
|
|
|
15
15
|
桌面端用户请按 [Desktop 安装说明](docs/install-troubleshooting.md#desktop-安装与更新),使用应用自带的 CLI 和 `desktop` Profile。
|
|
16
16
|
|
|
@@ -323,22 +323,22 @@ Node.js 20 请改用 `npm install -g pnpm@10`。版本要求见 [pnpm 官方安
|
|
|
323
323
|
dsh plugin --profile web add dsh-cost-meter
|
|
324
324
|
```
|
|
325
325
|
|
|
326
|
-
**PowerShell 一键脚本**(复制整行粘贴回车;自动补齐 pnpm、自动探测 git,无需克隆仓库;安装链**固定到发布 tag `v1.8.
|
|
326
|
+
**PowerShell 一键脚本**(复制整行粘贴回车;自动补齐 pnpm、自动探测 git,无需克隆仓库;安装链**固定到发布 tag `v1.8.19`**,建议先下载审阅再运行):
|
|
327
327
|
|
|
328
328
|
```powershell
|
|
329
|
-
irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.8.
|
|
329
|
+
irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.8.19/install.ps1 | iex
|
|
330
330
|
```
|
|
331
331
|
|
|
332
332
|
**或直接命令行**(机器上需已有 pnpm 与 git;同样固定到 tag):
|
|
333
333
|
|
|
334
334
|
```sh
|
|
335
|
-
dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.8.
|
|
335
|
+
dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.8.19
|
|
336
336
|
```
|
|
337
337
|
|
|
338
338
|
没有 git 时可用 GitHub tag 打包直链:
|
|
339
339
|
|
|
340
340
|
```sh
|
|
341
|
-
dsh plugin --profile web add https://github.com/Han-1413141/dsh-cost-meter/archive/refs/tags/v1.8.
|
|
341
|
+
dsh plugin --profile web add https://github.com/Han-1413141/dsh-cost-meter/archive/refs/tags/v1.8.19.tar.gz
|
|
342
342
|
```
|
|
343
343
|
|
|
344
344
|
安装后**重启** `dsh web`(插件行、Typert 清单与客户端 bundle 均在启动时扫描):
|
|
@@ -517,6 +517,10 @@ dsh --profile web --port 3099 # 真机启动(观察启
|
|
|
517
517
|
|
|
518
518
|
各版本更新总览与社区 issue 处理记录见 [docs/UPDATE-HISTORY.md](docs/UPDATE-HISTORY.md);逐条开发记录见 [CHANGELOG.md](CHANGELOG.md)。
|
|
519
519
|
|
|
520
|
+
## Star 增长记录
|
|
521
|
+
|
|
522
|
+

|
|
523
|
+
|
|
520
524
|
## License
|
|
521
525
|
|
|
522
526
|
[MIT](LICENSE) © 2026 dsh-cost-meter contributors
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# 上下文费用展示与 dsh-context 联动
|
|
2
|
+
|
|
3
|
+
## 使用方式
|
|
4
|
+
|
|
5
|
+
点击对话输入区的费用明细,只查看当前对话。费用概览集中显示总费用、调用次数、Token、缓存命中率和费用构成;上下文与调用明细分别切换,减少滚动。设置中的计费统计保留跨对话查询入口。
|
|
6
|
+
|
|
7
|
+
逐次调用图按整个查询范围计算占比,显示费用最高的 7 次和其余合计。点击单次调用可跨页定位;每次调用的展开区域显示输入、缓存与输出构成。缓存对比展示缓存读取占输入 Token 和输入费用的比例,不把两者的差值当作节省金额。多模型或多环节时显示相应费用分布。
|
|
8
|
+
|
|
9
|
+
圆环图显示整体构成,右侧图例列出各部分百分比。悬停或用键盘聚焦圆环/图例,即可看到该部分的 Token、金额与占比。鼠标移走或焦点移出后恢复整体视图,不留下选中状态。很小的部分也可通过图例查看。完整明细默认折叠。关闭按钮固定在弹窗顶部,滚动到底部仍然可用,也可按 Esc 关闭。
|
|
10
|
+
|
|
11
|
+
联动开关在对话弹窗底部的“显示与联动设置 → dsh-context 联动”中;全局统计也保留折叠入口。初次提示可关闭,之后通过“查看启用前后预览”重新打开。
|
|
12
|
+
|
|
13
|
+

|
|
14
|
+
|
|
15
|
+

|
|
16
|
+
|
|
17
|
+
图中为本地示例数据。参考输入费用与已发生调用费用分开展示,不相加。
|
|
18
|
+
|
|
19
|
+
## 调研结果
|
|
20
|
+
|
|
21
|
+
核对了 [dsh-context 源码](https://github.com/bowenliang123/dsh-context/tree/d3f23994405a3e876c37567f9a5b8aa9a3b1e843)、npm 发布的 0.62.0 和 0.66.0 客户端,以及 DSH 0.2.0-rc.2 的公开接口。
|
|
22
|
+
|
|
23
|
+
dsh-context 主要展示上下文占用、组成、变化和注入事件。0.66.0 还包括会话费用估算、用量趋势和跨会话概览,费用参考 models.dev 的公开价格。它没有本次讨论中的保留比例、缓存假设和节省预测控件。[功能说明](https://github.com/bowenliang123/dsh-context/blob/d3f23994405a3e876c37567f9a5b8aa9a3b1e843/README.md)
|
|
24
|
+
|
|
25
|
+
本次实现只读的费用拆分。用户通过金额和占比了解主要费用来源,自行决定是否精简信息、减少工具输出或调整使用方式。界面不提供模拟预算、压缩按钮或自动优化。
|
|
26
|
+
|
|
27
|
+
## 独立功能
|
|
28
|
+
|
|
29
|
+
不需要安装 dsh-context。入口在本插件的单会话费用统计中;会话输入区的费用明细入口会直接打开当前会话,也可以在设置中的计费统计选择会话。
|
|
30
|
+
|
|
31
|
+
| 内容 | 展示方式 | 数据依据 |
|
|
32
|
+
|---|---|---|
|
|
33
|
+
| 当前上下文 | Token 总量、参考输入金额 | DSH `tokenMeter.measure()` |
|
|
34
|
+
| 上下文各部分 | 系统提示、工具定义、用户输入、注入内容、技能、历史回复、工具结果、其他;逐项显示 Token、金额及占比 | 宿主组成投影与当前可见节点 |
|
|
35
|
+
| 最近一次调用 | 非缓存输入、缓存读取、缓存写入、输出、单独推理费用;逐项金额、占比和合计 | 提供商返回的用量,复用本插件的计费引擎 |
|
|
36
|
+
| 历史及其他环节 | 原有轮次明细、搜索和压缩费用继续保留 | 现有账本和调用明细 |
|
|
37
|
+
|
|
38
|
+
当前上下文参考金额使用最近请求模型的非缓存输入单价,遵循峰谷、币种转换、长上下文及自定义价格配置。分类金额属于参考值,未计缓存折扣,不是逐项实际账单。提供商没有返回每段上下文的缓存命中情况,不能精确反推每段实际扣费。同一费率下,分类费用占比与 Token 占比相同。
|
|
39
|
+
|
|
40
|
+
最近一次调用使用该次调用的输入长度、发生时段与提供商用量单独计价,输入、缓存、输出之间不重复计数。历史回复留在当前上下文时属于输入。两组金额不相加;Plan 显示 API 等值,未知价格与零单价分别显示。
|
|
41
|
+
|
|
42
|
+
## 可选联动
|
|
43
|
+
|
|
44
|
+
联动默认关闭。启用已验证版本的 dsh-context 后,首次提示提供“启用前 / 启用后”预览和明确的示例数据标识,用户选择后才增加费用区域。
|
|
45
|
+
|
|
46
|
+
启用后,费用区域位于 dsh-context 的当前上下文卡片内部,覆盖会话页、右侧栏与 `/context` 弹窗。未启用或关闭联动时,本插件的独立费用展示继续可用。
|
|
47
|
+
|
|
48
|
+
- 支持明确验证的 dsh-context 0.62.0、0.66.0。宿主通过本地 `pluginManager.listBundles()` 提供版本;未知版本不会自动启用。
|
|
49
|
+
- 开关和“已提示”状态保存在本插件配置中。关闭按钮、Esc、点击遮罩和“暂不启用”均可退出;退出不等待保存请求。浏览器另存提示记录,防止保存失败、重新载入或多个页面造成反复提示。
|
|
50
|
+
- 用户手动重开预览再关闭,不改变已经启用的开关。设置中始终保留开关与预览入口。
|
|
51
|
+
- 自动提示等其他弹窗关闭后再出现。短窗口保持关闭按钮和操作区可见,避开 DSH 桌面标题栏,支持键盘焦点限制与关闭后恢复焦点。
|
|
52
|
+
- 复用 dsh-context 的公开 `contextTimeline.current` 分类;不修改对方文件。通过 DSH 公共插槽优先级包装原组件,保留原 props、语言、会话和 hooks。关闭或卸载时撤销自己的注册。
|
|
53
|
+
- 尚未验证的插槽结构不会被覆盖;原面板保留,独立入口继续使用。
|
|
54
|
+
|
|
55
|
+
## 加载与实时性
|
|
56
|
+
|
|
57
|
+
当前会话稳定显示 300 毫秒后提前准备本地统计,悬停或聚焦入口也可触发准备。同一会话、筛选和计价配置的内存结果先显示,再后台刷新,避免等待时清空界面;缓存最多 32 项,仅存在于当前插件实例,卸载后清理。概览不等待上下文测量,切换上下文视图后才读取。
|
|
58
|
+
|
|
59
|
+
子代理目录查询共享在途请求,持久化目录复用 5 秒,实时会话目录每次合并。首次设置页先显示本地数据,再补齐余额与额度;修改小数位等显示选项不等待无关的冷额度请求。显式额度刷新和查询配置变更仍等待对应结果。
|
|
60
|
+
|
|
61
|
+
## 实时性与费用
|
|
62
|
+
|
|
63
|
+
可见界面响应宿主组成和用量变化,并以 10 秒间隔补充刷新。隐藏页面和不可见区域暂停查询。失败保留同一会话的旧数据并显示提示,切换会话时不串用旧结果。
|
|
64
|
+
|
|
65
|
+
这些查询只读取宿主已有数据和已配置价格,不调用模型或外部价格接口,不修改消息、模型选择、价格设置或账本,不产生额外模型 API 费用。
|
|
66
|
+
|
|
67
|
+
## 实现依据
|
|
68
|
+
|
|
69
|
+
- [dsh-context 分类定义](https://github.com/bowenliang123/dsh-context/blob/d3f23994405a3e876c37567f9a5b8aa9a3b1e843/src/client/categories.ts):七种分类及主题颜色。
|
|
70
|
+
- [dsh-context 当前上下文卡片](https://github.com/bowenliang123/dsh-context/blob/d3f23994405a3e876c37567f9a5b8aa9a3b1e843/src/client/components/CurrentComposition.tsx):`data-lc-current` 位置。
|
|
71
|
+
- [DSH token-meter](https://github.com/deepseek-ai/deepseek-harness/tree/master/packages/llm/token-meter):总量、可见节点和官方组成投影。
|
|
72
|
+
- DSH 本地发布包的 `SlotCore`、`SessionProjectionRegistry` 与 `PluginManager` 类型声明:插槽注册、投影和安装版本读取接口。
|
|
73
|
+
|
|
74
|
+
## 验证范围
|
|
75
|
+
|
|
76
|
+
本地合成会话用于核对分类金额总和、长上下文阈值、缓存与输出计价、人民币换算、Plan、零价格和未定价。真实 DSH Session、TokenMeter 和投影服务用于核对取数接口及只读行为。真实发布的 dsh-context 客户端和 SlotCore 用于验证三个界面入口、先后安装、会话隔离、开关及卸载。
|
|
77
|
+
|
|
78
|
+
浏览器检查覆盖明暗主题、窄屏和短窗口、预览、关闭方式、焦点恢复及保存失败。预览采用示例数据,所有模型和外部网络请求均被禁用。
|
|
79
|
+
|
|
80
|
+
## English
|
|
81
|
+
|
|
82
|
+
Open **Cost details** beside the conversation input to see only that conversation: call-log totals, context composition, latest-call charges and turn/call details. Cross-conversation statistics remain available in Settings.
|
|
83
|
+
|
|
84
|
+
Overview, Context and Call details use separate compact views. Overview includes per-call shares across the full selection, cache token/cost comparisons and conditional model/activity charts. The seven highest-cost calls are individual slices; the rest are combined. Select a call to open its details, even on another page. Donut charts use a brighter palette with compact percentage legends. Hover or focus a slice or legend item to inspect its amount and tokens, including tiny categories. Leaving the chart or moving keyboard focus away clears the highlight. Full tables are collapsed by default. The close button stays visible while scrolling; Escape also closes the dialog. Dialogs follow DSH popup background tokens, including dsh-dream-skin opacity.
|
|
85
|
+
|
|
86
|
+
Expand **Display and integration settings → dsh-context integration** to enable or disable the optional integration or reopen its before/after preview. Supported versions are 0.62.0 and 0.66.0. Integration starts off; dismissing the initial prompt prevents repeated automatic prompts. When enabled, costs appear inside the peer's current-context card in the conversation tab, right sidebar and `/context` overlay.
|
|
87
|
+
|
|
88
|
+
Context amounts use uncached input rates as a reference; they are not itemized bills. Latest-call amounts use reported usage and configured rates, with Plan amounts shown as API equivalents. These amounts are separate and must not be added together. Unknown prices are not treated as free. Visible views react to local changes and refresh every 10 seconds; hidden views pause. No model requests or additional model API charges are introduced, and no context or ledger data is changed.
|
|
89
|
+
|
|
90
|
+
The current conversation is preloaded after a short idle delay. Reopening first displays its in-memory snapshot, isolated by conversation, filters and pricing rules, then refreshes in the background. Context measurement is deferred until its view is opened. Concurrent reads are coalesced; cache entries are bounded and refreshed in the background. Persisted session headers are shared for five seconds and live headers are merged every time. The first Settings view and local display-setting saves do not wait for unrelated balance/quota queries. Price settings reuse their last catalog snapshot during refresh.
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# 插件检查与优化记录(2026-10-10)
|
|
2
|
+
|
|
3
|
+
本轮对应 v1.8.19,检查范围包括整个插件的计费、数据保存、凭据、网络、资源释放、界面、兼容与发布包。修复集中在本次确认的加载和交互问题;通过的既有检查复用结果。
|
|
4
|
+
|
|
5
|
+
| 范围 | 检查内容与结果 |
|
|
6
|
+
|---|---|
|
|
7
|
+
| 计费与占比 | 完整验证通过峰谷、历史价格、长上下文、币种转换、API/Plan、缓存和推理用量,以及包装路由、fork 和原生搜索去重。新增逐次调用占比按完整查询范围汇总,覆盖 62 次调用跨页、未定价与 API/Plan 切换。 |
|
|
8
|
+
| 账本与恢复 | 并发写入、锁恢复、坏文件保留、账本代际、重启及主会话/子代理归属回归通过。此次界面功能只读取已有数据。 |
|
|
9
|
+
| 加载与缓存 | 当前会话提前准备统计;同一配置的旧快照先显示再刷新;概览不等待上下文测量。缓存按会话、筛选与计价配置隔离,最多 32 项,卸载后撤销。超过两分钟重新打开、刷新失败及切换会话已验证。 |
|
|
10
|
+
| 会话目录 | 并发查询共享一次持久化目录读取,短期复用 5 秒;实时会话目录每次合并,新建的实时子代理立即可见。到期后重新读取。 |
|
|
11
|
+
| 设置与额度 | 本地显示选项保存不等待无关的冷额度请求。显式刷新、查询配置变更仍等待结果。额度切源、关闭、凭据变更和卸载取消旧请求,迟到响应不能覆盖新配置。 |
|
|
12
|
+
| 凭据与网络 | 检查凭据独立存储、下发脱敏、跨域限制、拒绝携带凭据跟随重定向、有界响应读取、超时与取消。已有安全回归通过。GitHub CodeQL、Dependabot 未关闭告警均为 0;生产依赖审查无已知漏洞。 |
|
|
13
|
+
| 界面与无障碍 | 概览、上下文、调用明细分别展示;明亮配色,悬停与键盘聚焦可查看小比例项目,移开清除高亮。明暗主题、窄屏、固定关闭按钮、Esc、折叠设置与弹窗透明度验证通过。7 次调用的示例概览在 1280×900 窗口内无需滚动。 |
|
|
14
|
+
| 插件与宿主兼容 | 真实 dsh-context 0.62.0、0.66.0 的会话页、右侧栏和 `/context` 入口通过启停、关闭、切换会话及卸载验证。真实 DSH 0.2.0-rc.2 RPC 与旧源码宿主 codec 检查通过。 |
|
|
15
|
+
| 安装与发布包 | 主客户端保持在 DSH 单文件 262,144 字节限制内;新增图表保留在按需加载模块。发布包按允许清单打包,排除临时文件、账本、凭据和依赖目录。跨平台安装与静态检查由发布 PR 的 CI 验证。 |
|
|
16
|
+
|
|
17
|
+
## 性能证据的范围
|
|
18
|
+
|
|
19
|
+
- 本机现有 7 次调用会话的费用重建,在独立 Node 进程中第一次约 18 毫秒,第二次约 4 毫秒;此结果仅代表费用重建,不包含桌面 RPC、目录服务和浏览器绘制。
|
|
20
|
+
- 浏览器回归用本地合成数据及延迟 RPC,验证提前准备、缓存直接显示、跨页跳转和失败保留;外部请求全部禁止。截图同样使用示例数据。
|
|
21
|
+
- 未把上述时间声称为桌面端完整打开耗时;真实使用的延迟还取决于宿主、会话规模和其他插件。
|
|
22
|
+
|
|
23
|
+
## 仍待外部确认
|
|
24
|
+
|
|
25
|
+
[#232:打开费用设置后工作区列表消失](https://github.com/Han-1413141/dsh-cost-meter/issues/232) 已有 v1.8.11 修复及宿主搜索、凭据编辑器回归,报告者尚未确认其原环境的恢复结果,因此保持开放。
|
|
26
|
+
|
|
27
|
+
本次没有发送测试模型请求,也没有调整用户的模型、价格、余额查询配置或 dsh-context 启用状态。
|