@lmzhen/dsh-evolution-state-json 0.1.0-rc.65 → 0.1.0-rc.67
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
|
@@ -41,7 +41,7 @@ async function transactIo(io, path, task) {
|
|
|
41
41
|
* changes semantically: the bundle digest is the fail-closed signal for
|
|
42
42
|
* review workers, so a stale id across deployments must be distinguishable.
|
|
43
43
|
*/
|
|
44
|
-
const PROMPT_BUNDLE_ID = "dsh-evolution@
|
|
44
|
+
const PROMPT_BUNDLE_ID = "dsh-evolution@7";
|
|
45
45
|
const MEMORY_REVIEW_PROMPT = `[Auto-review — Memory]
|
|
46
46
|
Review the conversation above and consider saving to memory if appropriate.
|
|
47
47
|
|
|
@@ -62,6 +62,8 @@ Signals to look for (any one of these warrants action):
|
|
|
62
62
|
• Non-trivial technique, fix, workaround, debugging path, or tool-usage pattern emerged that a future session would benefit from. Capture it.
|
|
63
63
|
• A skill that got loaded or consulted this session turned out to be wrong, missing a step, or outdated. Patch it NOW.
|
|
64
64
|
|
|
65
|
+
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.
|
|
66
|
+
|
|
65
67
|
Preference order — prefer the earliest action that fits, but do pick one when a signal above fired:
|
|
66
68
|
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.
|
|
67
69
|
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.
|
|
@@ -109,6 +111,8 @@ Signals that warrant a skill update (any one is enough):
|
|
|
109
111
|
• Non-trivial technique, fix, workaround, or debugging path emerged.
|
|
110
112
|
• A skill that was loaded or consulted turned out wrong, missing, or outdated — patch it now.
|
|
111
113
|
|
|
114
|
+
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.
|
|
115
|
+
|
|
112
116
|
Preference order for skills — pick the earliest that fits:
|
|
113
117
|
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.
|
|
114
118
|
2. UPDATE AN EXISTING UMBRELLA. Patch it.
|
|
@@ -216,12 +220,12 @@ function sha256(text) {
|
|
|
216
220
|
function createPromptBundle(prompts) {
|
|
217
221
|
const canonical = JSON.stringify({
|
|
218
222
|
id: PROMPT_BUNDLE_ID,
|
|
219
|
-
version:
|
|
223
|
+
version: 7,
|
|
220
224
|
prompts: Object.fromEntries(Object.entries(prompts).sort())
|
|
221
225
|
});
|
|
222
226
|
return Object.freeze({
|
|
223
227
|
id: PROMPT_BUNDLE_ID,
|
|
224
|
-
version:
|
|
228
|
+
version: 7,
|
|
225
229
|
prompts: Object.freeze({ ...prompts }),
|
|
226
230
|
sha256: sha256(canonical)
|
|
227
231
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lmzhen/dsh-evolution-state-json",
|
|
3
3
|
"description": "JSON-file evolution state provider over the IO seam (community build)",
|
|
4
|
-
"version": "0.1.0-rc.
|
|
4
|
+
"version": "0.1.0-rc.67",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
|
|
39
39
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
40
|
-
"@lmzhen/dsh-evolution-io": "^0.1.0-rc.
|
|
41
|
-
"@lmzhen/dsh-evolution-state-storage": "^0.1.0-rc.
|
|
40
|
+
"@lmzhen/dsh-evolution-io": "^0.1.0-rc.67",
|
|
41
|
+
"@lmzhen/dsh-evolution-state-storage": "^0.1.0-rc.67"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
|
|
45
|
-
"@lmzhen/dsh-evolution-io": "^0.1.0-rc.
|
|
46
|
-
"@lmzhen/dsh-evolution-state-storage": "^0.1.0-rc.
|
|
45
|
+
"@lmzhen/dsh-evolution-io": "^0.1.0-rc.67",
|
|
46
|
+
"@lmzhen/dsh-evolution-state-storage": "^0.1.0-rc.67"
|
|
47
47
|
}
|
|
48
48
|
}
|