exomind 0.17.1 → 0.17.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/cli.js CHANGED
@@ -3119,7 +3119,7 @@ var {
3119
3119
  // package.json
3120
3120
  var package_default = {
3121
3121
  name: "exomind",
3122
- version: "0.17.1",
3122
+ version: "0.17.2",
3123
3123
  description: "ExoMind \u8DE8\u5E73\u53F0\u547D\u4EE4\u884C\u5BA2\u6237\u7AEF \u2014 \u901A\u8FC7 REST \u4E0E ExoMind \u77E5\u8BC6\u98DE\u8F6E\u4EA4\u4E92(ingest/query/search/review),\u66FF\u4EE3 Windows \u4E0D\u53EF\u7528\u7684 MCP \u5BA2\u6237\u7AEF\u3002",
3124
3124
  bin: {
3125
3125
  exomind: "dist/cli.js",
@@ -4008,11 +4008,10 @@ function recordFile(manifest, absPath, rawContent, title) {
4008
4008
  size: rawContent.length
4009
4009
  };
4010
4010
  }
4011
- function cleanupStale(m, dir, currentFiles) {
4011
+ function cleanupStale(m, dir) {
4012
4012
  const prefix = path4.resolve(dir) + path4.sep;
4013
- const current = new Set(currentFiles);
4014
4013
  for (const key of Object.keys(m)) {
4015
- if (key.startsWith(prefix) && !current.has(key)) {
4014
+ if (key.startsWith(prefix) && !fs5.existsSync(key)) {
4016
4015
  delete m[key];
4017
4016
  }
4018
4017
  }
@@ -4276,7 +4275,7 @@ async function runDirIngestest(client, opts, dir) {
4276
4275
  await sleep(2e3);
4277
4276
  }
4278
4277
  }
4279
- cleanupStale(manifest, dir, files);
4278
+ cleanupStale(manifest, dir);
4280
4279
  saveManifest(manifest);
4281
4280
  } finally {
4282
4281
  process.removeListener("SIGINT", onSigInt);