@clude/sdk 3.0.4 → 3.3.0

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.
@@ -0,0 +1,74 @@
1
+ /**
2
+ * Local JSON-file memory store for MCP local mode.
3
+ * Zero dependencies. No API keys. Stores memories in ~/.clude/memories.json
4
+ */
5
+ export type MemoryType = 'episodic' | 'semantic' | 'procedural' | 'self_model' | 'introspective';
6
+ export interface LocalMemory {
7
+ id: number;
8
+ memory_type: MemoryType;
9
+ content: string;
10
+ summary: string;
11
+ tags: string[];
12
+ concepts: string[];
13
+ importance: number;
14
+ decay_factor: number;
15
+ access_count: number;
16
+ emotional_valence: number;
17
+ source: string;
18
+ source_id?: string;
19
+ related_user?: string;
20
+ related_wallet?: string;
21
+ metadata: Record<string, unknown>;
22
+ created_at: string;
23
+ last_accessed: string;
24
+ }
25
+ export declare function localRecall(opts: {
26
+ query?: string;
27
+ tags?: string[];
28
+ memory_types?: MemoryType[];
29
+ limit?: number;
30
+ min_importance?: number;
31
+ min_decay?: number;
32
+ related_user?: string;
33
+ related_wallet?: string;
34
+ }): LocalMemory[];
35
+ export declare function localStore(opts: {
36
+ type: MemoryType;
37
+ content: string;
38
+ summary: string;
39
+ tags?: string[];
40
+ concepts?: string[];
41
+ importance?: number;
42
+ emotional_valence?: number;
43
+ source: string;
44
+ source_id?: string;
45
+ related_user?: string;
46
+ related_wallet?: string;
47
+ metadata?: Record<string, unknown>;
48
+ }): number;
49
+ export declare function localStats(): object;
50
+ export declare function localClinamen(opts: {
51
+ context: string;
52
+ limit?: number;
53
+ min_importance?: number;
54
+ max_relevance?: number;
55
+ memory_types?: MemoryType[];
56
+ }): LocalMemory[];
57
+ export declare function localDelete(id: number): boolean;
58
+ export declare function localUpdate(id: number, patches: {
59
+ summary?: string;
60
+ content?: string;
61
+ tags?: string[];
62
+ importance?: number;
63
+ memory_type?: MemoryType;
64
+ }): boolean;
65
+ export declare function localList(opts: {
66
+ page?: number;
67
+ page_size?: number;
68
+ memory_type?: MemoryType;
69
+ min_importance?: number;
70
+ order?: 'created_at' | 'importance' | 'last_accessed';
71
+ }): {
72
+ memories: LocalMemory[];
73
+ total: number;
74
+ };
@@ -0,0 +1 @@
1
+ export {};