dsh-watcher 0.6.0 → 0.8.0
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.en.md +44 -13
- package/README.md +44 -13
- package/lib/client.js +1110 -901
- package/lib/client.js.map +1 -1
- package/lib/dsh-watcher.js +53 -5
- package/lib/types/client/Insights.d.ts +18 -0
- package/lib/types/client/SidebarTab.d.ts +52 -0
- package/lib/types/client/TimingPanel.d.ts +7 -0
- package/lib/types/client/Watcher.d.ts +56 -0
- package/lib/types/client/disclosure-depth.d.ts +22 -0
- package/lib/types/client/history-loader.d.ts +23 -0
- package/lib/types/client/index.d.ts +9 -0
- package/lib/types/client/model-trace-definition.d.ts +11 -0
- package/lib/types/client/step-timeline.d.ts +15 -0
- package/lib/types/dsh-watcher.d.ts +6 -0
- package/lib/types/hub/aggregation.d.ts +40 -0
- package/lib/types/hub/follow.d.ts +29 -0
- package/lib/types/hub/history.d.ts +30 -0
- package/lib/types/hub/overview.d.ts +10 -0
- package/lib/types/hub/watcher.d.ts +4 -0
- package/lib/types/insights/projection.d.ts +283 -0
- package/lib/types/observation/fold.d.ts +207 -0
- package/lib/types/observation/model-trace.d.ts +96 -0
- package/lib/types/observation/performance.d.ts +67 -0
- package/package.json +25 -24
package/README.en.md
CHANGED
|
@@ -2,27 +2,35 @@
|
|
|
2
2
|
|
|
3
3
|
# Watcher
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
[](https://www.npmjs.com/package/dsh-watcher)
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
## Install / Update
|
|
8
|
+
|
|
9
|
+
### Install on DeepSeek Harness web or desktop
|
|
10
|
+
|
|
11
|
+
Fill `dsh-watcher` in the **Add plugin** wizard's search box, and click **Install**:
|
|
12
|
+
|
|
13
|
+

|
|
10
14
|
|
|
11
|
-
|
|
15
|
+
### Install with `dsh` cli
|
|
16
|
+
|
|
17
|
+
Install [`dsh-watcher`](https://www.npmjs.com/package/dsh-watcher) plugin from [DeepSeek Harness](https://www.npmjs.com/package/@deepseek-ai/dsh):
|
|
12
18
|
|
|
13
19
|
```sh
|
|
14
20
|
dsh plugin --profile web add dsh-watcher
|
|
15
21
|
```
|
|
16
22
|
|
|
17
|
-
|
|
23
|
+
Or update the `dsh-watcher` plugin:
|
|
18
24
|
|
|
19
25
|
```sh
|
|
20
|
-
dsh plugin --profile web
|
|
26
|
+
dsh plugin --profile web update dsh-watcher@latest
|
|
21
27
|
```
|
|
22
28
|
|
|
23
|
-
|
|
29
|
+
Then start the web UI with `dsh web`. No build step, no restart.
|
|
30
|
+
|
|
31
|
+
This official CLI command writes only the `web` profile; it cannot modify the Desktop App profile — use the in-app **Add plugin** wizard above for desktop. This release commits `lib/`; normal use needs no clone, build, or DSHX installation.
|
|
24
32
|
|
|
25
|
-
|
|
33
|
+
DeepSeek Harness **0.2.0-rc.2** (`@deepseek-ai/dsh@0.2.0-rc.2`, `dsh-v0.2.0-rc.2`). The `@deepseek-ai/dsh-*` peer range is `>=0.2.0-rc.1 <0.2.1`: it accepts **0.2.0-rc.2** and stable **0.2.0**, rejects alphas, and rejects **0.1.7-rc.2**. Node `^22.19.0` or `>=24`.
|
|
26
34
|
|
|
27
35
|
A read-only plugin for DeepSeek Harness Web. Open the eye in the session header. A Session becomes a foldable work path: how many steps ran, how many tools fired, how long it took. Open a step for parallel branches, a tool result, or a reasoning row that stays folded until you ask.
|
|
28
36
|
|
|
@@ -40,26 +48,49 @@ It does not inject messages, invent hidden chain-of-thought, or replace the offi
|
|
|
40
48
|
|
|
41
49
|
Grouped view only stacks what it can prove. Two different bash calls stay apart. The model stage shows only provider-visible reasoning already written into the Session. If nothing was recorded, it says so.
|
|
42
50
|
|
|
43
|
-
|
|
51
|
+
### Advanced installs
|
|
52
|
+
|
|
53
|
+
Pin to a GitHub tag:
|
|
54
|
+
|
|
55
|
+
```sh
|
|
56
|
+
dsh plugin --profile web add github:aa2246740/dsh-watcher#v0.8.0
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
From a clone (development/local testing):
|
|
44
60
|
|
|
45
61
|
```sh
|
|
46
62
|
git clone https://github.com/aa2246740/dsh-watcher.git
|
|
47
63
|
dsh plugin --profile web add ./dsh-watcher
|
|
48
64
|
```
|
|
49
65
|
|
|
50
|
-
That path also needs pnpm, then
|
|
66
|
+
That path also needs pnpm, then reopen that Web Host and reload the page.
|
|
51
67
|
|
|
52
68
|
```sh
|
|
53
69
|
dsh plugin --profile web remove dsh-watcher
|
|
54
70
|
```
|
|
55
71
|
|
|
56
|
-
|
|
72
|
+
The public CLI manages `web` only; use the in-app “Add plugin” entry above for the Desktop App.
|
|
57
73
|
|
|
58
74
|
The settings summary and session HUD show **Estimated cost** (not “total value”) next to total tokens. Input / output / cache buckets are priced from `pricing/models.yaml`. A missing row is **Unknown**, never $0. A partial estimate keeps the known dollar in the main number and footnotes **Some models unpriced**. It is an estimate, not a bill. The default table covers mainstream DeepSeek, MiniMax, OpenAI, Anthropic, Gemini, Grok, GLM, and Qwen rows and is static (no live fetch). Override it in Watcher settings (`localStorage` key `dsh-watcher:pricing-override:v1`). PRs to the default table are welcome.
|
|
59
75
|
|
|
60
76
|
The interaction contract lives in [DESIGN.md](./DESIGN.md). MIT.
|
|
61
77
|
|
|
62
|
-
## What's new in 0.
|
|
78
|
+
## What's new in 0.8.0
|
|
79
|
+
|
|
80
|
+
- The daily chart books each token settlement on the local calendar day. A session total is no longer piled onto the last active day. Version 1 caches keep the old display until that session is refolded into version 2.
|
|
81
|
+
- With dsh-better-sidebar installed, the right sidebar gains a Watcher page for the work picture. Without it, the header button and the settings section stay as they are. The sidebar package is not a dependency.
|
|
82
|
+
|
|
83
|
+
## 0.7.0
|
|
84
|
+
|
|
85
|
+
- Targets official DeepSeek Harness **0.2.0-rc.2** (`dsh-v0.2.0-rc.2`, SHA `639ed015397290b3745d163aafe02ffee4aa3f84`). `@deepseek-ai/dsh-*` peers are `>=0.2.0-rc.1 <0.2.1`: the range accepts `0.2.0-rc.2` and stable `0.2.0`, rejects alphas, and rejects `0.1.7-rc.2`.
|
|
86
|
+
- Icons stay `IconChevronRightOutlineRegular`, `IconRefreshOutlineRegular`, `IconCheckOutlineRegular`, and `IconCopyOutlineRegular`. Those four names are still exported by primitives at `dsh-v0.2.0-rc.2`. The size-suffixed names are still absent.
|
|
87
|
+
|
|
88
|
+
## 0.6.1
|
|
89
|
+
|
|
90
|
+
- Checked on official DeepSeek Harness **0.1.7-rc.2**. `@deepseek-ai/dsh-*` peers stay `>=0.1.7-rc.1 <0.1.8`, so install accepts `0.1.7-rc.1` and `0.1.7-rc.2` and rejects `0.1.7-alpha.*`.
|
|
91
|
+
- Icons stay `IconChevronRightOutlineRegular`, `IconRefreshOutlineRegular`, `IconCheckOutlineRegular`, and `IconCopyOutlineRegular`. rc.2 still does not export the size-suffixed names.
|
|
92
|
+
|
|
93
|
+
## 0.6.0
|
|
63
94
|
|
|
64
95
|
- Targets official DeepSeek Harness **0.1.7-rc.1**. `@deepseek-ai/dsh-*` peers are `>=0.1.7-rc.1 <0.1.8`, so install accepts `0.1.7-rc.1` and rejects `0.1.7-alpha.*`.
|
|
65
96
|
- Icons are `IconChevronRightOutlineRegular`, `IconRefreshOutlineRegular`, `IconCheckOutlineRegular`, and `IconCopyOutlineRegular`. rc.1 removed the size-suffixed exports and ships no aliases.
|
package/README.md
CHANGED
|
@@ -2,27 +2,35 @@
|
|
|
2
2
|
|
|
3
3
|
# Watcher
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
[](https://www.npmjs.com/package/dsh-watcher)
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
## 安装 / 更新
|
|
8
|
+
|
|
9
|
+
### 在 DeepSeek Harness 网页版或桌面端安装
|
|
10
|
+
|
|
11
|
+
在 **添加插件** 向导的搜索框中填入 `dsh-watcher`,点击 **Install**:
|
|
12
|
+
|
|
13
|
+

|
|
10
14
|
|
|
11
|
-
|
|
15
|
+
### 使用 `dsh` 命令行安装
|
|
16
|
+
|
|
17
|
+
从 [DeepSeek Harness](https://www.npmjs.com/package/@deepseek-ai/dsh) 安装 [`dsh-watcher`](https://www.npmjs.com/package/dsh-watcher) 插件:
|
|
12
18
|
|
|
13
19
|
```sh
|
|
14
20
|
dsh plugin --profile web add dsh-watcher
|
|
15
21
|
```
|
|
16
22
|
|
|
17
|
-
|
|
23
|
+
更新 `dsh-watcher` 插件:
|
|
18
24
|
|
|
19
25
|
```sh
|
|
20
|
-
dsh plugin --profile web
|
|
26
|
+
dsh plugin --profile web update dsh-watcher@latest
|
|
21
27
|
```
|
|
22
28
|
|
|
23
|
-
|
|
29
|
+
然后用 `dsh web` 启动 Web 界面。无需构建、无需重启。
|
|
30
|
+
|
|
31
|
+
这条官方 CLI 命令只写入 `web` profile,不能修改 Desktop App 的 profile;桌面端请使用上面的应用内“添加插件”向导。本发布已提交 `lib/`;普通使用不需要 clone、构建或安装 DSHX。
|
|
24
32
|
|
|
25
|
-
|
|
33
|
+
需要 DeepSeek Harness **0.2.0-rc.2**(`@deepseek-ai/dsh@0.2.0-rc.2`,`dsh-v0.2.0-rc.2`)。`@deepseek-ai/dsh-*` 的 peer 范围是 `>=0.2.0-rc.1 <0.2.1`:接受 **0.2.0-rc.2** 和稳定版 **0.2.0**,拒绝 alpha,也拒绝 **0.1.7-rc.2**。Node `^22.19.0` 或 `>=24`。
|
|
26
34
|
|
|
27
35
|
DeepSeek Harness Web 的只读插件。点会话标题栏里的眼睛,把 Session 收成一张能折叠的工作路径:这轮走了几步、跑了几次、花了多久;再展开某一步看并行分支、工具结果,或一条默认折着的推理记录。
|
|
28
36
|
|
|
@@ -40,26 +48,49 @@ DeepSeek Harness Web 的只读插件。点会话标题栏里的眼睛,把 Sess
|
|
|
40
48
|
|
|
41
49
|
归类只叠能证明相同的调用。两条不同的 bash 不会被捏在一起。模型阶段只显示供应商已经写进 Session 的可见 reasoning;没有记录就写未记录。
|
|
42
50
|
|
|
43
|
-
|
|
51
|
+
### 高级安装方式
|
|
52
|
+
|
|
53
|
+
固定到某个 GitHub 标签:
|
|
54
|
+
|
|
55
|
+
```sh
|
|
56
|
+
dsh plugin --profile web add github:aa2246740/dsh-watcher#v0.8.0
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
已经 clone 过的目录也可以(开发/本地测试):
|
|
44
60
|
|
|
45
61
|
```sh
|
|
46
62
|
git clone https://github.com/aa2246740/dsh-watcher.git
|
|
47
63
|
dsh plugin --profile web add ./dsh-watcher
|
|
48
64
|
```
|
|
49
65
|
|
|
50
|
-
同样需要 pnpm
|
|
66
|
+
同样需要 pnpm,然后重新打开该 Web Host 并刷新页面。
|
|
51
67
|
|
|
52
68
|
```sh
|
|
53
69
|
dsh plugin --profile web remove dsh-watcher
|
|
54
70
|
```
|
|
55
71
|
|
|
56
|
-
|
|
72
|
+
官方 CLI 只管理 `web` profile;Desktop App 请使用上面的应用内“添加插件”入口。
|
|
57
73
|
|
|
58
74
|
设置页和会话 HUD 的 Token 总数旁有 **估算费用**(不是「总价值」)。按模型的输入 / 输出 / 缓存桶对照 `pricing/models.yaml` 计价;缺行显示 **未知**,不会当成 $0。部分已知时主数字只显示已标价金额,未标价写在脚注。这是估算,不是账单。默认表含 DeepSeek、MiniMax、OpenAI、Anthropic、Gemini、Grok、GLM、Qwen 主流行,不联网。设置里打开的是当前生效价格表;保存只把改动过的行写入 `localStorage` 键 `dsh-watcher:pricing-override:v1`。欢迎对默认表提 PR。
|
|
59
75
|
|
|
60
76
|
交互约定在 [DESIGN.md](./DESIGN.md)。MIT。
|
|
61
77
|
|
|
62
|
-
## 本次更新(0.
|
|
78
|
+
## 本次更新(0.8.0)
|
|
79
|
+
|
|
80
|
+
- 日图按每次结算的本地日历日记 token,不再把整段会话堆到最后活跃日。旧的 version 1 缓存仍按原来的方式显示,会话重算后变成 version 2。
|
|
81
|
+
- 装了 dsh-better-sidebar 时,右侧栏多一个 Watcher 页,内容是工作图。没装时,会话头按钮和设置页不变。侧栏不是依赖。
|
|
82
|
+
|
|
83
|
+
## 0.7.0
|
|
84
|
+
|
|
85
|
+
- 对齐官方 DeepSeek Harness **0.2.0-rc.2**(`dsh-v0.2.0-rc.2`,SHA `639ed015397290b3745d163aafe02ffee4aa3f84`)。`@deepseek-ai/dsh-*` 的 peer 是 `>=0.2.0-rc.1 <0.2.1`:接受 `0.2.0-rc.2` 和稳定版 `0.2.0`,拒绝 alpha,也拒绝 `0.1.7-rc.2`。
|
|
86
|
+
- 图标仍是 `IconChevronRightOutlineRegular`、`IconRefreshOutlineRegular`、`IconCheckOutlineRegular`、`IconCopyOutlineRegular`。这四个名字在 `dsh-v0.2.0-rc.2` 的 primitives 里还在。带尺寸后缀的旧导出仍然没有。
|
|
87
|
+
|
|
88
|
+
## 0.6.1
|
|
89
|
+
|
|
90
|
+
- 在官方 DeepSeek Harness **0.1.7-rc.2** 上核对通过。`@deepseek-ai/dsh-*` 的 peer 仍是 `>=0.1.7-rc.1 <0.1.8`,安装期接受 `0.1.7-rc.1` 和 `0.1.7-rc.2`,不接受 `0.1.7-alpha.*`。
|
|
91
|
+
- 图标仍是 `IconChevronRightOutlineRegular`、`IconRefreshOutlineRegular`、`IconCheckOutlineRegular`、`IconCopyOutlineRegular`。rc.2 同样没有带尺寸后缀的旧导出。
|
|
92
|
+
|
|
93
|
+
## 0.6.0
|
|
63
94
|
|
|
64
95
|
- 对齐官方 DeepSeek Harness **0.1.7-rc.1**。`@deepseek-ai/dsh-*` 的 peer 改为 `>=0.1.7-rc.1 <0.1.8`,安装期接受 `0.1.7-rc.1`,不接受 `0.1.7-alpha.*`。
|
|
65
96
|
- 图标改为 `IconChevronRightOutlineRegular`、`IconRefreshOutlineRegular`、`IconCheckOutlineRegular`、`IconCopyOutlineRegular`。rc.1 删掉了带尺寸后缀的旧导出,没有别名。
|