dsh-yanfield 0.1.3 → 0.1.4
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 +2 -1
- package/README.md +3 -2
- package/dist/client.js +92 -92
- package/dist/host.js +1144 -564
- package/package.json +1 -1
package/README.en.md
CHANGED
|
@@ -127,6 +127,7 @@ More: [model services](docs/screenshots/en-settings.png) · [Chinese screenshots
|
|
|
127
127
|
- Manuscripts live in `$DSH_HOME/yanfield/yanfield.db` (plus `-wal` / `-shm`). `Settings → Data` shows the real path and can open the folder.
|
|
128
128
|
- Set `YANFIELD_DB_PATH` to select a database file. If the profile's `cordis.patch.yml` sets the plugin's `dataDir`, its `yanfield.db` takes precedence.
|
|
129
129
|
- Backup: quit Harness first, then copy the whole directory (copying SQLite while it runs can give an inconsistent snapshot).
|
|
130
|
+
- Before upgrading the database schema, Yanfield creates a full snapshot in the same folder. If the backup fails, the upgrade stops. After a successful upgrade, Yanfield keeps the three most recent automatic upgrade backups.
|
|
130
131
|
- Removing the plugin does not delete your manuscript; the database stays where it is.
|
|
131
132
|
|
|
132
133
|
## Troubleshooting
|
|
@@ -183,7 +184,7 @@ npm test # build dist/, check the manifest and run smoke tests
|
|
|
183
184
|
```bash
|
|
184
185
|
client/ plugin half: Shadow DOM mount, slot registration, style entry
|
|
185
186
|
src/host.ts host half: REST/SSE routes under /yanfield, model and account bridge
|
|
186
|
-
|
|
187
|
+
src/yanfield/ the desk itself (React components, domain logic, SQLite access)
|
|
187
188
|
scripts/ build, check, smoke, reinstall
|
|
188
189
|
docs/ features, AI and cost, architecture, development, FAQ
|
|
189
190
|
```
|
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
</div>
|
|
20
20
|
|
|
21
21
|
> [!NOTE]
|
|
22
|
-
> 砚田还在打磨中,界面与行为会继续调整。遇到问题、有想法,欢迎在 [Issues](https://github.com/ZzimaR/dsh-yanfield/issues/new/choose) 里说——用「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
|
|
|
@@ -129,6 +129,7 @@ dsh plugin --profile desktop add dsh-yanfield
|
|
|
129
129
|
- 书稿默认在 `$DSH_HOME/yanfield/yanfield.db`(含 `-wal` / `-shm` 附属文件)。`设置 → 数据` 会显示实际路径并能一键打开所在文件夹。
|
|
130
130
|
- 用环境变量 `YANFIELD_DB_PATH` 可指定数据库文件。若 profile 的 `cordis.patch.yml` 配置了插件的 `dataDir`,优先使用该目录里的 `yanfield.db`。
|
|
131
131
|
- 备份:先退出 Harness,再复制整个目录(运行中直接复制 SQLite 可能拿到不一致的快照)。
|
|
132
|
+
- 数据库结构升级前,砚田会在同一目录创建整库快照。备份失败时会停止升级。升级成功后保留最近三份自动升级备份。
|
|
132
133
|
- 卸载插件不会删除书稿;数据库仍在上面那个路径里。
|
|
133
134
|
|
|
134
135
|
## 排障
|
|
@@ -185,7 +186,7 @@ npm test # 构建 dist/,再运行清单检查与冒烟测试
|
|
|
185
186
|
```bash
|
|
186
187
|
client/ 插件半区:Shadow DOM 挂载、插槽注册、样式入口
|
|
187
188
|
src/host.ts 宿主半区:/yanfield 下的 REST/SSE 路由、模型与账号桥接
|
|
188
|
-
|
|
189
|
+
src/yanfield/ 写作台本体(React 组件、领域逻辑、SQLite 访问)
|
|
189
190
|
scripts/ 构建、自检、冒烟、重装
|
|
190
191
|
docs/ 功能、AI 与费用、架构、开发、常见问题
|
|
191
192
|
```
|