@lmzhen/dsh-tool-memory 0.3.15 → 0.3.17
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 +1 -24
- package/package.json +5 -5
package/lib/index.js
CHANGED
|
@@ -1,30 +1,7 @@
|
|
|
1
1
|
import z from "@deepseek-ai/schemastery";
|
|
2
2
|
import { defineTool } from "@deepseek-ai/dsh-tools";
|
|
3
3
|
import { createHash } from "node:crypto";
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Review and curation prompts adapted from Hermes Agent
|
|
7
|
-
* `agent/background_review.py`, `agent/curator.py`, and
|
|
8
|
-
* `agent/learn_prompt.py`, with tool names translated to the DSH-native
|
|
9
|
-
* catalog (`memory`, `skill_manage`, `skill`, `bash`, `str_replace_editor`).
|
|
10
|
-
*
|
|
11
|
-
* Alignment policy (2026-08-29): the OPERATIONAL steps and instructions the
|
|
12
|
-
* model follows mirror the Hermes originals structurally (signal list,
|
|
13
|
-
* preference order, support-file taxonomy, curator package integrity,
|
|
14
|
-
* consolidated/pruned reporting block). Tool and platform differences are
|
|
15
|
-
* DSH-adapted (native tool names, pinned-within-review semantics, this
|
|
16
|
-
* platform's index cap), and DSH-only additions are marked as such.
|
|
17
|
-
*
|
|
18
|
-
* Every prompt is pinned in a versioned bundle. Review workers verify the
|
|
19
|
-
* bundle digest before spending a model call, so a partially-patched
|
|
20
|
-
* deployment fails closed instead of silently running a truncated prompt.
|
|
21
|
-
*/
|
|
22
|
-
/**
|
|
23
|
-
* Prompt bundle identity. Bump both id and version whenever a prompt's text
|
|
24
|
-
* changes semantically: the bundle digest is the fail-closed signal for
|
|
25
|
-
* review workers, so a stale id across deployments must be distinguishable.
|
|
26
|
-
*/
|
|
27
|
-
const PROMPT_BUNDLE_ID = "dsh-evolution@13";
|
|
4
|
+
const PROMPT_BUNDLE_ID = `dsh-evolution@13`;
|
|
28
5
|
const MEMORY_REVIEW_PROMPT = `[Auto-review — Memory]
|
|
29
6
|
Review the conversation above and consider saving to memory if appropriate.
|
|
30
7
|
|
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.3.
|
|
4
|
+
"version": "0.3.17",
|
|
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.3.
|
|
43
|
-
"@lmzhen/dsh-memory-files": "^0.3.
|
|
42
|
+
"@lmzhen/dsh-memory": "^0.3.17",
|
|
43
|
+
"@lmzhen/dsh-memory-files": "^0.3.17"
|
|
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.3.
|
|
51
|
-
"@lmzhen/dsh-memory-files": "^0.3.
|
|
50
|
+
"@lmzhen/dsh-memory": "^0.3.17",
|
|
51
|
+
"@lmzhen/dsh-memory-files": "^0.3.17"
|
|
52
52
|
}
|
|
53
53
|
}
|