claude-mem 3.3.9 → 3.3.11
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/dist/commands/install.js +5 -4
- package/dist/constants.d.ts +0 -30
- package/dist/constants.js +3 -23
- package/dist/shared/config.d.ts +1 -1
- package/dist/shared/config.js +2 -1
- package/package.json +1 -1
package/dist/commands/install.js
CHANGED
|
@@ -531,7 +531,7 @@ async function configureHooks(settingsPath, config) {
|
|
|
531
531
|
{
|
|
532
532
|
type: "command",
|
|
533
533
|
command: preCompactScript,
|
|
534
|
-
timeout:
|
|
534
|
+
timeout: 180
|
|
535
535
|
}
|
|
536
536
|
]
|
|
537
537
|
});
|
|
@@ -544,7 +544,8 @@ async function configureHooks(settingsPath, config) {
|
|
|
544
544
|
hooks: [
|
|
545
545
|
{
|
|
546
546
|
type: "command",
|
|
547
|
-
command: sessionStartScript
|
|
547
|
+
command: sessionStartScript,
|
|
548
|
+
timeout: 180
|
|
548
549
|
}
|
|
549
550
|
]
|
|
550
551
|
});
|
|
@@ -558,7 +559,7 @@ async function configureHooks(settingsPath, config) {
|
|
|
558
559
|
hooks: [{
|
|
559
560
|
type: "command",
|
|
560
561
|
command: sessionEndScript,
|
|
561
|
-
timeout:
|
|
562
|
+
timeout: 180
|
|
562
563
|
}]
|
|
563
564
|
});
|
|
564
565
|
}
|
|
@@ -653,7 +654,7 @@ export async function install(options = {}) {
|
|
|
653
654
|
config = {
|
|
654
655
|
scope: options.local ? 'local' : options.project ? 'project' : 'user',
|
|
655
656
|
customPath: options.path,
|
|
656
|
-
hookTimeout: options.timeout
|
|
657
|
+
hookTimeout: options.timeout ? parseInt(options.timeout) : 180,
|
|
657
658
|
forceReinstall: !!options.force,
|
|
658
659
|
};
|
|
659
660
|
}
|
package/dist/constants.d.ts
CHANGED
|
@@ -4,15 +4,6 @@
|
|
|
4
4
|
* This file contains core application constants, CLI messages,
|
|
5
5
|
* configuration templates, and infrastructure-related constants.
|
|
6
6
|
*/
|
|
7
|
-
/**
|
|
8
|
-
* MCP server configuration template
|
|
9
|
-
*/
|
|
10
|
-
export declare const MCP_CONFIG_TEMPLATE: {
|
|
11
|
-
readonly "claude-mem": {
|
|
12
|
-
readonly command: "npx";
|
|
13
|
-
readonly args: readonly ["-y", "@modelcontextprotocol/server-memory"];
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
7
|
/**
|
|
17
8
|
* Hook configuration templates for Claude settings
|
|
18
9
|
*/
|
|
@@ -93,15 +84,6 @@ export declare const SEARCH_TEMPLATES: {
|
|
|
93
84
|
readonly SEARCH_SCRIPT: (query: string) => string;
|
|
94
85
|
readonly SEARCH_PREFIX: "Search for: ";
|
|
95
86
|
};
|
|
96
|
-
/**
|
|
97
|
-
* Chroma MCP server configuration template
|
|
98
|
-
*/
|
|
99
|
-
export declare const CHROMA_MCP_CONFIG: {
|
|
100
|
-
readonly "claude-mem": {
|
|
101
|
-
readonly command: "npx";
|
|
102
|
-
readonly args: readonly ["-y", "@modelcontextprotocol/server-memory"];
|
|
103
|
-
};
|
|
104
|
-
};
|
|
105
87
|
/**
|
|
106
88
|
* Chroma collection names for documents
|
|
107
89
|
*/
|
|
@@ -153,12 +135,6 @@ export declare const CHROMA_ERRORS: {
|
|
|
153
135
|
* Export all core constants for easy importing
|
|
154
136
|
*/
|
|
155
137
|
export declare const CONSTANTS: {
|
|
156
|
-
readonly MCP_CONFIG_TEMPLATE: {
|
|
157
|
-
readonly "claude-mem": {
|
|
158
|
-
readonly command: "npx";
|
|
159
|
-
readonly args: readonly ["-y", "@modelcontextprotocol/server-memory"];
|
|
160
|
-
};
|
|
161
|
-
};
|
|
162
138
|
readonly HOOK_CONFIG_TEMPLATES: {
|
|
163
139
|
readonly PRE_COMPACT: (scriptPath: string) => {
|
|
164
140
|
pattern: string;
|
|
@@ -227,12 +203,6 @@ export declare const CONSTANTS: {
|
|
|
227
203
|
readonly SEARCH_SCRIPT: (query: string) => string;
|
|
228
204
|
readonly SEARCH_PREFIX: "Search for: ";
|
|
229
205
|
};
|
|
230
|
-
readonly CHROMA_MCP_CONFIG: {
|
|
231
|
-
readonly "claude-mem": {
|
|
232
|
-
readonly command: "npx";
|
|
233
|
-
readonly args: readonly ["-y", "@modelcontextprotocol/server-memory"];
|
|
234
|
-
};
|
|
235
|
-
};
|
|
236
206
|
readonly CHROMA_COLLECTIONS: {
|
|
237
207
|
readonly DOCUMENTS: "claude_mem_documents";
|
|
238
208
|
readonly MEMORIES: "claude_mem_memories";
|
package/dist/constants.js
CHANGED
|
@@ -7,15 +7,6 @@
|
|
|
7
7
|
// =============================================================================
|
|
8
8
|
// CONFIGURATION TEMPLATES
|
|
9
9
|
// =============================================================================
|
|
10
|
-
/**
|
|
11
|
-
* MCP server configuration template
|
|
12
|
-
*/
|
|
13
|
-
export const MCP_CONFIG_TEMPLATE = {
|
|
14
|
-
"claude-mem": {
|
|
15
|
-
command: "npx",
|
|
16
|
-
args: ["-y", "@modelcontextprotocol/server-memory"]
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
10
|
/**
|
|
20
11
|
* Hook configuration templates for Claude settings
|
|
21
12
|
*/
|
|
@@ -25,7 +16,7 @@ export const HOOK_CONFIG_TEMPLATES = {
|
|
|
25
16
|
hooks: [{
|
|
26
17
|
type: "command",
|
|
27
18
|
command: scriptPath,
|
|
28
|
-
timeout:
|
|
19
|
+
timeout: 180
|
|
29
20
|
}]
|
|
30
21
|
}),
|
|
31
22
|
SESSION_START: (scriptPath) => ({
|
|
@@ -33,7 +24,7 @@ export const HOOK_CONFIG_TEMPLATES = {
|
|
|
33
24
|
hooks: [{
|
|
34
25
|
type: "command",
|
|
35
26
|
command: scriptPath,
|
|
36
|
-
timeout:
|
|
27
|
+
timeout: 30
|
|
37
28
|
}]
|
|
38
29
|
}),
|
|
39
30
|
SESSION_END: (scriptPath) => ({
|
|
@@ -41,7 +32,7 @@ export const HOOK_CONFIG_TEMPLATES = {
|
|
|
41
32
|
hooks: [{
|
|
42
33
|
type: "command",
|
|
43
34
|
command: scriptPath,
|
|
44
|
-
timeout:
|
|
35
|
+
timeout: 180
|
|
45
36
|
}]
|
|
46
37
|
})
|
|
47
38
|
};
|
|
@@ -125,15 +116,6 @@ const result = await query({
|
|
|
125
116
|
// =============================================================================
|
|
126
117
|
// CHROMA INTEGRATION CONSTANTS
|
|
127
118
|
// =============================================================================
|
|
128
|
-
/**
|
|
129
|
-
* Chroma MCP server configuration template
|
|
130
|
-
*/
|
|
131
|
-
export const CHROMA_MCP_CONFIG = {
|
|
132
|
-
"claude-mem": {
|
|
133
|
-
command: "npx",
|
|
134
|
-
args: ["-y", "@modelcontextprotocol/server-memory"]
|
|
135
|
-
}
|
|
136
|
-
};
|
|
137
119
|
/**
|
|
138
120
|
* Chroma collection names for documents
|
|
139
121
|
*/
|
|
@@ -185,13 +167,11 @@ export const CHROMA_ERRORS = {
|
|
|
185
167
|
* Export all core constants for easy importing
|
|
186
168
|
*/
|
|
187
169
|
export const CONSTANTS = {
|
|
188
|
-
MCP_CONFIG_TEMPLATE,
|
|
189
170
|
HOOK_CONFIG_TEMPLATES,
|
|
190
171
|
CLI_MESSAGES,
|
|
191
172
|
DEBUG_MESSAGES,
|
|
192
173
|
SEARCH_TEMPLATES,
|
|
193
174
|
// Chroma constants
|
|
194
|
-
CHROMA_MCP_CONFIG,
|
|
195
175
|
CHROMA_COLLECTIONS,
|
|
196
176
|
CHROMA_DEFAULTS,
|
|
197
177
|
CHROMA_MESSAGES,
|
package/dist/shared/config.d.ts
CHANGED
package/dist/shared/config.js
CHANGED
|
@@ -4,7 +4,8 @@ import { fileURLToPath } from 'url';
|
|
|
4
4
|
// <Block> 5.1 ====================================
|
|
5
5
|
// Default values for compiled binaries
|
|
6
6
|
const DEFAULT_PACKAGE_NAME = 'claude-mem';
|
|
7
|
-
|
|
7
|
+
// @ts-ignore - This will be replaced by Bun build process with --define flag
|
|
8
|
+
const DEFAULT_PACKAGE_VERSION = typeof __DEFAULT_PACKAGE_VERSION__ !== 'undefined' ? __DEFAULT_PACKAGE_VERSION__ : '3.1.5';
|
|
8
9
|
const DEFAULT_PACKAGE_DESCRIPTION = 'Memory compression system for Claude Code - persist context across sessions';
|
|
9
10
|
let packageName = DEFAULT_PACKAGE_NAME;
|
|
10
11
|
let packageVersion = DEFAULT_PACKAGE_VERSION;
|