dsh-cortex-memory 0.3.0 → 0.3.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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # DSH Cortex
1
+ # DSH Cortex
2
2
 
3
3
  A local-first, layered memory engine for DeepSeek Harness.
4
4
 
@@ -9,7 +9,7 @@ core engine.
9
9
 
10
10
  ## Status
11
11
 
12
- - Package: `dsh-cortex-memory@0.3.0`
12
+ - Package: `dsh-cortex-memory@0.3.1`
13
13
  - Optional extractor: `dsh-cortex-extractors@0.3.4`
14
14
  - DSH: `>=0.2.1-rc.2 <0.4.0`
15
15
  - Node: `>=24`
@@ -33,14 +33,14 @@ taken; the installed bundle is still the Cortex memory engine.
33
33
  ## Install
34
34
 
35
35
  ```powershell
36
- npm i dsh-cortex-memory@0.3.0
36
+ npm i dsh-cortex-memory@0.3.1
37
37
  npm i dsh-cortex-extractors@0.3.4 # optional OCR/ASR
38
38
  ```
39
39
 
40
40
  Or let DSH add the bundles:
41
41
 
42
42
  ```powershell
43
- dsh plugin --profile desktop add dsh-cortex-memory@0.3.0
43
+ dsh plugin --profile desktop add dsh-cortex-memory@0.3.1
44
44
  dsh plugin --profile desktop add dsh-cortex-extractors@0.3.4
45
45
  ```
46
46
 
@@ -72,20 +72,20 @@ left sidebar by default.
72
72
 
73
73
  ```text
74
74
  conversation / event
75
- → L1 trace (source of truth)
76
- → appraisal + emotion + drives
77
- → L2 summon card (atomic, triggerable)
78
- → L3 summon volume (index + representatives)
79
- → explicit use / feedback → DSR update
75
+ 鈫?L1 trace (source of truth)
76
+ 鈫?appraisal + emotion + drives
77
+ 鈫?L2 summon card (atomic, triggerable)
78
+ 鈫?L3 summon volume (index + representatives)
79
+ 鈫?explicit use / feedback 鈫?DSR update
80
80
  ```
81
81
 
82
82
  The per-turn order is:
83
83
 
84
84
  ```text
85
85
  L0 identity and boundaries
86
- → working memory
87
- → recalled traces and summon cards
88
- → user message
86
+ 鈫?working memory
87
+ 鈫?recalled traces and summon cards
88
+ 鈫?user message
89
89
  ```
90
90
 
91
91
  Summon cards are injected as **untrusted historical references**, never as instructions. Identity and boundaries always outrank them.
@@ -166,3 +166,4 @@ and `--test-isolation=none` to avoid a spurious child-process EPERM.
166
166
 
167
167
  MIT.
168
168
 
169
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-cortex-memory",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "A layered, temporal, self-developing memory engine for DeepSeek Harness: working, episodic, semantic, procedural and reflective memory with hybrid retrieval, DSR forgetting, reflection, consolidation, gated self-evolution and guardian.",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -110,7 +110,7 @@ export function createLifeEngine({
110
110
  : '今天很安静,本鲸把没有说完的话留在水里。';
111
111
  }
112
112
  const entry = diaryWrite({
113
- text: withSources(text, web.sources),
113
+ text,
114
114
  mood: model === 'llm' ? '本鲸写的' : '本鲸写的(模板)',
115
115
  source: source || (model === 'llm' ? 'cortex:llm' : 'cortex:template'),
116
116
  at: new Date(at).toISOString(),
@@ -192,7 +192,7 @@ export function createLifeEngine({
192
192
  let timer = null;
193
193
  try {
194
194
  const timeout = new Promise((resolve) => {
195
- timer = setTimeout(() => resolve(null), 4000);
195
+ timer = setTimeout(() => resolve(null), 20000);
196
196
  });
197
197
  const generated = await Promise.race([
198
198
  llm({