dsh-yanfield 0.1.1 → 0.1.3
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 +28 -26
- package/README.md +11 -7
- package/dist/client.js +277 -102
- package/dist/host.js +2890 -74
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +12 -6
package/README.en.md
CHANGED
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
Manuscript, outline, world notes and an AI assistant on one desk.<br>
|
|
10
10
|
Your book stays local, the model is the DeepSeek you already configured, and every AI edit is reviewed by you.
|
|
11
11
|
|
|
12
|
-
[](#install)
|
|
13
13
|
[](https://nodejs.org)
|
|
14
|
-
[](https://github.com/ZzimaR/dsh-yanfield/releases/latest)
|
|
15
15
|
[](LICENSE)
|
|
16
16
|
|
|
17
17
|
[Install](#install) · [First run](#first-run) · [Features](#features) · [AI and cost](#ai-and-cost) · [Screenshots](#screenshots) · [Data and backup](#data-and-backup) · [Troubleshooting](#troubleshooting) · [Development](#development) · [中文](README.md)
|
|
@@ -19,47 +19,50 @@ Your book stays local, the model is the DeepSeek you already configured, and eve
|
|
|
19
19
|
</div>
|
|
20
20
|
|
|
21
21
|
> [!NOTE]
|
|
22
|
-
> Yanfield is still being polished; UI and behavior will keep changing. Bugs and ideas are welcome in [Issues](https://github.com/ZzimaR/dsh-yanfield/issues) — the Bug report / Feature request forms (with environment and steps) get fixed faster. Pull requests are welcome too.
|
|
22
|
+
> Yanfield is still being polished; UI and behavior will keep changing. Bugs and ideas are welcome in [Issues](https://github.com/ZzimaR/dsh-yanfield/issues/new/choose) — the Bug report / Feature request forms (with environment and steps) get fixed faster. Pull requests are welcome too.
|
|
23
23
|
|
|
24
|
-
[](docs/screenshots/en-editor.png)
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
The three-pane writing desk in DeepSeek Harness — chapter tree, prose, and the AI assistant side by side. All UI labels in these screenshots are English; the manuscripts shown are the bundled Chinese demo books (create a new book to write in English).
|
|
27
27
|
|
|
28
28
|
<p align="center"><sub>Three-column writing desk · sample manuscript · click for full size</sub></p>
|
|
29
29
|
|
|
30
30
|
## What this plugin is
|
|
31
31
|
|
|
32
|
-
Yanfield is a **DeepSeek Harness plugin**, not a standalone app. After installation a
|
|
32
|
+
Yanfield is a **DeepSeek Harness plugin**, not a standalone app. After installation a **Yanfield** entry (「砚田」 when the interface is Chinese) appears in the Harness sidebar; opening it gives you a long-form writing desk rendered inside the panel.
|
|
33
33
|
|
|
34
34
|
- **Writing desk** — novels / volumes / chapters, three columns (outline · prose · AI), autosave, word counts, focus mode, adjustable typography, and two themes (rice-paper light, night-sail dark).
|
|
35
35
|
- **Notes at hand** — chapter blueprints, characters, world settings, foreshadowing and story archives live in the left rail, edited in place without leaving the page.
|
|
36
36
|
- **AI proposes, you decide** — the assistant reads your notes, works in several steps, and proposes prose and note changes; prose is reviewed paragraph by paragraph (green insertions, red deletions) and only what you keep is written into the manuscript.
|
|
37
|
-
- **Local first** — manuscript, notes and conversations live in a local SQLite file; the model comes from the DeepSeek service you already configured in Harness, so there is no second API key to manage.
|
|
37
|
+
- **Local first** — manuscript, notes and conversations live in a local SQLite file; the model comes from the DeepSeek service you already configured in Harness, so there is no second API key to manage. The bundled sample books are Chinese demo manuscripts, included to show the workflow; create a new book to write in English.
|
|
38
|
+
- **English and Chinese** — the interface follows the Harness language (`Settings → General → Language`): the sidebar entry and every screen switch between 砚田 and Yanfield. Manuscripts are never translated, and the AI replies in the language you write in.
|
|
38
39
|
|
|
39
40
|
## Install
|
|
40
41
|
|
|
41
|
-
Requires DeepSeek Harness `>=0.2.1-rc.5
|
|
42
|
+
Requires DeepSeek Harness `>=0.2.1-rc.5`. Choose the command for your profile to install the prebuilt package from [npm](https://www.npmjs.com/package/dsh-yanfield).
|
|
42
43
|
|
|
43
44
|
```bash
|
|
44
45
|
# Web
|
|
45
|
-
dsh plugin --profile web add
|
|
46
|
+
dsh plugin --profile web add dsh-yanfield
|
|
46
47
|
|
|
47
48
|
# Desktop
|
|
48
|
-
dsh plugin --profile desktop add
|
|
49
|
+
dsh plugin --profile desktop add dsh-yanfield
|
|
49
50
|
```
|
|
50
51
|
|
|
51
52
|
Then **quit Harness completely and start it again** — a page refresh is not enough, because the plugin ships host-side code.
|
|
52
53
|
|
|
54
|
+
For offline installation, download `dsh-yanfield.tgz` from [GitHub Releases](https://github.com/ZzimaR/dsh-yanfield/releases/latest) and run `dsh plugin --profile <profile> add "<local archive path>"`.
|
|
55
|
+
|
|
53
56
|
How to confirm it worked:
|
|
54
57
|
|
|
55
|
-
1. a
|
|
56
|
-
2. Check the version and build time in
|
|
58
|
+
1. a **Yanfield** entry appears in the left sidebar;
|
|
59
|
+
2. Check the version and build time in `Yanfield → Settings → About`. The build time comes from the bundle.
|
|
57
60
|
|
|
58
|
-
To update
|
|
61
|
+
To update, run `dsh plugin --profile <profile> add dsh-yanfield@latest` in the same profile and restart Harness. To roll back, replace `@latest` with the desired version, such as `@0.1.1`. This also switches an existing GitHub install to npm.
|
|
59
62
|
|
|
60
63
|
## First run
|
|
61
64
|
|
|
62
|
-
1. Open
|
|
65
|
+
1. Open **Yanfield** from the sidebar and click **New book** on the shelf (title, genre, cover color, one-line pitch).
|
|
63
66
|
2. Open the novel and click **Write** to enter the three-column desk.
|
|
64
67
|
3. Type into the AI box on the right, e.g. "make the first paragraph more vivid, only the first paragraph", "draft a blueprint for the next chapter", "create a character card for Zhou Wan".
|
|
65
68
|
4. Prose edits open in a review view: keep or revert each paragraph, then press **Confirm review** — only kept paragraphs are written. Note changes are confirmed item by item in the task card.
|
|
@@ -76,7 +79,7 @@ Both real routes can be switched in Settings; an unavailable route explains why
|
|
|
76
79
|
|
|
77
80
|
## Features
|
|
78
81
|
|
|
79
|
-

|
|
82
|
+

|
|
80
83
|
|
|
81
84
|
**Writing**
|
|
82
85
|
|
|
@@ -102,23 +105,22 @@ Both real routes can be switched in Settings; an unavailable route explains why
|
|
|
102
105
|
- After writing, the assistant proposes note candidates backed by the text — it only fills blanks, never overwrites your facts
|
|
103
106
|
- Save frequently used instructions as prompt presets; the toolbar AI menu collects quick tasks
|
|
104
107
|
|
|
105
|
-

|
|
106
108
|
|
|
107
109
|
## AI and cost
|
|
108
110
|
|
|
109
111
|
- **Models** — by default the DeepSeek account already signed in to Harness; you can switch to an official API key. Both routes live in `Settings → Model services` with availability and reasons.
|
|
110
|
-
- **
|
|
111
|
-
- **Balance** — the
|
|
112
|
+
- **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
|
+
- **Balance** — the **Balance** button under the composer queries the signed-in DSH account, no key needed.
|
|
112
114
|
- **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.**
|
|
113
|
-
- **Built-in thrift** — decision rounds skip deep thinking, short polishes drop a tier, small edits skip the note-
|
|
115
|
+
- **Built-in thrift** — decision rounds skip deep thinking, short polishes drop a tier, small edits skip the note-organizing pass, and oversized tool results are truncated with paging hints. A single-paragraph polish usually costs well under a cent; a blueprint task costs a few cents.
|
|
114
116
|
|
|
115
117
|
## Screenshots
|
|
116
118
|
|
|
117
|
-
|
|
|
119
|
+
| Bookshelf (English UI) | Writing desk (English UI) |
|
|
118
120
|
| --- | --- |
|
|
119
|
-
| [](docs/screenshots/en-library.png) | [](docs/screenshots/en-editor.png) |
|
|
120
122
|
|
|
121
|
-
More: [model services](docs/screenshots/settings
|
|
123
|
+
More: [model services](docs/screenshots/en-settings.png) · [Chinese screenshots](docs/screenshots/library.png) · [screenshot notes](docs/screenshots/README.md)
|
|
122
124
|
|
|
123
125
|
## Data and backup
|
|
124
126
|
|
|
@@ -130,7 +132,7 @@ More: [model services](docs/screenshots/settings-models.png) · [screenshot note
|
|
|
130
132
|
## Troubleshooting
|
|
131
133
|
|
|
132
134
|
<details>
|
|
133
|
-
<summary>No
|
|
135
|
+
<summary>No **Yanfield** entry in the sidebar</summary>
|
|
134
136
|
|
|
135
137
|
Make sure you fully quit and restarted Harness (a page refresh is not enough), then check `Settings → Plugins` that `dsh-yanfield` is enabled and at the version you just installed.
|
|
136
138
|
</details>
|
|
@@ -138,19 +140,19 @@ Make sure you fully quit and restarted Harness (a page refresh is not enough), t
|
|
|
138
140
|
<details>
|
|
139
141
|
<summary>"no API key" / model unavailable</summary>
|
|
140
142
|
|
|
141
|
-
The active route is the official API key route but no key is stored. Switch the route back to "DeepSeek account" in
|
|
143
|
+
The active route is the official API key route but no key is stored. Switch the route back to "DeepSeek account" in `Yanfield → Settings → Model services`, or store `DEEPSEEK_API_KEY` on Harness' model page.
|
|
142
144
|
</details>
|
|
143
145
|
|
|
144
146
|
<details>
|
|
145
147
|
<summary>Balance shows a dash or says not signed in</summary>
|
|
146
148
|
|
|
147
|
-
Balance comes from the DeepSeek account signed in to Harness. Sign in there first, then press
|
|
149
|
+
Balance comes from the DeepSeek account signed in to Harness. Sign in there first, then press **Balance** again.
|
|
148
150
|
</details>
|
|
149
151
|
|
|
150
152
|
<details>
|
|
151
153
|
<summary>Cost always says unknown</summary>
|
|
152
154
|
|
|
153
|
-
That request returned no usage (for example it was interrupted), or the model is not in the built-in price table and no unit price is configured in `Settings → AI
|
|
155
|
+
That request returned no usage (for example it was interrupted), or the model is not in the built-in price table and no unit price is configured in `Settings → AI & context`. Fill in the three prices to get an estimate.
|
|
154
156
|
</details>
|
|
155
157
|
|
|
156
158
|
<details>
|
package/README.md
CHANGED
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
正文、大纲、设定与 AI 助手,在同一张书桌上。<br>
|
|
10
10
|
书稿留在本地,模型用你已配好的 DeepSeek,AI 的改动由你逐段审阅。
|
|
11
11
|
|
|
12
|
-
[](#安装)
|
|
13
13
|
[](https://nodejs.org)
|
|
14
|
-
[](https://github.com/ZzimaR/dsh-yanfield/releases/latest)
|
|
15
15
|
[](LICENSE)
|
|
16
16
|
|
|
17
17
|
[安装](#安装) · [第一次使用](#第一次使用) · [功能](#功能) · [AI 与费用](#ai-与费用) · [截图](#截图) · [数据与备份](#数据与备份) · [排障](#排障) · [开发](#开发) · [English](README.en.md)
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
</div>
|
|
20
20
|
|
|
21
21
|
> [!NOTE]
|
|
22
|
-
> 砚田还在打磨中,界面与行为会继续调整。遇到问题、有想法,欢迎在 [Issues](https://github.com/ZzimaR/dsh-yanfield/issues) 里说——用「Bug 报告 / 功能建议」模板带上环境与复现步骤会快很多;也欢迎直接提 PR。
|
|
22
|
+
> 砚田还在打磨中,界面与行为会继续调整。遇到问题、有想法,欢迎在 [Issues](https://github.com/ZzimaR/dsh-yanfield/issues/new/choose) 里说——用「Bug 报告 / 功能建议」模板带上环境与复现步骤会快很多;也欢迎直接提 PR。
|
|
23
23
|
|
|
24
24
|
[](docs/screenshots/yanfield-in-dsh.gif)
|
|
25
25
|
|
|
@@ -31,6 +31,8 @@
|
|
|
31
31
|
|
|
32
32
|
砚田是一个 **DeepSeek Harness 插件**,不是独立应用:安装后 Harness 左侧导航会出现「砚田」,点开就是一个跑在面板里的长篇写作台。
|
|
33
33
|
|
|
34
|
+
界面跟随 DSH 的语言设置(设置 → 通用 → 语言):DSH 用英文时,侧栏显示 **Yanfield**,工作台、AI 面板与设置页也全部切换为英文;中文界面保持原样。书稿内容不会被翻译,AI 用你写作的语言回复。
|
|
35
|
+
|
|
34
36
|
- **写作台**:作品 / 卷 / 章三级结构,三栏布局(目录 · 正文 · AI),自动保存、字数统计、专注模式、排版可调、宣纸 / 夜航双主题。
|
|
35
37
|
- **资料随写随查**:章纲、设定、角色、伏笔、故事档案都在左栏,浮窗就地编辑,不离开正文。
|
|
36
38
|
- **AI 改稿,作者做主**:AI 读资料、多步执行,提出正文与资料改动;正文逐段对比(绿色新增、红色删除),你决定保留哪几段,确认后才写进书稿。
|
|
@@ -38,24 +40,26 @@
|
|
|
38
40
|
|
|
39
41
|
## 安装
|
|
40
42
|
|
|
41
|
-
需要 DeepSeek Harness `>=0.2.1-rc.5
|
|
43
|
+
需要 DeepSeek Harness `>=0.2.1-rc.5`。按你启动的 profile 选择下面一条命令,安装 [npm](https://www.npmjs.com/package/dsh-yanfield) 上的预构建包。
|
|
42
44
|
|
|
43
45
|
```bash
|
|
44
46
|
# Web 版
|
|
45
|
-
dsh plugin --profile web add
|
|
47
|
+
dsh plugin --profile web add dsh-yanfield
|
|
46
48
|
|
|
47
49
|
# 桌面版
|
|
48
|
-
dsh plugin --profile desktop add
|
|
50
|
+
dsh plugin --profile desktop add dsh-yanfield
|
|
49
51
|
```
|
|
50
52
|
|
|
51
53
|
安装完成后**完全退出 Harness 再重新打开**(只刷新页面不够:插件含宿主侧代码,需要重启进程)。
|
|
52
54
|
|
|
55
|
+
如果需要离线安装,可以从 [GitHub Releases](https://github.com/ZzimaR/dsh-yanfield/releases/latest) 下载 `dsh-yanfield.tgz`,再运行 `dsh plugin --profile <profile> add "<本地安装包路径>"`。
|
|
56
|
+
|
|
53
57
|
确认装好:
|
|
54
58
|
|
|
55
59
|
1. 左侧导航出现「砚田」;
|
|
56
60
|
2. 打开 `砚田 → 设置 → 关于`,核对版本和构建时间。构建时间是产物生成时间。
|
|
57
61
|
|
|
58
|
-
|
|
62
|
+
更新时用同一个 profile 执行 `dsh plugin --profile <profile> add dsh-yanfield@latest`,然后重启 Harness。回退可把 `@latest` 换成目标版本,例如 `@0.1.1`。之前用 GitHub 地址安装的用户也可以用这个命令切到 npm。
|
|
59
63
|
|
|
60
64
|
## 第一次使用
|
|
61
65
|
|