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 +4 -0
- package/lib/host.mjs +10 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
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.
|
|
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(
|
|
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,
|