dsh-line-bot 0.7.1 → 0.7.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.7.2
4
+
5
+ - 匯入聊天時若成員還沒對應到 LINE 帳號,先用「名字」記住;本人第一次在群組發言時,這些記憶也會一起帶入。
6
+
3
7
  ## 0.7.1
4
8
 
5
9
  - 群組卡片新增「匯入聊天」:選 LINE 匯出的 `.txt`,自動整理群組摘要、常聊主題與各成員的記憶點;比較晚加入群組也能補上背景。
package/lib/host.mjs CHANGED
@@ -42,7 +42,7 @@ const { createMemeSource } = memeSourceMod
42
42
  const { createStickerImages } = stickerImageMod
43
43
  const { chunkText, clip, inQuietWindow, jsonFail, jsonOk, maskSecret, readJsonBody, safeArray, sleep } = utilMod
44
44
 
45
- export const VERSION = '0.7.1'
45
+ export const VERSION = '0.7.2'
46
46
 
47
47
  // 環境變數提供的 Cloudflare API Token(方便用 shell 注入、不用把 token 寫進設定檔)。
48
48
  // 設定檔裡的 token 優先;兩者都沒有時才用環境變數。
@@ -1476,7 +1476,15 @@ export async function create({ ctx, config: pluginConfig, logger: upstream }) {
1476
1476
  persona: applied.persona,
1477
1477
  personaText: applied.personaText,
1478
1478
  personaClient: persona(),
1479
- contextText: agentContextText(memoryKey, sourceKind, [groupImportedText(conversationKey), groupRecent].filter(Boolean).join('\n\n')),
1479
+ contextText: agentContextText(
1480
+ memoryKey,
1481
+ sourceKind,
1482
+ [
1483
+ groupImportedText(conversationKey),
1484
+ groupRecent,
1485
+ senderName && `${chatId}:name:${senderName}` !== memoryKey ? memoryContextText(`${chatId}:name:${senderName}`) : '',
1486
+ ].filter(Boolean).join('\n\n'),
1487
+ ),
1480
1488
  tools: memoryToolsFor(memoryKey),
1481
1489
  images: messageImages,
1482
1490
  cwd: ensureUserWorkspace(conversationKey) || cfg.agent.cwd || undefined,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-line-bot",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "description": "把 LINE 官方帳號(Messaging API)接進 DeepSeek Harness 的插件:內建 Cloudflare Tunnel、人設選擇(大肥魚或插件自訂)、主動傳訊與完整設定面板。",
5
5
  "type": "module",
6
6
  "main": "index.js",