dsh-mnemon 0.5.30 → 0.5.31
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/SECURITY.md +2 -2
- package/lib/bundle.js +1 -1
- package/lib/client.js +515 -387
- package/lib/index.js +10640 -10339
- package/lib/{starter-resolution-CKedUNe4.js → starter-resolution-DXcN5HsU.js} +1 -1
- package/lib/starter.js +1 -1
- package/lib/types/src/client/locales.d.ts +7 -5
- package/lib/types/src/client/ui-icons.d.ts +0 -1
- package/lib/types/src/host/protocol.d.ts +53 -11
- package/package.json +41 -41
|
@@ -15,7 +15,7 @@ var dependencies = {
|
|
|
15
15
|
"dsh-mnemon-provider-retaindb": "0.5.6",
|
|
16
16
|
"dsh-mnemon-provider-supermemory": "0.5.5",
|
|
17
17
|
"dsh-mnemon-source-documents": "0.5.10",
|
|
18
|
-
"dsh-mnemon-source-memory-spaces": "0.5.
|
|
18
|
+
"dsh-mnemon-source-memory-spaces": "0.5.21",
|
|
19
19
|
"dsh-mnemon-source-runtime": "0.5.14",
|
|
20
20
|
"dsh-mnemon-strategy-auto-capture": "0.5.5",
|
|
21
21
|
"dsh-mnemon-strategy-default-three-tier": "0.5.9",
|
package/lib/starter.js
CHANGED
|
@@ -497,11 +497,6 @@ export declare const zh: {
|
|
|
497
497
|
'feedback.optionsSaved': string;
|
|
498
498
|
'feedback.externalOptions': string;
|
|
499
499
|
'feedback.externalSeveral': string;
|
|
500
|
-
'feedback.pendingMain': string;
|
|
501
|
-
'feedback.pendingOn': string;
|
|
502
|
-
'feedback.pendingOff': string;
|
|
503
|
-
'feedback.pendingOptions': string;
|
|
504
|
-
'feedback.pendingSeveral': string;
|
|
505
500
|
'feedback.undo': string;
|
|
506
501
|
'feedback.undone': string;
|
|
507
502
|
'feedback.show': string;
|
|
@@ -598,16 +593,23 @@ export declare const zh: {
|
|
|
598
593
|
'config.taskAgentTitle': string;
|
|
599
594
|
'config.taskAgentInherit': string;
|
|
600
595
|
'config.taskAgentInheritHint': string;
|
|
596
|
+
'config.taskAgentConversation': string;
|
|
597
|
+
'config.taskAgentConversationHint': string;
|
|
601
598
|
'config.taskAgentFixed': string;
|
|
602
599
|
'config.taskAgentFixedHint': string;
|
|
603
600
|
'config.taskAgentProvider': string;
|
|
604
601
|
'config.taskAgentModel': string;
|
|
605
602
|
'config.taskAgentImageInput': string;
|
|
606
603
|
'config.taskAgentEffective': string;
|
|
604
|
+
'config.taskAgentSource.fixed': string;
|
|
605
|
+
'config.taskAgentSource.session': string;
|
|
606
|
+
'config.taskAgentSource.dsh-default': string;
|
|
607
|
+
'config.taskAgentSource.active-agent': string;
|
|
607
608
|
'config.taskAgentLoading': string;
|
|
608
609
|
'config.taskAgentUnavailable': string;
|
|
609
610
|
'config.taskAgentLoadFailed': string;
|
|
610
611
|
'config.taskAgentPartial': string;
|
|
612
|
+
'config.taskAgentRetry': string;
|
|
611
613
|
'config.customAbsolute': string;
|
|
612
614
|
'config.saveFailed': string;
|
|
613
615
|
'config.readOnly': string;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
export { IconCloseOutlineRegular, IconRefreshOutlineRegular, IconSettingsOutlineRegular } from '@deepseek-ai/dsh-client-ui-primitives';
|
|
2
2
|
export declare const IconChevronLeftOutline14: (props: import("@deepseek-ai/dsh-client-ui-primitives").IconProps) => import("react").JSX.Element;
|
|
3
|
-
export declare const IconDataOutline16: (props: import("@deepseek-ai/dsh-client-ui-primitives").IconProps) => import("react").JSX.Element;
|
|
@@ -11,13 +11,6 @@ export declare function namedToolInstance<T extends {
|
|
|
11
11
|
export type MemoryParticipationMode = 'off' | 'manual' | 'automatic';
|
|
12
12
|
export type MemoryParticipationChannel = 'recall' | 'write' | 'projection' | 'maintenance';
|
|
13
13
|
export type MemoryLayerParticipation = Record<MemoryParticipationChannel, MemoryParticipationMode>;
|
|
14
|
-
export interface MemoryTopologyDefinition {
|
|
15
|
-
id: string;
|
|
16
|
-
strategyId: string;
|
|
17
|
-
layers: Array<ResolvedMemoryLayerConfig & {
|
|
18
|
-
id: string;
|
|
19
|
-
}>;
|
|
20
|
-
}
|
|
21
14
|
export interface MemoryCompositionStatus {
|
|
22
15
|
/** Whether a composition serves new turns. A rejected change can leave the previous one serving. */
|
|
23
16
|
serving: boolean;
|
|
@@ -250,7 +243,7 @@ export interface Config {
|
|
|
250
243
|
/** Optional DSH-owned overrides injected into every Mnemon CLI process. */
|
|
251
244
|
embedding?: MnemonEmbeddingConfig;
|
|
252
245
|
memoryTopology?: MemoryTopologyConfig;
|
|
253
|
-
/** Profile-owned plugin choices
|
|
246
|
+
/** Profile-owned plugin choices. */
|
|
254
247
|
memoryView?: import('./view-protocol.ts').MemoryViewPreferences;
|
|
255
248
|
/** Successful import of this profile's removed settings namespaces. */
|
|
256
249
|
legacySettingsImported?: boolean;
|
|
@@ -287,11 +280,20 @@ export interface TaskAgentModelConfig {
|
|
|
287
280
|
mode?: 'inherit' | 'fixed';
|
|
288
281
|
provider?: string;
|
|
289
282
|
model?: string;
|
|
283
|
+
/**
|
|
284
|
+
* With `inherit`, run on the model the conversation that asked for the work
|
|
285
|
+
* last used, while that conversation is open. Off by default; a switch
|
|
286
|
+
* rather than a third mode, so a release that does not know it keeps
|
|
287
|
+
* reading `inherit` as before.
|
|
288
|
+
*/
|
|
289
|
+
followConversation?: boolean;
|
|
290
290
|
}
|
|
291
291
|
export interface ResolvedTaskAgentModelConfig {
|
|
292
292
|
mode: 'inherit' | 'fixed';
|
|
293
293
|
provider?: string;
|
|
294
294
|
model?: string;
|
|
295
|
+
/** Present, and true, only on an inherited route that follows its conversation. */
|
|
296
|
+
followConversation?: true;
|
|
295
297
|
}
|
|
296
298
|
export interface TaskAgentModelCatalogModel {
|
|
297
299
|
id: string;
|
|
@@ -314,12 +316,31 @@ export interface TaskAgentModelCatalog {
|
|
|
314
316
|
effective?: {
|
|
315
317
|
provider: string;
|
|
316
318
|
model: string;
|
|
317
|
-
source: 'fixed' | 'dsh-default' | 'active-agent';
|
|
319
|
+
source: 'fixed' | 'session' | 'dsh-default' | 'active-agent';
|
|
318
320
|
};
|
|
319
321
|
defaultSelection?: {
|
|
320
322
|
provider: string;
|
|
321
323
|
model: string;
|
|
322
324
|
};
|
|
325
|
+
/**
|
|
326
|
+
* The route the asking conversation's own delegated work takes while it is
|
|
327
|
+
* open: the model of its last request, or the one it was created with before
|
|
328
|
+
* its first. An inherited setting that follows its conversation takes it too;
|
|
329
|
+
* it is reported whether or not that switch is on.
|
|
330
|
+
*/
|
|
331
|
+
session?: {
|
|
332
|
+
provider: string;
|
|
333
|
+
model: string;
|
|
334
|
+
};
|
|
335
|
+
/**
|
|
336
|
+
* The route an inherited setting takes without following a conversation: the
|
|
337
|
+
* DSH new-session default, else an open Agent's creation route.
|
|
338
|
+
*/
|
|
339
|
+
inherited?: {
|
|
340
|
+
provider: string;
|
|
341
|
+
model: string;
|
|
342
|
+
source: 'dsh-default' | 'active-agent';
|
|
343
|
+
};
|
|
323
344
|
groups: TaskAgentModelCatalogGroup[];
|
|
324
345
|
failures: TaskAgentModelCatalogFailure[];
|
|
325
346
|
}
|
|
@@ -471,6 +492,29 @@ export interface SubagentCounters {
|
|
|
471
492
|
lastOperation?: 'recall' | 'write' | 'review' | 'placement' | 'migration' | 'compaction' | 'document-archive' | 'metadata-maintenance' | 'reconcile';
|
|
472
493
|
lastAt?: string;
|
|
473
494
|
}
|
|
495
|
+
/** What a delegated memory write did, as the write task Agent's receipts show it. */
|
|
496
|
+
export interface DelegatedWriteResult {
|
|
497
|
+
delegated: true;
|
|
498
|
+
runId: string;
|
|
499
|
+
provider: string;
|
|
500
|
+
summary: string;
|
|
501
|
+
action: string;
|
|
502
|
+
/** Where the memory went: the spaces its receipts name, else what the writer reported. */
|
|
503
|
+
memoryBodyIds: string[];
|
|
504
|
+
/** Spaces that were inactive and that this write switched on. */
|
|
505
|
+
activatedMemoryBodyIds?: string[];
|
|
506
|
+
documentIds?: string[];
|
|
507
|
+
/** Memories saved without a vector, as the Provider's receipt says (#388). */
|
|
508
|
+
unembedded?: Array<{
|
|
509
|
+
memoryBodyId?: string;
|
|
510
|
+
id?: string;
|
|
511
|
+
}>;
|
|
512
|
+
hint?: string;
|
|
513
|
+
}
|
|
514
|
+
/** The `supervise` RPC result: a delegated write for the conversation that asked for it. */
|
|
515
|
+
export interface SupervisedWritebackResult extends DelegatedWriteResult {
|
|
516
|
+
sessionId: string;
|
|
517
|
+
}
|
|
474
518
|
export type LifecyclePhase = 'idle' | 'prime' | 'recall' | 'writeback' | 'review' | 'supervised' | 'error';
|
|
475
519
|
export interface LifecycleCounters {
|
|
476
520
|
primes: number;
|
|
@@ -806,8 +850,6 @@ export interface MnemonSyncConfigView {
|
|
|
806
850
|
* when neither is set: the order here is the order of resolution.
|
|
807
851
|
*/
|
|
808
852
|
export type MnemonSyncCredentialSource = 'environment' | 'token' | 'github' | 'none';
|
|
809
|
-
/** How far the browser step of a GitHub sign-in has come. */
|
|
810
|
-
export type MnemonSyncGitHubFlowStatus = 'pending' | 'expired' | 'denied' | 'error';
|
|
811
853
|
export interface MnemonSyncGitHubFlow {
|
|
812
854
|
userCode: string;
|
|
813
855
|
verificationUri: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-mnemon",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.31",
|
|
4
4
|
"description": "Composable, view-based memory for DeepSeek Harness. Pluggable sources and strategies, with layered memory out of the box.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"deepseek-harness",
|
|
@@ -48,7 +48,8 @@
|
|
|
48
48
|
"tag": "latest"
|
|
49
49
|
},
|
|
50
50
|
"engines": {
|
|
51
|
-
"node": ">=20"
|
|
51
|
+
"node": ">=20",
|
|
52
|
+
"dsh": ">=0.2.0-rc.2 <0.2.1-0 || >=0.2.1-rc.1 <0.3.0-0"
|
|
52
53
|
},
|
|
53
54
|
"type": "module",
|
|
54
55
|
"main": "lib/index.js",
|
|
@@ -135,6 +136,7 @@
|
|
|
135
136
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
136
137
|
"test": "vitest run",
|
|
137
138
|
"test:root": "vitest run --dir tests",
|
|
139
|
+
"test:installed-dsh": "vitest run --config scripts/installed-dsh.config.ts",
|
|
138
140
|
"bench:algorithms": "vitest run --config scripts/benchmark-algorithms.config.ts",
|
|
139
141
|
"verify:build": "node scripts/verify-deterministic-build.mjs",
|
|
140
142
|
"verify:headless": "node scripts/verify-headless-profile.mjs",
|
|
@@ -163,7 +165,7 @@
|
|
|
163
165
|
"dsh-mnemon-provider-retaindb": "0.5.6",
|
|
164
166
|
"dsh-mnemon-provider-supermemory": "0.5.5",
|
|
165
167
|
"dsh-mnemon-source-documents": "0.5.10",
|
|
166
|
-
"dsh-mnemon-source-memory-spaces": "0.5.
|
|
168
|
+
"dsh-mnemon-source-memory-spaces": "0.5.21",
|
|
167
169
|
"dsh-mnemon-source-runtime": "0.5.14",
|
|
168
170
|
"dsh-mnemon-strategy-auto-capture": "0.5.5",
|
|
169
171
|
"dsh-mnemon-strategy-default-three-tier": "0.5.9",
|
|
@@ -176,50 +178,48 @@
|
|
|
176
178
|
},
|
|
177
179
|
"peerDependencies": {
|
|
178
180
|
"@deepseek-ai/cordis": "^4.0.4",
|
|
179
|
-
"@deepseek-ai/dsh-app-boot": "
|
|
180
|
-
"@deepseek-ai/dsh-
|
|
181
|
-
"@deepseek-ai/dsh-typert-protocol": "^0.1.7-rc.2 || ^0.2.0-rc.1",
|
|
181
|
+
"@deepseek-ai/dsh-app-boot": ">=0.2.0-rc.2 <0.2.1-0 || >=0.2.1-rc.1 <0.3.0-0",
|
|
182
|
+
"@deepseek-ai/dsh-typert-protocol": ">=0.2.0-rc.2 <0.2.1-0 || >=0.2.1-rc.1 <0.3.0-0",
|
|
182
183
|
"react": "^18.2.0",
|
|
183
184
|
"react-dom": "^18.2.0"
|
|
184
185
|
},
|
|
185
186
|
"devDependencies": {
|
|
186
187
|
"@arethetypeswrong/cli": "^0.18.5",
|
|
187
188
|
"@changesets/cli": "^2.31.1",
|
|
188
|
-
"@deepseek-ai/cordis": "^4.0.
|
|
189
|
-
"@deepseek-ai/dsh": "0.1
|
|
190
|
-
"@deepseek-ai/dsh-agent": "0.1
|
|
191
|
-
"@deepseek-ai/dsh-agent-loop": "0.1
|
|
192
|
-
"@deepseek-ai/dsh-api-gateway": "0.1
|
|
193
|
-
"@deepseek-ai/dsh-app-boot": "0.1
|
|
194
|
-
"@deepseek-ai/dsh-client-connection": "0.1
|
|
195
|
-
"@deepseek-ai/dsh-client-locale": "0.1
|
|
196
|
-
"@deepseek-ai/dsh-client-store": "0.1
|
|
197
|
-
"@deepseek-ai/dsh-client-ui-chat": "0.1
|
|
198
|
-
"@deepseek-ai/dsh-client-ui-conversation": "0.1
|
|
199
|
-
"@deepseek-ai/dsh-client-ui-layout": "0.1
|
|
200
|
-
"@deepseek-ai/dsh-client-ui-plugin-manager": "0.1
|
|
201
|
-
"@deepseek-ai/dsh-client-ui-primitives": "0.1
|
|
202
|
-
"@deepseek-ai/dsh-client-ui-renderer": "0.1
|
|
203
|
-
"@deepseek-ai/dsh-client-ui-session": "0.1
|
|
204
|
-
"@deepseek-ai/dsh-client-ui-settings": "0.1
|
|
205
|
-
"@deepseek-ai/dsh-client-ui-sidebar": "0.1
|
|
206
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.1
|
|
207
|
-
"@deepseek-ai/dsh-client-ui-tool": "0.1
|
|
208
|
-
"@deepseek-ai/dsh-
|
|
209
|
-
"@deepseek-ai/dsh-
|
|
210
|
-
"@deepseek-ai/dsh-session": "0.1
|
|
211
|
-
"@deepseek-ai/dsh-session-
|
|
212
|
-
"@deepseek-ai/dsh-session-
|
|
213
|
-
"@deepseek-ai/dsh-session-
|
|
214
|
-
"@deepseek-ai/dsh-
|
|
215
|
-
"@deepseek-ai/dsh-subagent": "0.1
|
|
216
|
-
"@deepseek-ai/dsh-
|
|
217
|
-
"@deepseek-ai/dsh-
|
|
218
|
-
"@deepseek-ai/dsh-
|
|
219
|
-
"@deepseek-ai/dsh-typert-
|
|
220
|
-
"@deepseek-ai/dsh-
|
|
221
|
-
"@deepseek-ai/dsh-util-
|
|
222
|
-
"@deepseek-ai/dsh-util-workspace-path": "0.1.7-rc.2",
|
|
189
|
+
"@deepseek-ai/cordis": "^4.0.5",
|
|
190
|
+
"@deepseek-ai/dsh": "0.2.1-rc.1",
|
|
191
|
+
"@deepseek-ai/dsh-agent": "0.2.1-rc.1",
|
|
192
|
+
"@deepseek-ai/dsh-agent-loop": "0.2.1-rc.1",
|
|
193
|
+
"@deepseek-ai/dsh-api-gateway": "0.2.1-rc.1",
|
|
194
|
+
"@deepseek-ai/dsh-app-boot": "0.2.1-rc.1",
|
|
195
|
+
"@deepseek-ai/dsh-client-connection": "0.2.1-rc.1",
|
|
196
|
+
"@deepseek-ai/dsh-client-locale": "0.2.1-rc.1",
|
|
197
|
+
"@deepseek-ai/dsh-client-store": "0.2.1-rc.1",
|
|
198
|
+
"@deepseek-ai/dsh-client-ui-chat": "0.2.1-rc.1",
|
|
199
|
+
"@deepseek-ai/dsh-client-ui-conversation": "0.2.1-rc.1",
|
|
200
|
+
"@deepseek-ai/dsh-client-ui-layout": "0.2.1-rc.1",
|
|
201
|
+
"@deepseek-ai/dsh-client-ui-plugin-manager": "0.2.1-rc.1",
|
|
202
|
+
"@deepseek-ai/dsh-client-ui-primitives": "0.2.1-rc.1",
|
|
203
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.2.1-rc.1",
|
|
204
|
+
"@deepseek-ai/dsh-client-ui-session": "0.2.1-rc.1",
|
|
205
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.2.1-rc.1",
|
|
206
|
+
"@deepseek-ai/dsh-client-ui-sidebar": "0.2.1-rc.1",
|
|
207
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.1-rc.1",
|
|
208
|
+
"@deepseek-ai/dsh-client-ui-tool": "0.2.1-rc.1",
|
|
209
|
+
"@deepseek-ai/dsh-llm": "0.2.1-rc.1",
|
|
210
|
+
"@deepseek-ai/dsh-session": "0.2.1-rc.1",
|
|
211
|
+
"@deepseek-ai/dsh-session-format-v0-to-v1": "0.2.1-rc.1",
|
|
212
|
+
"@deepseek-ai/dsh-session-persistence-jsonl": "0.2.1-rc.1",
|
|
213
|
+
"@deepseek-ai/dsh-session-projection": "0.2.1-rc.1",
|
|
214
|
+
"@deepseek-ai/dsh-session-query": "0.2.1-rc.1",
|
|
215
|
+
"@deepseek-ai/dsh-subagent": "0.2.1-rc.1",
|
|
216
|
+
"@deepseek-ai/dsh-subagent-spawn-in-process": "0.2.1-rc.1",
|
|
217
|
+
"@deepseek-ai/dsh-system-prompt": "0.2.1-rc.1",
|
|
218
|
+
"@deepseek-ai/dsh-tools": "0.2.1-rc.1",
|
|
219
|
+
"@deepseek-ai/dsh-typert-protocol": "0.2.1-rc.1",
|
|
220
|
+
"@deepseek-ai/dsh-typert-registry": "0.2.1-rc.1",
|
|
221
|
+
"@deepseek-ai/dsh-util-code-language": "0.2.1-rc.1",
|
|
222
|
+
"@deepseek-ai/dsh-util-workspace-path": "0.2.1-rc.1",
|
|
223
223
|
"@shikijs/langs": "^4.3.1",
|
|
224
224
|
"@testing-library/react": "^16.3.0",
|
|
225
225
|
"@types/node": "^22.0.0",
|