dsh-instruction-memory 1.0.0 → 1.0.2

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 +14 -3
  2. package/package.json +9 -1
package/README.md CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  在 DSH 设置界面中维护**长期指令记忆**:保存后自动注入此后每一轮对话的系统提示词。
4
4
 
5
+ ## 安装
6
+
7
+ ```sh
8
+ dsh plugin --profile web add dsh-instruction-memory
9
+ ```
10
+
11
+ 装完重启 DSH,设置页会出现「指令记忆」入口。卸载:
12
+
13
+ ```sh
14
+ dsh plugin --profile web remove dsh-instruction-memory
15
+ ```
16
+
5
17
  ## 只由用户本人维护
6
18
 
7
19
  **这份记忆的内容只属于用户。** 本插件刻意**不注册任何面向模型的工具**——模型没有任何
@@ -57,11 +69,10 @@ DSH 就会得到第二份空记忆,看起来像"记忆消失"。
57
69
  ## 发布(维护者)
58
70
 
59
71
  ```sh
60
- # 1. 替换占位符:package.json 的 repository / homepage / bugs / author,以及 LICENSE 版权行
61
- # 2. 自检(prepublishOnly 也会自动跑,占位符未替换会中止发布)
72
+ # 1. 自检(prepublishOnly 也会自动跑,占位符未替换会中止发布)
62
73
  npm test
63
74
  node check-metadata.mjs
64
- # 3. 发布(需先 npm login)
75
+ # 2. 发布(需先 npm login)
65
76
  npm publish
66
77
  ```
67
78
 
package/package.json CHANGED
@@ -1,9 +1,17 @@
1
1
  {
2
2
  "name": "dsh-instruction-memory",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "DSH 指令记忆:在设置界面中维护可增删改的长期指令,并自动注入此后每一轮对话的系统提示词。",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/HERO476/dsh-instruction-memory.git"
10
+ },
11
+ "homepage": "https://github.com/HERO476/dsh-instruction-memory#readme",
12
+ "bugs": {
13
+ "url": "https://github.com/HERO476/dsh-instruction-memory/issues"
14
+ },
7
15
  "main": "lib/index.js",
8
16
  "exports": {
9
17
  ".": {