dsh-engramory 1.0.2 → 1.0.3

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 (4) hide show
  1. package/README.en.md +5 -2
  2. package/README.md +1 -1
  3. package/index.js +2753 -2692
  4. package/package.json +1 -1
package/README.en.md CHANGED
@@ -119,8 +119,11 @@ agent.followup(createUserMessage({
119
119
  | `guest` | Someone else wrote it, the same as no `speaker` at all. |
120
120
  | `none` | Nobody wrote it: your plugin's own report, reminder or notice. It does not make the owner's conversation someone else's. |
121
121
 
122
- A group conversation stays someone else's once anyone else in it speaks. A program
123
- that talks to dsh only through dsh web's API cannot set a source, so its messages count
122
+ In a group chat, add `chat: 'group'` (`{ role: 'owner', chat: 'group' }`): the whole
123
+ group reads the reply, so the conversation counts as someone else's even while only the
124
+ owner has spoken in it. A private chat may say `chat: 'private'` or leave it out; any
125
+ other value counts as a group. A group conversation stays someone else's once anyone else in it
126
+ speaks. A program that talks to dsh only through dsh web's API cannot set a source, so its messages count
124
127
  as someone else's; if it sends `clientTimeZone` with a prompt it is taken for the
125
128
  owner, so a program forwarding other people's messages must leave it out.
126
129
 
package/README.md CHANGED
@@ -69,7 +69,7 @@ agent.followup(createUserMessage({
69
69
  | `guest` | 别人发的,和不写 `speaker` 一样。 |
70
70
  | `none` | 不是人发的:你插件自己的汇报、提醒或通知,不会让主人的会话变成别人的。 |
71
71
 
72
- 群聊里只要有别人说话,那个会话就一直算别人的。只通过 dsh web 接口发消息的程序设不了来源章,消息都算别人的;它若带上 `clientTimeZone`,会被当成主人,所以替别人转发消息的程序不要带。
72
+ 群聊里的消息再加上 `chat: 'group'`(如 `{ role: 'owner', chat: 'group' }`):回复全群都看得到,所以就算群里只有主人开过口,这个会话也算别人的;私聊写 `chat: 'private'` 或不写,`chat` 是别的值都按群聊算。群聊里只要有别人说话,那个会话就一直算别人的。只通过 dsh web 接口发消息的程序设不了来源章,消息都算别人的;它若带上 `clientTimeZone`,会被当成主人,所以替别人转发消息的程序不要带。
73
73
 
74
74
  ## 设置页与记忆页
75
75