deepseek-plastic-memory 3.4.0 → 3.4.1
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/index.js +16 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -244,6 +244,22 @@ export function apply(ctx) {
|
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
246
|
|
|
247
|
+
// 全量记忆:每次会话都带上,模型不用再去挑分区
|
|
248
|
+
try {
|
|
249
|
+
const dump = run(['all'])
|
|
250
|
+
const sp = ctx.systemPrompt
|
|
251
|
+
if (sp && typeof sp.section === 'function' && dump && dump !== '(空)') {
|
|
252
|
+
sp.section({
|
|
253
|
+
name: 'plastic-memory:all',
|
|
254
|
+
order: 149,
|
|
255
|
+
interpolate: false,
|
|
256
|
+
text: ['【可塑性记忆 · 全量】下面是这台机器上的全部记忆(已按分区排好):', '', dump].join('\n'),
|
|
257
|
+
})
|
|
258
|
+
}
|
|
259
|
+
} catch (e) {
|
|
260
|
+
// 读不到就静默跳过,别影响对话
|
|
261
|
+
}
|
|
262
|
+
|
|
247
263
|
const classifyTask = readClassifyTask()
|
|
248
264
|
if (classifyTask) {
|
|
249
265
|
try {
|