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 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
- [![DSH version](https://img.shields.io/badge/DSH-%E2%89%A5%200.2.1--rc.5%20%3C%200.3.0-4f7864?style=flat-square)](#install)
12
+ [![DSH version](https://img.shields.io/badge/DSH-%E2%89%A5%200.2.1--rc.5-4f7864?style=flat-square)](#install)
13
13
  [![Node for builds](https://img.shields.io/badge/Node-%E2%89%A5%2022.19-4f7864?style=flat-square)](https://nodejs.org)
14
- [![status](https://img.shields.io/badge/status-v0.1.1%20in%20development-a97f2b?style=flat-square)](#roadmap)
14
+ [![Version](https://img.shields.io/github/v/release/ZzimaR/dsh-yanfield?label=version&style=flat-square)](https://github.com/ZzimaR/dsh-yanfield/releases/latest)
15
15
  [![license](https://img.shields.io/badge/license-PolyForm%20Noncommercial-a97f2b?style=flat-square)](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
- [![Yanfield inside DeepSeek Harness: open the bookshelf from the host sidebar, switch between outline and notes, preview AI context, and review a prose edit](docs/screenshots/yanfield-in-dsh.gif)](docs/screenshots/yanfield-in-dsh.gif)
24
+ [![Yanfield inside DeepSeek Harness: chapters on the left, prose in the middle, AI assistant on the right](docs/screenshots/en-editor.png)](docs/screenshots/en-editor.png)
25
25
 
26
- 24-second walkthrough of a sample novel in DSH. The review uses a prepared example edit. The interface and captions are in Chinese.
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 「砚田」 entry appears in the Harness sidebar; opening it gives you a long-form writing desk rendered inside the panel.
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 <0.3.0`. Choose the command for your profile to install the prebuilt package from [GitHub Releases](https://github.com/ZzimaR/dsh-yanfield/releases).
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 https://github.com/ZzimaR/dsh-yanfield/releases/latest/download/dsh-yanfield.tgz
46
+ dsh plugin --profile web add dsh-yanfield
46
47
 
47
48
  # Desktop
48
- dsh plugin --profile desktop add https://github.com/ZzimaR/dsh-yanfield/releases/latest/download/dsh-yanfield.tgz
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 「砚田」 entry appears in the left sidebar;
56
- 2. Check the version and build time in `砚田 → Settings → About`. The build time comes from the bundle.
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 or roll back, copy the version-specific `dsh-yanfield.tgz` link from Releases (for example, `releases/download/v0.1.1/dsh-yanfield.tgz`). Run `dsh plugin --profile <profile> add <link>` in the same profile and restart Harness. This also replaces an earlier install from the repository URL.
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 「砚田」 from the sidebar and click **New novel** on the shelf (title, genre, cover color, one-line pitch).
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
- ![Shelf](docs/screenshots/library.png)
82
+ ![Shelf](docs/screenshots/en-library.png)
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
- ![Reviewing prose: green insertions, red deletions, keep or revert paragraph by paragraph](docs/screenshots/review-light.png)
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
- - **Catalogue** — `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.
111
- - **Balance** — the 「余额」 button under the composer queries the signed-in DSH account, no key needed.
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-organising pass, and oversized tool results are truncated with paging hints. A single-paragraph polish usually costs a few cents of a yuan; a blueprint task about a dime.
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
- | Shelf | Dark writing desk |
119
+ | Bookshelf (English UI) | Writing desk (English UI) |
118
120
  | --- | --- |
119
- | [![Shelf: novel cards with cover colors](docs/screenshots/library.png)](docs/screenshots/library.png) | [![Writing desk in the night-sail theme](docs/screenshots/workspace-dark.png)](docs/screenshots/workspace-dark.png) |
121
+ | [![Shelf: book cards with cover colors](docs/screenshots/en-library.png)](docs/screenshots/en-library.png) | [![Three-column writing desk with the AI panel](docs/screenshots/en-editor.png)](docs/screenshots/en-editor.png) |
120
122
 
121
- More: [model services](docs/screenshots/settings-models.png) · [screenshot notes](docs/screenshots/README.md)
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 「砚田」 entry in the sidebar</summary>
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 `砚田 → Settings → Model services`, or store `DEEPSEEK_API_KEY` on Harness' model page.
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 "Query balance" again.
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 and context`. Fill in the three prices to get an estimate.
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
- [![DSH 版本](https://img.shields.io/badge/DSH-%E2%89%A5%200.2.1--rc.5%20%3C%200.3.0-4f7864?style=flat-square)](#安装)
12
+ [![DSH 版本](https://img.shields.io/badge/DSH-%E2%89%A5%200.2.1--rc.5-4f7864?style=flat-square)](#安装)
13
13
  [![构建用 Node](https://img.shields.io/badge/Node-%E2%89%A5%2022.19-4f7864?style=flat-square)](https://nodejs.org)
14
- [![状态](https://img.shields.io/badge/status-v0.1.1%20%E5%BC%80%E5%8F%91%E4%B8%AD-a97f2b?style=flat-square)](#路线图)
14
+ [![版本](https://img.shields.io/github/v/release/ZzimaR/dsh-yanfield?label=version&style=flat-square)](https://github.com/ZzimaR/dsh-yanfield/releases/latest)
15
15
  [![许可](https://img.shields.io/badge/license-PolyForm%20Noncommercial-a97f2b?style=flat-square)](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
  [![砚田在 DeepSeek Harness 中的操作演示:从宿主侧栏进入书架,切换章纲与档案,预览 AI 上下文并审阅正文改动](docs/screenshots/yanfield-in-dsh.gif)](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 <0.3.0`。按你启动的 profile 选择下面一条命令,安装 [GitHub Releases](https://github.com/ZzimaR/dsh-yanfield/releases) 提供的预构建包。
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 https://github.com/ZzimaR/dsh-yanfield/releases/latest/download/dsh-yanfield.tgz
47
+ dsh plugin --profile web add dsh-yanfield
46
48
 
47
49
  # 桌面版
48
- dsh plugin --profile desktop add https://github.com/ZzimaR/dsh-yanfield/releases/latest/download/dsh-yanfield.tgz
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
- 更新或回退时,从 Releases 复制目标版本的 `dsh-yanfield.tgz` 链接(形如 `releases/download/v0.1.1/dsh-yanfield.tgz`),用同一个 profile 执行 `dsh plugin --profile <profile> add <链接>`,然后重启 Harness。之前用仓库地址安装的用户也可以用这个方法切换到 Release 包。
62
+ 更新时用同一个 profile 执行 `dsh plugin --profile <profile> add dsh-yanfield@latest`,然后重启 Harness。回退可把 `@latest` 换成目标版本,例如 `@0.1.1`。之前用 GitHub 地址安装的用户也可以用这个命令切到 npm。
59
63
 
60
64
  ## 第一次使用
61
65