dsh-mnemon 0.1.6 → 0.2.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.
Files changed (34) hide show
  1. package/README.md +125 -104
  2. package/README.zh-CN.md +130 -109
  3. package/THIRD_PARTY_NOTICES.md +7 -0
  4. package/lib/client.js +3889 -830
  5. package/lib/index.js +4232 -289
  6. package/lib/types/client/GlobalLocationSetting.d.ts +19 -0
  7. package/lib/types/client/MnemonPackSection.d.ts +4 -1
  8. package/lib/types/client/MnemonSettingsCard.d.ts +4 -1
  9. package/lib/types/client/ProviderIcon.d.ts +8 -0
  10. package/lib/types/client/ProviderSettingsSection.d.ts +16 -0
  11. package/lib/types/client/api.d.ts +12 -11
  12. package/lib/types/client/locales.d.ts +548 -0
  13. package/lib/types/client/settings.d.ts +3 -1
  14. package/lib/types/contracts.d.ts +36 -2
  15. package/lib/types/lifecycle.d.ts +30 -3
  16. package/lib/types/memory-bodies.d.ts +25 -4
  17. package/lib/types/process.d.ts +4 -1
  18. package/lib/types/provider-placement.d.ts +26 -0
  19. package/lib/types/providers/byterover.d.ts +31 -0
  20. package/lib/types/providers/catalog.d.ts +23 -0
  21. package/lib/types/providers/hindsight.d.ts +19 -0
  22. package/lib/types/providers/holographic.d.ts +22 -0
  23. package/lib/types/providers/honcho.d.ts +18 -0
  24. package/lib/types/providers/http.d.ts +32 -0
  25. package/lib/types/providers/mem0.d.ts +17 -0
  26. package/lib/types/providers/openviking.d.ts +31 -0
  27. package/lib/types/providers/provider.d.ts +38 -0
  28. package/lib/types/providers/retaindb.d.ts +16 -0
  29. package/lib/types/providers/supermemory.d.ts +16 -0
  30. package/lib/types/rpc.d.ts +1 -1
  31. package/lib/types/service.d.ts +54 -6
  32. package/lib/types/shared/contracts.d.ts +261 -1
  33. package/lib/types/subagent.d.ts +10 -2
  34. package/package.json +17 -4
@@ -0,0 +1,19 @@
1
+ import type { JSX, ReactNode } from 'react';
2
+ interface GlobalLocationSettingProps {
3
+ name: string;
4
+ ariaLabel: string;
5
+ label: string;
6
+ hint: string;
7
+ defaultLabel: string;
8
+ customLabel: string;
9
+ custom: boolean;
10
+ workspace: boolean;
11
+ disabled: boolean;
12
+ className?: string | undefined;
13
+ children?: ReactNode;
14
+ onChange: (custom: boolean) => void;
15
+ onInteract?: (() => void) | undefined;
16
+ }
17
+ /** Shared global/default location control for Native and workspace-aware providers. */
18
+ export declare function GlobalLocationSetting(props: GlobalLocationSettingProps): JSX.Element;
19
+ export {};
@@ -3,8 +3,11 @@ import type { ClientConnectionHandle } from '../shared/contracts.ts';
3
3
  import type { MnemonTranslate } from './locales.ts';
4
4
  interface MnemonPackSectionProps {
5
5
  connection?: ClientConnectionHandle;
6
+ sessionId?: string;
7
+ workspaceId?: string;
6
8
  refreshKey: number;
7
9
  t: MnemonTranslate;
10
+ embedded?: boolean;
8
11
  }
9
- export declare function MnemonPackSection({ connection, refreshKey, t }: MnemonPackSectionProps): JSX.Element;
12
+ export declare function MnemonPackSection({ connection, sessionId, workspaceId, refreshKey, t, embedded }: MnemonPackSectionProps): JSX.Element;
10
13
  export {};
@@ -7,7 +7,10 @@ export interface MnemonSettingsCardProps {
7
7
  interactionScope?: ClientSettingsScope<InteractionConfig>;
8
8
  /** Loopback RPC used for whole-directory ZIP backup and restore. */
9
9
  connection?: ClientConnectionHandle;
10
+ sessionId?: string;
11
+ workspaceId?: string;
12
+ workspaceLabel?: string;
10
13
  t?: MnemonTranslate;
11
14
  }
12
15
  /** Dedicated Mnemon page contributed directly to DSH's settings navigation. */
