dsh-persona-dafeiyu 0.2.0 → 0.2.1

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.
Files changed (2) hide show
  1. package/README.md +43 -15
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -4,6 +4,8 @@
4
4
  系统提示词里都会注入**当前选中的人设** —— 不用每次手动粘贴提示词。
5
5
 
6
6
  [![ci](https://github.com/huaizhuanghub/dsh-persona-dafeiyu/actions/workflows/ci.yml/badge.svg)](https://github.com/huaizhuanghub/dsh-persona-dafeiyu/actions/workflows/ci.yml)
7
+ [![npm](https://img.shields.io/npm/v/dsh-persona-dafeiyu.svg)](https://www.npmjs.com/package/dsh-persona-dafeiyu)
8
+ [![license](https://img.shields.io/npm/l/dsh-persona-dafeiyu.svg)](./LICENSE)
7
9
 
8
10
  - **内置人设**:大肥鱼、阿茶(写死在代码里,不可删除、不可覆盖)。
9
11
  - **导入人设**:在设置页里用文件导入或直接粘贴文本,自动生成可选条目。
@@ -39,40 +41,48 @@ dsh-persona-dafeiyu/
39
41
 
40
42
  - Node.js ≥ 20
41
43
  - DSH `0.2.0-rc.2`(兼容性见文末)
42
- - Git(从 GitHub 克隆时需要;只是本机目录安装的话不必)
43
44
 
44
- ### 一、把仓库放到本机
45
+ ### 方式 A:从 npm 安装(推荐)
45
46
 
46
- ```powershell
47
- git clone https://github.com/<你的用户名>/dsh-persona-dafeiyu.git
48
- cd dsh-persona-dafeiyu
49
- ```
47
+ 本包已发布到 npm,**不需要克隆仓库、不需要构建**。
50
48
 
51
- 不需要 `npm install`:本包没有运行时依赖,peer 依赖全部由 DSH 运行时提供。
49
+ **界面上装**:侧边栏 → **插件** → **添加插件** → 输入包名:
52
50
 
53
- ### 二、拿到本仓库的绝对路径
51
+ ```text
52
+ dsh-persona-dafeiyu
53
+ ```
54
54
 
55
- 下面的安装命令要用到它,在仓库根目录执行即可(不会打印任何敏感信息):
55
+ **命令行装**:
56
56
 
57
57
  ```powershell
58
- (Get-Location).Path
58
+ dsh plugin --profile <profile> add dsh-persona-dafeiyu
59
59
  ```
60
60
 
61
- ### 三、装进某个 profile
62
-
63
61
  `<profile>` 换成你自己的 profile 名。DSH 随安装自带的模板只有
64
62
  `acp` / `web` / `headless` / `sdk` / `sdk-minimal`,你自己建的那个叫什么就用什么。
65
63
 
66
- **方式 A:Web 插件页(推荐)**
64
+ > 本包是纯 JavaScript、**没有构建脚本**,所以不会触发 pnpm 的「允许运行构建脚本」提示——
65
+ > 输入包名即可装好,这是最省事的方式。
66
+
67
+ ### 方式 B:从源码目录安装(改代码时用)
67
68
 
68
- 侧边栏 → **插件** → 安装组合包 → 填上一步拿到的绝对路径。
69
+ ```powershell
70
+ git clone https://github.com/huaizhuanghub/dsh-persona-dafeiyu.git
71
+ cd dsh-persona-dafeiyu
72
+ (Get-Location).Path
73
+ ```
69
74
 
70
- **方式 B:命令行**
75
+ 最后一行打印的绝对路径,下面安装命令要用到。然后:
71
76
 
72
77
  ```powershell
73
78
  dsh plugin --profile <profile> add "<本仓库绝对路径>"
74
79
  ```
75
80
 
81
+ 或者在插件页「添加插件」里填这个绝对路径。
82
+
83
+ 本包**没有运行时依赖**(`@deepseek-ai/*` 全是 optional peer,由 DSH 运行时提供),
84
+ 所以克隆后不需要 `npm install` 就能直接跑自检。
85
+
76
86
  两种方式都会把本包写进 profile 的 `dsh.profile.bundles`。
77
87
 
78
88
  ### 生效时机与「免重启」的边界
@@ -203,6 +213,24 @@ npm run privacy-check # 本机信息自查:绝对路径、用户名、邮箱
203
213
 
204
214
  其余内容(性格、口头禅、示例、金科玉律)原样保留。
205
215
 
216
+ ## 怎么让别人用上这个插件
217
+
218
+ DSH **没有第三方插件目录**,所以这里先把机制说清楚,免得你以为「发到 npm 就会被收录」:
219
+
220
+ - 侧边栏的**「插件」页只有两个分组**:「**官方**」是 DSH 随发行版自带的组合包,
221
+ 「**已安装**」是你自己装过的。第三方插件**不会出现在任何目录里**。
222
+ - 第三方插件的分发方式就是 **发布到 npm**,其他人用 **包名安装**:
223
+
224
+ ```powershell
225
+ dsh plugin --profile <profile> add dsh-persona-dafeiyu
226
+ ```
227
+
228
+ 或者在插件页「添加插件」里输入包名——DSH 会去 registry 查这个名字并直接装上。
229
+
230
+ 所以「能被别人发现」的实际含义是:**包在 npm 上、名字可查、输入名字就能装**。
231
+ 本包已发布为 [`dsh-persona-dafeiyu`](https://www.npmjs.com/package/dsh-persona-dafeiyu),
232
+ 纯 JS 无构建脚本,装上不需要任何额外授权。
233
+
206
234
  ## 隐私说明
207
235
 
208
236
  本仓库已做过本机信息清理,不含开发者本机的绝对路径、用户名、主机名、邮箱或任何密钥:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-persona-dafeiyu",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "人设插件 for DeepSeek Harness:内置大肥鱼与阿茶,支持导入自定义人设(文件或粘贴)、在设置页里切换 / 启停 / 重命名 / 删除,切换后下一个请求即时生效、无需重启。",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",