dsh-yanfield 0.1.9 → 0.1.11
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 +5 -4
- package/README.md +5 -4
- package/dist/client.js +96 -94
- package/dist/host.js +843 -124
- package/package.json +1 -1
package/README.en.md
CHANGED
|
@@ -73,9 +73,10 @@ Where the model comes from (`Settings → Model services`):
|
|
|
73
73
|
| --- | --- | --- |
|
|
74
74
|
| DSH account sign-in | Signed in to DeepSeek inside Harness | Recommended, zero setup, balance readable |
|
|
75
75
|
| Official API key | `DEEPSEEK_API_KEY` | Pay per token; can also be stored on Harness' model page |
|
|
76
|
+
| Custom DSH model | Configure the API under Settings → Models in DSH | Connects to LM Studio, vLLM, or llama.cpp |
|
|
76
77
|
| Offline demo | Nothing | Template text only, for trying the UI; cannot really edit |
|
|
77
78
|
|
|
78
|
-
|
|
79
|
+
Pick a model in Yanfield's Model services or in the writing assistant. Models are grouped by DSH route.
|
|
79
80
|
|
|
80
81
|
## Features
|
|
81
82
|
|
|
@@ -108,7 +109,7 @@ Both real routes can be switched in Settings; an unavailable route explains why
|
|
|
108
109
|
|
|
109
110
|
## AI and cost
|
|
110
111
|
|
|
111
|
-
- **Models** —
|
|
112
|
+
- **Models** — models from all available DSH routes appear in both `Settings → Model services` and the writing assistant. See [AI and cost](docs/en/ai-and-cost.md) for LM Studio, vLLM, and llama.cpp setup.
|
|
112
113
|
- **Catalog** — `deepseek-flash` (DeepSeek-V4.1-Flash, text and images) and `deepseek-v4-pro` (DeepSeek-V4-Pro, text only), roughly 1M tokens of context each; new models registered in Harness are synced automatically.
|
|
113
114
|
- **Balance** — the **Balance** button under the composer queries the signed-in DSH account, no key needed.
|
|
114
115
|
- **Cost** — the footer shows *today's* cumulative estimate, not a single task. Unit prices come from a built-in DeepSeek price table and switch between peak and off-peak by Beijing time (peak: weekdays 09:00–12:00 and 14:00–18:00; everything else, including weekends and public holidays, is off-peak at half price). **Estimates only — the DeepSeek bill is authoritative.**
|
|
@@ -143,7 +144,7 @@ Make sure you fully quit and restarted Harness (a page refresh is not enough), t
|
|
|
143
144
|
<details>
|
|
144
145
|
<summary>"no API key" / model unavailable</summary>
|
|
145
146
|
|
|
146
|
-
The
|
|
147
|
+
The selected model uses the official API key route, which needs a credential. Pick a model in the DeepSeek account group in Yanfield or enter the API key under Settings → Models in DSH.
|
|
147
148
|
</details>
|
|
148
149
|
|
|
149
150
|
<details>
|
|
@@ -203,7 +204,7 @@ See [development](docs/en/development.md) for the build chain and local testing,
|
|
|
203
204
|
|
|
204
205
|
## Credits
|
|
205
206
|
|
|
206
|
-
The interface and domain logic come from [Yanfield](https://github.com/ZzimaR/Yanfield). This
|
|
207
|
+
The interface and domain logic come from [Yanfield](https://github.com/ZzimaR/Yanfield). This DeepSeek Harness plugin edition uses the model services and light or dark theme configured in Harness.
|
|
207
208
|
|
|
208
209
|
## License
|
|
209
210
|
|
package/README.md
CHANGED
|
@@ -74,9 +74,10 @@ dsh plugin --profile desktop add dsh-yanfield
|
|
|
74
74
|
| --- | --- | --- |
|
|
75
75
|
| DSH 账号登录 | 在 Harness 里登录 DeepSeek | 推荐,零配置;余额可直接查 |
|
|
76
76
|
| 官方 API Key | `DEEPSEEK_API_KEY` | 按量计费;也可在 DSH 的模型服务页填写 |
|
|
77
|
+
| DSH 自定义模型 | 在 DSH 的「设置 → 模型」中配置 API | 可接入 LM Studio、vLLM 或 llama.cpp |
|
|
77
78
|
| 离线演示 | 不需要 | 只有模板文本,用于试用界面,不能真正改稿 |
|
|
78
79
|
|
|
79
|
-
|
|
80
|
+
在砚田的「模型服务」或写作助手中直接选择模型。模型按 DSH 路由分组。
|
|
80
81
|
|
|
81
82
|
## 功能
|
|
82
83
|
|
|
@@ -110,7 +111,7 @@ dsh plugin --profile desktop add dsh-yanfield
|
|
|
110
111
|
|
|
111
112
|
## AI 与费用
|
|
112
113
|
|
|
113
|
-
-
|
|
114
|
+
- **模型**:`设置 → 模型服务` 和写作助手的模型列表同时显示 DSH 各路由中的可用模型。LM Studio、vLLM 和 llama.cpp 的配置方式见 [AI 与费用](docs/ai-and-cost.md)。
|
|
114
115
|
- **模型目录**:`deepseek-flash`(DeepSeek-V4.1-Flash,支持文本与图像)与 `deepseek-v4-pro`(DeepSeek-V4-Pro,纯文本),上下文各约 100 万 token;Harness 新增模型时会自动同步进选择器。
|
|
115
116
|
- **余额**:输入框底部的「余额」直接查 DSH 已登录账号的余额,不需要填 Key。
|
|
116
117
|
- **费用**:底部「今日 N tok · 预估 ¥X」是**今日累计**的估算,不是单次任务;单价由插件内置的 DeepSeek 官方价目表提供,按北京时间自动区分高峰与空闲(高峰为工作日 9:00–12:00、14:00–18:00,其余时段与法定节假日按空闲计,空闲价是高峰价的一半)。**估算仅供参考,账单以 DeepSeek 官方为准。**
|
|
@@ -145,7 +146,7 @@ dsh plugin --profile desktop add dsh-yanfield
|
|
|
145
146
|
<details>
|
|
146
147
|
<summary>发消息报 no API key / 模型不可用</summary>
|
|
147
148
|
|
|
148
|
-
|
|
149
|
+
当前选的是「DeepSeek 官方 API Key」路由下的模型,但还没有填 Key。在砚田选择「DeepSeek 账号登录」分组下的模型,或在 DSH 的「设置 → 模型」填写 API Key。
|
|
149
150
|
</details>
|
|
150
151
|
|
|
151
152
|
<details>
|
|
@@ -205,7 +206,7 @@ English docs: [README.en.md](README.en.md) · [docs/en/](docs/en/features.md)
|
|
|
205
206
|
|
|
206
207
|
## 致谢
|
|
207
208
|
|
|
208
|
-
界面与领域逻辑来自 [砚田 Yanfield](https://github.com/ZzimaR/Yanfield)。本仓库是它的 DeepSeek Harness
|
|
209
|
+
界面与领域逻辑来自 [砚田 Yanfield](https://github.com/ZzimaR/Yanfield)。本仓库是它的 DeepSeek Harness 插件化版本,复用 Harness 的模型服务和明暗主题。
|
|
209
210
|
|
|
210
211
|
## 许可
|
|
211
212
|
|