@lmzhen/dsh-tool-memory 0.1.0-rc.66 → 0.1.0-rc.68
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/lib/index.js +7 -3
- package/package.json +5 -5
package/lib/index.js
CHANGED
|
@@ -24,7 +24,7 @@ import { createHash } from "node:crypto";
|
|
|
24
24
|
* changes semantically: the bundle digest is the fail-closed signal for
|
|
25
25
|
* review workers, so a stale id across deployments must be distinguishable.
|
|
26
26
|
*/
|
|
27
|
-
const PROMPT_BUNDLE_ID = "dsh-evolution@
|
|
27
|
+
const PROMPT_BUNDLE_ID = "dsh-evolution@7";
|
|
28
28
|
const MEMORY_REVIEW_PROMPT = `[Auto-review — Memory]
|
|
29
29
|
Review the conversation above and consider saving to memory if appropriate.
|
|
30
30
|
|
|
@@ -45,6 +45,8 @@ Signals to look for (any one of these warrants action):
|
|
|
45
45
|
• Non-trivial technique, fix, workaround, debugging path, or tool-usage pattern emerged that a future session would benefit from. Capture it.
|
|
46
46
|
• A skill that got loaded or consulted this session turned out to be wrong, missing a step, or outdated. Patch it NOW.
|
|
47
47
|
|
|
48
|
+
Read-before-write (enforced by this channel): update, patch, delete, or write support files ONLY into skills you loaded or read in THIS session — ops on unread skills are dropped; CREATE of a brand-new umbrella is the only exception.
|
|
49
|
+
|
|
48
50
|
Preference order — prefer the earliest action that fits, but do pick one when a signal above fired:
|
|
49
51
|
1. UPDATE A CURRENTLY-LOADED SKILL. Look back through the conversation for skills the user loaded or you read. If any of them covers the territory of the new learning, PATCH that one first. It is the skill that was in play, so it's the right one to extend.
|
|
50
52
|
2. UPDATE AN EXISTING UMBRELLA. If no loaded skill fits but an existing class-level skill does, patch it. Add a subsection, a pitfall, or broaden a trigger.
|
|
@@ -92,6 +94,8 @@ Signals that warrant a skill update (any one is enough):
|
|
|
92
94
|
• Non-trivial technique, fix, workaround, or debugging path emerged.
|
|
93
95
|
• A skill that was loaded or consulted turned out wrong, missing, or outdated — patch it now.
|
|
94
96
|
|
|
97
|
+
Read-before-write (enforced by this channel): update, patch, delete, or write support files ONLY into skills you loaded or read in THIS session — ops on unread skills are dropped; CREATE of a brand-new umbrella is the only exception.
|
|
98
|
+
|
|
95
99
|
Preference order for skills — pick the earliest that fits:
|
|
96
100
|
1. UPDATE A CURRENTLY-LOADED SKILL. Check what skills were loaded or read in the conversation. If one of them covers the learning, PATCH it first. It was in play; it's the right place.
|
|
97
101
|
2. UPDATE AN EXISTING UMBRELLA. Patch it.
|
|
@@ -199,12 +203,12 @@ function sha256(text) {
|
|
|
199
203
|
function createPromptBundle(prompts) {
|
|
200
204
|
const canonical = JSON.stringify({
|
|
201
205
|
id: PROMPT_BUNDLE_ID,
|
|
202
|
-
version:
|
|
206
|
+
version: 7,
|
|
203
207
|
prompts: Object.fromEntries(Object.entries(prompts).sort())
|
|
204
208
|
});
|
|
205
209
|
return Object.freeze({
|
|
206
210
|
id: PROMPT_BUNDLE_ID,
|
|
207
|
-
version:
|
|
211
|
+
version: 7,
|
|
208
212
|
prompts: Object.freeze({ ...prompts }),
|
|
209
213
|
sha256: sha256(canonical)
|
|
210
214
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lmzhen/dsh-tool-memory",
|
|
3
3
|
"description": "Model-facing memory tool and prompt context (community build)",
|
|
4
|
-
"version": "0.1.0-rc.
|
|
4
|
+
"version": "0.1.0-rc.68",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -39,15 +39,15 @@
|
|
|
39
39
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
40
40
|
"@deepseek-ai/dsh-tools": "^0.1.1-rc.2",
|
|
41
41
|
"@deepseek-ai/dsh-system-prompt": "^0.1.1-rc.2",
|
|
42
|
-
"@lmzhen/dsh-memory": "^0.1.0-rc.
|
|
43
|
-
"@lmzhen/dsh-memory-files": "^0.1.0-rc.
|
|
42
|
+
"@lmzhen/dsh-memory": "^0.1.0-rc.68",
|
|
43
|
+
"@lmzhen/dsh-memory-files": "^0.1.0-rc.68"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
|
|
47
47
|
"@deepseek-ai/dsh-tools": "^0.1.1-rc.2",
|
|
48
48
|
"@deepseek-ai/dsh-system-prompt": "^0.1.1-rc.2",
|
|
49
49
|
"@deepseek-ai/dsh-agent-loop-testkit": "^0.1.1-rc.2",
|
|
50
|
-
"@lmzhen/dsh-memory": "^0.1.0-rc.
|
|
51
|
-
"@lmzhen/dsh-memory-files": "^0.1.0-rc.
|
|
50
|
+
"@lmzhen/dsh-memory": "^0.1.0-rc.68",
|
|
51
|
+
"@lmzhen/dsh-memory-files": "^0.1.0-rc.68"
|
|
52
52
|
}
|
|
53
53
|
}
|