evidence-mcp-dev 0.2.39 → 0.2.40
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 +7 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
+
// src/stdout-guard.ts
|
|
4
|
+
var toStderr = (...args) => console.error(...args);
|
|
5
|
+
console.log = toStderr;
|
|
6
|
+
console.info = toStderr;
|
|
7
|
+
console.debug = toStderr;
|
|
8
|
+
|
|
3
9
|
// src/env.ts
|
|
4
10
|
import { existsSync, readFileSync } from "fs";
|
|
5
11
|
import { join, resolve } from "path";
|
|
@@ -976,7 +982,7 @@ function headingOf(line) {
|
|
|
976
982
|
return BY_SQUEEZED.get(squeeze(bare2)) ?? null;
|
|
977
983
|
}
|
|
978
984
|
async function pdfToMarkdown(bytes, title, headLine2, stats2) {
|
|
979
|
-
const pdf = await getDocumentProxy(new Uint8Array(bytes), { fontExtraProperties: true });
|
|
985
|
+
const pdf = await getDocumentProxy(new Uint8Array(bytes), { fontExtraProperties: true, verbosity: 0 });
|
|
980
986
|
const text4 = await extractPages(pdf);
|
|
981
987
|
if (stats2) {
|
|
982
988
|
stats2.pages = pdf.numPages;
|