@velvetmonkey/flywheel-memory 2.0.148 → 2.0.149

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.
Files changed (2) hide show
  1. package/dist/index.js +9 -4
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -3396,7 +3396,8 @@ async function rebuildIndex(vaultPath2) {
3396
3396
  console.error(`[Flywheel] Scanning vault for entities...`);
3397
3397
  const startTime = Date.now();
3398
3398
  entityIndex = await scanVaultEntities(vaultPath2, {
3399
- excludeFolders: DEFAULT_EXCLUDE_FOLDERS
3399
+ excludeFolders: DEFAULT_EXCLUDE_FOLDERS,
3400
+ customCategories: getConfig()?.custom_categories
3400
3401
  });
3401
3402
  indexReady = true;
3402
3403
  lastLoadedAt = Date.now();
@@ -14765,6 +14766,7 @@ function registerSystemTools(server2, getIndex, setIndex, getVaultPath, setConfi
14765
14766
  const stateDb2 = getStateDb3?.();
14766
14767
  if (stateDb2) {
14767
14768
  try {
14769
+ const config = loadConfig(stateDb2);
14768
14770
  const entityIndex2 = await scanVaultEntities2(vaultPath2, {
14769
14771
  excludeFolders: [
14770
14772
  "daily-notes",
@@ -14786,7 +14788,8 @@ function registerSystemTools(server2, getIndex, setIndex, getVaultPath, setConfi
14786
14788
  "articles",
14787
14789
  "bookmarks",
14788
14790
  "web-clips"
14789
- ]
14791
+ ],
14792
+ customCategories: config.custom_categories
14790
14793
  });
14791
14794
  stateDb2.replaceAllEntities(entityIndex2);
14792
14795
  console.error(`[Flywheel] Updated ${entityIndex2._metadata.total_entities} entities in StateDb`);
@@ -22571,7 +22574,8 @@ async function executeRun(stateDb2, vaultPath2) {
22571
22574
  if (entityCount === 0) {
22572
22575
  const start = Date.now();
22573
22576
  try {
22574
- const entityIndex2 = await scanVaultEntities3(vaultPath2, { excludeFolders: EXCLUDE_FOLDERS });
22577
+ const config = loadConfig(stateDb2);
22578
+ const entityIndex2 = await scanVaultEntities3(vaultPath2, { excludeFolders: EXCLUDE_FOLDERS, customCategories: config.custom_categories });
22575
22579
  stateDb2.replaceAllEntities(entityIndex2);
22576
22580
  const newCount = entityIndex2._metadata.total_entities;
22577
22581
  steps.push({
@@ -25622,7 +25626,8 @@ async function updateEntitiesInStateDb(vp, sd) {
25622
25626
  const config = loadConfig(db4);
25623
25627
  const excludeFolders = config.exclude_entity_folders?.length ? config.exclude_entity_folders : DEFAULT_ENTITY_EXCLUDE_FOLDERS;
25624
25628
  const entityIndex2 = await scanVaultEntities4(vault, {
25625
- excludeFolders
25629
+ excludeFolders,
25630
+ customCategories: config.custom_categories
25626
25631
  });
25627
25632
  db4.replaceAllEntities(entityIndex2);
25628
25633
  serverLog("index", `Updated ${entityIndex2._metadata.total_entities} entities in StateDb`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@velvetmonkey/flywheel-memory",
3
- "version": "2.0.148",
3
+ "version": "2.0.149",
4
4
  "description": "MCP server that gives Claude full read/write access to your Obsidian vault. Select from 74 tools for search, backlinks, graph queries, mutations, agent memory, and hybrid semantic search.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -54,7 +54,7 @@
54
54
  "dependencies": {
55
55
  "@huggingface/transformers": "^3.8.1",
56
56
  "@modelcontextprotocol/sdk": "^1.25.1",
57
- "@velvetmonkey/vault-core": "^2.0.148",
57
+ "@velvetmonkey/vault-core": "^2.0.149",
58
58
  "better-sqlite3": "^12.0.0",
59
59
  "chokidar": "^4.0.0",
60
60
  "gray-matter": "^4.0.3",