dsh-mnemon 0.2.11 → 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 +3 -3
- package/README.zh-CN.md +3 -3
- package/lib/client.js +373 -93
- package/lib/index.js +6 -2
- package/lib/types/client/MnemonDialog.d.ts +14 -0
- package/lib/types/client/dsh-compat.d.ts +1 -1
- package/lib/types/contracts.d.ts +2 -0
- package/package.json +11 -11
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");
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type JSX, type ReactNode } from 'react';
|
|
2
|
+
export interface MnemonDialogProps {
|
|
3
|
+
title: string;
|
|
4
|
+
closeLabel: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
busy?: boolean;
|
|
7
|
+
contentReady?: boolean;
|
|
8
|
+
wide?: boolean;
|
|
9
|
+
footer?: ReactNode;
|
|
10
|
+
onClose: () => void;
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
}
|
|
13
|
+
/** Shared top-layer dialog behavior for every Mnemon workspace action surface. */
|
|
14
|
+
export declare function MnemonDialog(props: MnemonDialogProps): JSX.Element | null;
|
|
@@ -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.
|
|
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;
|
package/lib/types/contracts.d.ts
CHANGED
|
@@ -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.
|
|
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.
|
|
116
|
-
"@deepseek-ai/dsh-client-connection": "0.1.0-rc.
|
|
117
|
-
"@deepseek-ai/dsh-client-locale": "0.1.0-rc.
|
|
118
|
-
"@deepseek-ai/dsh-client-runtime": "0.1.0-rc.
|
|
119
|
-
"@deepseek-ai/dsh-client-ui-conversation": "0.1.0-rc.
|
|
120
|
-
"@deepseek-ai/dsh-client-ui-primitives": "0.1.0-rc.
|
|
121
|
-
"@deepseek-ai/dsh-client-ui-settings": "0.1.0-rc.
|
|
122
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.1.0-rc.
|
|
123
|
-
"@deepseek-ai/dsh-client-ui-tool": "0.1.0-rc.
|
|
124
|
-
"@deepseek-ai/dsh-system-prompt": "0.1.0-rc.
|
|
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",
|