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.
- package/dist/core/index.cjs +7 -1
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.js +7 -1
- package/dist/core/index.js.map +1 -1
- package/dist/core/literature.d.ts.map +1 -1
- package/dist/http/index.cjs +8 -2
- package/dist/http/index.cjs.map +1 -1
- package/dist/http/index.js +8 -2
- package/dist/http/index.js.map +1 -1
- package/dist/mcp/index.cjs +8 -2
- package/dist/mcp/index.cjs.map +1 -1
- package/dist/mcp/index.js +8 -2
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/server.d.ts.map +1 -1
- package/mcpb/manifest.json +1 -1
- package/package.json +1 -1
- package/src/core/literature.ts +8 -0
- package/src/mcp/server.ts +4 -1
package/dist/core/index.cjs
CHANGED
|
@@ -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.
|
|
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));
|