superkit-mcp-server 1.3.1 → 1.3.2
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.
|
@@ -124,7 +124,7 @@ export class ContextManager {
|
|
|
124
124
|
async storeMemory(text, tags, ttlDays) {
|
|
125
125
|
if (!VALID_TTLS.has(ttlDays))
|
|
126
126
|
throw new Error('TTL must be 30 or 90 days');
|
|
127
|
-
const id = createHash('sha1').update(
|
|
127
|
+
const id = createHash('sha1').update(text).digest('hex').slice(0, 16);
|
|
128
128
|
const vec = await embedOne(text);
|
|
129
129
|
const now = Date.now();
|
|
130
130
|
await this.store.upsertMemory({
|