dsh-mnemon 0.3.6 → 0.4.1

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/index.js CHANGED
@@ -202,7 +202,6 @@ const Config = z.object({
202
202
  maxUnknownResults: 2
203
203
  }),
204
204
  routingGuidance: z.boolean().default(true),
205
- displayMode: z.union(["sidebar", "buildin"]).default("sidebar"),
206
205
  tabEnabled: z.boolean().default(true),
207
206
  writeEnabled: z.boolean().default(true),
208
207
  remoteAccess: z.union(["read-only", "trusted-host"]).default("read-only"),
@@ -458,7 +457,6 @@ function resolveConfig(config = {}) {
458
457
  memoryTopology: resolveMemoryTopology(config.memoryTopology),
459
458
  recallQuality: resolveRecallQuality(config.recallQuality),
460
459
  routingGuidance: config.routingGuidance ?? true,
461
- displayMode: config.displayMode ?? "sidebar",
462
460
  tabEnabled: config.tabEnabled ?? true,
463
461
  writeEnabled: config.writeEnabled ?? true,
464
462
  remoteAccess: config.remoteAccess ?? "read-only",
@@ -2714,7 +2712,7 @@ var MnemonPackManager = class {
2714
2712
  };
2715
2713
  const archive = zipSync(entries, {
2716
2714
  level: 6,
2717
- mtime: /* @__PURE__ */ new Date("1980-01-01T00:00:00.000Z")
2715
+ mtime: new Date(1980, 0, 1)
2718
2716
  });
2719
2717
  if (archive.length > 50331648) throw new Error("exported Mnemon Pack exceeds the transport safety limit");
2720
2718
  return {
@@ -9894,7 +9892,6 @@ const MUTABLE_FIELDS = [
9894
9892
  "recallMode",
9895
9893
  "writebackMode",
9896
9894
  "idleReviewMs",
9897
- "displayMode",
9898
9895
  "tabEnabled",
9899
9896
  "writeEnabled",
9900
9897
  "persistenceStrategy",
@@ -1,13 +1,11 @@
1
1
  import { type ClientConnectionHandle, type ClientSettingsScope, type Config } from '../shared/contracts.ts';
2
2
  import { type MnemonTranslate } from './locales.ts';
3
- import { type MnemonViewSurface } from './MnemonViewAppearance.tsx';
4
3
  export interface MnemonViewProps {
5
4
  connection: ClientConnectionHandle;
6
5
  settingsScope: ClientSettingsScope<Config>;
7
6
  sessionId?: string;
8
7
  workspaceId?: string;
9
8
  workspaceSelection?: MnemonWorkspaceSelection;
10
- surface?: MnemonViewSurface;
11
9
  t?: MnemonTranslate;
12
10
  locale?: string;
13
11
  onClose?: () => void;
@@ -5,8 +5,8 @@
5
5
  * A dispatch asks the Mnemon view to open a page (optionally with a seed) in
6
6
  * the session the dispatch came from. The view may not be mounted when the
7
7
  * user clicks — the dispatch is then held per session and consumed the next
8
- * time that session's Mnemon view mounts, so switching to the Memory System
9
- * tab afterwards still lands on the requested page.
8
+ * time that session's Mnemon workspace mounts, so opening Memory System from
9
+ * the sidebar afterwards still lands on the requested page or write dialog.
10
10
  */
11
11
  /** Pages of the Mnemon workspace, mirroring MnemonView's internal Page union. */
12
12
  export type MnemonAnchorPage = 'overview' | 'runtime' | 'documents' | 'explore' | 'entities' | 'remember' | 'list' | 'status';
@@ -10,28 +10,16 @@ export declare const zh: {
10
10
  'category.context': string;
11
11
  'category.general': string;
12
12
  'nav.aria': string;
13
- 'nav.group.system': string;
14
- 'nav.group.storage': string;
15
- 'nav.group.tools': string;
16
13
  'nav.memory.aria': string;
17
14
  'nav.overview': string;
18
15
  'nav.bodies': string;
19
- 'nav.bodies.detail': string;
20
16
  'nav.runtime': string;
21
- 'nav.runtime.detail': string;
22
17
  'nav.documents': string;
23
- 'nav.documents.detail': string;
24
18
  'nav.search': string;
25
- 'nav.search.detail': string;
26
19
  'nav.entities': string;
27
- 'nav.entities.detail': string;
28
- 'nav.remember': string;
29
20
  'nav.rememberAction': string;
30
- 'nav.remember.detail': string;
31
21
  'nav.content': string;
32
- 'nav.content.detail': string;
33
22
  'nav.status': string;
34
- 'nav.status.detail': string;
35
23
  'common.refresh': string;
36
24
  'common.loading': string;
37
25
  'common.cancel': string;
@@ -54,8 +42,6 @@ export declare const zh: {
54
42
  'header.backToConversation': string;
55
43
  'header.checking': string;
56
44
  'header.connected': string;
57
- 'header.connectedWithCount': string;
58
- 'header.directoryPending': string;
59
45
  'header.unavailable': string;
60
46
  'header.notReady': string;
61
47
  'workspace.viewing': string;
@@ -64,17 +50,9 @@ export declare const zh: {
64
50
  'workspace.storageModeAria': string;
65
51
  'workspace.mismatchTitle': string;
66
52
  'workspace.mismatchShort': string;
67
- 'workspace.mismatchDescription': string;
68
53
  'workspace.selectedRoot': string;
69
54
  'workspace.effectiveRoot': string;
70
55
  'workspace.align': string;
71
- 'telemetry.aria': string;
72
- 'telemetry.title': string;
73
- 'telemetry.memories': string;
74
- 'telemetry.graph': string;
75
- 'telemetry.entities': string;
76
- 'telemetry.spaces': string;
77
- 'sidebar.activeSpaces': string;
78
56
  'overview.title': string;
79
57
  'overview.description': string;
80
58
  'overview.pageDescription': string;
@@ -133,7 +111,6 @@ export declare const zh: {
133
111
  'overview.noActiveText': string;
134
112
  'overview.noContentTitle': string;
135
113
  'overview.noContentText': string;
136
- 'overview.create': string;
137
114
  'overview.createTitle': string;
138
115
  'overview.createDialogHint': string;
139
116
  'overview.createIdentityTitle': string;
@@ -337,12 +314,10 @@ export declare const zh: {
337
314
  'runtime.branchesPlaceholder': string;
338
315
  'runtime.branchesHint': string;
339
316
  'runtime.branchBadge': string;
340
- 'runtime.empty': string;
341
317
  'runtime.editContent': string;
342
318
  'runtime.editAction': string;
343
319
  'runtime.saveEdit': string;
344
320
  'runtime.removeAction': string;
345
- 'runtime.removeConfirm': string;
346
321
  'runtime.removeTitle': string;
347
322
  'runtime.removeWarning': string;
348
323
  'runtime.result.add': string;
@@ -422,7 +397,6 @@ export declare const zh: {
422
397
  'graph.aria': string;
423
398
  'graph.kindSpace': string;
424
399
  'graph.kindEntity': string;
425
- 'card.confirmAria': string;
426
400
  'card.confirmText': string;
427
401
  'card.processing': string;
428
402
  'card.confirmForget': string;
@@ -499,17 +473,8 @@ export declare const zh: {
499
473
  'entities.emptyText': string;
500
474
  'remember.title': string;
501
475
  'remember.description': string;
502
- 'remember.worker': string;
503
476
  'remember.readOnlyTitle': string;
504
477
  'remember.readOnlyText': string;
505
- 'remember.flowTitle': string;
506
- 'remember.routeTitle': string;
507
- 'remember.routeText': string;
508
- 'remember.dedupeTitle': string;
509
- 'remember.dedupeText': string;
510
- 'remember.writeTitle': string;
511
- 'remember.writeText': string;
512
- 'remember.flowText': string;
513
478
  'remember.delegateTitle': string;
514
479
  'remember.noSession': string;
515
480
  'remember.ready': string;
@@ -692,13 +657,6 @@ export declare const zh: {
692
657
  'config.ready': string;
693
658
  'config.noticeBefore': string;
694
659
  'config.noticeAfter': string;
695
- 'config.displayTitle': string;
696
- 'config.displayDescription': string;
697
- 'config.displayAria': string;
698
- 'config.displaySidebar': string;
699
- 'config.displaySidebarHint': string;
700
- 'config.displayBuildin': string;
701
- 'config.displayBuildinHint': string;
702
660
  'config.storageTitle': string;
703
661
  'config.storageDescription': string;
704
662
  'config.scope': string;
@@ -926,28 +884,16 @@ export declare const en: {
926
884
  'category.context': string;
927
885
  'category.general': string;
928
886
  'nav.aria': string;
929
- 'nav.group.system': string;
930
- 'nav.group.storage': string;
931
- 'nav.group.tools': string;
932
887
  'nav.memory.aria': string;
933
888
  'nav.overview': string;
934
889
  'nav.bodies': string;
935
- 'nav.bodies.detail': string;
936
890
  'nav.runtime': string;
937
- 'nav.runtime.detail': string;
938
891
  'nav.documents': string;
939
- 'nav.documents.detail': string;
940
892
  'nav.search': string;
941
- 'nav.search.detail': string;
942
893
  'nav.entities': string;
943
- 'nav.entities.detail': string;
944
- 'nav.remember': string;
945
894
  'nav.rememberAction': string;
946
- 'nav.remember.detail': string;
947
895
  'nav.content': string;
948
- 'nav.content.detail': string;
949
896
  'nav.status': string;
950
- 'nav.status.detail': string;
951
897
  'common.refresh': string;
952
898
  'common.loading': string;
953
899
  'common.cancel': string;
@@ -970,8 +916,6 @@ export declare const en: {
970
916
  'header.backToConversation': string;
971
917
  'header.checking': string;
972
918
  'header.connected': string;
973
- 'header.connectedWithCount': string;
974
- 'header.directoryPending': string;
975
919
  'header.unavailable': string;
976
920
  'header.notReady': string;
977
921
  'workspace.viewing': string;
@@ -980,17 +924,9 @@ export declare const en: {
980
924
  'workspace.storageModeAria': string;
981
925
  'workspace.mismatchTitle': string;
982
926
  'workspace.mismatchShort': string;
983
- 'workspace.mismatchDescription': string;
984
927
  'workspace.selectedRoot': string;
985
928
  'workspace.effectiveRoot': string;
986
929
  'workspace.align': string;
987
- 'telemetry.aria': string;
988
- 'telemetry.title': string;
989
- 'telemetry.memories': string;
990
- 'telemetry.graph': string;
991
- 'telemetry.entities': string;
992
- 'telemetry.spaces': string;
993
- 'sidebar.activeSpaces': string;
994
930
  'overview.title': string;
995
931
  'overview.description': string;
996
932
  'overview.pageDescription': string;
@@ -1049,7 +985,6 @@ export declare const en: {
1049
985
  'overview.noActiveText': string;
1050
986
  'overview.noContentTitle': string;
1051
987
  'overview.noContentText': string;
1052
- 'overview.create': string;
1053
988
  'overview.createTitle': string;
1054
989
  'overview.createDialogHint': string;
1055
990
  'overview.createIdentityTitle': string;
@@ -1253,12 +1188,10 @@ export declare const en: {
1253
1188
  'runtime.branchesPlaceholder': string;
1254
1189
  'runtime.branchesHint': string;
1255
1190
  'runtime.branchBadge': string;
1256
- 'runtime.empty': string;
1257
1191
  'runtime.editContent': string;
1258
1192
  'runtime.editAction': string;
1259
1193
  'runtime.saveEdit': string;
1260
1194
  'runtime.removeAction': string;
1261
- 'runtime.removeConfirm': string;
1262
1195
  'runtime.removeTitle': string;
1263
1196
  'runtime.removeWarning': string;
1264
1197
  'runtime.result.add': string;
@@ -1338,7 +1271,6 @@ export declare const en: {
1338
1271
  'graph.aria': string;
1339
1272
  'graph.kindSpace': string;
1340
1273
  'graph.kindEntity': string;
1341
- 'card.confirmAria': string;
1342
1274
  'card.confirmText': string;
1343
1275
  'card.processing': string;
1344
1276
  'card.confirmForget': string;
@@ -1415,17 +1347,8 @@ export declare const en: {
1415
1347
  'entities.emptyText': string;
1416
1348
  'remember.title': string;
1417
1349
  'remember.description': string;
1418
- 'remember.worker': string;
1419
1350
  'remember.readOnlyTitle': string;
1420
1351
  'remember.readOnlyText': string;
1421
- 'remember.flowTitle': string;
1422
- 'remember.routeTitle': string;
1423
- 'remember.routeText': string;
1424
- 'remember.dedupeTitle': string;
1425
- 'remember.dedupeText': string;
1426
- 'remember.writeTitle': string;
1427
- 'remember.writeText': string;
1428
- 'remember.flowText': string;
1429
1352
  'remember.delegateTitle': string;
1430
1353
  'remember.noSession': string;
1431
1354
  'remember.ready': string;
@@ -1608,13 +1531,6 @@ export declare const en: {
1608
1531
  'config.ready': string;
1609
1532
  'config.noticeBefore': string;
1610
1533
  'config.noticeAfter': string;
1611
- 'config.displayTitle': string;
1612
- 'config.displayDescription': string;
1613
- 'config.displayAria': string;
1614
- 'config.displaySidebar': string;
1615
- 'config.displaySidebarHint': string;
1616
- 'config.displayBuildin': string;
1617
- 'config.displayBuildinHint': string;
1618
1534
  'config.storageTitle': string;
1619
1535
  'config.storageDescription': string;
1620
1536
  'config.scope': string;
@@ -0,0 +1,2 @@
1
+ /** Compose shared view styles with the fixed sidebar skin. */
2
+ export declare function appearanceClass(base: string | undefined, sidebar: string | undefined): string;
@@ -149,7 +149,6 @@ export interface Config {
149
149
  memoryTopology?: MemoryTopologyConfig;
150
150
  recallQuality?: RecallQualityConfig;
151
151
  routingGuidance?: boolean;
152
- displayMode?: 'sidebar' | 'buildin';
153
152
  tabEnabled?: boolean;
154
153
  writeEnabled?: boolean;
155
154
  /** DSH rc.2 management-channel authority; ignored by DSH 0.1.2-alpha.1. */
@@ -243,7 +242,6 @@ export interface ResolvedConfig {
243
242
  memoryTopology: ResolvedMemoryTopologyConfig;
244
243
  recallQuality: ResolvedRecallQualityConfig;
245
244
  routingGuidance: boolean;
246
- displayMode: 'sidebar' | 'buildin';
247
245
  tabEnabled: boolean;
248
246
  writeEnabled: boolean;
249
247
  /** DSH rc.2 management-channel authority; ignored by DSH 0.1.2-alpha.1. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-mnemon",
3
- "version": "0.3.6",
3
+ "version": "0.4.1",
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",
@@ -1,20 +0,0 @@
1
- import type { MnemonTranslate } from './locales.ts';
2
- export type MnemonViewSurface = 'buildin' | 'sidebar';
3
- type AppearanceSlot = 'shell' | 'masthead' | 'brand' | 'headerActions' | 'workspacePicker' | 'statusCluster' | 'workspaceMismatch' | 'topNavigation' | 'nav' | 'navGroup' | 'memoryWorkspace' | 'memoryNavigation' | 'memoryTabs' | 'memoryWriteButton' | 'bodyCardHeader' | 'bodyDirectoryActions' | 'bodyCardIdentity' | 'bodyCardMeta' | 'bodyCardFooter' | 'bodyCardStats' | 'itemActionButton' | 'itemEditAction' | 'itemDangerAction' | 'modalBackdrop' | 'modal' | 'canvas' | 'pageHeader' | 'inspectorGlyph';
4
- export interface MnemonViewAppearance {
5
- surface: MnemonViewSurface;
6
- title: string;
7
- showLogo: boolean;
8
- showTelemetry: boolean;
9
- showNavigationGlyphs: boolean;
10
- showNavigationDetails: boolean;
11
- showNavigationDividers: boolean;
12
- showSpaceSummary: boolean;
13
- classes: Partial<Record<AppearanceSlot, string | undefined>>;
14
- }
15
- /** Appearance is a surface concern; every data flow and workspace action stays shared. */
16
- export declare function resolveMnemonViewAppearance(surface: MnemonViewSurface, t: MnemonTranslate): MnemonViewAppearance;
17
- export declare const MnemonViewAppearanceProvider: import("react").Provider<MnemonViewAppearance>;
18
- export declare function useMnemonViewAppearance(): MnemonViewAppearance;
19
- export declare function appearanceClass(base: string | undefined, variant: string | undefined): string;
20
- export {};