@kidli1412/dsh-token-heatmap 0.1.4 → 0.1.5

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/README.md +1 -0
  2. package/package.json +14 -3
package/README.md CHANGED
@@ -63,6 +63,7 @@ dsh plugin --profile web remove @kidli1412/dsh-token-heatmap
63
63
 
64
64
  - **DSH**:manifest 通过 `dsh.compatibility.dshReleases` 将官方最新三个版本 `0.1.2-alpha.4`、`0.1.2-alpha.5`、`0.1.2-rc.1` 逐项声明为 `compatible`(DSH STORE 的精确逐版本兼容证据;仅范围声明不会恢复上架)。插件使用的客户端注入(`dsh-api-remotes` / `dsh-client-connection` / `dsh-client-locale` / `dsh-client-ui-conversation` / `dsh-client-ui-settings`)与 Host 服务(`settings` namespace、`webServer` 精确路由)在这条版本线上保持稳定。
65
65
  - **Node**:`^22.19.0 || >=24.0.0`(与 DSH 一致)。
66
+ - **宿主要求(dsh-market 显示)**:`engines.dsh: ^0.1.2-rc.1`,并将运行时依赖的 lockstep 宿主包声明为 `peerDependencies`(`dsh-host-webserver` / `dsh-session` / `dsh-session-persistence` / `dsh-settings` 与客户端模块 `dsh-api-remotes` / `dsh-client-connection` / `dsh-client-locale` / `dsh-client-ui-conversation` / `dsh-client-ui-settings`,均为 `^0.1.2-rc.1`);插件市场会据此显示"宿主要求"并判断与当前 DSH 是否匹配。
66
67
  - **依赖**:`@deepseek-ai/dsh-settings` 自 0.1.3 起提升为 `^0.1.2-rc.1`、`@deepseek-ai/schemastery` 提升为 `^3.18.2`,与 DSH 0.1.2 版本线对齐。npm 的 prerelease 解析规则下 `^0.1.0-rc.7` 不会解析到 `0.1.2-rc.1`(只会装 `0.1.0-rc.8`),因此较低的范围会拉到与新版 DSH 不同 train 的 settings 副本。
67
68
  - **0.1.4(DSH 0.1.2 适配)**:rc.1 起 live session 不再携带 `.events` 数组(改用 `session.seq` + `session.eventAt(seq)`,与官方 `dsh-token-meter` 相同),新会话判断从 `composerPhase === "blank"` 改为布尔 `session.blank`;`sessionPersistence` 在 rc.1 不再提供会话枚举(list/listSnapshots 已移除),持久化历史的增量刷新降级为保留已有缓存、只累计 live 会话。客户端注入模块列表同步为新架构模块(见上)。
68
69
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kidli1412/dsh-token-heatmap",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "DSH web plugin: GitHub-style daily token-usage heatmap on the new-session screen with a selectable calendar-year view, green/blue color schemes and a display switch (设置 → 插件 → 插件配置), plus today / this-month / all-time totals.",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -17,9 +17,19 @@
17
17
  "LICENSE"
18
18
  ],
19
19
  "dependencies": {
20
- "@deepseek-ai/dsh-settings": "^0.1.2-rc.1",
21
20
  "@deepseek-ai/schemastery": "^3.18.2"
22
21
  },
22
+ "peerDependencies": {
23
+ "@deepseek-ai/dsh-api-remotes": "^0.1.2-rc.1",
24
+ "@deepseek-ai/dsh-client-connection": "^0.1.2-rc.1",
25
+ "@deepseek-ai/dsh-client-locale": "^0.1.2-rc.1",
26
+ "@deepseek-ai/dsh-client-ui-conversation": "^0.1.2-rc.1",
27
+ "@deepseek-ai/dsh-client-ui-settings": "^0.1.2-rc.1",
28
+ "@deepseek-ai/dsh-host-webserver": "^0.1.2-rc.1",
29
+ "@deepseek-ai/dsh-session": "^0.1.2-rc.1",
30
+ "@deepseek-ai/dsh-session-persistence": "^0.1.2-rc.1",
31
+ "@deepseek-ai/dsh-settings": "^0.1.2-rc.1"
32
+ },
23
33
  "dsh": {
24
34
  "bundle": {
25
35
  "patch": "./cordis.patch.yml"
@@ -49,7 +59,8 @@
49
59
  },
50
60
  "license": "MIT",
51
61
  "engines": {
52
- "node": "^22.19.0 || >=24.0.0"
62
+ "node": "^22.19.0 || >=24.0.0",
63
+ "dsh": "^0.1.2-rc.1"
53
64
  },
54
65
  "repository": {
55
66
  "type": "git",