dsh-mnemon 0.2.12 → 0.2.13

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 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.12-5b5bd6" alt="release v0.2.12">
6
+ <img src="https://img.shields.io/badge/release-v0.2.13-5b5bd6" alt="release v0.2.13">
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.12.md">Read the v0.2.12 notes</a> ·
25
+ <a href="./docs/en/releases/v0.2.13.md">Read the v0.2.13 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.12 release notes](./docs/en/releases/v0.2.12.md) |
193
+ | Review the release | [v0.2.13 release notes](./docs/en/releases/v0.2.13.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.12-5b5bd6" alt="发布版本 v0.2.12">
6
+ <img src="https://img.shields.io/badge/release-v0.2.13-5b5bd6" alt="发布版本 v0.2.13">
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.12.md">v0.2.12 升级说明</a> ·
25
+ <a href="./docs/zh-CN/releases/v0.2.13.md">v0.2.13 升级说明</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.12 发布说明](./docs/zh-CN/releases/v0.2.12.md) |
193
+ | 查看本次升级 | [v0.2.13 发布说明](./docs/zh-CN/releases/v0.2.13.md) |
194
194
 
195
195
  完整目录见[文档中心](./docs/zh-CN/README.md)。
196
196
 
package/lib/index.js CHANGED
@@ -7572,7 +7572,11 @@ function safeFailureDetail(value) {
7572
7572
  return value.replace(/\bsk-[A-Za-z0-9_-]{8,}\b/gu, "[redacted]").replace(/\s+/gu, " ").trim().slice(0, 500);
7573
7573
  }
7574
7574
  /** Recover the contained DSH model/transport error without exposing the child transcript. */
7575
- function subagentFailureDetail(run) {
7575
+ function subagentFailureDetail(run, result) {
7576
+ if (typeof result.diagnostic === "string") {
7577
+ const diagnostic = safeFailureDetail(result.diagnostic);
7578
+ if (diagnostic !== "") return diagnostic;
7579
+ }
7576
7580
  const events = run.localAgent?.session.events ?? [];
7577
7581
  for (let index = events.length - 1; index >= 0; index -= 1) {
7578
7582
  const event = events[index];
@@ -8298,7 +8302,7 @@ Completion protocol: call \`${resultToolName}\` exactly once with the final resu
8298
8302
  if (structured === void 0 && result.stopReason === "completed") structured = recoverStructuredResult(recovery, committedReceipts.filter((receipt) => receipt.agentId === activeRun.id));
8299
8303
  if (structured !== void 0) assertDshOutputValue(outputSchema, structured);
8300
8304
  if (result.stopReason !== "completed") {
8301
- const detail = subagentFailureDetail(activeRun);
8305
+ const detail = subagentFailureDetail(activeRun, result);
8302
8306
  throw new Error(`memory subagent stopped with ${result.stopReason}${detail === void 0 ? "" : `: ${detail}`}`);
8303
8307
  }
8304
8308
  if (structured === void 0) throw new Error("memory subagent completed without recording its result");
@@ -13,7 +13,7 @@ declare module '@deepseek-ai/dsh-client-ui-slots' {
13
13
  mnemon: MnemonKey;
14
14
  }
15
15
  }
16
- /** DSH 0.1.0-rc.6 client context plus the two injected feature services. */
16
+ /** DSH 0.1.0-rc.8 client context plus the two injected feature services. */
17
17
  export type MnemonClientContext = ClientContext & {
18
18
  connection: ConnectionHandle;
19
19
  locale: LocaleRuntime;
@@ -174,6 +174,8 @@ export interface HostSubagentResult {
174
174
  [key: string]: unknown;
175
175
  }>;
176
176
  structured?: unknown;
177
+ /** DSH rc.8 provider-authored failure detail, including for remote children. */
178
+ diagnostic?: string;
177
179
  stopReason: string;
178
180
  }
179
181
  export interface HostSubagentRun {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-mnemon",
3
- "version": "0.2.12",
3
+ "version": "0.2.13",
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",
@@ -112,16 +112,16 @@
112
112
  "devDependencies": {
113
113
  "@arethetypeswrong/cli": "^0.18.5",
114
114
  "@deepseek-ai/cordis": "^4.0.1",
115
- "@deepseek-ai/dsh": "0.1.0-rc.6",
116
- "@deepseek-ai/dsh-client-connection": "0.1.0-rc.6",
117
- "@deepseek-ai/dsh-client-locale": "0.1.0-rc.6",
118
- "@deepseek-ai/dsh-client-runtime": "0.1.0-rc.6",
119
- "@deepseek-ai/dsh-client-ui-conversation": "0.1.0-rc.6",
120
- "@deepseek-ai/dsh-client-ui-primitives": "0.1.0-rc.6",
121
- "@deepseek-ai/dsh-client-ui-settings": "0.1.0-rc.6",
122
- "@deepseek-ai/dsh-client-ui-slots": "0.1.0-rc.6",
123
- "@deepseek-ai/dsh-client-ui-tool": "0.1.0-rc.6",
124
- "@deepseek-ai/dsh-system-prompt": "0.1.0-rc.6",
115
+ "@deepseek-ai/dsh": "0.1.0-rc.8",
116
+ "@deepseek-ai/dsh-client-connection": "0.1.0-rc.8",
117
+ "@deepseek-ai/dsh-client-locale": "0.1.0-rc.8",
118
+ "@deepseek-ai/dsh-client-runtime": "0.1.0-rc.8",
119
+ "@deepseek-ai/dsh-client-ui-conversation": "0.1.0-rc.8",
120
+ "@deepseek-ai/dsh-client-ui-primitives": "0.1.0-rc.8",
121
+ "@deepseek-ai/dsh-client-ui-settings": "0.1.0-rc.8",
122
+ "@deepseek-ai/dsh-client-ui-slots": "0.1.0-rc.8",
123
+ "@deepseek-ai/dsh-client-ui-tool": "0.1.0-rc.8",
124
+ "@deepseek-ai/dsh-system-prompt": "0.1.0-rc.8",
125
125
  "@testing-library/react": "^16.3.0",
126
126
  "@types/node": "^22.0.0",
127
127
  "@types/react": "^18.3.0",