mnemosyne-core 2.1.3 → 2.1.4

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 CHANGED
@@ -201,7 +201,7 @@ function getVersion() {
201
201
  const pkg = JSON.parse(readFileSync6(resolve9(process.cwd(), "package.json"), "utf-8"));
202
202
  return pkg.version;
203
203
  } catch {
204
- return "2.1.3";
204
+ return "2.1.4";
205
205
  }
206
206
  }
207
207
  }
@@ -5401,7 +5401,7 @@ function getVersion2() {
5401
5401
  const pkg = JSON.parse(readFileSync6(resolve9(process.cwd(), "package.json"), "utf-8"));
5402
5402
  return pkg.version;
5403
5403
  } catch {
5404
- return "2.1.3";
5404
+ return "2.1.4";
5405
5405
  }
5406
5406
  }
5407
5407
  }
@@ -5984,7 +5984,7 @@ function getVersion3() {
5984
5984
  const pkg = JSON.parse(readFileSync6(resolve9(process.cwd(), "package.json"), "utf-8"));
5985
5985
  return pkg.version;
5986
5986
  } catch {
5987
- return "2.1.3";
5987
+ return "2.1.4";
5988
5988
  }
5989
5989
  }
5990
5990
  }
@@ -6940,7 +6940,8 @@ async function handleSearch(store, pathname, method, res, searchParams) {
6940
6940
  } else {
6941
6941
  results = store.search(projectId, q, limit);
6942
6942
  }
6943
- json(res, 200, { query: q, semantic, count: results.length, results });
6943
+ const filtered = results.filter((r) => r.title !== "__INDEX__");
6944
+ json(res, 200, { query: q, semantic, count: filtered.length, results: filtered });
6944
6945
  return true;
6945
6946
  }
6946
6947
  return false;
@@ -7150,7 +7151,7 @@ var PKG_VERSION = (() => {
7150
7151
  const pkg = JSON.parse(require("fs").readFileSync(require("path").resolve(__dirname, "../../package.json"), "utf-8"));
7151
7152
  return pkg.version;
7152
7153
  } catch {
7153
- return "2.1.3";
7154
+ return "2.1.4";
7154
7155
  }
7155
7156
  })();
7156
7157
  function handleHealth(store, pathname, method, res) {
@@ -7511,7 +7512,7 @@ var MnemosyneServer = class {
7511
7512
  const wss = new import_websocket_server.default({ server: this.httpServer });
7512
7513
  this.wsHandler = new WebSocketHandler(wss, this.store);
7513
7514
  }
7514
- const version = cfg?.server?.version || "2.1.3";
7515
+ const version = cfg?.server?.version || "2.1.4";
7515
7516
  this.httpServer.listen(port, () => {
7516
7517
  console.log(`Mnemosyne v${version} \u2014 port ${port}`);
7517
7518
  console.log(`Dashboard: http://${host}:${port}/dashboard`);