med-research-mcp 0.6.1 → 0.6.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.
@@ -584,7 +584,7 @@ var import_node_fs = require("fs");
584
584
  var import_node_path = require("path");
585
585
  var import_meta2 = {};
586
586
  function packageVersion() {
587
- if (true) return "0.6.1";
587
+ if (true) return "0.6.2";
588
588
  const moduleDir = typeof __dirname !== "undefined" ? __dirname : import_meta2.dirname;
589
589
  return JSON.parse((0, import_node_fs.readFileSync)((0, import_node_path.join)(moduleDir, "../../package.json"), "utf-8")).version;
590
590
  }
@@ -1698,6 +1698,12 @@ async function searchLiterature(input, cache = new LRUBackend(), adapters) {
1698
1698
  );
1699
1699
  const noAnimals = noAnimalStudiesWarning(input.studyTypes, input.minDesignTier, merged);
1700
1700
  if (noAnimals) warnings.push(noAnimals);
1701
+ const dated = Boolean(input.dateRange?.from || input.dateRange?.to);
1702
+ if (total === 0 && failures.length === 0 && !input.studyTypes?.length && !input.minDesignTier && !dated) {
1703
+ warnings.push(
1704
+ `No record matched every term of the query "${input.query}". This is not evidence of absence: retry with fewer, more general keywords.`
1705
+ );
1706
+ }
1701
1707
  if (input.sort === "date") {
1702
1708
  const published = new Map(merged.map((a) => [a, firstPublished(a)]));
1703
1709
  merged.sort((a, b) => published.get(b) - published.get(a));