@qianhaoq/dsh-dota2ai 0.2.3 → 0.2.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 (4) hide show
  1. package/README.md +55 -5
  2. package/lib/client.js +445 -106
  3. package/lib/index.js +1237 -163
  4. package/package.json +1 -1
package/README.md CHANGED
@@ -11,13 +11,39 @@ A native [DSH](https://www.npmjs.com/package/@deepseek-ai/dsh) (DeepSeek Harness
11
11
 
12
12
  ## Install
13
13
 
14
+ ### Desktop App (Recommended — no terminal needed)
15
+
16
+ 1. Download and install the **DeepSeek Harness** desktop app (macOS / Windows) from **[https://www.deepseek.com/harness/](https://www.deepseek.com/harness/)**, open it, and enter your DeepSeek API Key.
17
+ 2. Paste this one sentence into a chat in DeepSeek Harness and press Enter:
18
+
19
+ ```text
20
+ Install the dota2.ai Dota 2 replay coach plugin @qianhaoq/dsh-dota2ai into my active desktop profile, then tell me how to open dota2.ai in the left sidebar.
21
+ ```
22
+
23
+ 3. Reload if prompted, then click **dota2.ai** in the left sidebar.
24
+
25
+ ### Update
26
+
27
+ - **Desktop App**: paste into a chat in DeepSeek Harness and press Enter:
28
+
29
+ ```text
30
+ Update my @qianhaoq/dsh-dota2ai plugin to the latest version and reload if needed.
31
+ ```
32
+
33
+ - **CLI (`dsh web`)**:
34
+
35
+ ```sh
36
+ dsh plugin --profile web update @qianhaoq/dsh-dota2ai
37
+ ```
38
+
39
+ ### CLI / Linux (`dsh web`)
40
+
14
41
  Needs Node 24.9 or newer and DSH **0.2.x (≥ 0.2.1-rc.3)**: verified on 0.2.1-rc.3 and 0.2.2-rc.5, which is
15
42
  npm's `latest`. DSH installs plugins with pnpm, so pnpm must be on your PATH.
16
43
 
17
44
  ```sh
18
45
  npm install -g pnpm @deepseek-ai/dsh@0.2.2-rc.5
19
- curl -LO https://github.com/qianhaoq/dota2.ai/releases/download/dsh-v0.2.3/qianhaoq-dsh-dota2ai-0.2.3.tgz
20
- dsh plugin --profile web add ./qianhaoq-dsh-dota2ai-0.2.3.tgz
46
+ dsh plugin --profile web add @qianhaoq/dsh-dota2ai
21
47
  DEEPSEEK_API_KEY=sk-... dsh web # or start plain `dsh web` and enter the key in DSH's own API-key dialog
22
48
  ```
23
49
 
@@ -96,12 +122,36 @@ DEEPSEEK_API_KEY=… node packages/dsh/scripts/live-review.mjs packages/dsh/dist
96
122
  - **由你的 DSH 宿主模型驱动(`ctx.llm`)**:录像深度调查复盘(`runDeepReview` + `verifyReview` 事实核查)、录像查证追问(`runChat` + `verifyText`)与版本顾问均在本机调用你在 DSH 配置的模型——默认跟随 DSH 当前模型,同时保留页面内模型切换器,支持同一局用不同模型对比复盘。
97
123
  - **会话工具与卡片联动**:7 个 `dota2ai_*` 工具与独立页面共享本地 `$DSH_HOME/dota2ai` 缓存,聊天内的工具卡片可一键跳转到对应复盘页。
98
124
 
99
- **安装**(需要 Node ≥ 24.9,DSH **0.2.x (≥ 0.2.1-rc.3)**,npm 上的 `latest` 是 0.2.2-rc.5;DSH 用 pnpm 装插件):
125
+ **桌面客户端傻瓜式安装(推荐,免命令行)**:
126
+
127
+ 1. 前往 **[https://www.deepseek.com/harness/](https://www.deepseek.com/harness/)** 下载并安装 DeepSeek Harness 桌面客户端(macOS / Windows),打开后填入你的 DeepSeek API Key。
128
+ 2. 直接把下面这句话粘贴到桌面客户端的聊天框发送:
129
+
130
+ ```text
131
+ 帮我安装 dota2.ai 的 Dota 2 复盘插件 @qianhaoq/dsh-dota2ai 到当前桌面端 profile,装好后告诉我怎么在左侧栏打开 dota2.ai。
132
+ ```
133
+
134
+ 3. 按提示刷新或重启后,点左侧栏 **dota2.ai** 即可使用。
135
+
136
+ **更新插件**:
137
+
138
+ - **桌面客户端**:直接把下面这句话粘贴到聊天框发送:
139
+
140
+ ```text
141
+ 帮我把 @qianhaoq/dsh-dota2ai 插件更新到最新版本,如需刷新或重启请提示我。
142
+ ```
143
+
144
+ - **命令行(`dsh web`)**:
145
+
146
+ ```sh
147
+ dsh plugin --profile web update @qianhaoq/dsh-dota2ai
148
+ ```
149
+
150
+ **命令行安装(Linux / `dsh web`)**(需要 Node ≥ 24.9,DSH **0.2.x (≥ 0.2.1-rc.3)**,npm 上的 `latest` 是 0.2.2-rc.5;DSH 用 pnpm 装插件):
100
151
 
101
152
  ```sh
102
153
  npm install -g pnpm @deepseek-ai/dsh@0.2.2-rc.5
103
- curl -LO https://github.com/qianhaoq/dota2.ai/releases/download/dsh-v0.2.3/qianhaoq-dsh-dota2ai-0.2.3.tgz
104
- dsh plugin --profile web add ./qianhaoq-dsh-dota2ai-0.2.3.tgz
154
+ dsh plugin --profile web add @qianhaoq/dsh-dota2ai
105
155
  DEEPSEEK_API_KEY=sk-... dsh web # 或者直接 dsh web,在 DSH 弹出的 API Key 窗口里填
106
156
  ```
107
157