dsh-palace 0.0.0-stage → 1.1.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/LICENSE +21 -0
- package/README.md +149 -2
- package/client/client.js +791 -0
- package/cordis.patch.yml +4 -0
- package/lib/index.js +1902 -0
- package/package.json +74 -4
- package/vendor/epub.LICENSE.txt +27 -0
- package/vendor/epub.min.js +1 -0
- package/vendor/fonts/OFL.txt +192 -0
- package/vendor/fonts/eb-garamond-latin-400-normal.woff2 +0 -0
- package/vendor/fonts/eb-garamond-latin-ext-400-normal.woff2 +0 -0
- package/vendor/fonts/fonts.css +103 -0
- package/vendor/fonts/noto-serif-sc-100-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-101-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-102-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-103-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-104-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-105-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-106-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-107-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-108-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-109-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-110-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-111-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-112-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-113-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-114-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-115-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-116-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-117-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-118-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-119-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-21-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-22-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-23-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-24-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-25-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-26-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-27-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-28-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-29-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-30-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-31-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-32-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-33-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-34-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-35-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-36-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-37-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-38-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-39-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-4-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-40-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-41-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-42-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-43-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-44-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-45-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-46-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-47-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-48-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-49-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-5-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-50-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-51-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-52-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-53-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-54-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-55-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-56-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-57-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-58-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-59-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-6-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-60-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-61-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-62-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-63-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-64-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-65-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-66-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-67-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-68-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-69-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-70-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-71-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-72-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-73-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-74-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-75-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-76-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-77-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-78-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-79-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-80-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-81-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-82-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-83-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-84-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-85-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-86-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-87-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-88-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-89-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-90-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-91-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-97-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-98-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-99-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-cyrillic-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-latin-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-latin-ext-400-normal.woff2 +0 -0
- package/vendor/fonts/noto-serif-sc-vietnamese-400-normal.woff2 +0 -0
- package/vendor/jszip.LICENSE.md +651 -0
- package/vendor/jszip.min.js +13 -0
- package/vendor/themes/pixel/README.md +4 -0
- package/vendor/themes/pixel/fonts/OFL.txt +93 -0
- package/vendor/themes/pixel/fonts/PixelifySans.ttf +0 -0
- package/vendor/themes/pixel/icons/black-swan.png +0 -0
- package/vendor/themes/pixel/icons/earth.png +0 -0
- package/vendor/themes/pixel/icons/gold-coin.png +0 -0
- package/vendor/themes/pixel/icons/lotus-leaf.png +0 -0
- package/vendor/themes/pixel/icons/mars.png +0 -0
- package/vendor/themes/pixel/icons/mercury.png +0 -0
- package/vendor/themes/pixel/icons/moon.png +0 -0
- package/vendor/themes/pixel/icons/open-book.png +0 -0
- package/vendor/themes/pixel/icons/orange.png +0 -0
- package/vendor/themes/pixel/icons/pufferfish.png +0 -0
- package/vendor/themes/pixel/icons/rainbow.png +0 -0
- package/vendor/themes/pixel/icons/shell.png +0 -0
- package/vendor/themes/pixel/icons/snow-mountain.png +0 -0
- package/vendor/themes/pixel/icons/sun.png +0 -0
- package/vendor/themes/pixel/icons/teardrop.png +0 -0
- package/vendor/themes/pixel/icons/venus.png +0 -0
- package/vendor/themes/pixel/theme.json +25 -0
- package/vendor/themes/watercolor/README.md +2 -0
- package/vendor/themes/watercolor/icons/black-swan.webp +0 -0
- package/vendor/themes/watercolor/icons/earth.webp +0 -0
- package/vendor/themes/watercolor/icons/gold-coin.webp +0 -0
- package/vendor/themes/watercolor/icons/lotus-leaf.webp +0 -0
- package/vendor/themes/watercolor/icons/mars.webp +0 -0
- package/vendor/themes/watercolor/icons/mercury.webp +0 -0
- package/vendor/themes/watercolor/icons/moon.webp +0 -0
- package/vendor/themes/watercolor/icons/open-book.webp +0 -0
- package/vendor/themes/watercolor/icons/orange.webp +0 -0
- package/vendor/themes/watercolor/icons/pufferfish.webp +0 -0
- package/vendor/themes/watercolor/icons/rainbow.webp +0 -0
- package/vendor/themes/watercolor/icons/shell.webp +0 -0
- package/vendor/themes/watercolor/icons/snow-mountain.webp +0 -0
- package/vendor/themes/watercolor/icons/sun.webp +0 -0
- package/vendor/themes/watercolor/icons/teardrop.webp +0 -0
- package/vendor/themes/watercolor/icons/venus.webp +0 -0
- package/vendor/themes/watercolor/paper.svg +1 -0
- package/vendor/themes/watercolor/theme.json +8 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 dsh-palace contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,150 @@
|
|
|
1
|
-
#
|
|
1
|
+
# dsh-palace
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/dsh-palace)
|
|
4
|
+
[](LICENSE)
|
|
5
|
+
[](https://github.com/deepseek-ai/deepseek-harness)
|
|
6
|
+
[](https://awesome-dsh-plugin.com/)
|
|
7
|
+
|
|
8
|
+
> Memory Palace:DeepSeek Harness 插件,一个懂你在想什么的 AI。把书、课、剧和随手的念头放进一座宫殿,你只管记、只管聊,AI 帮你整理,也慢慢记住你。
|
|
9
|
+
|
|
10
|
+
<p align="center">
|
|
11
|
+
<img src="assets/demo-1.gif" width="49%" alt="轴测视图:书与书之间的电弧">
|
|
12
|
+
<img src="assets/demo-3.gif" width="49%" alt="阅览室:进度与灵感">
|
|
13
|
+
</p>
|
|
14
|
+
<p align="center">
|
|
15
|
+
<img src="assets/demo-4.gif" width="49%" alt="卡片与和书对话">
|
|
16
|
+
<img src="assets/demo-5.gif" width="49%" alt="在格子里读 EPUB、摘录成分享卡片">
|
|
17
|
+
</p>
|
|
18
|
+
|
|
19
|
+
装好后,它在 Harness 里显示为 **Memory Palace**(记忆宫殿)。`dsh-palace` 是它在 npm 上的包名,安装时要输入这个名字。
|
|
20
|
+
|
|
21
|
+
它适合任何「边看边记」的人:读闲书、啃教材、看网课、备考刷题,追剧、听播客或者只是记下一个念头,也都能放进来。你不用操心怎么分类、怎么排计划,记下来、聊一聊就好,剩下的交给 AI。
|
|
22
|
+
|
|
23
|
+
## 目录
|
|
24
|
+
|
|
25
|
+
- [背景](#背景)
|
|
26
|
+
- [安装](#安装)
|
|
27
|
+
- [使用](#使用)
|
|
28
|
+
- [数据存在哪](#数据存在哪)
|
|
29
|
+
- [常见问题](#常见问题)
|
|
30
|
+
- [维护者](#维护者)
|
|
31
|
+
- [参与贡献](#参与贡献)
|
|
32
|
+
- [许可证](#许可证)
|
|
33
|
+
|
|
34
|
+
## 背景
|
|
35
|
+
|
|
36
|
+
「记忆宫殿」是一种古老的记忆方法:把要记的东西放进脑海里一座房子的各个房间。这个插件把它画成了一座真的宫殿,每样你在意的东西占一格。
|
|
37
|
+
|
|
38
|
+
和对着空白对话框聊天不同,你是带着一格具体的东西来聊的:一本书、一部剧、一个念头。这样更容易说出真实的想法。聊的过程中,AI 会把值得记住的部分整理成记忆:这一格对你意味着什么、你最近在想什么、哪两格之间有联系。下次你在宫殿里开口,它会接着上次的话题聊。
|
|
39
|
+
|
|
40
|
+
宫殿里有这些:
|
|
41
|
+
|
|
42
|
+
- **格子**:一格可以是一条笔记(一个念头、一部剧、一档播客),也可以是一本书或一门 B 站视频课。拖动可以排位置;把一格拖到另一格上,就合成一个分组。
|
|
43
|
+
- **阅览室**:点开一格进入。每格都有两页:
|
|
44
|
+
- **卡片**:摘录(原话)、想法(你自己的话)、错题(做错的题)。
|
|
45
|
+
- **灵感**:和 AI 聊完,一键把这次对话总结成一篇短文存下来。
|
|
46
|
+
|
|
47
|
+
书和视频课还多一页**进度**:目录、看到哪、目标完成日期。落后了会自动重算每天该看多少。
|
|
48
|
+
- **AI 对话**:宫殿和每一格都能和 AI 聊,用的就是 Harness 自己的对话。只有宫殿里的对话会带上记忆,你在 Harness 里的其他对话不受影响。
|
|
49
|
+
- **立体视图**:点右下角「轴测」(或按键盘 `I`),宫殿会立起来。你和 AI 都认同有联系的两格之间会连上电弧,鼠标停在格子上能看到为什么。
|
|
50
|
+
- **读原文**:EPUB 电子书直接在格子里读,点一个词就能翻译。PDF 用你电脑上的阅读器打开,B 站视频课用浏览器打开,看完回来打勾。
|
|
51
|
+
- **皮肤**:有水彩和像素两套。点右下角写着「水彩」的按钮就能换,背景、图标、字体一起换,你记下的内容不受影响。
|
|
52
|
+
|
|
53
|
+
## 安装
|
|
54
|
+
|
|
55
|
+
**你需要**:电脑上装好 DeepSeek Harness 桌面版(0.2.x)。还没有的话,先到 [DeepSeek Harness 官网](https://www.deepseek.com/harness/) 下载安装。
|
|
56
|
+
|
|
57
|
+
1. 打开 Harness,进入插件安装界面。
|
|
58
|
+
2. 输入 `dsh-palace`,点安装。
|
|
59
|
+
3. 完全退出 Harness,再重新打开。
|
|
60
|
+
4. 左侧导航出现「Memory Palace」,就装好了。
|
|
61
|
+
|
|
62
|
+
## 使用
|
|
63
|
+
|
|
64
|
+
### 打开宫殿
|
|
65
|
+
|
|
66
|
+
有三个入口,打开的是同一座宫殿:
|
|
67
|
+
|
|
68
|
+
- 左侧导航的「Memory Palace」:全屏打开,看得最清楚;
|
|
69
|
+
- 对话标题栏右侧的书本按钮:一边聊天一边看;
|
|
70
|
+
- 右侧栏的「Memory Palace」卡片。
|
|
71
|
+
|
|
72
|
+
### 从一条想法开始
|
|
73
|
+
|
|
74
|
+
1. 点右下角的 **+**,选「笔记」,起个名字,比如你正在追的剧,或者一个念头。
|
|
75
|
+
2. 点开这一格,在「卡片」里写下一条想法。
|
|
76
|
+
3. 点阅览室左边的 **AI**,和它聊聊这个想法。
|
|
77
|
+
4. 聊完点「把这次对话存成灵感」。AI 会顺手把值得记住的部分写进记忆。
|
|
78
|
+
|
|
79
|
+
以后在宫殿里聊天时,AI 会记得你记过什么、想过什么,也会帮你发现格子之间的联系。
|
|
80
|
+
|
|
81
|
+
### 放进一本书或一门课
|
|
82
|
+
|
|
83
|
+
1. 点 **+**,选「书」,选一个文件(PDF 或 EPUB),或者粘贴一个 B 站视频链接。插件只记住文件在哪,**不会复制、也不会改动你的文件**。
|
|
84
|
+
2. 读完一节,在「进度」里打个勾;鼠标移到某一节点「学到这里」,前面的会一起勾上。
|
|
85
|
+
|
|
86
|
+
### 直接跟 AI 说也行
|
|
87
|
+
|
|
88
|
+
不想点按钮,可以在对话里直接说:
|
|
89
|
+
|
|
90
|
+
- 「新建一格,记下我在看的《漫长的季节》,我觉得它讲的是……」
|
|
91
|
+
- 「把 ~/Documents/反脆弱.epub 放进宫殿」
|
|
92
|
+
- 「这个视频课加进来:https://www.bilibili.com/video/BV…」
|
|
93
|
+
- 「这本书和《反脆弱》有什么联系?」
|
|
94
|
+
- 「我 2027 年 9 月考试,帮我把这几本书排一下目标日期」
|
|
95
|
+
- 记错题:把错题截图粘贴到这本书的对话里,说「记错题」。
|
|
96
|
+
|
|
97
|
+
## 数据存在哪
|
|
98
|
+
|
|
99
|
+
所有数据都在你自己的电脑上,默认放在 `~/Documents/dsh-palace-data/`(「文稿」文件夹里的 `dsh-palace-data`)。都是普通文件,复制这个文件夹就是备份:
|
|
100
|
+
|
|
101
|
+
- `palace.json`:宫殿里每一格的位置
|
|
102
|
+
- `items/`:每一格的目录、进度、卡片和灵感
|
|
103
|
+
- `images/`:错题截图
|
|
104
|
+
- `memory/`:AI 的记忆(你读过什么、想过什么)
|
|
105
|
+
|
|
106
|
+
想换个位置存放,可以在 Harness profile 的 `cordis.patch.yml` 里加上:
|
|
107
|
+
|
|
108
|
+
```yaml
|
|
109
|
+
- id: dsh-palace
|
|
110
|
+
name: dsh-palace
|
|
111
|
+
config:
|
|
112
|
+
dataDir: /你想要的/目录
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
## 常见问题
|
|
116
|
+
|
|
117
|
+
**PDF 没有目录怎么办?** 扫描版 PDF 常常没有目录。进入这本书,在缩略图里勾选目录所在的几页,AI 只读这几页就能生成目录,不用把整本书交给 AI。
|
|
118
|
+
|
|
119
|
+
**目录或错题识别不出来?** 当前选用的 AI 模型要支持看图。也可以自己截图发给 AI,说「生成《某书》的目录」。
|
|
120
|
+
|
|
121
|
+
**错题截图没存上?** 截图要直接粘贴在对话里。截图没存上时,题目文字也照样会记下来。
|
|
122
|
+
|
|
123
|
+
**界面字体需要另外装吗?** 不用。插件自带思源宋体和 EB Garamond。
|
|
124
|
+
|
|
125
|
+
## 维护者
|
|
126
|
+
|
|
127
|
+
- [@feolhn](https://github.com/feolhn):开发
|
|
128
|
+
- [@bbhh1226](https://github.com/bbhh1226):界面与交互设计
|
|
129
|
+
|
|
130
|
+
## 参与贡献
|
|
131
|
+
|
|
132
|
+
欢迎提 [Issue](https://github.com/feolhn/dsh-palace/issues) 和 Pull Request,想法和讨论请到 [Discussions](https://github.com/feolhn/dsh-palace/discussions)。
|
|
133
|
+
|
|
134
|
+
想自己改代码的话:
|
|
135
|
+
|
|
136
|
+
```sh
|
|
137
|
+
pnpm install
|
|
138
|
+
pnpm run setup # 启用提交前的个人信息检查(只需一次)
|
|
139
|
+
pnpm build # 生成 lib/(Host)和 client/(前端)
|
|
140
|
+
pnpm test # 测试(core / host / AI 工具)
|
|
141
|
+
pnpm verify # 合并前跑:类型检查 + 测试 + 个人信息检查 + 构建
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
从源码安装:先 `pnpm build`,再在插件安装界面填仓库文件夹的完整路径。每次改完代码都要重新 `pnpm build`,再重启 Harness。开发说明见 [AGENTS.md](AGENTS.md),接口约定见 [docs/CONTRACT.md](docs/CONTRACT.md)。
|
|
145
|
+
|
|
146
|
+
## 许可证
|
|
147
|
+
|
|
148
|
+
[MIT](LICENSE) © 2026 dsh-palace contributors
|
|
149
|
+
|
|
150
|
+
内置字体(思源宋体、EB Garamond)使用 [SIL OFL 1.1](vendor/fonts/OFL.txt)。
|