13
- export declare function MnemonSettingsCard({ scope, interactionScope: suppliedInteractionScope, connection, t }: MnemonSettingsCardProps): JSX.Element | null;
16
+ export declare function MnemonSettingsCard({ scope, interactionScope: suppliedInteractionScope, connection, sessionId, workspaceId, workspaceLabel, t }: MnemonSettingsCardProps): JSX.Element | null;
@@ -0,0 +1,8 @@
1
+ import type { MemoryProviderId } from '../shared/contracts.ts';
2
+ export interface ProviderIconProps {
3
+ providerId: MemoryProviderId;
4
+ className?: string | undefined;
5
+ title?: string | undefined;
6
+ }
7
+ /** Provider brand mark. Official assets are bundled locally; Holographic uses its canonical mirror motif. */
8
+ export declare function ProviderIcon({ providerId, className, title }: ProviderIconProps): JSX.Element;
@@ -0,0 +1,16 @@
1
+ import { type JSX } from 'react';
2
+ import type { ClientConnectionHandle } from '../shared/contracts.ts';
3
+ import type { MnemonTranslate } from './locales.ts';
4
+ interface ProviderSettingsSectionProps {
5
+ connection?: ClientConnectionHandle;
6
+ sessionId?: string;
7
+ workspaceId?: string;
8
+ workspaceLabel?: string;
9
+ activeScope: 'global' | 'workspace';
10
+ refreshKey: number;
11
+ disabled: boolean;
12
+ scopeChanging: boolean;
13
+ t: MnemonTranslate;
14
+ }
15
+ export declare function ProviderSettingsSection(props: ProviderSettingsSectionProps): JSX.Element;
16
+ export {};
@@ -1,9 +1,11 @@
1
- import { type AssistantMessageText, type ClientConnectionHandle, type DocumentMutation, type DocumentMutationResult, type DocumentSearchResult, type DocumentSnapshot, type DocumentView, type EntityView, type Insight, type MemoryBody, type MemoryBodyCatalog, type MemoryGraphSnapshot, type MemoryListRequest, type MemoryListView, type MnemonPackExport, type MnemonPackImportResult, type MnemonPackPreview, type RememberRequest, type RuntimeMemoryImportance, type RuntimeMemoryMutationResult, type RuntimeMemorySnapshot, type RuntimeMemoryTarget, type SearchRequest, type StatusView, type TurnMemoryActivity, type VersionComponentId, type VersionStatus, type VersionUpdateResult } from '../shared/contracts.ts';
1
+ import { type AssistantMessageText, type CreateMemoryBodyRequest, type ClientConnectionHandle, type DocumentMutation, type DocumentMutationResult, type DocumentSearchResult, type DocumentSnapshot, type DocumentView, type EntityView, type Insight, type MemoryBody, type MemoryBodyView, type MemoryBodyMetadataMaintenanceResult, type MemoryBodyCatalog, type MemoryProviderServiceCatalog, type MemoryProviderServiceView, type MemoryGraphSnapshot, type MemoryListRequest, type MemoryListView, type MemoryReadSource, type MnemonPackExport, type MnemonPackImportResult, type MnemonPackPreview, type RememberRequest, type RuntimeMemoryImportance, type RuntimeMemoryMutationResult, type RuntimeMemorySnapshot, type RuntimeMemoryTarget, type SearchRequest, type StatusView, type TaskAgentModelCatalog, type TurnMemoryActivity, type UpdateMemoryBodyRequest, type UpdateMemoryProviderServiceRequest, type VersionComponentId, type VersionStatus, type VersionUpdateResult } from '../shared/contracts.ts';
2
2
  export interface SearchResponse {
3
3
  query: string;
4
4
  mode: string;
5
5
  results: Insight[];
6
6
  hint?: string;
7
+ /** Omitted only when talking to a pre-provider-aware Host. */
8
+ sources?: MemoryReadSource[];
7
9
  }
8
10
  export interface AgentSearchResponse extends SearchResponse {
9
11
  answer: string;
@@ -21,6 +23,8 @@ export declare class MnemonClient {
21
23
  private call;
22
24
  private scoped;
23
25
  status(): Promise<StatusView>;
26
+ statusSummary(): Promise<StatusView>;
27
+ taskAgentModels(includeCatalog?: boolean): Promise<TaskAgentModelCatalog>;
24
28
  versions(): Promise<VersionStatus>;
25
29
  updateVersion(component: VersionComponentId): Promise<VersionUpdateResult>;
26
30
  runtimeMemory(): Promise<RuntimeMemorySnapshot>;
@@ -37,6 +41,9 @@ export declare class MnemonClient {
37
41
  mutateDocument(request: DocumentMutation): Promise<DocumentMutationResult>;
38
42
  archiveDocument(id: string): Promise<DocumentMutationResult>;
39
43
  bodies(): Promise<MemoryBodyCatalog>;
44
+ bodyDirectory(): Promise<MemoryBodyCatalog>;
45
+ providerServices(): Promise<MemoryProviderServiceCatalog>;
46
+ updateProviderService(request: UpdateMemoryProviderServiceRequest): Promise<MemoryProviderServiceView>;
40
47
  graph(memoryBodyIds?: string[]): Promise<MemoryGraphSnapshot>;
41
48
  list(request?: MemoryListRequest): Promise<MemoryListView>;
42
49
  entities(entity?: string, limit?: number): Promise<EntityView>;
@@ -58,16 +65,10 @@ export declare class MnemonClient {
58
65
  memoryBodyIds: string[];
59
66
  }>;
60
67
  forget(id: string, memoryBodyId?: string): Promise<Record<string, unknown>>;
61
- createBody(request: {
62
- name: string;
63
- description: string;
64
- active?: boolean;
65
- }): Promise<MemoryBody>;
66
- updateBody(memoryBodyId: string, request: {
67
- name?: string;
68
- description?: string;
69
- active?: boolean;
70
- }): Promise<MemoryBody>;
68
+ createBody(request: CreateMemoryBodyRequest): Promise<MemoryBody>;
69
+ updateBody(memoryBodyId: string, request: UpdateMemoryBodyRequest): Promise<MemoryBody>;
70
+ reconnectBody(memoryBodyId: string): Promise<MemoryBodyView>;
71
+ maintainBodyMetadata(memoryBodyIds: string[]): Promise<MemoryBodyMetadataMaintenanceResult>;
71
72
  deleteBody(memoryBodyId: string): Promise<MemoryBody>;
72
73
  packTarget(): Promise<{
73
74
  root: string;