dsh-mnemon 0.5.12 → 0.5.14
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/client.js +73 -22
- package/lib/contracts-D4ghDRK4.js +35 -0
- package/lib/contracts.js +1 -34
- package/lib/core.js +1 -1
- package/lib/{definitions-j0FLgE0-.js → definitions-CSPV0ER1.js} +1 -1
- package/lib/extension-sdk.js +2 -2
- package/lib/index.js +876 -219
- package/lib/{runtime-AtIOTeP1.js → runtime-BEX0sc1z.js} +2 -2
- package/lib/{strategy-configuration-BTXIWooc.js → strategy-configuration-D8IEKZdS.js} +1 -1
- package/lib/testing.js +3 -3
- package/lib/types/src/client/extension-sdk.d.ts +1 -1
- package/lib/types/src/client/locales.d.ts +12 -4
- package/lib/types/src/client/ui-icons.d.ts +4 -0
- package/lib/types/src/host/live-config.d.ts +11 -0
- package/lib/types/src/host/plugin.d.ts +4 -3
- package/lib/types/src/host/protocol.d.ts +7 -0
- package/package.json +11 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DEFAULT_MEMORY_VIEW_BUDGET } from "./contracts.js";
|
|
2
|
-
import { a as defineMemoryStrategy, c as jsonClone, d as uniqueIds, f as validateCapabilities, i as defineMemorySource, l as positiveInteger, n as deepFreeze, o as defineMemoryStrategyExtension, p as validateProvenance, r as defineMemoryPlugin, s as id, t as canonicalMemoryJson, u as requiredText } from "./definitions-
|
|
1
|
+
import { i as DEFAULT_MEMORY_VIEW_BUDGET } from "./contracts-D4ghDRK4.js";
|
|
2
|
+
import { a as defineMemoryStrategy, c as jsonClone, d as uniqueIds, f as validateCapabilities, i as defineMemorySource, l as positiveInteger, n as deepFreeze, o as defineMemoryStrategyExtension, p as validateProvenance, r as defineMemoryPlugin, s as id, t as canonicalMemoryJson, u as requiredText } from "./definitions-CSPV0ER1.js";
|
|
3
3
|
import { createHash } from "node:crypto";
|
|
4
4
|
import { setMaxListeners } from "node:events";
|
|
5
5
|
//#region src/core/contributions.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as deepFreeze, t as canonicalMemoryJson } from "./definitions-
|
|
1
|
+
import { n as deepFreeze, t as canonicalMemoryJson } from "./definitions-CSPV0ER1.js";
|
|
2
2
|
import { resolve } from "node:path";
|
|
3
3
|
import { createHash, randomUUID } from "node:crypto";
|
|
4
4
|
//#region src/sdk/storage-lock.ts
|
package/lib/testing.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as provideMemoryRuntime } from "./runtime-
|
|
2
|
-
import { DEFAULT_MEMORY_VIEW_BUDGET } from "./contracts.js";
|
|
3
|
-
import { c as jsonClone } from "./definitions-
|
|
1
|
+
import { t as provideMemoryRuntime } from "./runtime-BEX0sc1z.js";
|
|
2
|
+
import { i as DEFAULT_MEMORY_VIEW_BUDGET } from "./contracts-D4ghDRK4.js";
|
|
3
|
+
import { c as jsonClone } from "./definitions-CSPV0ER1.js";
|
|
4
4
|
import { Context } from "@deepseek-ai/cordis";
|
|
5
5
|
import { readFileSync } from "node:fs";
|
|
6
6
|
//#region src/sdk/testing.ts
|
|
@@ -7,4 +7,4 @@ export { MnemonLogo } from './MnemonLogo.tsx';
|
|
|
7
7
|
export { useRequestVersion } from './use-request-version.ts';
|
|
8
8
|
export { appearanceClass } from './view-styles.ts';
|
|
9
9
|
export { translateEn, translateZh, type MnemonKey, type MnemonTranslate } from './locales.ts';
|
|
10
|
-
export { IconChevronLeftOutline14 } from '
|
|
10
|
+
export { IconChevronLeftOutline14 } from './ui-icons.ts';
|
|
@@ -139,6 +139,10 @@ export declare const zh: {
|
|
|
139
139
|
'config.reviewFork': string;
|
|
140
140
|
'config.reviewFallback': string;
|
|
141
141
|
'config.reviewSkip': string;
|
|
142
|
+
'config.reviewAgentTeams': string;
|
|
143
|
+
'config.reviewTeamPause': string;
|
|
144
|
+
'config.reviewTeamScoped': string;
|
|
145
|
+
'config.reviewTeamHint': string;
|
|
142
146
|
'config.review.minIntervalMs': string;
|
|
143
147
|
'config.review.maxPerSession': string;
|
|
144
148
|
'config.review.maxContextChars': string;
|
|
@@ -297,8 +301,7 @@ export declare const zh: {
|
|
|
297
301
|
'config.description': string;
|
|
298
302
|
'config.unsaved': string;
|
|
299
303
|
'config.ready': string;
|
|
300
|
-
'config.
|
|
301
|
-
'config.noticeAfter': string;
|
|
304
|
+
'config.notice': string;
|
|
302
305
|
'config.displayTitle': string;
|
|
303
306
|
'config.displayDescription': string;
|
|
304
307
|
'config.displayAria': string;
|
|
@@ -694,6 +697,7 @@ export declare const zh: {
|
|
|
694
697
|
"overview.providerApiKeyOptional": string;
|
|
695
698
|
"overview.providerApiKeyKeep": string;
|
|
696
699
|
"overview.providerAccount": string;
|
|
700
|
+
"overview.providerDiscoveryUser": string;
|
|
697
701
|
"overview.providerUser": string;
|
|
698
702
|
"overview.providerActorPeer": string;
|
|
699
703
|
"overview.providerField.workspace": string;
|
|
@@ -1138,6 +1142,10 @@ export declare const en: {
|
|
|
1138
1142
|
'config.reviewFork': string;
|
|
1139
1143
|
'config.reviewFallback': string;
|
|
1140
1144
|
'config.reviewSkip': string;
|
|
1145
|
+
'config.reviewAgentTeams': string;
|
|
1146
|
+
'config.reviewTeamPause': string;
|
|
1147
|
+
'config.reviewTeamScoped': string;
|
|
1148
|
+
'config.reviewTeamHint': string;
|
|
1141
1149
|
'config.review.minIntervalMs': string;
|
|
1142
1150
|
'config.review.maxPerSession': string;
|
|
1143
1151
|
'config.review.maxContextChars': string;
|
|
@@ -1296,8 +1304,7 @@ export declare const en: {
|
|
|
1296
1304
|
'config.description': string;
|
|
1297
1305
|
'config.unsaved': string;
|
|
1298
1306
|
'config.ready': string;
|
|
1299
|
-
'config.
|
|
1300
|
-
'config.noticeAfter': string;
|
|
1307
|
+
'config.notice': string;
|
|
1301
1308
|
'config.displayTitle': string;
|
|
1302
1309
|
'config.displayDescription': string;
|
|
1303
1310
|
'config.displayAria': string;
|
|
@@ -1693,6 +1700,7 @@ export declare const en: {
|
|
|
1693
1700
|
"overview.providerApiKeyOptional": string;
|
|
1694
1701
|
"overview.providerApiKeyKeep": string;
|
|
1695
1702
|
"overview.providerAccount": string;
|
|
1703
|
+
"overview.providerDiscoveryUser": string;
|
|
1696
1704
|
"overview.providerUser": string;
|
|
1697
1705
|
"overview.providerActorPeer": string;
|
|
1698
1706
|
"overview.providerField.workspace": string;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as primitives from '@deepseek-ai/dsh-client-ui-primitives';
|
|
2
|
+
import type { ComponentType } from 'react';
|
|
3
|
+
export declare const IconChevronLeftOutline14: ComponentType<primitives.IconProps>;
|
|
4
|
+
export declare const IconDataOutline16: ComponentType<primitives.IconProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Volatile } from '@deepseek-ai/cosmokit';
|
|
2
|
+
import type z from 'schemastery';
|
|
3
|
+
import { type Config } from './config.ts';
|
|
4
|
+
/** DSH keeps these references stable while committing live profile edits. */
|
|
5
|
+
export type LiveHostConfig = {
|
|
6
|
+
[Key in keyof Config]-?: Key extends 'remoteAccess' ? Config[Key] : Volatile<Config[Key]>;
|
|
7
|
+
};
|
|
8
|
+
/** Read a detached configuration snapshot from either DSH generation. */
|
|
9
|
+
export declare function plainHostConfig(value?: unknown): Config;
|
|
10
|
+
/** Profile Config for live forms; transport authority retains normal remounts. */
|
|
11
|
+
export declare const LiveConfig: z<import("./protocol.ts").Config> | z<import("./protocol.ts").Config, LiveHostConfig>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type Config as MnemonConfig } from './config.ts';
|
|
2
|
+
import { type LiveHostConfig } from './live-config.ts';
|
|
2
3
|
export declare const name = "dsh-mnemon";
|
|
3
4
|
export declare const provide: string[];
|
|
4
5
|
export declare const inject: string[];
|
|
5
|
-
export { Config };
|
|
6
|
+
export { LiveConfig as Config } from './live-config.ts';
|
|
6
7
|
export type { MnemonConfig };
|
|
7
8
|
/** DSH owns assembly; this Host only wires scope, phases and user preferences. */
|
|
8
|
-
export declare function apply(rawContext: unknown,
|
|
9
|
+
export declare function apply(rawContext: unknown, rawConfig?: MnemonConfig | LiveHostConfig): void;
|
|
@@ -177,6 +177,7 @@ export declare const DEFAULT_IDLE_REVIEW: {
|
|
|
177
177
|
enabled: true;
|
|
178
178
|
provider: "spawn";
|
|
179
179
|
fallback: "spawn";
|
|
180
|
+
agentTeams: "pause";
|
|
180
181
|
minIntervalMs: number;
|
|
181
182
|
maxPerSession: number;
|
|
182
183
|
maxContextChars: number;
|
|
@@ -187,6 +188,8 @@ export interface ResolvedIdleReviewConfig {
|
|
|
187
188
|
provider: 'spawn' | 'fork';
|
|
188
189
|
/** Applies only before a child starts; a failed run is never replayed. */
|
|
189
190
|
fallback: 'spawn' | 'skip';
|
|
191
|
+
/** Explicit opt-in for compatible Team policies; tool isolation is mandatory. */
|
|
192
|
+
agentTeams: 'pause' | 'scoped';
|
|
190
193
|
minIntervalMs: number;
|
|
191
194
|
maxPerSession: number;
|
|
192
195
|
maxContextChars: number;
|
|
@@ -207,6 +210,10 @@ export interface Config {
|
|
|
207
210
|
/** Optional DSH-owned overrides injected into every Mnemon CLI process. */
|
|
208
211
|
embedding?: MnemonEmbeddingConfig;
|
|
209
212
|
memoryTopology?: MemoryTopologyConfig;
|
|
213
|
+
/** Profile-owned plugin choices on DSH 0.1.7 and newer. */
|
|
214
|
+
memoryView?: import('./view-protocol.ts').MemoryViewPreferences;
|
|
215
|
+
/** Successful import of this profile's removed settings namespaces. */
|
|
216
|
+
legacySettingsImported?: boolean;
|
|
210
217
|
recallQuality?: RecallQualityConfig;
|
|
211
218
|
routingGuidance?: boolean;
|
|
212
219
|
/** Entry placement only. Legacy `buildin` input is migrated to `builtin`. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-mnemon",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.14",
|
|
4
4
|
"description": "Composable three-tier memory control plane for DeepSeek Harness: persistent runtime context, searchable project documents, pluggable long-term memory, guarded strategies, WebUI, and headless tools.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"deepseek-harness",
|
|
@@ -140,17 +140,18 @@
|
|
|
140
140
|
"release:check": "node scripts/release.mjs --check"
|
|
141
141
|
},
|
|
142
142
|
"dependencies": {
|
|
143
|
+
"@deepseek-ai/cosmokit": "^1.8.4",
|
|
143
144
|
"dsh-mnemon-provider-byterover": "0.5.4",
|
|
144
145
|
"dsh-mnemon-provider-hindsight": "0.5.4",
|
|
145
146
|
"dsh-mnemon-provider-holographic": "0.5.4",
|
|
146
147
|
"dsh-mnemon-provider-honcho": "0.5.4",
|
|
147
148
|
"dsh-mnemon-provider-mem0": "0.5.4",
|
|
148
149
|
"dsh-mnemon-provider-mnemon-native": "0.5.5",
|
|
149
|
-
"dsh-mnemon-provider-openviking": "0.5.
|
|
150
|
+
"dsh-mnemon-provider-openviking": "0.5.6",
|
|
150
151
|
"dsh-mnemon-provider-retaindb": "0.5.4",
|
|
151
152
|
"dsh-mnemon-provider-supermemory": "0.5.4",
|
|
152
153
|
"dsh-mnemon-source-documents": "0.5.6",
|
|
153
|
-
"dsh-mnemon-source-memory-spaces": "0.5.
|
|
154
|
+
"dsh-mnemon-source-memory-spaces": "0.5.9",
|
|
154
155
|
"dsh-mnemon-source-runtime": "0.5.8",
|
|
155
156
|
"dsh-mnemon-strategy-auto-capture": "0.5.4",
|
|
156
157
|
"dsh-mnemon-strategy-default-three-tier": "0.5.5",
|
|
@@ -158,12 +159,14 @@
|
|
|
158
159
|
"dsh-mnemon-strategy-scoped": "0.5.4",
|
|
159
160
|
"fflate": "^0.8.3",
|
|
160
161
|
"schemastery": "^3.18.0",
|
|
162
|
+
"schemastery-live": "npm:@deepseek-ai/schemastery@^3.18.3",
|
|
163
|
+
"yaml": "^2.9.0",
|
|
161
164
|
"zod": "^4.4.3"
|
|
162
165
|
},
|
|
163
166
|
"peerDependencies": {
|
|
164
167
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
165
|
-
"@deepseek-ai/dsh-client-ui-primitives": "^0.1.5-rc.1 || ^0.1.6-alpha.2",
|
|
166
|
-
"@deepseek-ai/dsh-typert-protocol": "^0.1.5-rc.1 || ^0.1.6-alpha.2",
|
|
168
|
+
"@deepseek-ai/dsh-client-ui-primitives": "^0.1.5-rc.1 || ^0.1.6-alpha.2 || ^0.1.7-alpha.1",
|
|
169
|
+
"@deepseek-ai/dsh-typert-protocol": "^0.1.5-rc.1 || ^0.1.6-alpha.2 || ^0.1.7-alpha.1",
|
|
167
170
|
"react": "^18.2.0",
|
|
168
171
|
"react-dom": "^18.2.0"
|
|
169
172
|
},
|
|
@@ -182,8 +185,8 @@
|
|
|
182
185
|
"@deepseek-ai/dsh-client-ui-layout": "0.1.5-rc.1",
|
|
183
186
|
"@deepseek-ai/dsh-client-ui-primitives": "0.1.5-rc.1",
|
|
184
187
|
"@deepseek-ai/dsh-client-ui-renderer": "0.1.5-rc.1",
|
|
185
|
-
"@deepseek-ai/dsh-client-ui-settings": "0.1.5-rc.1",
|
|
186
188
|
"@deepseek-ai/dsh-client-ui-session": "0.1.5-rc.1",
|
|
189
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.1.5-rc.1",
|
|
187
190
|
"@deepseek-ai/dsh-client-ui-slots": "0.1.5-rc.1",
|
|
188
191
|
"@deepseek-ai/dsh-client-ui-tool": "0.1.5-rc.1",
|
|
189
192
|
"@deepseek-ai/dsh-invariants": "0.1.5-rc.1",
|
|
@@ -200,6 +203,7 @@
|
|
|
200
203
|
"@deepseek-ai/dsh-tools": "0.1.5-rc.1",
|
|
201
204
|
"@deepseek-ai/dsh-typert-protocol": "0.1.5-rc.1",
|
|
202
205
|
"@deepseek-ai/dsh-typert-registry": "0.1.5-rc.1",
|
|
206
|
+
"@deepseek-ai/schemastery": "3.18.2",
|
|
203
207
|
"@shikijs/langs": "^4.3.1",
|
|
204
208
|
"@testing-library/react": "^16.3.0",
|
|
205
209
|
"@types/node": "^22.0.0",
|
|
@@ -207,6 +211,7 @@
|
|
|
207
211
|
"@types/react-dom": "^18.3.0",
|
|
208
212
|
"anser": "^2.3.5",
|
|
209
213
|
"clsx": "^2.1.1",
|
|
214
|
+
"cosmokit-legacy": "npm:@deepseek-ai/cosmokit@1.8.3",
|
|
210
215
|
"jsdom": "^26.1.0",
|
|
211
216
|
"katex": "^0.16.47",
|
|
212
217
|
"lightningcss": "^1.29.0",
|