@lmzhen/dsh-evolution-feedback 0.1.0-rc.66 → 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.
Files changed (2) hide show
  1. package/lib/index.js +7 -3
  2. package/package.json +6 -6
package/lib/index.js CHANGED
@@ -65,7 +65,7 @@ function evolutionIoAdapter(provider) {
65
65
  * changes semantically: the bundle digest is the fail-closed signal for
66
66
  * review workers, so a stale id across deployments must be distinguishable.
67
67
  */
68
- const PROMPT_BUNDLE_ID = "dsh-evolution@6";
68
+ const PROMPT_BUNDLE_ID = "dsh-evolution@7";
69
69
  const MEMORY_REVIEW_PROMPT = `[Auto-review — Memory]
70
70
  Review the conversation above and consider saving to memory if appropriate.
71
71
 
@@ -86,6 +86,8 @@ Signals to look for (any one of these warrants action):
86
86
  • Non-trivial technique, fix, workaround, debugging path, or tool-usage pattern emerged that a future session would benefit from. Capture it.
87
87
  • A skill that got loaded or consulted this session turned out to be wrong, missing a step, or outdated. Patch it NOW.
88
88
 
89
+ 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.
90
+
89
91
  Preference order — prefer the earliest action that fits, but do pick one when a signal above fired:
90
92
  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.
91
93
  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.
@@ -133,6 +135,8 @@ Signals that warrant a skill update (any one is enough):
133
135
  • Non-trivial technique, fix, workaround, or debugging path emerged.
134
136
  • A skill that was loaded or consulted turned out wrong, missing, or outdated — patch it now.
135
137
 
138
+ 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.
139
+
136
140
  Preference order for skills — pick the earliest that fits:
137
141
  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.
138
142
  2. UPDATE AN EXISTING UMBRELLA. Patch it.
@@ -240,12 +244,12 @@ function sha256(text) {
240
244
  function createPromptBundle(prompts) {
241
245
  const canonical = JSON.stringify({
242
246
  id: PROMPT_BUNDLE_ID,
243
- version: 6,
247
+ version: 7,
244
248
  prompts: Object.fromEntries(Object.entries(prompts).sort())
245
249
  });
246
250
  return Object.freeze({
247
251
  id: PROMPT_BUNDLE_ID,
248
- version: 6,
252
+ version: 7,
249
253
  prompts: Object.freeze({ ...prompts }),
250
254
  sha256: sha256(canonical)
251
255
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lmzhen/dsh-evolution-feedback",
3
3
  "description": "Feedback-to-quality scoring for self-evolution (community build)",
4
- "version": "0.1.0-rc.66",
4
+ "version": "0.1.0-rc.67",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -37,13 +37,13 @@
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.66",
41
- "@lmzhen/dsh-skill-usage": "^0.1.0-rc.66"
40
+ "@lmzhen/dsh-evolution-io": "^0.1.0-rc.67",
41
+ "@lmzhen/dsh-skill-usage": "^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.66",
46
- "@lmzhen/dsh-evolution-io-node": "^0.1.0-rc.66",
47
- "@lmzhen/dsh-skill-usage": "^0.1.0-rc.66"
45
+ "@lmzhen/dsh-evolution-io": "^0.1.0-rc.67",
46
+ "@lmzhen/dsh-evolution-io-node": "^0.1.0-rc.67",
47
+ "@lmzhen/dsh-skill-usage": "^0.1.0-rc.67"
48
48
  }
49
49
  }