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.
Files changed (2) hide show
  1. package/index.js +16 -0
  2. 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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deepseek-plastic-memory",
3
- "version": "3.4.0",
3
+ "version": "3.4.1",
4
4
  "description": "DeepSeek 可塑性记忆:给 DSH 用的分区式长期记忆,带遗忘曲线",
5
5
  "type": "module",
6
6
  "main": "index.js",