@cognistore/mcp-server 1.1.0 → 1.2.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.
- package/dist/index.js +2 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -407,6 +407,7 @@ function createPlansEmbeddingsTable(sqlite, dimensions = DEFAULT_EMBEDDING_DIMEN
|
|
|
407
407
|
|
|
408
408
|
// ../../packages/core/dist/repositories/knowledge.repository.js
|
|
409
409
|
import { eq, ne, sql, and, or, isNull } from "drizzle-orm";
|
|
410
|
+
var OPERATIONS_RETENTION_DAYS = 30;
|
|
410
411
|
var KnowledgeRepository = class {
|
|
411
412
|
db;
|
|
412
413
|
sqlite;
|
|
@@ -796,7 +797,7 @@ var KnowledgeRepository = class {
|
|
|
796
797
|
return Object.entries(map).map(([date, counts]) => ({ date, ...counts }));
|
|
797
798
|
}
|
|
798
799
|
cleanupOldOperations() {
|
|
799
|
-
const cutoff = new Date(Date.now() -
|
|
800
|
+
const cutoff = new Date(Date.now() - OPERATIONS_RETENTION_DAYS * 24 * 60 * 60 * 1e3).toISOString();
|
|
800
801
|
return this.sqlite.prepare("DELETE FROM operations_log WHERE created_at < ?").run(cutoff).changes;
|
|
801
802
|
}
|
|
802
803
|
/**
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cognistore/mcp-server",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "MCP server for CogniStore — integrates with Claude Code and GitHub Copilot",
|
|
7
|
-
"license": "
|
|
7
|
+
"license": "MIT",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
10
|
"url": "git+https://github.com/Sithion/cognistore.git",
|