dsh-yanfield 0.1.11 → 0.2.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 CHANGED
@@ -85,7 +85,8 @@ Pick a model in Yanfield's Model services or in the writing assistant. Models ar
85
85
  **Writing**
86
86
 
87
87
  - Novel / volume / chapter tree with word counts and status; create, reorder, navigate
88
- - Autosave with adjustable delay plus manual save; live word, paragraph and reading-time stats
88
+ - Autosave with an adjustable delay, manual save, and live word, paragraph, and reading-time stats
89
+ - Chapter version history with snapshots, previews, and an automatic snapshot before restoring earlier text
89
90
  - Typography controls: serif or sans, size, weight, line height, letter spacing, paragraph spacing, margins, max line width
90
91
  - Focus mode, typewriter mode, writing goal and daily target
91
92
  - `Alt + 1` collapse the outline, `Alt + J` focus the AI box, `Ctrl / ⌘ + K` quick jump, `Ctrl / ⌘ + F` find in chapter
@@ -188,18 +189,21 @@ npm test # build dist/, check the manifest and run smoke tests
188
189
  client/ plugin half: Shadow DOM mount, slot registration, style entry
189
190
  src/host.ts host half: REST/SSE routes under /yanfield, model and account bridge
190
191
  src/yanfield/ the desk itself (React components, domain logic, SQLite access)
191
- scripts/ build, check, smoke, reinstall
192
+ scripts/ build, check, smoke, reinstall, website build
193
+ site/ source of the website (yanfield.com)
192
194
  docs/ features, AI and cost, architecture, development, FAQ
193
195
  ```
194
196
 
195
197
  See [development](docs/en/development.md) for the build chain and local testing, [architecture](docs/en/architecture.md) for the data model, [features](docs/en/features.md) for the full list, [AI and cost](docs/en/ai-and-cost.md) for model details, and [FAQ](docs/en/faq.md) for troubleshooting.
196
198
 
199
+ The website ([yanfield.com](https://yanfield.com)) is a static site in `site/`: `npm run build:site` builds it, `npm run check:site` checks it, `npm run preview:site` previews it locally, and GitHub Pages deploys it from `main`. See [website](docs/en/website.md) for details and the domain cutover steps.
200
+
197
201
  中文文档:[README.md](README.md) · [docs/](docs/features.md)
198
202
 
199
203
  ## Roadmap
200
204
 
201
- - **v0.1.x (current)**: writing desk, notes system, AI review and cost visibility;
202
- - **Next**: chapter snapshots and rollback, EPUB export, richer writing stats;
205
+ - **v0.2.0 (current)**: writing desk, notes system, chapter version history, AI review, and cost visibility;
206
+ - **Next**: EPUB export and more detailed writing statistics;
203
207
  - **Later**: knowledge-graph view, model comparison, collaborative review.
204
208
 
205
209
  ## Credits
package/README.md CHANGED
@@ -87,6 +87,7 @@ dsh plugin --profile desktop add dsh-yanfield
87
87
 
88
88
  - 作品 / 卷 / 章三级结构;新建卷、新建章、拖拽排序,章节树显示字数与状态
89
89
  - 正文自动保存(延迟可调)+ 手动保存;字数、段落、阅读时间实时统计
90
+ - 章节版本历史:保存快照、预览旧稿,并在恢复正文前自动留存当前版本
90
91
  - 排版可调:衬线 / 黑体、字号、字重、行高、字间距、段落间距、页边距、最大行宽
91
92
  - 专注模式(隐藏侧栏)、打字机模式(光标居中)、写作目标与每日字数
92
93
  - `Alt + 1` 收起 / 打开目录,`Alt + J` 聚焦 AI 输入框,`Ctrl / ⌘ + K` 快速跳转,`Ctrl / ⌘ + F` 页内查找
@@ -190,18 +191,21 @@ npm test # 构建 dist/,再运行清单检查与冒烟测试
190
191
  client/ 插件半区:Shadow DOM 挂载、插槽注册、样式入口
191
192
  src/host.ts 宿主半区:/yanfield 下的 REST/SSE 路由、模型与账号桥接
192
193
  src/yanfield/ 写作台本体(React 组件、领域逻辑、SQLite 访问)
193
- scripts/ 构建、自检、冒烟、重装
194
+ scripts/ 构建、自检、冒烟、重装、官网构建
195
+ site/ 官网(yanfield.com)源码
194
196
  docs/ 功能、AI 与费用、架构、开发、常见问题
195
197
  ```
196
198
 
197
199
  从本地源码安装到隔离 profile 的步骤见 [本地联调](docs/development.md#五本地联调)。架构与数据模型见 [架构说明](docs/architecture.md),功能清单见 [功能说明](docs/features.md),AI 接入和费用见 [AI 与费用](docs/ai-and-cost.md),排障见 [常见问题](docs/faq.md)。
198
200
 
201
+ 官网([yanfield.com](https://yanfield.com))是 `site/` 下的纯静态站点:`npm run build:site` 构建,`npm run check:site` 检查,`npm run preview:site` 本地预览,推送到 `main` 后由 GitHub Pages 部署。细节与域名迁移步骤见 [官网](docs/website.md)。
202
+
199
203
  English docs: [README.en.md](README.en.md) · [docs/en/](docs/en/features.md)
200
204
 
201
205
  ## 路线图
202
206
 
203
- - **v0.1.x(当前)**:三栏写作台、资料系统、AI 审阅与费用可视化;
204
- - **下一步**:章节版本快照与回滚、EPUB 导出、更细的写作统计;
207
+ - **v0.2.0(当前)**:三栏写作台、资料系统、章节版本历史、AI 审阅与费用可视化;
208
+ - **下一步**:EPUB 导出、更细的写作统计;
205
209
  - **更远**:知识图谱视图、多模型对比、协作审阅。
206
210
 
207
211
  ## 致谢