dsh-mnemon 0.2.4 → 0.2.5
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 +3 -3
- package/README.zh-CN.md +3 -3
- package/lib/index.js +6 -6
- package/lib/types/guidance.d.ts +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<p align="center"><strong>English</strong> · <a href="./README.zh-CN.md">简体中文</a></p>
|
|
4
4
|
|
|
5
5
|
<p align="center">
|
|
6
|
-
<img src="https://img.shields.io/badge/release-v0.2.
|
|
6
|
+
<img src="https://img.shields.io/badge/release-v0.2.5-5b5bd6" alt="release v0.2.5">
|
|
7
7
|
<img src="https://img.shields.io/badge/memory-3%20tiers-087c5b" alt="three memory tiers">
|
|
8
8
|
<img src="https://img.shields.io/badge/providers-9-c66a09" alt="nine providers">
|
|
9
9
|
<img src="https://img.shields.io/badge/Node.js-%E2%89%A520-43853d" alt="Node.js 20 or newer">
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
<p align="center">
|
|
23
23
|
<a href="./docs/en/capabilities.md"><strong>Explore the capability map</strong></a> ·
|
|
24
24
|
<a href="./docs/en/getting-started.md">Start in five minutes</a> ·
|
|
25
|
-
<a href="./docs/en/releases/v0.2.
|
|
25
|
+
<a href="./docs/en/releases/v0.2.5.md">Read the v0.2.5 notes</a> ·
|
|
26
26
|
<a href="https://github.com/omdsh-dev/dsh-mnemon/blob/e6ca446e45bdd17991f3c7c98560456de465282b/docs/assets/media/dsh-mnemon-memory-system-demo.mp4">Watch the widescreen demo</a>
|
|
27
27
|
</p>
|
|
28
28
|
|
|
@@ -190,7 +190,7 @@ See [Operations, security, and troubleshooting](./docs/en/operations.md) for bac
|
|
|
190
190
|
| Configure scope, routing, and model selection | [Configuration](./docs/en/configuration.md) |
|
|
191
191
|
| Back up, update, or troubleshoot | [Operations](./docs/en/operations.md) |
|
|
192
192
|
| Integrate tools, commands, or RPC | [Interface reference](./docs/en/interfaces.md) |
|
|
193
|
-
| Review the release | [v0.2.
|
|
193
|
+
| Review the release | [v0.2.5 release notes](./docs/en/releases/v0.2.5.md) |
|
|
194
194
|
|
|
195
195
|
See the [documentation hub](./docs/en/README.md) for the full map.
|
|
196
196
|
|
package/README.zh-CN.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<p align="center"><a href="./README.md">English</a> · <strong>简体中文</strong></p>
|
|
4
4
|
|
|
5
5
|
<p align="center">
|
|
6
|
-
<img src="https://img.shields.io/badge/release-v0.2.
|
|
6
|
+
<img src="https://img.shields.io/badge/release-v0.2.5-5b5bd6" alt="发布版本 v0.2.5">
|
|
7
7
|
<img src="https://img.shields.io/badge/%E8%AE%B0%E5%BF%86-3%20%E5%B1%82-087c5b" alt="三层记忆">
|
|
8
8
|
<img src="https://img.shields.io/badge/Provider-9-c66a09" alt="九种 Provider">
|
|
9
9
|
<img src="https://img.shields.io/badge/Node.js-%E2%89%A520-43853d" alt="Node.js 20 或更新版本">
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
<p align="center">
|
|
23
23
|
<a href="./docs/zh-CN/capabilities.md"><strong>先看能力地图</strong></a> ·
|
|
24
24
|
<a href="./docs/zh-CN/getting-started.md">5 分钟开始</a> ·
|
|
25
|
-
<a href="./docs/zh-CN/releases/v0.2.
|
|
25
|
+
<a href="./docs/zh-CN/releases/v0.2.5.md">v0.2.5 升级说明</a> ·
|
|
26
26
|
<a href="https://github.com/omdsh-dev/dsh-mnemon/blob/e6ca446e45bdd17991f3c7c98560456de465282b/docs/assets/media/dsh-mnemon-memory-system-demo.mp4">观看宽屏实机演示</a>
|
|
27
27
|
</p>
|
|
28
28
|
|
|
@@ -190,7 +190,7 @@ dsh plugin --profile headless add "link:/absolute/path/to/dsh-mnemon"
|
|
|
190
190
|
| 配置范围、路由与模型 | [配置参考](./docs/zh-CN/configuration.md) |
|
|
191
191
|
| 备份、更新或排障 | [运维指南](./docs/zh-CN/operations.md) |
|
|
192
192
|
| 接入工具、命令或 RPC | [接口参考](./docs/zh-CN/interfaces.md) |
|
|
193
|
-
| 查看本次升级 | [v0.2.
|
|
193
|
+
| 查看本次升级 | [v0.2.5 发布说明](./docs/zh-CN/releases/v0.2.5.md) |
|
|
194
194
|
|
|
195
195
|
完整目录见[文档中心](./docs/zh-CN/README.md)。
|
|
196
196
|
|
package/lib/index.js
CHANGED
|
@@ -896,7 +896,7 @@ var DocumentManager = class {
|
|
|
896
896
|
//#endregion
|
|
897
897
|
//#region src/guidance.ts
|
|
898
898
|
const GUIDANCE_SECTION_NAME = "mnemon:routing";
|
|
899
|
-
const
|
|
899
|
+
const RUNTIME_MEMORY_CONTEXT_NAME = "mnemon:runtime-memory";
|
|
900
900
|
const ROUTING_GUIDANCE = "Use memory only by need. For substantial project records, search active Mnemon Documents before deep recall. Call mnemon_recall when durable history may matter or an exact prior detail is missing; never infer a missing historical rule. New explicit reusable facts normally go to mnemon_runtime_memory. A write completes only with a tool receipt.";
|
|
901
901
|
const RUNTIME_MEMORY_EMPTY_BRACES_VARIABLE = "mnemon_runtime_memory_empty_braces";
|
|
902
902
|
const LITERAL_EMPTY_BRACES = "{{}}";
|
|
@@ -916,20 +916,20 @@ function registerGuidance(ctx, config) {
|
|
|
916
916
|
text: () => config?.routingGuidance === false ? "" : ROUTING_GUIDANCE
|
|
917
917
|
});
|
|
918
918
|
}
|
|
919
|
-
/**
|
|
919
|
+
/** Project the latest committed USER.md/MEMORY.md as DSH's durable runtime-context snapshot. */
|
|
920
920
|
function registerRuntimeMemoryContext(ctx, runtimeMemory) {
|
|
921
921
|
const prompt = systemPrompt(ctx);
|
|
922
922
|
prompt?.variable?.(RUNTIME_MEMORY_EMPTY_BRACES_VARIABLE, () => LITERAL_EMPTY_BRACES);
|
|
923
|
-
prompt?.
|
|
924
|
-
name:
|
|
923
|
+
prompt?.context?.({
|
|
924
|
+
name: RUNTIME_MEMORY_CONTEXT_NAME,
|
|
925
925
|
order: 145,
|
|
926
926
|
text: () => runtimeMemoryPromptText(runtimeMemory)
|
|
927
927
|
});
|
|
928
928
|
}
|
|
929
929
|
/** Shadow the global fallback with the current Agent workspace's hot memory. */
|
|
930
930
|
function registerAgentRuntimeMemoryContext(agent, runtimeMemory) {
|
|
931
|
-
const dispose = scopedSystemPrompt(agent)?.
|
|
932
|
-
name:
|
|
931
|
+
const dispose = scopedSystemPrompt(agent)?.context?.({
|
|
932
|
+
name: RUNTIME_MEMORY_CONTEXT_NAME,
|
|
933
933
|
order: 145,
|
|
934
934
|
text: () => runtimeMemoryPromptText(runtimeMemory())
|
|
935
935
|
});
|
package/lib/types/guidance.d.ts
CHANGED
|
@@ -2,10 +2,10 @@ import type { HostAgent, HostContextShape } from './contracts.ts';
|
|
|
2
2
|
import type { ResolvedConfig } from './config.ts';
|
|
3
3
|
import type { RuntimeMemoryController } from './runtime-memory.ts';
|
|
4
4
|
export declare const GUIDANCE_SECTION_NAME = "mnemon:routing";
|
|
5
|
-
export declare const
|
|
5
|
+
export declare const RUNTIME_MEMORY_CONTEXT_NAME = "mnemon:runtime-memory";
|
|
6
6
|
export declare const ROUTING_GUIDANCE = "Use memory only by need. For substantial project records, search active Mnemon Documents before deep recall. Call mnemon_recall when durable history may matter or an exact prior detail is missing; never infer a missing historical rule. New explicit reusable facts normally go to mnemon_runtime_memory. A write completes only with a tool receipt.";
|
|
7
7
|
export declare function registerGuidance(ctx: HostContextShape, config?: Pick<ResolvedConfig, 'routingGuidance'>): void;
|
|
8
|
-
/**
|
|
8
|
+
/** Project the latest committed USER.md/MEMORY.md as DSH's durable runtime-context snapshot. */
|
|
9
9
|
export declare function registerRuntimeMemoryContext(ctx: HostContextShape, runtimeMemory: RuntimeMemoryController): void;
|
|
10
10
|
/** Shadow the global fallback with the current Agent workspace's hot memory. */
|
|
11
11
|
export declare function registerAgentRuntimeMemoryContext(agent: HostAgent, runtimeMemory: () => RuntimeMemoryController): () => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-mnemon",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"description": "Three-tier memory control plane for DeepSeek Harness: persistent runtime context, searchable project documents, pluggable long-term memory, smart routing, supervised agent workflows, WebUI, and headless tools.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"deepseek-harness",
|