dsh-engramory 1.0.2 → 1.0.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 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
 
package/icon.svg CHANGED
@@ -1,8 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" width="64" height="64">
2
- <rect x="6" y="6" width="52" height="52" rx="14" fill="#2f6fd6"/>
3
- <path d="M20 17h20a6 6 0 0 1 6 6v24H26a6 6 0 0 0-6 6V17z" fill="#ffffff" opacity="0.95"/>
4
- <path d="M20 53a6 6 0 0 1 6-6h20v6H26z" fill="#ffffff" opacity="0.6"/>
5
- <rect x="26" y="24" width="14" height="3" rx="1.5" fill="#2f6fd6"/>
6
- <rect x="26" y="31" width="10" height="3" rx="1.5" fill="#2f6fd6"/>
7
- <rect x="26" y="38" width="12" height="3" rx="1.5" fill="#2f6fd6"/>
8
- </svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" width="64" height="64"><rect width="64" height="64" rx="14" fill="#0F1B2D"/><path d="M13.000 17.500 L9.000 17.500 L9.000 46.500 L13.000 46.500" fill="none" stroke="#6EE7C8" stroke-width="4.0" stroke-linecap="round" stroke-linejoin="round"/><path d="M22.000 17.500 L18.000 17.500 L18.000 46.500 L22.000 46.500" fill="none" stroke="#6EE7C8" stroke-width="4.0" stroke-linecap="round" stroke-linejoin="round"/><rect x="27.500" y="23" width="9" height="18" rx="2.4" fill="#6EE7C8"/><path d="M42.000 17.500 L46.000 17.500 L46.000 46.500 L42.000 46.500" fill="none" stroke="#6EE7C8" stroke-width="4.0" stroke-linecap="round" stroke-linejoin="round"/><path d="M51.000 17.500 L55.000 17.500 L55.000 46.500 L51.000 46.500" fill="none" stroke="#6EE7C8" stroke-width="4.0" stroke-linecap="round" stroke-linejoin="round"/></svg>