ai-mind-map 1.12.7 → 1.12.8

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.
@@ -213,7 +213,7 @@ export declare class KnowledgeGraph {
213
213
  }>, skipDelete?: boolean): void;
214
214
  /**
215
215
  * Optimized insert for full reindex (no existing data, skip conflict checks).
216
- * Uses plain INSERT instead of INSERT OR REPLACE since clearProject already deleted everything.
216
+ * Optimized for full reindex: uses INSERT OR REPLACE but skips per-file deletion.
217
217
  */
218
218
  batchInsertFileData(items: Array<{
219
219
  filePath: string;
@@ -969,11 +969,11 @@ export class KnowledgeGraph {
969
969
  }
970
970
  /**
971
971
  * Optimized insert for full reindex (no existing data, skip conflict checks).
972
- * Uses plain INSERT instead of INSERT OR REPLACE since clearProject already deleted everything.
972
+ * Optimized for full reindex: uses INSERT OR REPLACE but skips per-file deletion.
973
973
  */
974
974
  batchInsertFileData(items) {
975
975
  const insertNode = this.db.prepare(`
976
- INSERT INTO nodes (
976
+ INSERT OR REPLACE INTO nodes (
977
977
  id, type, name, qualifiedName, filePath, startLine, endLine,
978
978
  signature, docComment, hash, language, visibility,
979
979
  isAsync, isStatic, isExported, parameters, returnType, updatedAt
@@ -984,7 +984,7 @@ export class KnowledgeGraph {
984
984
  )
985
985
  `);
986
986
  const insertEdge = this.db.prepare(`
987
- INSERT INTO edges (sourceId, targetId, type, metadata)
987
+ INSERT OR REPLACE INTO edges (sourceId, targetId, type, metadata)
988
988
  VALUES (@sourceId, @targetId, @type, @metadata)
989
989
  `);
990
990
  const insertFileIdx = this.db.prepare(`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-mind-map",
3
- "version": "1.12.7",
3
+ "version": "1.12.8",
4
4
  "description": "AI Mind Map — MCP server that reduces AI coding agent token usage by 80-99% through persistent codebase memory, knowledge graphs, and intelligent context management",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",