dsh-mnemon 0.5.8 → 0.5.10
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 +2 -0
- package/README.zh-CN.md +2 -0
- package/bin/repair-legacy-session.mjs +547 -25
- package/lib/client.js +169 -8
- package/lib/index.js +242 -52
- package/lib/types/src/client/locales.d.ts +32 -0
- package/lib/types/src/host/protocol.d.ts +38 -0
- package/package.json +4 -4
|
@@ -127,7 +127,23 @@ export declare const zh: {
|
|
|
127
127
|
'status.nominal': string;
|
|
128
128
|
'status.reviewFailed': string;
|
|
129
129
|
'status.reviewFailedDetail': string;
|
|
130
|
+
'status.reviewPartial': string;
|
|
131
|
+
'status.reviewTeamPaused': string;
|
|
132
|
+
'status.reviewRun': string;
|
|
130
133
|
'status.reviewContextWindow': string;
|
|
134
|
+
'config.reviewTitle': string;
|
|
135
|
+
'config.reviewDescription': string;
|
|
136
|
+
'config.reviewEnabled': string;
|
|
137
|
+
'config.reviewProvider': string;
|
|
138
|
+
'config.reviewSpawn': string;
|
|
139
|
+
'config.reviewFork': string;
|
|
140
|
+
'config.reviewFallback': string;
|
|
141
|
+
'config.reviewSkip': string;
|
|
142
|
+
'config.review.minIntervalMs': string;
|
|
143
|
+
'config.review.maxPerSession': string;
|
|
144
|
+
'config.review.maxContextChars': string;
|
|
145
|
+
'config.review.maxTokens': string;
|
|
146
|
+
'config.reviewInvalid': string;
|
|
131
147
|
'status.checkRequired': string;
|
|
132
148
|
'status.rechecking': string;
|
|
133
149
|
'status.recheck': string;
|
|
@@ -1110,7 +1126,23 @@ export declare const en: {
|
|
|
1110
1126
|
'status.nominal': string;
|
|
1111
1127
|
'status.reviewFailed': string;
|
|
1112
1128
|
'status.reviewFailedDetail': string;
|
|
1129
|
+
'status.reviewPartial': string;
|
|
1130
|
+
'status.reviewTeamPaused': string;
|
|
1131
|
+
'status.reviewRun': string;
|
|
1113
1132
|
'status.reviewContextWindow': string;
|
|
1133
|
+
'config.reviewTitle': string;
|
|
1134
|
+
'config.reviewDescription': string;
|
|
1135
|
+
'config.reviewEnabled': string;
|
|
1136
|
+
'config.reviewProvider': string;
|
|
1137
|
+
'config.reviewSpawn': string;
|
|
1138
|
+
'config.reviewFork': string;
|
|
1139
|
+
'config.reviewFallback': string;
|
|
1140
|
+
'config.reviewSkip': string;
|
|
1141
|
+
'config.review.minIntervalMs': string;
|
|
1142
|
+
'config.review.maxPerSession': string;
|
|
1143
|
+
'config.review.maxContextChars': string;
|
|
1144
|
+
'config.review.maxTokens': string;
|
|
1145
|
+
'config.reviewInvalid': string;
|
|
1114
1146
|
'status.checkRequired': string;
|
|
1115
1147
|
'status.rechecking': string;
|
|
1116
1148
|
'status.recheck': string;
|
|
@@ -173,6 +173,25 @@ export interface ResolvedRuntimeMemoryConfig {
|
|
|
173
173
|
}
|
|
174
174
|
export { normalizeDisplayMode } from './display-mode.ts';
|
|
175
175
|
export type MnemonDisplayMode = 'sidebar' | 'builtin';
|
|
176
|
+
export declare const DEFAULT_IDLE_REVIEW: {
|
|
177
|
+
enabled: true;
|
|
178
|
+
provider: "spawn";
|
|
179
|
+
fallback: "spawn";
|
|
180
|
+
minIntervalMs: number;
|
|
181
|
+
maxPerSession: number;
|
|
182
|
+
maxContextChars: number;
|
|
183
|
+
maxTokens: number;
|
|
184
|
+
};
|
|
185
|
+
export interface ResolvedIdleReviewConfig {
|
|
186
|
+
enabled: boolean;
|
|
187
|
+
provider: 'spawn' | 'fork';
|
|
188
|
+
/** Applies only before a child starts; a failed run is never replayed. */
|
|
189
|
+
fallback: 'spawn' | 'skip';
|
|
190
|
+
minIntervalMs: number;
|
|
191
|
+
maxPerSession: number;
|
|
192
|
+
maxContextChars: number;
|
|
193
|
+
maxTokens: number;
|
|
194
|
+
}
|
|
176
195
|
export interface Config {
|
|
177
196
|
storageScope?: StorageScopeKind;
|
|
178
197
|
/** Whether USER.md follows the selected storage root or stays in the global root. */
|
|
@@ -200,6 +219,7 @@ export interface Config {
|
|
|
200
219
|
recallMode?: 'guided' | 'off';
|
|
201
220
|
writebackMode?: 'guided' | 'off';
|
|
202
221
|
idleReviewMs?: number;
|
|
222
|
+
idleReview?: Partial<ResolvedIdleReviewConfig>;
|
|
203
223
|
conversationInteraction?: {
|
|
204
224
|
toolviews?: boolean;
|
|
205
225
|
turnBar?: boolean;
|
|
@@ -276,6 +296,7 @@ export interface ResolvedConfig {
|
|
|
276
296
|
recallMode: 'guided' | 'off';
|
|
277
297
|
writebackMode: 'guided' | 'off';
|
|
278
298
|
idleReviewMs: number;
|
|
299
|
+
idleReview: ResolvedIdleReviewConfig;
|
|
279
300
|
conversationInteraction: {
|
|
280
301
|
toolviews: boolean;
|
|
281
302
|
turnBar: boolean;
|
|
@@ -418,9 +439,26 @@ export interface LifecycleAgentSnapshot {
|
|
|
418
439
|
lastReviewAction?: string;
|
|
419
440
|
lastReviewScore?: number;
|
|
420
441
|
lastReviewDocumentIds?: string[];
|
|
442
|
+
idleReviewAttempts?: number;
|
|
443
|
+
idleReviewBlocked?: 'agent-team';
|
|
444
|
+
nextReviewAt?: string;
|
|
445
|
+
lastReviewFailure?: IdleReviewFailure;
|
|
421
446
|
lastAt?: string;
|
|
422
447
|
lastError?: string;
|
|
423
448
|
}
|
|
449
|
+
/** Reconciliation metadata only; raw tool arguments and memory content stay private. */
|
|
450
|
+
export interface IdleReviewFailure {
|
|
451
|
+
status: 'failed' | 'partial';
|
|
452
|
+
runId?: string;
|
|
453
|
+
provider: string;
|
|
454
|
+
receipts: Array<{
|
|
455
|
+
tool: string;
|
|
456
|
+
action: string;
|
|
457
|
+
documentId?: string;
|
|
458
|
+
target?: string;
|
|
459
|
+
revision?: string;
|
|
460
|
+
}>;
|
|
461
|
+
}
|
|
424
462
|
export interface LifecycleSnapshot {
|
|
425
463
|
enabled: boolean;
|
|
426
464
|
recallMode: 'guided' | 'off';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-mnemon",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.10",
|
|
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",
|
|
@@ -145,12 +145,12 @@
|
|
|
145
145
|
"dsh-mnemon-provider-honcho": "0.5.4",
|
|
146
146
|
"dsh-mnemon-provider-mem0": "0.5.4",
|
|
147
147
|
"dsh-mnemon-provider-mnemon-native": "0.5.5",
|
|
148
|
-
"dsh-mnemon-provider-openviking": "0.5.
|
|
148
|
+
"dsh-mnemon-provider-openviking": "0.5.5",
|
|
149
149
|
"dsh-mnemon-provider-retaindb": "0.5.4",
|
|
150
150
|
"dsh-mnemon-provider-supermemory": "0.5.4",
|
|
151
151
|
"dsh-mnemon-source-documents": "0.5.6",
|
|
152
|
-
"dsh-mnemon-source-memory-spaces": "0.5.
|
|
153
|
-
"dsh-mnemon-source-runtime": "0.5.
|
|
152
|
+
"dsh-mnemon-source-memory-spaces": "0.5.8",
|
|
153
|
+
"dsh-mnemon-source-runtime": "0.5.7",
|
|
154
154
|
"dsh-mnemon-strategy-auto-capture": "0.5.4",
|
|
155
155
|
"dsh-mnemon-strategy-default-three-tier": "0.5.5",
|
|
156
156
|
"dsh-mnemon-strategy-light-context": "0.5.4",
|