chatluna-plugin-livingmemory 0.0.5 → 0.0.7
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.md +14 -14
- package/client/guide-panel.tsx +60 -37
- package/client/locales/en.yml +14 -4
- package/client/locales/zh.yml +20 -10
- package/client/page.tsx +28 -0
- package/dist/.vite/manifest.json +1 -1
- package/dist/client.css +1 -1
- package/dist/client.js +1 -1
- package/dist/page-EGG2hcC3.js +3 -0
- package/lib/contracts/webui.d.ts +1 -0
- package/lib/contracts/webui.d.ts.map +1 -1
- package/lib/index.js +442 -433
- package/lib/index.js.map +1 -1
- package/lib/routing.d.ts.map +1 -1
- package/lib/service/app/webui.d.ts.map +1 -1
- package/lib/service/chat_history.d.ts +10 -14
- package/lib/service/chat_history.d.ts.map +1 -1
- package/lib/service/conversation_hooks.d.ts.map +1 -1
- package/lib/service/logging/logger.d.ts +2 -4
- package/lib/service/logging/logger.d.ts.map +1 -1
- package/lib/service/logging/model_calls.d.ts +18 -0
- package/lib/service/logging/model_calls.d.ts.map +1 -1
- package/lib/service/memory/conversation_sources.d.ts +2 -0
- package/lib/service/memory/conversation_sources.d.ts.map +1 -1
- package/lib/service/prompts/agentic_recall.d.ts.map +1 -1
- package/lib/service/prompts/dream.d.ts +2 -1
- package/lib/service/prompts/dream.d.ts.map +1 -1
- package/lib/service/prompts/extraction.d.ts +1 -0
- package/lib/service/prompts/extraction.d.ts.map +1 -1
- package/lib/service/prompts/memory_tools.d.ts +1 -5
- package/lib/service/prompts/memory_tools.d.ts.map +1 -1
- package/lib/service/prompts/persona_card.d.ts.map +1 -1
- package/lib/service/prompts/schema.d.ts +2 -25
- package/lib/service/prompts/schema.d.ts.map +1 -1
- package/lib/service/prompts/user_profile.d.ts.map +1 -1
- package/lib/service/shared/utils.d.ts +0 -4
- package/lib/service/shared/utils.d.ts.map +1 -1
- package/lib/service/transcript/element_text.d.ts +6 -1
- package/lib/service/transcript/element_text.d.ts.map +1 -1
- package/lib/service/workflows/dream/post_extraction.d.ts +1 -2
- package/lib/service/workflows/dream/post_extraction.d.ts.map +1 -1
- package/lib/service/workflows/dream/service.d.ts.map +1 -1
- package/lib/service/workflows/dream/session/history.d.ts +5 -4
- package/lib/service/workflows/dream/session/history.d.ts.map +1 -1
- package/lib/service/workflows/dream/session/runner.d.ts.map +1 -1
- package/lib/service/workflows/extraction/coordinator.d.ts.map +1 -1
- package/lib/service/workflows/extraction/extractor.d.ts +0 -4
- package/lib/service/workflows/extraction/extractor.d.ts.map +1 -1
- package/lib/service/workflows/structured_output.d.ts +10 -14
- package/lib/service/workflows/structured_output.d.ts.map +1 -1
- package/lib/service/workflows/tool_call.d.ts.map +1 -1
- package/lib/service/workflows/tool_loop.d.ts +12 -22
- package/lib/service/workflows/tool_loop.d.ts.map +1 -1
- package/package.json +2 -1
- package/src/contracts/webui.ts +1 -0
- package/dist/page-kxmLRgbo.js +0 -3
package/README.md
CHANGED
|
@@ -24,20 +24,20 @@ yarn build
|
|
|
24
24
|
|
|
25
25
|
在 **对话规则 → 能力 → LivingMemory** 设置全局默认值,或为指定群、频道单独配置。私聊可按频道或路由 ID 配置。
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
如果只想在指定群自动提取记忆,把全局的「从聊天中提取记忆的间隔」设为 `0`,再为这些群设置需要的消息条数。
|
|
28
28
|
|
|
29
|
-
|
|
|
29
|
+
| 配置项 | 配置键 | 默认值 | 说明 |
|
|
30
30
|
| --- | --- | --- | --- |
|
|
31
|
-
|
|
|
32
|
-
|
|
|
33
|
-
|
|
|
34
|
-
| `recallIntervalMessages` |
|
|
35
|
-
| `recallHistoryMessages` |
|
|
36
|
-
| `snapshotScope` |
|
|
37
|
-
| `snapshotMaxLines` |
|
|
38
|
-
|
|
|
39
|
-
|
|
|
40
|
-
|
|
|
31
|
+
| 从聊天中提取记忆的间隔 | `extractionWindowMessages` | `60` | 按未提取的聊天消息条数计算(0—360);`0` 关闭自动提取。 |
|
|
32
|
+
| 允许群友闲聊触发记忆提取 | `extractionIncludeOverheard` | `false` | 开启后,群友闲聊达到设定条数就能触发提取;关闭时,等 bot 回复后再检查。 |
|
|
33
|
+
| 是否在提取新记忆后进行 Dream 整理 | `enableAutoDream` | `true` | 自动提取保存新记忆后,由 Dream 检查是否需要整理。 |
|
|
34
|
+
| 记忆自动召回的间隔 | `recallIntervalMessages` | `20` | bot 被唤醒时按新增聊天条数判断是否召回;`0` 关闭自动召回。 |
|
|
35
|
+
| 用于召回记忆的聊天消息数 | `recallHistoryMessages` | `20` | 召回时最多读取多少条最近的聊天消息;画像注入也使用这段聊天记录。 |
|
|
36
|
+
| 记忆快照的使用范围 | `snapshotScope` | `conversation` | 每一个会话拥有独立记忆快照(`conversation`)或所有会话共享一个记忆快照(`preset`)。开启「会话记忆隔离」时使用独立快照。 |
|
|
37
|
+
| 记忆快照的最大行数 | `snapshotMaxLines` | `5` | 可设为 5—50 行。 |
|
|
38
|
+
| 会话记忆隔离 | `enableConversationIsolation` | `false` | 召回和检索工具只查当前会话的记忆和全局记忆。 |
|
|
39
|
+
| 向 bot 注入记忆快照 | `enableSnapshotInjection` | `true` | 在对话中提供已召回的记忆。 |
|
|
40
|
+
| 向 bot 注入用户画像 | `enableUserProfileInjection` | `false` | 在对话中提供最近聊天里发言人的已有画像。 |
|
|
41
41
|
|
|
42
42
|
## 插件配置
|
|
43
43
|
|
|
@@ -49,13 +49,13 @@ yarn build
|
|
|
49
49
|
|
|
50
50
|
| Key | Type | Default | Description |
|
|
51
51
|
| --- | --- | --- | --- |
|
|
52
|
-
| `debug` | boolean | `false` |
|
|
52
|
+
| `debug` | boolean | `false` | 记录 LivingMemory 每次调用对话模型时的提示词、消息和模型响应 |
|
|
53
53
|
|
|
54
54
|
### 模型配置
|
|
55
55
|
|
|
56
56
|
| Key | Type | Default | Description |
|
|
57
57
|
| --- | --- | --- | --- |
|
|
58
|
-
| `mainModel` | string | `无` |
|
|
58
|
+
| `mainModel` | string | `无` | 主模型:提取记忆、运行 Dream、更新人物画像和人设卡。需支持工具调用 |
|
|
59
59
|
| `subModel` | string | `无` | 子 LLM:召回记忆 |
|
|
60
60
|
| `embeddingModel` | string | `无` | 嵌入模型:将记忆和查询文本转换为向量,用于检索与 Dream |
|
|
61
61
|
| `rerankModel` | string | `无` | 重排序模型(可选):按候选记忆与查询的相关性重新排序 |
|
package/client/guide-panel.tsx
CHANGED
|
@@ -1,45 +1,68 @@
|
|
|
1
|
-
import { Button } from '@chatluna/ui-kit'
|
|
2
1
|
import { useTranslate } from '@chatluna/ui-client/client'
|
|
2
|
+
import { Button } from '@chatluna/ui-kit'
|
|
3
|
+
|
|
4
|
+
const chapters = [
|
|
5
|
+
{ key: 'start', topics: ['models', 'rules', 'check'] },
|
|
6
|
+
{ key: 'timing', topics: ['overheard', 'interval'] },
|
|
7
|
+
{ key: 'context', topics: ['sharing', 'profiles'] },
|
|
8
|
+
{ key: 'dream', topics: ['dream.auto', 'dream.manual', 'dream.result'] }
|
|
9
|
+
]
|
|
10
|
+
|
|
11
|
+
function goToChapter(key: string) {
|
|
12
|
+
const heading = document.getElementById(`livingmemory-guide-${key}`)
|
|
13
|
+
if (!heading) return
|
|
14
|
+
heading.focus({ preventScroll: true })
|
|
15
|
+
heading.scrollIntoView({ block: 'start' })
|
|
16
|
+
}
|
|
3
17
|
|
|
4
18
|
export function GuidePanel({ onOpenSettings }: { onOpenSettings(): void }) {
|
|
5
19
|
const t = useTranslate('livingmemory')
|
|
6
20
|
return (
|
|
7
|
-
<
|
|
8
|
-
<
|
|
9
|
-
<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
21
|
+
<div className="@container w-full">
|
|
22
|
+
<div className="mx-auto grid max-w-5xl gap-y-7 pb-12 pt-3 @3xl:grid-cols-[minmax(0,1fr)_11rem] @3xl:gap-x-12 @3xl:pt-6">
|
|
23
|
+
<header className="@3xl:col-start-1">
|
|
24
|
+
<h1 className="text-3xl font-bold tracking-tight">{t('tab.guide')}</h1>
|
|
25
|
+
<p className="mt-3 max-w-prose leading-7 text-muted-foreground">{t('guide.intro')}</p>
|
|
26
|
+
</header>
|
|
27
|
+
<nav aria-label={t('guide.contents')} className="border-l border-border pl-4 @3xl:sticky @3xl:top-5 @3xl:col-start-2 @3xl:row-span-2 @3xl:row-start-1 @3xl:self-start">
|
|
28
|
+
<p className="mb-2 text-sm font-semibold">{t('guide.contents')}</p>
|
|
29
|
+
<ul className="flex flex-wrap gap-x-4 gap-y-1 @3xl:flex-col">
|
|
30
|
+
{chapters.map(({ key }) => (
|
|
31
|
+
<li key={key}>
|
|
32
|
+
<button type="button" onClick={() => goToChapter(key)} className="block py-1 text-left text-sm text-muted-foreground hover:text-foreground hover:underline">
|
|
33
|
+
{t(`guide.${key}`)}
|
|
34
|
+
</button>
|
|
35
|
+
</li>
|
|
36
|
+
))}
|
|
37
|
+
</ul>
|
|
38
|
+
</nav>
|
|
39
|
+
<article className="min-w-0 space-y-9 @3xl:col-start-1">
|
|
40
|
+
{chapters.map(({ key, topics }) => (
|
|
41
|
+
<section key={key} className="border-t border-border pt-6">
|
|
42
|
+
<h2 id={`livingmemory-guide-${key}`} tabIndex={-1} className="scroll-mt-5 text-xl font-semibold tracking-tight">
|
|
43
|
+
{t(`guide.${key}`)}
|
|
44
|
+
</h2>
|
|
45
|
+
{key === 'dream' && <p className="mt-3 leading-7">{t('guide.dream.intro')}</p>}
|
|
46
|
+
{topics.map((topic, index) => (
|
|
47
|
+
<div key={topic} className="mt-5">
|
|
48
|
+
<h3 className="font-semibold">
|
|
49
|
+
{key === 'start' && <span className="mr-2 text-muted-foreground">{index + 1}.</span>}
|
|
50
|
+
{t(`guide.${topic}.title`)}
|
|
51
|
+
</h3>
|
|
52
|
+
<p className="mt-1.5 leading-7">{t(`guide.${topic}.text`)}</p>
|
|
53
|
+
{topic === 'models' && <Button variant="outline" className="mt-3" onClick={onOpenSettings}>{t('guide.openSettings')}</Button>}
|
|
54
|
+
</div>
|
|
55
|
+
))}
|
|
56
|
+
{key === 'timing' && (
|
|
57
|
+
<aside className="mt-5 rounded-lg bg-muted px-5 py-4">
|
|
58
|
+
<h3 className="font-semibold">{t('guide.buffer.title')}</h3>
|
|
59
|
+
<p className="mt-1.5 leading-7">{t('guide.buffer.text')}</p>
|
|
60
|
+
</aside>
|
|
61
|
+
)}
|
|
62
|
+
</section>
|
|
40
63
|
))}
|
|
41
|
-
</
|
|
42
|
-
</
|
|
43
|
-
</
|
|
64
|
+
</article>
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
44
67
|
)
|
|
45
68
|
}
|
package/client/locales/en.yml
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
preset.placeholder: Select a preset
|
|
2
|
+
nativeMemory.title: The built-in memory plugin is also running
|
|
3
|
+
nativeMemory.description: LivingMemory and the built-in memory plugin have similar features. We recommend enabling only one.
|
|
4
|
+
nativeMemory.risk: Running both may use extra tokens or cause unexpected issues.
|
|
5
|
+
nativeMemory.close: Dismiss for now
|
|
6
|
+
nativeMemory.neverShow: Got it, don’t show this again
|
|
2
7
|
transfer.export: Export memories
|
|
3
8
|
transfer.import: Import memories
|
|
4
9
|
transfer.confirmTitle: 'Import into “{target}”?'
|
|
@@ -129,23 +134,28 @@ tab.navigation: Memory management
|
|
|
129
134
|
tab.settings: Plugin configuration
|
|
130
135
|
tab.guide: Plugin guide
|
|
131
136
|
guide.start: Getting started
|
|
137
|
+
guide.intro: Choose your models and conversations, then try a search with one memory. The following sections explain when the bot saves and recalls memories, how to use profiles, and how Dream organizes existing memories.
|
|
138
|
+
guide.contents: On this page
|
|
132
139
|
guide.models.title: Choose your models
|
|
133
|
-
guide.models.text: Under Plugin configuration → Model configuration, choose
|
|
140
|
+
guide.models.text: Under Plugin configuration → Model configuration, choose a main model that supports tool calls. It extracts and organizes memories and updates user profiles and persona cards. The recall model decides whether to look up memories. The embedding model converts memories and queries into vectors so the plugin can compare their meanings. An optional reranker reorders the candidate memories by their relevance to the query. Select Save settings to apply these choices to all presets in this plugin instance.
|
|
134
141
|
guide.openSettings: Open plugin configuration
|
|
135
142
|
guide.rules.title: Choose which conversations use automatic extraction
|
|
136
143
|
guide.rules.text: Open Conversation rules → Capabilities → LivingMemory and set the extraction interval. The default is 60 chat messages. To enable automatic extraction in just one group, set the global interval to 0 and that group’s interval to 60.
|
|
137
144
|
guide.check.title: Try a search with one memory
|
|
138
145
|
guide.check.text: Under Memories, select New memory, choose a preset, and save “I drink my coffee without sugar.” Under Recall test for the same preset, search for “How do I like my coffee?” to see the matches. The test leaves snapshots unchanged. Under Snapshots you can read the snapshot from an actual chat. Expand Recall details to see the search terms and matching memories.
|
|
139
|
-
guide.
|
|
146
|
+
guide.timing: When extraction and recall run
|
|
147
|
+
guide.buffer.title: Check the chat buffer before raising an interval
|
|
148
|
+
guide.buffer.text: In ChatLuna, open Plugins → Conversation and routing → @chatluna/chat-observer and adjust the buffer limit. Each channel keeps its latest 200 messages by default. Extraction and recall can only count chats still in that buffer. For example, a 300-message extraction interval can never be reached with a 200-message buffer. Even with a shorter interval, messages evicted between checks cannot be read later.
|
|
149
|
+
guide.context: Snapshots and user profiles
|
|
140
150
|
guide.interval.title: How does the recall interval differ from the history length?
|
|
141
|
-
guide.interval.text:
|
|
151
|
+
guide.interval.text: The interval tells the bot how many new messages to wait for between recalls when it wakes. Set it to 0 to disable automatic recall. The history length sets how many recent messages the bot reads for each recall. Both default to 20 messages.
|
|
142
152
|
guide.overheard.title: When can chat between group members trigger extraction?
|
|
143
153
|
guide.overheard.text: Overheard extraction is off by default. Group chatter alone will not trigger extraction. Once the bot replies, the plugin counts unprocessed messages up to that reply, including earlier chatter, and starts extraction if the interval has been reached. With overheard extraction on, group members can reach the threshold on their own without calling the bot or waiting for a reply.
|
|
144
154
|
guide.sharing.title: Can two groups using the same preset share a snapshot?
|
|
145
155
|
guide.sharing.text: Each conversation has its own snapshot by default. To share one between two groups using the same preset, select preset sharing in both groups’ conversation rules. The groups share recall results; each still reads its own chat history and tracks its own recall interval. A group with conversation isolation enabled always uses its own snapshot and searches only its own and global memories within the preset.
|
|
146
156
|
guide.profiles.title: How do I use existing user profiles in a chat?
|
|
147
157
|
guide.profiles.text: By default, profiles are updated after extraction or Dream, and each person needs at least three linked active memories. You can change these settings under Plugin configuration. To use existing profiles during a chat, enable profile injection in the conversation rule (off by default). The bot receives profiles for users who spoke in the recent messages covered by the recall history length.
|
|
148
|
-
guide.dream
|
|
158
|
+
guide.dream: How Dream organizes memories
|
|
149
159
|
guide.dream.intro: Dream uses the main model to compare memories and decide which to keep, update, merge, split, or archive. For example, “I take my coffee without sugar” and “I like unsweetened coffee” can become a single preference. Choose a main model with a context window of at least 200k tokens for Dream.
|
|
150
160
|
guide.dream.auto.title: Automatic runs start with newly extracted memories
|
|
151
161
|
guide.dream.auto.text: Conversation rules enable Dream after extraction by default. For each newly saved memory, Dream looks for related active memories already in the same preset and reviews them together. If it finds no related older memory, the new entry stays as it is.
|
package/client/locales/zh.yml
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
preset.placeholder: 选择预设
|
|
2
|
+
nativeMemory.title: 检测到您已同时启动原生 memory 插件
|
|
3
|
+
nativeMemory.description: LivingMemory 和原生 memory 插件在功能上较为相似,建议仅启用其中一个。
|
|
4
|
+
nativeMemory.risk: 否则可能会带来额外的 token 开销或其他未知问题。
|
|
5
|
+
nativeMemory.close: 本次关闭
|
|
6
|
+
nativeMemory.neverShow: 我知道了,且以后不再提示
|
|
2
7
|
preset.actions: 预设操作
|
|
3
8
|
tab.navigation: 记忆管理
|
|
4
9
|
transfer.export: 导出记忆
|
|
@@ -15,26 +20,31 @@ tab.entries: 记忆
|
|
|
15
20
|
tab.settings: 插件配置
|
|
16
21
|
tab.guide: 插件指南
|
|
17
22
|
guide.start: 第一次使用
|
|
23
|
+
guide.intro: 先配置模型、选好要记录的对话,再用一条记忆试试检索。下面也说明了机器人何时提取记忆、何时想起它,以及 Dream 如何整理已有的记忆。
|
|
24
|
+
guide.contents: 本页目录
|
|
18
25
|
guide.models.title: 配置模型
|
|
19
|
-
guide.models.text: 在「插件配置 →
|
|
26
|
+
guide.models.text: 在「插件配置 → 模型配置」选择模型。主模型需要支持工具调用,用于提取和整理记忆、更新人物画像和人设卡。召回模型判断当前聊天是否需要查找记忆。嵌入模型将记忆和查询文本转换为向量,供插件比较语义相似度。重排序模型是可选的:它根据查询与每条候选记忆的相关性,重新排列检索结果。点「保存设置」后,这些选择对当前插件实例的所有预设生效。
|
|
20
27
|
guide.openSettings: 打开插件配置
|
|
21
28
|
guide.rules.title: 选择在哪些对话中自动提取记忆
|
|
22
|
-
guide.rules.text: 在「对话规则 → 能力 → LivingMemory
|
|
29
|
+
guide.rules.text: 在「对话规则 → 能力 → LivingMemory」设置「从聊天中提取记忆的间隔」,默认是 60 条聊天消息。要只在某个群自动提取,把全局间隔设为 0,再把该群规则的间隔设为 60。
|
|
23
30
|
guide.check.title: 用一条记忆试试检索
|
|
24
31
|
guide.check.text: 在「记忆」页点「新建记忆」,选好预设,写下“我喝咖啡不加糖”并保存。到同一预设的「召回测试」搜索“我喜欢喝什么咖啡”,查看检索结果。测试不会更新快照。实际聊天的快照正文在「快照」页查看,展开「召回详情」可以看到搜索词和命中的记忆。
|
|
25
|
-
guide.
|
|
26
|
-
guide.
|
|
27
|
-
guide.
|
|
32
|
+
guide.timing: 提取与召回的时机
|
|
33
|
+
guide.buffer.title: 调大间隔前,先看聊天缓存
|
|
34
|
+
guide.buffer.text: 在 ChatLuna 的「插件 → 对话与路由 → @chatluna/chat-observer → 缓存条数」调整。默认每个频道保留最近 200 条消息,提取和召回都只能统计还在缓存里的聊天。例如,缓存是 200 条,提取间隔设为 300 条,就永远凑不够。即使间隔较小,两次检查之间被挤出缓存的旧消息也不会补读。
|
|
35
|
+
guide.context: 快照与用户画像
|
|
36
|
+
guide.interval.title: 「记忆自动召回的间隔」和「用于召回记忆的聊天消息数」有什么区别?
|
|
37
|
+
guide.interval.text: 前者决定 bot 被唤醒时,隔多少条新消息召回一次;设为 0 会关闭自动召回。后者决定每次召回向前读多少条聊天。两项默认都是 20 条。
|
|
28
38
|
guide.overheard.title: 群友之间的闲聊什么时候会触发提取?
|
|
29
|
-
guide.overheard.text:
|
|
39
|
+
guide.overheard.text: 「允许群友闲聊触发记忆提取」默认关闭。等 bot 回复后,插件才检查未提取的消息是否达到设定条数,先前的闲聊也计入条数。开启后,即使 bot 没有参与,群友闲聊达到设定条数也会触发提取。
|
|
30
40
|
guide.sharing.title: 同一预设下的两个群能共用快照吗?
|
|
31
|
-
guide.sharing.text:
|
|
41
|
+
guide.sharing.text: 默认每个会话各用一份快照。要让同一预设下的两个群共用一份,在适用于这两个群的对话规则中,将「记忆快照的使用范围」设为「所有会话共享一个记忆快照」。两个群共享召回结果,仍各自读取聊天记录、计算召回间隔。开启「会话记忆隔离」后,这份规则涉及的会话各用独立快照。
|
|
32
42
|
guide.profiles.title: 已经生成了用户画像,怎样在聊天中使用?
|
|
33
|
-
guide.profiles.text: 默认在提取或 Dream 整理后更新画像,每位用户至少需要 3
|
|
34
|
-
guide.dream
|
|
43
|
+
guide.profiles.text: 默认在提取或 Dream 整理后更新画像,每位用户至少需要 3 条关联的活跃记忆。这些条件在「插件配置」中调整。要让机器人在聊天中使用已有画像,还需在对话规则中打开「向 bot 注入用户画像」(默认关闭)。注入哪些人的画像,取决于本次召回上下文里有哪些用户发过言。
|
|
44
|
+
guide.dream: Dream 如何整理记忆
|
|
35
45
|
guide.dream.intro: Dream 让主模型对照已有的记忆,决定哪些该保留、更新、合并、拆分或归档。例如,“我喝咖啡不加糖”和“我喜欢无糖咖啡”可以合并成一条偏好。使用 Dream 时,请选择上下文窗口至少为 200k tokens 的主模型。
|
|
36
46
|
guide.dream.auto.title: 自动整理:从刚提取的新记忆开始
|
|
37
|
-
guide.dream.auto.text:
|
|
47
|
+
guide.dream.auto.text: 对话规则中的「是否在提取新记忆后进行 Dream 整理」默认开启。每次自动提取保存新记忆后,Dream 会为每条新记忆查找同一预设下相关的活跃旧记忆,放在一起整理。找不到相关旧记忆时,新条目保持原样。
|
|
38
48
|
guide.dream.manual.title: 手动整理:检查整个预设
|
|
39
49
|
guide.dream.manual.text: 预设里至少有 30 条活跃记忆时,可以在「记忆」页选择该预设,点「运行 Dream」。Dream 会把活跃记忆按内容相关性分组,逐组检查。30 条的门槛只用于手动整理。
|
|
40
50
|
guide.dream.result.title: 查看整理结果
|
package/client/page.tsx
CHANGED
|
@@ -30,6 +30,7 @@ import {
|
|
|
30
30
|
useTranslate
|
|
31
31
|
} from '@chatluna/ui-client/client'
|
|
32
32
|
import type { Translate } from '@chatluna/ui-client/client'
|
|
33
|
+
import { useStored } from '@chatluna/ui-storage'
|
|
33
34
|
import { PresetActions } from './preset-actions.tsx'
|
|
34
35
|
import { SettingsPanel } from './settings-panel.tsx'
|
|
35
36
|
import { GuidePanel } from './guide-panel.tsx'
|
|
@@ -160,6 +161,7 @@ export function LivingMemoryPage() {
|
|
|
160
161
|
}} />
|
|
161
162
|
)}
|
|
162
163
|
<Warnings warnings={status.data?.warnings ?? []} />
|
|
164
|
+
<NativeMemoryNotice active={status.data?.nativeMemoryActive === true} />
|
|
163
165
|
<div ref={panel} className="flex min-h-0 min-w-0 flex-1 flex-col">
|
|
164
166
|
{renderPanel()}
|
|
165
167
|
<React.Activity mode={tab === 'settings' ? 'visible' : 'hidden'}>
|
|
@@ -170,6 +172,32 @@ export function LivingMemoryPage() {
|
|
|
170
172
|
)
|
|
171
173
|
}
|
|
172
174
|
|
|
175
|
+
function NativeMemoryNotice({ active }: { active: boolean }) {
|
|
176
|
+
const t = useT()
|
|
177
|
+
const [dismissed, setDismissed] = React.useState(false)
|
|
178
|
+
const [neverShow, setNeverShow] = useStored('livingmemory.hideNativeMemoryNotice', value => value === true)
|
|
179
|
+
if (!active || dismissed || neverShow) return null
|
|
180
|
+
|
|
181
|
+
return (
|
|
182
|
+
<Dialog open onOpenChange={open => { if (!open) setDismissed(true) }}>
|
|
183
|
+
<DialogContent showCloseButton={false} className="flex flex-col gap-0 p-0 sm:max-w-[31rem]">
|
|
184
|
+
<div className="px-5 pt-6 pb-5 sm:px-7 sm:pt-7 sm:pb-6">
|
|
185
|
+
<DialogTitle className="mb-3 text-xl leading-snug font-semibold text-balance">{t('nativeMemory.title')}</DialogTitle>
|
|
186
|
+
<DialogDescription className="text-sm leading-6 text-balance text-popover-foreground">
|
|
187
|
+
{t('nativeMemory.description')}
|
|
188
|
+
<span className="mt-1 block text-muted-foreground">{t('nativeMemory.risk')}</span>
|
|
189
|
+
</DialogDescription>
|
|
190
|
+
</div>
|
|
191
|
+
<div className="flex flex-col gap-2 border-t border-border bg-muted/30 px-5 py-4 sm:flex-row sm:items-center sm:justify-between sm:px-7">
|
|
192
|
+
<Button size="lg" variant="ghost" onClick={() => setDismissed(true)}>{t('nativeMemory.close')}</Button>
|
|
193
|
+
<Button size="lg" className="bg-neutral-800 text-white hover:bg-neutral-700 active:bg-neutral-600 dark:bg-neutral-200 dark:text-neutral-900 dark:hover:bg-neutral-300 dark:active:bg-neutral-400"
|
|
194
|
+
onClick={() => setNeverShow(true)}>{t('nativeMemory.neverShow')}</Button>
|
|
195
|
+
</div>
|
|
196
|
+
</DialogContent>
|
|
197
|
+
</Dialog>
|
|
198
|
+
)
|
|
199
|
+
}
|
|
200
|
+
|
|
173
201
|
function PresetPicker({
|
|
174
202
|
presets,
|
|
175
203
|
value,
|
package/dist/.vite/manifest.json
CHANGED
package/dist/client.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! tailwindcss v4.3.4 | MIT License | https://tailwindcss.com */
|
|
2
|
-
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:block))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-ease:initial;--tw-content:""}}}@layer utilities{@layer plugin{.\@container{container-type:inline-size}.visible{visibility:visible}.sticky{position:sticky}.top-0{top:0}.z-10{z-index:10}.row-span-4{grid-row:span 4/span 4}.row-start-3{grid-row-start:3}.row-start-4{grid-row-start:4}.mx-auto{margin-inline:auto}.mt-0\.5{margin-top:calc(var(--spacing,.25rem) * .5)}.mt-1{margin-top:var(--spacing,.25rem)}.mt-2{margin-top:calc(var(--spacing,.25rem) * 2)}.mt-3{margin-top:calc(var(--spacing,.25rem) * 3)}.mt-4{margin-top:calc(var(--spacing,.25rem) * 4)}.mr-2{margin-right:calc(var(--spacing,.25rem) * 2)}.ml-auto{margin-left:auto}.line-clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-4{-webkit-line-clamp:4;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.h-32{height:calc(var(--spacing,.25rem) * 32)}.h-\[30px\]{height:30px}.h-full{height:100%}.max-h-\[3lh\]{max-height:3lh}.max-h-\[85dvh\]{max-height:85dvh}.max-h-\[min\(55vh\,var\(--available-height\)\)\]{max-height:min(55vh, var(--available-height))}.min-h-0{min-height:0}.min-h-8{min-height:calc(var(--spacing,.25rem) * 8)}.w-28{width:calc(var(--spacing,.25rem) * 28)}.w-32{width:calc(var(--spacing,.25rem) * 32)}.w-40{width:calc(var(--spacing,.25rem) * 40)}.w-48{width:calc(var(--spacing,.25rem) * 48)}.w-64{width:calc(var(--spacing,.25rem) * 64)}.w-full{width:100%}.max-w-3xl{max-width:var(--container-3xl,48rem)}.max-w-\[min\(32rem\,var\(--available-width\)\)\]{max-width:min(32rem, var(--available-width))}.max-w-full{max-width:100%}.min-w-0{min-width:0}.flex-1{flex:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.transform{transform:var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, )}.cursor-pointer{cursor:pointer}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-\[auto_1fr\]{grid-template-columns:auto 1fr}.grid-rows-subgrid{grid-template-rows:subgrid}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.content-start{align-content:flex-start}.items-baseline{align-items:baseline}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-end{justify-content:flex-end}.gap-1{gap:var(--spacing,.25rem)}.gap-2{gap:calc(var(--spacing,.25rem) * 2)}.gap-2\.5{gap:calc(var(--spacing,.25rem) * 2.5)}.gap-3{gap:calc(var(--spacing,.25rem) * 3)}.gap-4{gap:calc(var(--spacing,.25rem) * 4)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing,.25rem) * var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing,.25rem) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing,.25rem) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing,.25rem) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing,.25rem) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing,.25rem) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing,.25rem) * 8) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing,.25rem) * 8) * calc(1 - var(--tw-space-y-reverse)))}.gap-x-3{column-gap:calc(var(--spacing,.25rem) * 3)}.gap-x-4{column-gap:calc(var(--spacing,.25rem) * 4)}.gap-y-0{row-gap:0}.gap-y-0\.5{row-gap:calc(var(--spacing,.25rem) * .5)}.gap-y-1{row-gap:var(--spacing,.25rem)}.gap-y-2{row-gap:calc(var(--spacing,.25rem) * 2)}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-border>:not(:last-child)){border-color:var(--border)}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-xl{border-radius:calc(var(--radius) + 4px)}.rounded-b-xl{border-bottom-right-radius:calc(var(--radius) + 4px);border-bottom-left-radius:calc(var(--radius) + 4px)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-amber-500\/40{border-color:#f99c0066}@supports (color:color-mix(in lab, red, red)){.border-amber-500\/40{border-color:color-mix(in oklab, var(--color-amber-500,oklch(76.9% .188 70.08)) 40%, transparent)}}.border-border{border-color:var(--border)}.border-transparent{border-color:#0000}.bg-amber-500\/10{background-color:#f99c001a}@supports (color:color-mix(in lab, red, red)){.bg-amber-500\/10{background-color:color-mix(in oklab, var(--color-amber-500,oklch(76.9% .188 70.08)) 10%, transparent)}}.bg-background{background-color:var(--background)}.bg-card{background-color:var(--card)}.bg-muted\/30{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.bg-muted\/30{background-color:color-mix(in oklab, var(--muted) 30%, transparent)}}.p-3{padding:calc(var(--spacing,.25rem) * 3)}.p-4{padding:calc(var(--spacing,.25rem) * 4)}.px-2{padding-inline:calc(var(--spacing,.25rem) * 2)}.px-3{padding-inline:calc(var(--spacing,.25rem) * 3)}.py-1\.5{padding-block:calc(var(--spacing,.25rem) * 1.5)}.py-2{padding-block:calc(var(--spacing,.25rem) * 2)}.py-3{padding-block:calc(var(--spacing,.25rem) * 3)}.pt-2{padding-top:calc(var(--spacing,.25rem) * 2)}.pt-3{padding-top:calc(var(--spacing,.25rem) * 3)}.pb-1\.5{padding-bottom:calc(var(--spacing,.25rem) * 1.5)}.pb-2{padding-bottom:calc(var(--spacing,.25rem) * 2)}.pb-2\.5{padding-bottom:calc(var(--spacing,.25rem) * 2.5)}.pb-3{padding-bottom:calc(var(--spacing,.25rem) * 3)}.pb-6{padding-bottom:calc(var(--spacing,.25rem) * 6)}.pl-1{padding-left:var(--spacing,.25rem)}.pl-5{padding-left:calc(var(--spacing,.25rem) * 5)}.pl-6{padding-left:calc(var(--spacing,.25rem) * 6)}.text-base{font-size:var(--text-base,1rem);line-height:var(--tw-leading,var(--text-base--line-height,calc(1.5 / 1)))}.text-lg{font-size:var(--text-lg,1.125rem);line-height:var(--tw-leading,var(--text-lg--line-height,calc(1.75 / 1.125)))}.text-sm{font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,calc(1.25 / .875)))}.text-xs{font-size:var(--text-xs,.75rem);line-height:var(--tw-leading,var(--text-xs--line-height,calc(1 / .75)))}.leading-6{--tw-leading:calc(var(--spacing,.25rem) * 6);line-height:calc(var(--spacing,.25rem) * 6)}.leading-relaxed{--tw-leading:var(--leading-relaxed,1.625);line-height:var(--leading-relaxed,1.625)}.leading-snug{--tw-leading:var(--leading-snug,1.375);line-height:var(--leading-snug,1.375)}.font-medium{--tw-font-weight:var(--font-weight-medium,500);font-weight:var(--font-weight-medium,500)}.font-semibold{--tw-font-weight:var(--font-weight-semibold,600);font-weight:var(--font-weight-semibold,600)}.\[overflow-wrap\:anywhere\]{overflow-wrap:anywhere}.break-words{overflow-wrap:break-word}.whitespace-pre-wrap{white-space:pre-wrap}.text-card-foreground,.text-card-foreground\/85{color:var(--card-foreground)}@supports (color:color-mix(in lab, red, red)){.text-card-foreground\/85{color:color-mix(in oklab, var(--card-foreground) 85%, transparent)}}.text-destructive{color:var(--destructive)}.text-muted-foreground{color:var(--muted-foreground)}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-80{opacity:.8}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.filter{filter:var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, )}.ease-out{--tw-ease:var(--ease-out,cubic-bezier(0, 0, .2, 1));transition-timing-function:var(--ease-out,cubic-bezier(0, 0, .2, 1))}.running{animation-play-state:running}}.marker\:font-semibold ::marker{--tw-font-weight:var(--font-weight-semibold,600);font-weight:var(--font-weight-semibold,600)}.marker\:font-semibold::marker{--tw-font-weight:var(--font-weight-semibold,600);font-weight:var(--font-weight-semibold,600)}.marker\:font-semibold ::-webkit-details-marker{--tw-font-weight:var(--font-weight-semibold,600);font-weight:var(--font-weight-semibold,600)}.marker\:font-semibold::-webkit-details-marker{--tw-font-weight:var(--font-weight-semibold,600);font-weight:var(--font-weight-semibold,600)}.marker\:text-primary ::marker{color:var(--primary)}.marker\:text-primary::marker{color:var(--primary)}.marker\:text-primary ::-webkit-details-marker{color:var(--primary)}.marker\:text-primary::-webkit-details-marker{color:var(--primary)}@media (hover:hover){.hover\:text-foreground:hover{color:var(--foreground)}}.focus-visible\:-outline-offset-2:focus-visible{outline-offset:calc(2px * -1)}.focus-visible\:outline-ring:focus-visible{outline-color:var(--ring)}.aria-\[current\=page\]\:border-primary[aria-current=page]{border-color:var(--primary)}.aria-\[current\=page\]\:font-medium[aria-current=page]{--tw-font-weight:var(--font-weight-medium,500);font-weight:var(--font-weight-medium,500)}.aria-\[current\=page\]\:text-foreground[aria-current=page]{color:var(--foreground)}.data-indeterminate\:border-primary[data-indeterminate]{border-color:var(--primary)}.data-indeterminate\:before\:h-0\.5[data-indeterminate]:before{content:var(--tw-content);height:calc(var(--spacing,.25rem) * .5)}.data-indeterminate\:before\:w-2[data-indeterminate]:before{content:var(--tw-content);width:calc(var(--spacing,.25rem) * 2)}.data-indeterminate\:before\:bg-primary[data-indeterminate]:before{content:var(--tw-content);background-color:var(--primary)}.data-\[selected\=true\]\:border-primary[data-selected=true]{border-color:var(--primary)}@media (min-width:40rem){.sm\:w-64{width:calc(var(--spacing,.25rem) * 64)}.sm\:max-w-2xl{max-width:var(--container-2xl,42rem)}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:p-6{padding:calc(var(--spacing,.25rem) * 6)}}@container (min-width:38rem){.\@min-\[38rem\]\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@container (min-width:57rem){.\@min-\[57rem\]\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@container (min-width:76rem){.\@min-\[76rem\]\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}.data-indeterminate\:\[\&\>span\]\:hidden[data-indeterminate]>span{display:none}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}
|
|
2
|
+
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:block))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-ease:initial;--tw-content:""}}}@layer utilities{@layer plugin{.\@container{container-type:inline-size}.visible{visibility:visible}.sticky{position:sticky}.top-0{top:0}.z-10{z-index:10}.row-span-4{grid-row:span 4/span 4}.row-start-3{grid-row-start:3}.row-start-4{grid-row-start:4}.mx-auto{margin-inline:auto}.mt-0\.5{margin-top:calc(var(--spacing,.25rem) * .5)}.mt-1{margin-top:var(--spacing,.25rem)}.mt-1\.5{margin-top:calc(var(--spacing,.25rem) * 1.5)}.mt-3{margin-top:calc(var(--spacing,.25rem) * 3)}.mt-5{margin-top:calc(var(--spacing,.25rem) * 5)}.mr-2{margin-right:calc(var(--spacing,.25rem) * 2)}.mb-2{margin-bottom:calc(var(--spacing,.25rem) * 2)}.mb-3{margin-bottom:calc(var(--spacing,.25rem) * 3)}.ml-auto{margin-left:auto}.line-clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-4{-webkit-line-clamp:4;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.h-32{height:calc(var(--spacing,.25rem) * 32)}.h-\[30px\]{height:30px}.h-full{height:100%}.max-h-\[3lh\]{max-height:3lh}.max-h-\[85dvh\]{max-height:85dvh}.max-h-\[min\(55vh\,var\(--available-height\)\)\]{max-height:min(55vh, var(--available-height))}.min-h-0{min-height:0}.min-h-8{min-height:calc(var(--spacing,.25rem) * 8)}.w-28{width:calc(var(--spacing,.25rem) * 28)}.w-32{width:calc(var(--spacing,.25rem) * 32)}.w-40{width:calc(var(--spacing,.25rem) * 40)}.w-48{width:calc(var(--spacing,.25rem) * 48)}.w-64{width:calc(var(--spacing,.25rem) * 64)}.w-full{width:100%}.max-w-3xl{max-width:var(--container-3xl,48rem)}.max-w-5xl{max-width:var(--container-5xl,64rem)}.max-w-\[min\(32rem\,var\(--available-width\)\)\]{max-width:min(32rem, var(--available-width))}.max-w-full{max-width:100%}.max-w-prose{max-width:65ch}.min-w-0{min-width:0}.flex-1{flex:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.transform{transform:var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, )}.cursor-pointer{cursor:pointer}.scroll-mt-5{scroll-margin-top:calc(var(--spacing,.25rem) * 5)}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-\[auto_1fr\]{grid-template-columns:auto 1fr}.grid-rows-subgrid{grid-template-rows:subgrid}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.content-start{align-content:flex-start}.items-baseline{align-items:baseline}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-end{justify-content:flex-end}.gap-0{gap:0}.gap-1{gap:var(--spacing,.25rem)}.gap-2{gap:calc(var(--spacing,.25rem) * 2)}.gap-2\.5{gap:calc(var(--spacing,.25rem) * 2.5)}.gap-3{gap:calc(var(--spacing,.25rem) * 3)}.gap-4{gap:calc(var(--spacing,.25rem) * 4)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing,.25rem) * var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing,.25rem) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing,.25rem) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing,.25rem) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-9>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing,.25rem) * 9) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing,.25rem) * 9) * calc(1 - var(--tw-space-y-reverse)))}.gap-x-3{column-gap:calc(var(--spacing,.25rem) * 3)}.gap-x-4{column-gap:calc(var(--spacing,.25rem) * 4)}.gap-y-0{row-gap:0}.gap-y-0\.5{row-gap:calc(var(--spacing,.25rem) * .5)}.gap-y-1{row-gap:var(--spacing,.25rem)}.gap-y-2{row-gap:calc(var(--spacing,.25rem) * 2)}.gap-y-7{row-gap:calc(var(--spacing,.25rem) * 7)}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-xl{border-radius:calc(var(--radius) + 4px)}.rounded-b-xl{border-bottom-right-radius:calc(var(--radius) + 4px);border-bottom-left-radius:calc(var(--radius) + 4px)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-amber-500\/40{border-color:#f99c0066}@supports (color:color-mix(in lab, red, red)){.border-amber-500\/40{border-color:color-mix(in oklab, var(--color-amber-500,oklch(76.9% .188 70.08)) 40%, transparent)}}.border-border{border-color:var(--border)}.border-transparent{border-color:#0000}.bg-amber-500\/10{background-color:#f99c001a}@supports (color:color-mix(in lab, red, red)){.bg-amber-500\/10{background-color:color-mix(in oklab, var(--color-amber-500,oklch(76.9% .188 70.08)) 10%, transparent)}}.bg-background{background-color:var(--background)}.bg-card{background-color:var(--card)}.bg-muted,.bg-muted\/30{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.bg-muted\/30{background-color:color-mix(in oklab, var(--muted) 30%, transparent)}}.bg-neutral-800{background-color:var(--color-neutral-800,oklch(26.9% 0 none))}.p-0{padding:0}.p-3{padding:calc(var(--spacing,.25rem) * 3)}.p-4{padding:calc(var(--spacing,.25rem) * 4)}.px-2{padding-inline:calc(var(--spacing,.25rem) * 2)}.px-3{padding-inline:calc(var(--spacing,.25rem) * 3)}.px-5{padding-inline:calc(var(--spacing,.25rem) * 5)}.py-1{padding-block:var(--spacing,.25rem)}.py-1\.5{padding-block:calc(var(--spacing,.25rem) * 1.5)}.py-2{padding-block:calc(var(--spacing,.25rem) * 2)}.py-4{padding-block:calc(var(--spacing,.25rem) * 4)}.pt-2{padding-top:calc(var(--spacing,.25rem) * 2)}.pt-3{padding-top:calc(var(--spacing,.25rem) * 3)}.pt-6{padding-top:calc(var(--spacing,.25rem) * 6)}.pb-1\.5{padding-bottom:calc(var(--spacing,.25rem) * 1.5)}.pb-2{padding-bottom:calc(var(--spacing,.25rem) * 2)}.pb-2\.5{padding-bottom:calc(var(--spacing,.25rem) * 2.5)}.pb-3{padding-bottom:calc(var(--spacing,.25rem) * 3)}.pb-5{padding-bottom:calc(var(--spacing,.25rem) * 5)}.pb-12{padding-bottom:calc(var(--spacing,.25rem) * 12)}.pl-4{padding-left:calc(var(--spacing,.25rem) * 4)}.pl-5{padding-left:calc(var(--spacing,.25rem) * 5)}.text-left{text-align:left}.text-3xl{font-size:var(--text-3xl,1.875rem);line-height:var(--tw-leading,var(--text-3xl--line-height,calc(2.25 / 1.875)))}.text-base{font-size:var(--text-base,1rem);line-height:var(--tw-leading,var(--text-base--line-height,calc(1.5 / 1)))}.text-sm{font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,calc(1.25 / .875)))}.text-xl{font-size:var(--text-xl,1.25rem);line-height:var(--tw-leading,var(--text-xl--line-height,calc(1.75 / 1.25)))}.text-xs{font-size:var(--text-xs,.75rem);line-height:var(--tw-leading,var(--text-xs--line-height,calc(1 / .75)))}.leading-6{--tw-leading:calc(var(--spacing,.25rem) * 6);line-height:calc(var(--spacing,.25rem) * 6)}.leading-7{--tw-leading:calc(var(--spacing,.25rem) * 7);line-height:calc(var(--spacing,.25rem) * 7)}.leading-relaxed{--tw-leading:var(--leading-relaxed,1.625);line-height:var(--leading-relaxed,1.625)}.leading-snug{--tw-leading:var(--leading-snug,1.375);line-height:var(--leading-snug,1.375)}.font-bold{--tw-font-weight:var(--font-weight-bold,700);font-weight:var(--font-weight-bold,700)}.font-medium{--tw-font-weight:var(--font-weight-medium,500);font-weight:var(--font-weight-medium,500)}.font-semibold{--tw-font-weight:var(--font-weight-semibold,600);font-weight:var(--font-weight-semibold,600)}.tracking-tight{--tw-tracking:var(--tracking-tight,-.025em);letter-spacing:var(--tracking-tight,-.025em)}.text-balance{text-wrap:balance}.\[overflow-wrap\:anywhere\]{overflow-wrap:anywhere}.break-words{overflow-wrap:break-word}.whitespace-pre-wrap{white-space:pre-wrap}.text-card-foreground,.text-card-foreground\/85{color:var(--card-foreground)}@supports (color:color-mix(in lab, red, red)){.text-card-foreground\/85{color:color-mix(in oklab, var(--card-foreground) 85%, transparent)}}.text-destructive{color:var(--destructive)}.text-muted-foreground{color:var(--muted-foreground)}.text-popover-foreground{color:var(--popover-foreground)}.text-white{color:var(--color-white,#fff)}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-80{opacity:.8}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.filter{filter:var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, )}.ease-out{--tw-ease:var(--ease-out,cubic-bezier(0, 0, .2, 1));transition-timing-function:var(--ease-out,cubic-bezier(0, 0, .2, 1))}.running{animation-play-state:running}}@media (hover:hover){.hover\:bg-neutral-700:hover{background-color:var(--color-neutral-700,oklch(37.1% 0 none))}.hover\:text-foreground:hover{color:var(--foreground)}.hover\:underline:hover{text-decoration-line:underline}}.focus-visible\:-outline-offset-2:focus-visible{outline-offset:calc(2px * -1)}.focus-visible\:outline-ring:focus-visible{outline-color:var(--ring)}.active\:bg-neutral-600:active{background-color:var(--color-neutral-600,oklch(43.9% 0 none))}.aria-\[current\=page\]\:border-primary[aria-current=page]{border-color:var(--primary)}.aria-\[current\=page\]\:font-medium[aria-current=page]{--tw-font-weight:var(--font-weight-medium,500);font-weight:var(--font-weight-medium,500)}.aria-\[current\=page\]\:text-foreground[aria-current=page]{color:var(--foreground)}.data-indeterminate\:border-primary[data-indeterminate]{border-color:var(--primary)}.data-indeterminate\:before\:h-0\.5[data-indeterminate]:before{content:var(--tw-content);height:calc(var(--spacing,.25rem) * .5)}.data-indeterminate\:before\:w-2[data-indeterminate]:before{content:var(--tw-content);width:calc(var(--spacing,.25rem) * 2)}.data-indeterminate\:before\:bg-primary[data-indeterminate]:before{content:var(--tw-content);background-color:var(--primary)}.data-\[selected\=true\]\:border-primary[data-selected=true]{border-color:var(--primary)}@media (min-width:40rem){.sm\:w-64{width:calc(var(--spacing,.25rem) * 64)}.sm\:max-w-2xl{max-width:var(--container-2xl,42rem)}.sm\:max-w-\[31rem\]{max-width:31rem}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:items-center{align-items:center}.sm\:justify-between{justify-content:space-between}.sm\:p-6{padding:calc(var(--spacing,.25rem) * 6)}.sm\:px-7{padding-inline:calc(var(--spacing,.25rem) * 7)}.sm\:pt-7{padding-top:calc(var(--spacing,.25rem) * 7)}.sm\:pb-6{padding-bottom:calc(var(--spacing,.25rem) * 6)}}@container (min-width:38rem){.\@min-\[38rem\]\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@container (min-width:48rem){.\@3xl\:sticky{position:sticky}.\@3xl\:top-5{top:calc(var(--spacing,.25rem) * 5)}.\@3xl\:col-start-1{grid-column-start:1}.\@3xl\:col-start-2{grid-column-start:2}.\@3xl\:row-span-2{grid-row:span 2/span 2}.\@3xl\:row-start-1{grid-row-start:1}.\@3xl\:grid-cols-\[minmax\(0\,1fr\)_11rem\]{grid-template-columns:minmax(0,1fr) 11rem}.\@3xl\:flex-col{flex-direction:column}.\@3xl\:gap-x-12{column-gap:calc(var(--spacing,.25rem) * 12)}.\@3xl\:self-start{align-self:flex-start}.\@3xl\:pt-6{padding-top:calc(var(--spacing,.25rem) * 6)}}@container (min-width:57rem){.\@min-\[57rem\]\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@container (min-width:76rem){.\@min-\[76rem\]\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}.dark\:bg-neutral-200:where(.dark,.dark *){background-color:var(--color-neutral-200,oklch(92.2% 0 none))}.dark\:text-neutral-900:where(.dark,.dark *){color:var(--color-neutral-900,oklch(20.5% 0 none))}@media (hover:hover){.dark\:hover\:bg-neutral-300:where(.dark,.dark *):hover{background-color:var(--color-neutral-300,oklch(87% 0 none))}}.dark\:active\:bg-neutral-400:where(.dark,.dark *):active{background-color:var(--color-neutral-400,oklch(70.8% 0 none))}.data-indeterminate\:\[\&\>span\]\:hidden[data-indeterminate]>span{display:none}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}
|
package/dist/client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e={"preset.placeholder":`选择预设`,"preset.actions":`预设操作`,"tab.navigation":`记忆管理`,"transfer.export":`导出记忆`,"transfer.import":`导入记忆`,"transfer.confirmTitle":`导入到「{target}」?`,"transfer.preview":`文件导出自「{source}」,包含 {entries} 条记忆、{profiles} 份画像和 {speakers} 位说话者。`,"transfer.merge":`相同 ID 的记忆和同一说话者的画像会被覆盖,其他记忆保留。`,"transfer.confirm":`确认导入`,"transfer.invalid":`无法识别该文件。请选择 LivingMemory 导出的 JSON 文件(格式版本 1–6)。`,"transfer.imported":`已导入到「{target}」:{entries} 条记忆、{profiles} 份画像、{speakers} 位说话者。`,"empty.noPreset":`还没有预设数据。可以新建第一条记忆,也可以从文件导入。`,"tab.entries":`记忆`,"tab.settings":`插件配置`,"tab.guide":`插件指南`,"guide.start":`第一次使用`,"guide.models.title":`配置模型`,"guide.models.text":`在「插件配置 → 模型配置」选择模型。主模型提取和整理记忆、生成画像;召回模型判断当前聊天是否需要查找记忆。嵌入模型将记忆和查询文本转换为向量,供插件比较语义相似度。重排序模型是可选的:它根据查询与每条候选记忆的相关性,重新排列检索结果。点「保存设置」后,这些选择对当前插件实例的所有预设生效。`,"guide.openSettings":`打开插件配置`,"guide.rules.title":`选择在哪些对话中自动提取记忆`,"guide.rules.text":`在「对话规则 → 能力 → LivingMemory」设置「自动提取间隔」,默认是 60 条聊天消息。要只在某个群自动提取,把全局间隔设为 0,再把该群规则的间隔设为 60。`,"guide.check.title":`用一条记忆试试检索`,"guide.check.text":`在「记忆」页点「新建记忆」,选好预设,写下“我喝咖啡不加糖”并保存。到同一预设的「召回测试」搜索“我喜欢喝什么咖啡”,查看检索结果。测试不会更新快照。实际聊天的快照正文在「快照」页查看,展开「召回详情」可以看到搜索词和命中的记忆。`,"guide.questions":`常用设置怎么选?`,"guide.interval.title":`「自动召回间隔」和「召回上下文条数」有什么区别?`,"guide.interval.text":`两项都在对话规则中,默认都是 20 条。「自动召回间隔」决定何时查找记忆:首次唤醒时已有聊天就会召回;之后每次唤醒时,如果距上次召回的新增消息数达到你设置的间隔,就再次召回。间隔设为 0 会关闭自动召回。「召回上下文条数」决定每次唤醒时向前读多少条聊天。`,"guide.overheard.title":`群友之间的闲聊什么时候会触发提取?`,"guide.overheard.text":`「提取旁听消息」默认关闭:群友一直闲聊时不会触发提取。等机器人回复后,插件才统计截至这条回复的未处理消息;先前的闲聊也计入条数,达到间隔就提取。开启后,群友的消息达到间隔就会触发提取,无需叫机器人或等它回复。`,"guide.sharing.title":`同一预设下的两个群能共用快照吗?`,"guide.sharing.text":`默认每个会话各用一份快照。要让同一预设下的两个群共用一份,在两个群的对话规则中都选择「记忆快照范围 → 预设共享快照」。共享的是召回结果,两个群仍各自读取聊天记录、计算召回间隔。开启「隔离会话检索」的群始终使用独立快照,并且只检索该预设下本群和全局的记忆。`,"guide.profiles.title":`已经生成了用户画像,怎样在聊天中使用?`,"guide.profiles.text":`默认在提取或 Dream 整理后更新画像,每位用户至少需要 3 条关联的活跃记忆。这些条件在「插件配置」中调整。要让机器人在聊天中使用已有画像,还需在对话规则中打开「注入用户画像」(默认关闭)。注入哪些人的画像,取决于本次召回上下文里有哪些用户发过言。`,"guide.dream.title":`Dream 如何整理记忆`,"guide.dream.intro":`Dream 让主模型对照已有的记忆,决定哪些该保留、更新、合并、拆分或归档。例如,“我喝咖啡不加糖”和“我喜欢无糖咖啡”可以合并成一条偏好。使用 Dream 时,请选择上下文窗口至少为 200k tokens 的主模型。`,"guide.dream.auto.title":`自动整理:从刚提取的新记忆开始`,"guide.dream.auto.text":`对话规则中的「提取后整理新记忆」默认开启。每次自动提取保存新记忆后,Dream 会为每条新记忆查找同一预设下相关的活跃旧记忆,放在一起整理。找不到相关旧记忆时,新条目保持原样。`,"guide.dream.manual.title":`手动整理:检查整个预设`,"guide.dream.manual.text":`预设里至少有 30 条活跃记忆时,可以在「记忆」页选择该预设,点「运行 Dream」。Dream 会把活跃记忆按内容相关性分组,逐组检查。30 条的门槛只用于手动整理。`,"guide.dream.result.title":`查看整理结果`,"guide.dream.result.text":`在同一预设的「任务」页查看处理条数、操作统计和失败原因。改动会直接保存到「记忆」页;要查看合并或拆分前的原条目,把状态筛选切到「已归档」。`,"settings.scope":`插件设置对所有预设生效。`,"settings.save":`保存设置`,"settings.discard":`放弃更改`,"settings.saved":`设置已保存`,"settings.noEntry":`当前实例未通过配置文件加载,无法在此编辑。`,"settings.noSchema":`无法读取 LivingMemory 的配置表单。`,"tab.jobs":`任务`,"tab.personas":`人设卡片`,"status.active":`活跃`,"status.archived":`已归档`,"status.all":`全部`,"type.all":`全部类型`,"type.identity":`身份`,"type.preference":`偏好`,"type.fact":`事实`,"type.plan":`计划`,"type.context":`背景`,"type.other":`其他`,"entries.search":`搜索内容、摘要或关键词`,"entries.total":`共 {count} 条`,"entries.empty":`这里还没有记忆`,"entries.edit":`编辑`,"entries.create":`新建记忆`,"entries.editTitle":`编辑记忆`,"entries.created":`已创建记忆`,"entries.saved":`已保存记忆`,"entries.choosePreset":`选择或输入预设 ID`,"entries.noSpeakers":`未关联用户`,"entries.archive":`归档`,"entries.archiveCount":`归档({count})`,"entries.archivedCount":`已归档 {count} 条记忆`,"entries.purge":`彻底删除`,"deletion.selectEntry":`选择记忆:{label}`,"deletion.selectPage":`全选本页`,"deletion.selectAll":`全选`,"deletion.selectMatches":`选择全部 {count} 条结果`,"deletion.selected":`已选 {count} 条`,"deletion.deselect":`清除选择`,"deletion.confirmDelete":`确认彻底删除`,"deletion.entryWarning":`将永久删除预设「{preset}」中的 {count} 条记忆,删除后无法恢复。`,"deletion.deleted":`已删除 {count} 条记忆`,"deletion.clearPreset":`清空预设数据`,"deletion.clearWarning":`预设「{preset}」的数据清空后无法恢复。`,"deletion.typePhrase":`输入以下完整语句以确认清空`,"deletion.phrase":`我确认清空预设 {preset} 的全部记忆、用户画像、人设卡片、快照和任务记录`,"deletion.confirmClear":`确认清空`,"deletion.cleared":`已清空预设「{preset}」的数据`,"field.keywords":`关键词(每行一个,最多 {max} 个)`,"field.preset":`预设`,"field.summary":`摘要`,"field.type":`类型`,"field.status":`状态`,"field.sentiment":`情绪`,"field.importance":`重要度`,"field.speakers":`关联用户`,"field.createdAt":`创建`,"field.updatedAt":`更新`,"field.content":`内容`,"jobs.dream":`运行 Dream`,"jobs.dreamStarted":`「{preset}」的 Dream 已启动`,"jobs.dreamRunning":`「{preset}」已有 Dream 在运行`,"jobs.dreamInsufficient":`「{preset}」可整理的记忆不足`,"jobs.rebuildIndex":`重建向量索引`,"jobs.empty":`还没有任务记录`,"job.kind.extract":`提取`,"job.kind.dream":`Dream`,"job.kind.recall":`召回`,"job.kind.index":`索引`,"job.status.pending":`排队中`,"job.status.running":`运行中`,"job.status.completed":`已完成`,"job.status.partial":`部分完成`,"job.status.failed":`失败`,"personas.empty":`当前预设还没有人设卡片`,"personas.stale":`预设已变更`,"personas.reset":`重新生成`,"personas.hint":`卡片由预设的 system 部分摘录生成;手工保存后不再被自动覆盖。`,"persona.source.generated":`自动生成`,"persona.source.manual":`手工编辑`,"common.save":`保存`,"common.cancel":`取消`,"common.edit":`编辑`,"common.prev":`上一页`,"common.next":`下一页`,"tab.profiles":`用户画像`,"tab.snapshots":`快照`,"profiles.empty":`还没有为这个预设生成过用户画像`,"profiles.hint":`画像由模型从关联记忆提炼;保存后不再被自动生成覆盖。`,"profiles.sourceCount":`关联 {count} 条记忆`,"profiles.regenerate":`重新生成`,"profiles.delete":`删除`,"snapshots.presetShared":`预设共享快照`,"snapshots.empty":`还没有召回快照`,"snapshots.conversation":`会话 {id}`,"snapshots.noContent":`快照内容为空`,"snapshots.details":`召回详情`,"snapshots.searchTexts":`搜索词`,"snapshots.noSearch":`本次没有搜索`,"snapshots.matches":`召回的记忆({count} 条)`,"common.delete":`删除`,"tab.search":`召回测试`,"search.text":`搜索文本(第一人称描述)`,"search.keywords":`关键词(逗号分隔,选填)`,"search.run":`搜索`,"search.empty":`未找到匹配的记忆`,"search.scores":`cosine {cosine} · 关键词 {keyword} · 加权 {boosted}`},t={"preset.placeholder":`Select a preset`,"transfer.export":`Export memories`,"transfer.import":`Import memories`,"transfer.confirmTitle":`Import into “{target}”?`,"transfer.preview":`Export from “{source}”: {entries} memories, {profiles} profiles and {speakers} speakers.`,"transfer.merge":`Memories with matching IDs and profiles for the same speaker will be replaced. Other memories are kept.`,"transfer.confirm":`Confirm import`,"transfer.invalid":`Choose a JSON file exported by LivingMemory (format versions 1–6).`,"transfer.imported":`Imported into “{target}”: {entries} memories, {profiles} profiles and {speakers} speakers.`,"empty.noPreset":`No preset data yet. Create your first memory or import a file.`,"tab.entries":`Memories`,"tab.jobs":`Jobs`,"tab.personas":`Personas`,"status.active":`Active`,"status.archived":`Archived`,"status.all":`All`,"type.all":`All types`,"type.identity":`Identity`,"type.preference":`Preference`,"type.fact":`Fact`,"type.plan":`Plan`,"type.context":`Context`,"type.other":`Other`,"entries.search":`Search content, summary or keywords`,"entries.total":`{count} entries`,"entries.empty":`No memories here yet`,"entries.edit":`Edit`,"entries.create":`New memory`,"entries.editTitle":`Edit memory`,"entries.created":`Memory created`,"entries.saved":`Memory saved`,"entries.choosePreset":`Select or enter a preset ID`,"entries.noSpeakers":`No users linked`,"entries.archive":`Archive`,"entries.archiveCount":`Archive ({count})`,"entries.archivedCount":`Archived {count} memories`,"entries.purge":`Delete`,"deletion.selectEntry":`Select memory: {label}`,"deletion.selectPage":`Select this page`,"deletion.selectAll":`Select all`,"deletion.selectMatches":`Select all {count} results`,"deletion.selected":`{count} selected`,"deletion.deselect":`Clear selection`,"deletion.confirmDelete":`Confirm permanent deletion`,"deletion.entryWarning":`Permanently delete {count} memories from “{preset}”? This cannot be undone.`,"deletion.deleted":`Deleted {count} memories`,"deletion.clearPreset":`Clear preset data`,"deletion.clearWarning":`Clearing the data in “{preset}” cannot be undone.`,"deletion.typePhrase":`Type the following sentence to confirm`,"deletion.phrase":`I confirm clearing all memories, user profiles, persona cards, snapshots and job records for preset {preset}`,"deletion.confirmClear":`Confirm clearing`,"deletion.cleared":`Cleared data for “{preset}”`,"field.keywords":`Keywords (one per line, up to {max})`,"field.preset":`Preset`,"field.summary":`Summary`,"field.type":`Type`,"field.status":`Status`,"field.sentiment":`Sentiment`,"field.importance":`Importance`,"field.speakers":`Linked users`,"field.createdAt":`Created`,"field.updatedAt":`Updated`,"field.content":`Content`,"jobs.dream":`Run Dream`,"jobs.dreamStarted":`Dream started for “{preset}”`,"jobs.dreamRunning":`Dream is already running for “{preset}”`,"jobs.dreamInsufficient":`Not enough memories in “{preset}” to run Dream`,"jobs.rebuildIndex":`Rebuild vector index`,"jobs.empty":`No jobs recorded yet`,"job.kind.extract":`Extract`,"job.kind.dream":`Dream`,"job.kind.recall":`Recall`,"job.kind.index":`Index`,"job.status.pending":`Pending`,"job.status.running":`Running`,"job.status.completed":`Completed`,"job.status.partial":`Partial`,"job.status.failed":`Failed`,"personas.empty":`This preset has no persona card yet`,"personas.stale":`Preset changed`,"personas.reset":`Regenerate`,"personas.hint":`The card is distilled from the preset's system section; once saved by hand it is no longer overwritten automatically.`,"persona.source.generated":`Generated`,"persona.source.manual":`Edited by hand`,"common.save":`Save`,"common.cancel":`Cancel`,"common.edit":`Edit`,"common.prev":`Previous`,"common.next":`Next`,"tab.profiles":`Profiles`,"tab.snapshots":`Snapshots`,"profiles.empty":`No user profile has been generated for this preset`,"profiles.hint":`The profile is distilled from linked memories; once saved it is no longer overwritten automatically.`,"profiles.sourceCount":`{count} linked memories`,"profiles.regenerate":`Regenerate`,"profiles.delete":`Delete`,"snapshots.presetShared":`Shared preset snapshot`,"snapshots.empty":`No recall snapshot yet`,"snapshots.conversation":`Conversation {id}`,"snapshots.noContent":`This snapshot is empty`,"snapshots.details":`Recall details`,"snapshots.searchTexts":`Search terms`,"snapshots.noSearch":`No search was made`,"snapshots.matches":`Recalled memories ({count})`,"common.delete":`Delete`,"tab.search":`Recall test`,"search.text":`Search text (first-person description)`,"search.keywords":`Keywords (comma separated, optional)`,"search.run":`Search`,"search.empty":`No memory matched`,"search.scores":`cosine {cosine} · keywords {keyword} · boosted {boosted}`,"preset.actions":`Preset actions`,"tab.navigation":`Memory management`,"tab.settings":`Plugin configuration`,"tab.guide":`Plugin guide`,"guide.start":`Getting started`,"guide.models.title":`Choose your models`,"guide.models.text":`Under Plugin configuration → Model configuration, choose your models. The main model extracts and organizes memories and generates profiles. The recall model decides whether to look up memories. The embedding model converts memories and queries into vectors so the plugin can compare their meanings. An optional reranker reorders the candidate memories by their relevance to the query. Select Save settings to apply these choices to all presets in this plugin instance.`,"guide.openSettings":`Open plugin configuration`,"guide.rules.title":`Choose which conversations use automatic extraction`,"guide.rules.text":`Open Conversation rules → Capabilities → LivingMemory and set the extraction interval. The default is 60 chat messages. To enable automatic extraction in just one group, set the global interval to 0 and that group’s interval to 60.`,"guide.check.title":`Try a search with one memory`,"guide.check.text":`Under Memories, select New memory, choose a preset, and save “I drink my coffee without sugar.” Under Recall test for the same preset, search for “How do I like my coffee?” to see the matches. The test leaves snapshots unchanged. Under Snapshots you can read the snapshot from an actual chat. Expand Recall details to see the search terms and matching memories.`,"guide.questions":`Common settings`,"guide.interval.title":`How does the recall interval differ from the history length?`,"guide.interval.text":`Both settings default to 20 messages. The interval controls when recall runs. The first wake triggers recall if chat history exists. On each later wake, recall runs if the number of new chat messages since the previous recall reaches your chosen interval. Set the interval to 0 to disable automatic recall. The history length controls how many recent messages the bot reads at each wake.`,"guide.overheard.title":`When can chat between group members trigger extraction?`,"guide.overheard.text":`Overheard extraction is off by default. Group chatter alone will not trigger extraction. Once the bot replies, the plugin counts unprocessed messages up to that reply, including earlier chatter, and starts extraction if the interval has been reached. With overheard extraction on, group members can reach the threshold on their own without calling the bot or waiting for a reply.`,"guide.sharing.title":`Can two groups using the same preset share a snapshot?`,"guide.sharing.text":`Each conversation has its own snapshot by default. To share one between two groups using the same preset, select preset sharing in both groups’ conversation rules. The groups share recall results; each still reads its own chat history and tracks its own recall interval. A group with conversation isolation enabled always uses its own snapshot and searches only its own and global memories within the preset.`,"guide.profiles.title":`How do I use existing user profiles in a chat?`,"guide.profiles.text":`By default, profiles are updated after extraction or Dream, and each person needs at least three linked active memories. You can change these settings under Plugin configuration. To use existing profiles during a chat, enable profile injection in the conversation rule (off by default). The bot receives profiles for users who spoke in the recent messages covered by the recall history length.`,"guide.dream.title":`How Dream organizes memories`,"guide.dream.intro":`Dream uses the main model to compare memories and decide which to keep, update, merge, split, or archive. For example, “I take my coffee without sugar” and “I like unsweetened coffee” can become a single preference. Choose a main model with a context window of at least 200k tokens for Dream.`,"guide.dream.auto.title":`Automatic runs start with newly extracted memories`,"guide.dream.auto.text":`Conversation rules enable Dream after extraction by default. For each newly saved memory, Dream looks for related active memories already in the same preset and reviews them together. If it finds no related older memory, the new entry stays as it is.`,"guide.dream.manual.title":`Manual runs review a whole preset`,"guide.dream.manual.text":`Once a preset has at least 30 active memories, select it under Memories and click Run Dream. Dream groups its active memories by similarity and reviews each group in turn. The 30-memory minimum applies only to manual runs.`,"guide.dream.result.title":`See what changed`,"guide.dream.result.text":`Open Jobs for the same preset to see how many memories Dream processed, which operations it performed, and any errors. Changes are saved directly to Memories. To see the original entries after a merge or split, change the status filter to Archived.`,"settings.scope":`Plugin settings apply to all presets.`,"settings.save":`Save settings`,"settings.discard":`Discard changes`,"settings.saved":`Settings saved`,"settings.noEntry":`This instance was not loaded from a configuration file and cannot be edited here.`,"settings.noSchema":`The LivingMemory configuration form is unavailable.`};function n(n){n.locale.register(`livingmemory`,{zh:e,en:t}),n.slots.route({path:`/livingmemory`,page:async()=>(await import(`./page-kxmLRgbo.js`)).LivingMemoryPage,title:`LivingMemory`,icon:`brain`,order:36,group:`capabilities`,groupOrder:36})}export{n as default};
|
|
1
|
+
var e={"preset.placeholder":`选择预设`,"nativeMemory.title":`检测到您已同时启动原生 memory 插件`,"nativeMemory.description":`LivingMemory 和原生 memory 插件在功能上较为相似,建议仅启用其中一个。`,"nativeMemory.risk":`否则可能会带来额外的 token 开销或其他未知问题。`,"nativeMemory.close":`本次关闭`,"nativeMemory.neverShow":`我知道了,且以后不再提示`,"preset.actions":`预设操作`,"tab.navigation":`记忆管理`,"transfer.export":`导出记忆`,"transfer.import":`导入记忆`,"transfer.confirmTitle":`导入到「{target}」?`,"transfer.preview":`文件导出自「{source}」,包含 {entries} 条记忆、{profiles} 份画像和 {speakers} 位说话者。`,"transfer.merge":`相同 ID 的记忆和同一说话者的画像会被覆盖,其他记忆保留。`,"transfer.confirm":`确认导入`,"transfer.invalid":`无法识别该文件。请选择 LivingMemory 导出的 JSON 文件(格式版本 1–6)。`,"transfer.imported":`已导入到「{target}」:{entries} 条记忆、{profiles} 份画像、{speakers} 位说话者。`,"empty.noPreset":`还没有预设数据。可以新建第一条记忆,也可以从文件导入。`,"tab.entries":`记忆`,"tab.settings":`插件配置`,"tab.guide":`插件指南`,"guide.start":`第一次使用`,"guide.intro":`先配置模型、选好要记录的对话,再用一条记忆试试检索。下面也说明了机器人何时提取记忆、何时想起它,以及 Dream 如何整理已有的记忆。`,"guide.contents":`本页目录`,"guide.models.title":`配置模型`,"guide.models.text":`在「插件配置 → 模型配置」选择模型。主模型需要支持工具调用,用于提取和整理记忆、更新人物画像和人设卡。召回模型判断当前聊天是否需要查找记忆。嵌入模型将记忆和查询文本转换为向量,供插件比较语义相似度。重排序模型是可选的:它根据查询与每条候选记忆的相关性,重新排列检索结果。点「保存设置」后,这些选择对当前插件实例的所有预设生效。`,"guide.openSettings":`打开插件配置`,"guide.rules.title":`选择在哪些对话中自动提取记忆`,"guide.rules.text":`在「对话规则 → 能力 → LivingMemory」设置「从聊天中提取记忆的间隔」,默认是 60 条聊天消息。要只在某个群自动提取,把全局间隔设为 0,再把该群规则的间隔设为 60。`,"guide.check.title":`用一条记忆试试检索`,"guide.check.text":`在「记忆」页点「新建记忆」,选好预设,写下“我喝咖啡不加糖”并保存。到同一预设的「召回测试」搜索“我喜欢喝什么咖啡”,查看检索结果。测试不会更新快照。实际聊天的快照正文在「快照」页查看,展开「召回详情」可以看到搜索词和命中的记忆。`,"guide.timing":`提取与召回的时机`,"guide.buffer.title":`调大间隔前,先看聊天缓存`,"guide.buffer.text":`在 ChatLuna 的「插件 → 对话与路由 → @chatluna/chat-observer → 缓存条数」调整。默认每个频道保留最近 200 条消息,提取和召回都只能统计还在缓存里的聊天。例如,缓存是 200 条,提取间隔设为 300 条,就永远凑不够。即使间隔较小,两次检查之间被挤出缓存的旧消息也不会补读。`,"guide.context":`快照与用户画像`,"guide.interval.title":`「记忆自动召回的间隔」和「用于召回记忆的聊天消息数」有什么区别?`,"guide.interval.text":`前者决定 bot 被唤醒时,隔多少条新消息召回一次;设为 0 会关闭自动召回。后者决定每次召回向前读多少条聊天。两项默认都是 20 条。`,"guide.overheard.title":`群友之间的闲聊什么时候会触发提取?`,"guide.overheard.text":`「允许群友闲聊触发记忆提取」默认关闭。等 bot 回复后,插件才检查未提取的消息是否达到设定条数,先前的闲聊也计入条数。开启后,即使 bot 没有参与,群友闲聊达到设定条数也会触发提取。`,"guide.sharing.title":`同一预设下的两个群能共用快照吗?`,"guide.sharing.text":`默认每个会话各用一份快照。要让同一预设下的两个群共用一份,在适用于这两个群的对话规则中,将「记忆快照的使用范围」设为「所有会话共享一个记忆快照」。两个群共享召回结果,仍各自读取聊天记录、计算召回间隔。开启「会话记忆隔离」后,这份规则涉及的会话各用独立快照。`,"guide.profiles.title":`已经生成了用户画像,怎样在聊天中使用?`,"guide.profiles.text":`默认在提取或 Dream 整理后更新画像,每位用户至少需要 3 条关联的活跃记忆。这些条件在「插件配置」中调整。要让机器人在聊天中使用已有画像,还需在对话规则中打开「向 bot 注入用户画像」(默认关闭)。注入哪些人的画像,取决于本次召回上下文里有哪些用户发过言。`,"guide.dream":`Dream 如何整理记忆`,"guide.dream.intro":`Dream 让主模型对照已有的记忆,决定哪些该保留、更新、合并、拆分或归档。例如,“我喝咖啡不加糖”和“我喜欢无糖咖啡”可以合并成一条偏好。使用 Dream 时,请选择上下文窗口至少为 200k tokens 的主模型。`,"guide.dream.auto.title":`自动整理:从刚提取的新记忆开始`,"guide.dream.auto.text":`对话规则中的「是否在提取新记忆后进行 Dream 整理」默认开启。每次自动提取保存新记忆后,Dream 会为每条新记忆查找同一预设下相关的活跃旧记忆,放在一起整理。找不到相关旧记忆时,新条目保持原样。`,"guide.dream.manual.title":`手动整理:检查整个预设`,"guide.dream.manual.text":`预设里至少有 30 条活跃记忆时,可以在「记忆」页选择该预设,点「运行 Dream」。Dream 会把活跃记忆按内容相关性分组,逐组检查。30 条的门槛只用于手动整理。`,"guide.dream.result.title":`查看整理结果`,"guide.dream.result.text":`在同一预设的「任务」页查看处理条数、操作统计和失败原因。改动会直接保存到「记忆」页;要查看合并或拆分前的原条目,把状态筛选切到「已归档」。`,"settings.scope":`插件设置对所有预设生效。`,"settings.save":`保存设置`,"settings.discard":`放弃更改`,"settings.saved":`设置已保存`,"settings.noEntry":`当前实例未通过配置文件加载,无法在此编辑。`,"settings.noSchema":`无法读取 LivingMemory 的配置表单。`,"tab.jobs":`任务`,"tab.personas":`人设卡片`,"status.active":`活跃`,"status.archived":`已归档`,"status.all":`全部`,"type.all":`全部类型`,"type.identity":`身份`,"type.preference":`偏好`,"type.fact":`事实`,"type.plan":`计划`,"type.context":`背景`,"type.other":`其他`,"entries.search":`搜索内容、摘要或关键词`,"entries.total":`共 {count} 条`,"entries.empty":`这里还没有记忆`,"entries.edit":`编辑`,"entries.create":`新建记忆`,"entries.editTitle":`编辑记忆`,"entries.created":`已创建记忆`,"entries.saved":`已保存记忆`,"entries.choosePreset":`选择或输入预设 ID`,"entries.noSpeakers":`未关联用户`,"entries.archive":`归档`,"entries.archiveCount":`归档({count})`,"entries.archivedCount":`已归档 {count} 条记忆`,"entries.purge":`彻底删除`,"deletion.selectEntry":`选择记忆:{label}`,"deletion.selectPage":`全选本页`,"deletion.selectAll":`全选`,"deletion.selectMatches":`选择全部 {count} 条结果`,"deletion.selected":`已选 {count} 条`,"deletion.deselect":`清除选择`,"deletion.confirmDelete":`确认彻底删除`,"deletion.entryWarning":`将永久删除预设「{preset}」中的 {count} 条记忆,删除后无法恢复。`,"deletion.deleted":`已删除 {count} 条记忆`,"deletion.clearPreset":`清空预设数据`,"deletion.clearWarning":`预设「{preset}」的数据清空后无法恢复。`,"deletion.typePhrase":`输入以下完整语句以确认清空`,"deletion.phrase":`我确认清空预设 {preset} 的全部记忆、用户画像、人设卡片、快照和任务记录`,"deletion.confirmClear":`确认清空`,"deletion.cleared":`已清空预设「{preset}」的数据`,"field.keywords":`关键词(每行一个,最多 {max} 个)`,"field.preset":`预设`,"field.summary":`摘要`,"field.type":`类型`,"field.status":`状态`,"field.sentiment":`情绪`,"field.importance":`重要度`,"field.speakers":`关联用户`,"field.createdAt":`创建`,"field.updatedAt":`更新`,"field.content":`内容`,"jobs.dream":`运行 Dream`,"jobs.dreamStarted":`「{preset}」的 Dream 已启动`,"jobs.dreamRunning":`「{preset}」已有 Dream 在运行`,"jobs.dreamInsufficient":`「{preset}」可整理的记忆不足`,"jobs.rebuildIndex":`重建向量索引`,"jobs.empty":`还没有任务记录`,"job.kind.extract":`提取`,"job.kind.dream":`Dream`,"job.kind.recall":`召回`,"job.kind.index":`索引`,"job.status.pending":`排队中`,"job.status.running":`运行中`,"job.status.completed":`已完成`,"job.status.partial":`部分完成`,"job.status.failed":`失败`,"personas.empty":`当前预设还没有人设卡片`,"personas.stale":`预设已变更`,"personas.reset":`重新生成`,"personas.hint":`卡片由预设的 system 部分摘录生成;手工保存后不再被自动覆盖。`,"persona.source.generated":`自动生成`,"persona.source.manual":`手工编辑`,"common.save":`保存`,"common.cancel":`取消`,"common.edit":`编辑`,"common.prev":`上一页`,"common.next":`下一页`,"tab.profiles":`用户画像`,"tab.snapshots":`快照`,"profiles.empty":`还没有为这个预设生成过用户画像`,"profiles.hint":`画像由模型从关联记忆提炼;保存后不再被自动生成覆盖。`,"profiles.sourceCount":`关联 {count} 条记忆`,"profiles.regenerate":`重新生成`,"profiles.delete":`删除`,"snapshots.presetShared":`预设共享快照`,"snapshots.empty":`还没有召回快照`,"snapshots.conversation":`会话 {id}`,"snapshots.noContent":`快照内容为空`,"snapshots.details":`召回详情`,"snapshots.searchTexts":`搜索词`,"snapshots.noSearch":`本次没有搜索`,"snapshots.matches":`召回的记忆({count} 条)`,"common.delete":`删除`,"tab.search":`召回测试`,"search.text":`搜索文本(第一人称描述)`,"search.keywords":`关键词(逗号分隔,选填)`,"search.run":`搜索`,"search.empty":`未找到匹配的记忆`,"search.scores":`cosine {cosine} · 关键词 {keyword} · 加权 {boosted}`},t={"preset.placeholder":`Select a preset`,"nativeMemory.title":`The built-in memory plugin is also running`,"nativeMemory.description":`LivingMemory and the built-in memory plugin have similar features. We recommend enabling only one.`,"nativeMemory.risk":`Running both may use extra tokens or cause unexpected issues.`,"nativeMemory.close":`Dismiss for now`,"nativeMemory.neverShow":`Got it, don’t show this again`,"transfer.export":`Export memories`,"transfer.import":`Import memories`,"transfer.confirmTitle":`Import into “{target}”?`,"transfer.preview":`Export from “{source}”: {entries} memories, {profiles} profiles and {speakers} speakers.`,"transfer.merge":`Memories with matching IDs and profiles for the same speaker will be replaced. Other memories are kept.`,"transfer.confirm":`Confirm import`,"transfer.invalid":`Choose a JSON file exported by LivingMemory (format versions 1–6).`,"transfer.imported":`Imported into “{target}”: {entries} memories, {profiles} profiles and {speakers} speakers.`,"empty.noPreset":`No preset data yet. Create your first memory or import a file.`,"tab.entries":`Memories`,"tab.jobs":`Jobs`,"tab.personas":`Personas`,"status.active":`Active`,"status.archived":`Archived`,"status.all":`All`,"type.all":`All types`,"type.identity":`Identity`,"type.preference":`Preference`,"type.fact":`Fact`,"type.plan":`Plan`,"type.context":`Context`,"type.other":`Other`,"entries.search":`Search content, summary or keywords`,"entries.total":`{count} entries`,"entries.empty":`No memories here yet`,"entries.edit":`Edit`,"entries.create":`New memory`,"entries.editTitle":`Edit memory`,"entries.created":`Memory created`,"entries.saved":`Memory saved`,"entries.choosePreset":`Select or enter a preset ID`,"entries.noSpeakers":`No users linked`,"entries.archive":`Archive`,"entries.archiveCount":`Archive ({count})`,"entries.archivedCount":`Archived {count} memories`,"entries.purge":`Delete`,"deletion.selectEntry":`Select memory: {label}`,"deletion.selectPage":`Select this page`,"deletion.selectAll":`Select all`,"deletion.selectMatches":`Select all {count} results`,"deletion.selected":`{count} selected`,"deletion.deselect":`Clear selection`,"deletion.confirmDelete":`Confirm permanent deletion`,"deletion.entryWarning":`Permanently delete {count} memories from “{preset}”? This cannot be undone.`,"deletion.deleted":`Deleted {count} memories`,"deletion.clearPreset":`Clear preset data`,"deletion.clearWarning":`Clearing the data in “{preset}” cannot be undone.`,"deletion.typePhrase":`Type the following sentence to confirm`,"deletion.phrase":`I confirm clearing all memories, user profiles, persona cards, snapshots and job records for preset {preset}`,"deletion.confirmClear":`Confirm clearing`,"deletion.cleared":`Cleared data for “{preset}”`,"field.keywords":`Keywords (one per line, up to {max})`,"field.preset":`Preset`,"field.summary":`Summary`,"field.type":`Type`,"field.status":`Status`,"field.sentiment":`Sentiment`,"field.importance":`Importance`,"field.speakers":`Linked users`,"field.createdAt":`Created`,"field.updatedAt":`Updated`,"field.content":`Content`,"jobs.dream":`Run Dream`,"jobs.dreamStarted":`Dream started for “{preset}”`,"jobs.dreamRunning":`Dream is already running for “{preset}”`,"jobs.dreamInsufficient":`Not enough memories in “{preset}” to run Dream`,"jobs.rebuildIndex":`Rebuild vector index`,"jobs.empty":`No jobs recorded yet`,"job.kind.extract":`Extract`,"job.kind.dream":`Dream`,"job.kind.recall":`Recall`,"job.kind.index":`Index`,"job.status.pending":`Pending`,"job.status.running":`Running`,"job.status.completed":`Completed`,"job.status.partial":`Partial`,"job.status.failed":`Failed`,"personas.empty":`This preset has no persona card yet`,"personas.stale":`Preset changed`,"personas.reset":`Regenerate`,"personas.hint":`The card is distilled from the preset's system section; once saved by hand it is no longer overwritten automatically.`,"persona.source.generated":`Generated`,"persona.source.manual":`Edited by hand`,"common.save":`Save`,"common.cancel":`Cancel`,"common.edit":`Edit`,"common.prev":`Previous`,"common.next":`Next`,"tab.profiles":`Profiles`,"tab.snapshots":`Snapshots`,"profiles.empty":`No user profile has been generated for this preset`,"profiles.hint":`The profile is distilled from linked memories; once saved it is no longer overwritten automatically.`,"profiles.sourceCount":`{count} linked memories`,"profiles.regenerate":`Regenerate`,"profiles.delete":`Delete`,"snapshots.presetShared":`Shared preset snapshot`,"snapshots.empty":`No recall snapshot yet`,"snapshots.conversation":`Conversation {id}`,"snapshots.noContent":`This snapshot is empty`,"snapshots.details":`Recall details`,"snapshots.searchTexts":`Search terms`,"snapshots.noSearch":`No search was made`,"snapshots.matches":`Recalled memories ({count})`,"common.delete":`Delete`,"tab.search":`Recall test`,"search.text":`Search text (first-person description)`,"search.keywords":`Keywords (comma separated, optional)`,"search.run":`Search`,"search.empty":`No memory matched`,"search.scores":`cosine {cosine} · keywords {keyword} · boosted {boosted}`,"preset.actions":`Preset actions`,"tab.navigation":`Memory management`,"tab.settings":`Plugin configuration`,"tab.guide":`Plugin guide`,"guide.start":`Getting started`,"guide.intro":`Choose your models and conversations, then try a search with one memory. The following sections explain when the bot saves and recalls memories, how to use profiles, and how Dream organizes existing memories.`,"guide.contents":`On this page`,"guide.models.title":`Choose your models`,"guide.models.text":`Under Plugin configuration → Model configuration, choose a main model that supports tool calls. It extracts and organizes memories and updates user profiles and persona cards. The recall model decides whether to look up memories. The embedding model converts memories and queries into vectors so the plugin can compare their meanings. An optional reranker reorders the candidate memories by their relevance to the query. Select Save settings to apply these choices to all presets in this plugin instance.`,"guide.openSettings":`Open plugin configuration`,"guide.rules.title":`Choose which conversations use automatic extraction`,"guide.rules.text":`Open Conversation rules → Capabilities → LivingMemory and set the extraction interval. The default is 60 chat messages. To enable automatic extraction in just one group, set the global interval to 0 and that group’s interval to 60.`,"guide.check.title":`Try a search with one memory`,"guide.check.text":`Under Memories, select New memory, choose a preset, and save “I drink my coffee without sugar.” Under Recall test for the same preset, search for “How do I like my coffee?” to see the matches. The test leaves snapshots unchanged. Under Snapshots you can read the snapshot from an actual chat. Expand Recall details to see the search terms and matching memories.`,"guide.timing":`When extraction and recall run`,"guide.buffer.title":`Check the chat buffer before raising an interval`,"guide.buffer.text":`In ChatLuna, open Plugins → Conversation and routing → @chatluna/chat-observer and adjust the buffer limit. Each channel keeps its latest 200 messages by default. Extraction and recall can only count chats still in that buffer. For example, a 300-message extraction interval can never be reached with a 200-message buffer. Even with a shorter interval, messages evicted between checks cannot be read later.`,"guide.context":`Snapshots and user profiles`,"guide.interval.title":`How does the recall interval differ from the history length?`,"guide.interval.text":`The interval tells the bot how many new messages to wait for between recalls when it wakes. Set it to 0 to disable automatic recall. The history length sets how many recent messages the bot reads for each recall. Both default to 20 messages.`,"guide.overheard.title":`When can chat between group members trigger extraction?`,"guide.overheard.text":`Overheard extraction is off by default. Group chatter alone will not trigger extraction. Once the bot replies, the plugin counts unprocessed messages up to that reply, including earlier chatter, and starts extraction if the interval has been reached. With overheard extraction on, group members can reach the threshold on their own without calling the bot or waiting for a reply.`,"guide.sharing.title":`Can two groups using the same preset share a snapshot?`,"guide.sharing.text":`Each conversation has its own snapshot by default. To share one between two groups using the same preset, select preset sharing in both groups’ conversation rules. The groups share recall results; each still reads its own chat history and tracks its own recall interval. A group with conversation isolation enabled always uses its own snapshot and searches only its own and global memories within the preset.`,"guide.profiles.title":`How do I use existing user profiles in a chat?`,"guide.profiles.text":`By default, profiles are updated after extraction or Dream, and each person needs at least three linked active memories. You can change these settings under Plugin configuration. To use existing profiles during a chat, enable profile injection in the conversation rule (off by default). The bot receives profiles for users who spoke in the recent messages covered by the recall history length.`,"guide.dream":`How Dream organizes memories`,"guide.dream.intro":`Dream uses the main model to compare memories and decide which to keep, update, merge, split, or archive. For example, “I take my coffee without sugar” and “I like unsweetened coffee” can become a single preference. Choose a main model with a context window of at least 200k tokens for Dream.`,"guide.dream.auto.title":`Automatic runs start with newly extracted memories`,"guide.dream.auto.text":`Conversation rules enable Dream after extraction by default. For each newly saved memory, Dream looks for related active memories already in the same preset and reviews them together. If it finds no related older memory, the new entry stays as it is.`,"guide.dream.manual.title":`Manual runs review a whole preset`,"guide.dream.manual.text":`Once a preset has at least 30 active memories, select it under Memories and click Run Dream. Dream groups its active memories by similarity and reviews each group in turn. The 30-memory minimum applies only to manual runs.`,"guide.dream.result.title":`See what changed`,"guide.dream.result.text":`Open Jobs for the same preset to see how many memories Dream processed, which operations it performed, and any errors. Changes are saved directly to Memories. To see the original entries after a merge or split, change the status filter to Archived.`,"settings.scope":`Plugin settings apply to all presets.`,"settings.save":`Save settings`,"settings.discard":`Discard changes`,"settings.saved":`Settings saved`,"settings.noEntry":`This instance was not loaded from a configuration file and cannot be edited here.`,"settings.noSchema":`The LivingMemory configuration form is unavailable.`};function n(n){n.locale.register(`livingmemory`,{zh:e,en:t}),n.slots.route({path:`/livingmemory`,page:async()=>(await import(`./page-EGG2hcC3.js`)).LivingMemoryPage,title:`LivingMemory`,icon:`brain`,order:36,group:`capabilities`,groupOrder:36})}export{n as default};
|