@lengduan/dsh-usage-stats 0.1.1 → 0.1.2

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.
Files changed (2) hide show
  1. package/lib/client.js +3 -0
  2. package/package.json +1 -1
package/lib/client.js CHANGED
@@ -27,6 +27,7 @@ window.__ModuleLoader__.load({
27
27
  "总 Token": "Total tokens",
28
28
  "内部调用自插件安装之日起统计,无法回溯历史": "Internal calls are counted from install time; history cannot be backfilled",
29
29
  "账本": "Ledger", "条记录": "records", "会话": "sessions",
30
+ "仅统计当前 DSH 实例(本 home);同一账号在其他实例(独立 DSH_HOME)的消耗不在此列。": "Counts this DSH instance (current home) only; usage under the same account in other instances (separate DSH_HOME) is not included.",
30
31
  };
31
32
  let LANG = (() => {
32
33
  try { return String(navigator.language || "en").toLowerCase().startsWith("zh") ? "zh" : "en"; } catch (e) { return "zh"; }
@@ -225,6 +226,8 @@ window.__ModuleLoader__.load({
225
226
  ? el("div", { style: st.hint }, t("内部调用自插件安装之日起统计,无法回溯历史"))
226
227
  : null,
227
228
 
229
+ el("div", { style: st.hint }, t("仅统计当前 DSH 实例(本 home);同一账号在其他实例(独立 DSH_HOME)的消耗不在此列。")),
230
+
228
231
  state.error
229
232
  ? el("div", { style: st.err }, state.error)
230
233
  : null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lengduan/dsh-usage-stats",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "DSH 用量统计插件:SQLite 本地账本,按天 / 按模型统计输入、输出、缓存命中、总计;区分对话调用与内部调用,只统计用量不做费用计算。",
5
5
  "keywords": [
6
6
  "dsh-plugin",