kordoc 4.16.2 → 4.16.3
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/README.md +3 -6
- package/dist/{-4G6MA4X6.js → -5XQIJN3D.js} +10 -10
- package/dist/{chunk-UTP2WCHS.js → chunk-2EJ5YSFZ.js} +4 -4
- package/dist/{chunk-IQGIT2VX.js → chunk-3ZVZPYSA.js} +5 -5
- package/dist/{chunk-TXUKTOG2.js → chunk-46H2PPG7.js} +3 -3
- package/dist/{chunk-7KNGSQU7.js → chunk-4O5XQSCT.js} +2 -2
- package/dist/{chunk-MLIS253L.js → chunk-7NYRZI2Z.js} +2 -2
- package/dist/{chunk-GO5IFOUF.js → chunk-7USPM2VT.js} +2 -2
- package/dist/{chunk-XTFN5WKS.cjs → chunk-7WV3WETF.cjs} +6 -6
- package/dist/{chunk-XTFN5WKS.cjs.map → chunk-7WV3WETF.cjs.map} +1 -1
- package/dist/{chunk-KIOQ4N37.js → chunk-AL2WM6ZZ.js} +2 -2
- package/dist/{chunk-F4NRLLY4.js → chunk-AWWFGIBA.js} +2 -2
- package/dist/{chunk-QOCS7W7R.js → chunk-D2UGAEXY.js} +9 -9
- package/dist/{chunk-P6ZDXTV6.js → chunk-ENF34XNH.js} +2 -2
- package/dist/{chunk-5KS5PWJR.js → chunk-GGGO3OH2.js} +2 -2
- package/dist/{chunk-JFLAM3MM.js → chunk-GH2JGKWP.js} +2 -2
- package/dist/{chunk-S2PL227Q.js → chunk-IE6QX3T3.js} +2 -2
- package/dist/{chunk-LEIAEWZ7.js → chunk-JIFG35UT.js} +2 -2
- package/dist/{chunk-DES2LGFZ.js → chunk-LQAKDKSF.js} +2 -2
- package/dist/{chunk-SFEQYKYJ.js → chunk-MC2SRJXO.js} +2 -2
- package/dist/{chunk-STM3ORY7.cjs → chunk-PMULUMUF.cjs} +2 -2
- package/dist/{chunk-STM3ORY7.cjs.map → chunk-PMULUMUF.cjs.map} +1 -1
- package/dist/{chunk-FSDJLAOW.js → chunk-QPJXYJIK.js} +55 -1
- package/dist/chunk-QPJXYJIK.js.map +1 -0
- package/dist/{chunk-OXLPVQYK.js → chunk-T2QHY3S5.js} +3 -3
- package/dist/{chunk-4VODJKFL.js → chunk-UCGGVNTD.js} +3 -3
- package/dist/{chunk-AUWGDP4G.js → chunk-XPYK7Z73.js} +2 -2
- package/dist/{chunk-FKUDAIJI.cjs → chunk-YJECRT5Q.cjs} +12 -12
- package/dist/{chunk-FKUDAIJI.cjs.map → chunk-YJECRT5Q.cjs.map} +1 -1
- package/dist/{chunk-WDQTFAXY.cjs → chunk-YOCFY44Z.cjs} +11 -11
- package/dist/{chunk-WDQTFAXY.cjs.map → chunk-YOCFY44Z.cjs.map} +1 -1
- package/dist/{chunk-JELRWAZC.js → chunk-YUZZNS6E.js} +2 -2
- package/dist/{chunk-CEIATRDW.cjs → chunk-Z3RFAVZ2.cjs} +3 -3
- package/dist/{chunk-CEIATRDW.cjs.map → chunk-Z3RFAVZ2.cjs.map} +1 -1
- package/dist/chunks-GBPAQ6JM.js +10 -0
- package/dist/cli.js +31 -50
- package/dist/cli.js.map +1 -1
- package/dist/{formula-EPKLPDU7.js → formula-EUX2AHXG.js} +3 -3
- package/dist/{formula-NARUOXRX.js → formula-IMEE5OJR.js} +4 -4
- package/dist/{formula-WIMV5TUX.cjs → formula-NPOU4BSO.cjs} +9 -9
- package/dist/{formula-WIMV5TUX.cjs.map → formula-NPOU4BSO.cjs.map} +1 -1
- package/dist/{image-ocr-3WJ4QH3T.js → image-ocr-CCIE3SPX.js} +7 -7
- package/dist/{image-ocr-AXWXR6JV.cjs → image-ocr-LTSQRHCN.cjs} +14 -14
- package/dist/{image-ocr-AXWXR6JV.cjs.map → image-ocr-LTSQRHCN.cjs.map} +1 -1
- package/dist/{image-ocr-5BUJQ4TK.js → image-ocr-QLW5VL4M.js} +5 -5
- package/dist/index.cjs +237 -237
- package/dist/index.js +4 -4
- package/dist/mcp.js +30 -37
- package/dist/mcp.js.map +1 -1
- package/dist/{model-bundle-IMBW7D2Z.js → model-bundle-VRKRVD6Z.js} +5 -5
- package/dist/{models-SY75IBOE.js → models-GSZIPSV2.js} +5 -5
- package/dist/{parser-N6476XAC.js → parser-64C45UPQ.js} +10 -10
- package/dist/{parser-ZQM3664Z.js → parser-NARS2CF7.js} +7 -7
- package/dist/{parser-2LU4EVU3.cjs → parser-U52HRNOY.cjs} +81 -81
- package/dist/{parser-2LU4EVU3.cjs.map → parser-U52HRNOY.cjs.map} +1 -1
- package/dist/pdf-ocr-4QWLMFJQ.js +18 -0
- package/dist/pdf-ocr-C7RXT5YU.cjs +16 -0
- package/dist/{pdf-ocr-GHEJVPX2.cjs.map → pdf-ocr-C7RXT5YU.cjs.map} +1 -1
- package/dist/pdf-ocr-ZYRJLOWQ.js +15 -0
- package/dist/{profile-io-GJPKCYPT.js → profile-io-PZBOSV5X.js} +3 -3
- package/dist/{rasterize-UOALJQDS.js → rasterize-DXBWM6T2.js} +3 -3
- package/dist/{redact-doc-22SYW3KH.js → redact-doc-FLMBZ53F.js} +10 -10
- package/dist/{render-MJ4H3R23.js → render-QNWUOQXJ.js} +6 -6
- package/dist/seal-NNZUQPDJ.js +10 -0
- package/dist/{setup-2URYVUEO.js → setup-3OR4QZFF.js} +3 -3
- package/dist/visual-RDGSACGE.js +20 -0
- package/dist/{watch-ALXZGTOB.js → watch-5A52FP6G.js} +11 -11
- package/package.json +1 -1
- package/dist/chunk-FSDJLAOW.js.map +0 -1
- package/dist/chunks-NUNIKS2J.js +0 -10
- package/dist/pdf-ocr-6DEE23IP.js +0 -15
- package/dist/pdf-ocr-GHEJVPX2.cjs +0 -16
- package/dist/pdf-ocr-MQTWODVU.js +0 -18
- package/dist/seal-XWMRUTI4.js +0 -10
- package/dist/visual-USPS4QRC.js +0 -20
- /package/dist/{-4G6MA4X6.js.map → -5XQIJN3D.js.map} +0 -0
- /package/dist/{chunk-UTP2WCHS.js.map → chunk-2EJ5YSFZ.js.map} +0 -0
- /package/dist/{chunk-IQGIT2VX.js.map → chunk-3ZVZPYSA.js.map} +0 -0
- /package/dist/{chunk-TXUKTOG2.js.map → chunk-46H2PPG7.js.map} +0 -0
- /package/dist/{chunk-7KNGSQU7.js.map → chunk-4O5XQSCT.js.map} +0 -0
- /package/dist/{chunk-MLIS253L.js.map → chunk-7NYRZI2Z.js.map} +0 -0
- /package/dist/{chunk-GO5IFOUF.js.map → chunk-7USPM2VT.js.map} +0 -0
- /package/dist/{chunk-KIOQ4N37.js.map → chunk-AL2WM6ZZ.js.map} +0 -0
- /package/dist/{chunk-F4NRLLY4.js.map → chunk-AWWFGIBA.js.map} +0 -0
- /package/dist/{chunk-QOCS7W7R.js.map → chunk-D2UGAEXY.js.map} +0 -0
- /package/dist/{chunk-P6ZDXTV6.js.map → chunk-ENF34XNH.js.map} +0 -0
- /package/dist/{chunk-5KS5PWJR.js.map → chunk-GGGO3OH2.js.map} +0 -0
- /package/dist/{chunk-JFLAM3MM.js.map → chunk-GH2JGKWP.js.map} +0 -0
- /package/dist/{chunk-S2PL227Q.js.map → chunk-IE6QX3T3.js.map} +0 -0
- /package/dist/{chunk-LEIAEWZ7.js.map → chunk-JIFG35UT.js.map} +0 -0
- /package/dist/{chunk-DES2LGFZ.js.map → chunk-LQAKDKSF.js.map} +0 -0
- /package/dist/{chunk-SFEQYKYJ.js.map → chunk-MC2SRJXO.js.map} +0 -0
- /package/dist/{chunk-OXLPVQYK.js.map → chunk-T2QHY3S5.js.map} +0 -0
- /package/dist/{chunk-4VODJKFL.js.map → chunk-UCGGVNTD.js.map} +0 -0
- /package/dist/{chunk-AUWGDP4G.js.map → chunk-XPYK7Z73.js.map} +0 -0
- /package/dist/{chunk-JELRWAZC.js.map → chunk-YUZZNS6E.js.map} +0 -0
- /package/dist/{chunks-NUNIKS2J.js.map → chunks-GBPAQ6JM.js.map} +0 -0
- /package/dist/{formula-EPKLPDU7.js.map → formula-EUX2AHXG.js.map} +0 -0
- /package/dist/{formula-NARUOXRX.js.map → formula-IMEE5OJR.js.map} +0 -0
- /package/dist/{image-ocr-3WJ4QH3T.js.map → image-ocr-CCIE3SPX.js.map} +0 -0
- /package/dist/{image-ocr-5BUJQ4TK.js.map → image-ocr-QLW5VL4M.js.map} +0 -0
- /package/dist/{model-bundle-IMBW7D2Z.js.map → model-bundle-VRKRVD6Z.js.map} +0 -0
- /package/dist/{models-SY75IBOE.js.map → models-GSZIPSV2.js.map} +0 -0
- /package/dist/{parser-N6476XAC.js.map → parser-64C45UPQ.js.map} +0 -0
- /package/dist/{parser-ZQM3664Z.js.map → parser-NARS2CF7.js.map} +0 -0
- /package/dist/{pdf-ocr-6DEE23IP.js.map → pdf-ocr-4QWLMFJQ.js.map} +0 -0
- /package/dist/{pdf-ocr-MQTWODVU.js.map → pdf-ocr-ZYRJLOWQ.js.map} +0 -0
- /package/dist/{profile-io-GJPKCYPT.js.map → profile-io-PZBOSV5X.js.map} +0 -0
- /package/dist/{rasterize-UOALJQDS.js.map → rasterize-DXBWM6T2.js.map} +0 -0
- /package/dist/{redact-doc-22SYW3KH.js.map → redact-doc-FLMBZ53F.js.map} +0 -0
- /package/dist/{render-MJ4H3R23.js.map → render-QNWUOQXJ.js.map} +0 -0
- /package/dist/{seal-XWMRUTI4.js.map → seal-NNZUQPDJ.js.map} +0 -0
- /package/dist/{setup-2URYVUEO.js.map → setup-3OR4QZFF.js.map} +0 -0
- /package/dist/{visual-USPS4QRC.js.map → visual-RDGSACGE.js.map} +0 -0
- /package/dist/{watch-ALXZGTOB.js.map → watch-5A52FP6G.js.map} +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
ALL_OCR_MODELS
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-LQAKDKSF.js";
|
|
5
5
|
import {
|
|
6
6
|
ALL_FORMULA_MODELS,
|
|
7
7
|
getModelStatusIn,
|
|
8
8
|
getModelsDir
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-AL2WM6ZZ.js";
|
|
10
|
+
import "./chunk-YUZZNS6E.js";
|
|
11
|
+
import "./chunk-ENF34XNH.js";
|
|
12
12
|
|
|
13
13
|
// src/shared/model-bundle.ts
|
|
14
14
|
import { copyFile, mkdir } from "fs/promises";
|
|
@@ -101,4 +101,4 @@ export {
|
|
|
101
101
|
importModels,
|
|
102
102
|
modelCacheStatus
|
|
103
103
|
};
|
|
104
|
-
//# sourceMappingURL=model-bundle-
|
|
104
|
+
//# sourceMappingURL=model-bundle-VRKRVD6Z.js.map
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
ocrModelPath,
|
|
11
11
|
ocrModelsCached,
|
|
12
12
|
parseCharacterDict
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-LQAKDKSF.js";
|
|
14
|
+
import "./chunk-AL2WM6ZZ.js";
|
|
15
|
+
import "./chunk-YUZZNS6E.js";
|
|
16
|
+
import "./chunk-ENF34XNH.js";
|
|
17
17
|
export {
|
|
18
18
|
ALL_OCR_MODELS,
|
|
19
19
|
OCR_DET_MODEL,
|
|
@@ -26,4 +26,4 @@ export {
|
|
|
26
26
|
ocrModelsCached,
|
|
27
27
|
parseCharacterDict
|
|
28
28
|
};
|
|
29
|
-
//# sourceMappingURL=models-
|
|
29
|
+
//# sourceMappingURL=models-GSZIPSV2.js.map
|
|
@@ -33,15 +33,15 @@ import {
|
|
|
33
33
|
startsNewItem,
|
|
34
34
|
trimTrailingEmptyTableCols,
|
|
35
35
|
wrapJoiner
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-MC2SRJXO.js";
|
|
37
37
|
import {
|
|
38
38
|
ocrModelsCached
|
|
39
|
-
} from "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
39
|
+
} from "./chunk-LQAKDKSF.js";
|
|
40
|
+
import "./chunk-AL2WM6ZZ.js";
|
|
41
|
+
import "./chunk-YUZZNS6E.js";
|
|
42
42
|
import {
|
|
43
43
|
blocksToPages
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-XPYK7Z73.js";
|
|
45
45
|
import {
|
|
46
46
|
encodePng
|
|
47
47
|
} from "./chunk-7FCNOKOR.js";
|
|
@@ -56,11 +56,11 @@ import {
|
|
|
56
56
|
WINGDINGS,
|
|
57
57
|
blocksToMarkdown,
|
|
58
58
|
escapeLiteralDollar
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-JIFG35UT.js";
|
|
60
60
|
import {
|
|
61
61
|
KordocError,
|
|
62
62
|
sanitizeHref
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-ENF34XNH.js";
|
|
64
64
|
|
|
65
65
|
// src/pdf/ocr-region-merge.ts
|
|
66
66
|
function mergeOcrImageRegions(blocks, page, regions, ocrBlocks) {
|
|
@@ -2515,7 +2515,7 @@ function mergeLinkRuns(markdown) {
|
|
|
2515
2515
|
|
|
2516
2516
|
// src/pdf/formula-ocr.ts
|
|
2517
2517
|
async function applyFormulaOcr(buffer, blocks, pageFilter, effectivePageCount, warnings, _onProgress) {
|
|
2518
|
-
const formulaMod = await import("./formula-
|
|
2518
|
+
const formulaMod = await import("./formula-IMEE5OJR.js");
|
|
2519
2519
|
const { FormulaPipeline, ensureFormulaModels } = formulaMod;
|
|
2520
2520
|
await ensureFormulaModels((p) => {
|
|
2521
2521
|
if (p.phase === "download" && p.total) {
|
|
@@ -2898,7 +2898,7 @@ async function parsePdfDocument(buffer, options) {
|
|
|
2898
2898
|
}
|
|
2899
2899
|
if (targets.size > 0) {
|
|
2900
2900
|
try {
|
|
2901
|
-
const { runPdfOcr } = await import("./pdf-ocr-
|
|
2901
|
+
const { runPdfOcr } = await import("./pdf-ocr-4QWLMFJQ.js");
|
|
2902
2902
|
const mode = typeof options?.ocr === "function" ? options.ocr : "builtin";
|
|
2903
2903
|
const regionPages = new Map([...ocrRegions].filter(([p]) => options?.ocr !== "force" && !isImageBased && !pageQuality.find((q) => q.page === p)?.needsOcr));
|
|
2904
2904
|
const ocrPageBlocks = await runPdfOcr(ocrBuffer, targets, mode, warnings, options?.onProgress, options?.tables !== false, vectorPageOps, regionPages);
|
|
@@ -3098,4 +3098,4 @@ export {
|
|
|
3098
3098
|
parsePdfDocument,
|
|
3099
3099
|
removeHeaderFooterBlocks
|
|
3100
3100
|
};
|
|
3101
|
-
//# sourceMappingURL=parser-
|
|
3101
|
+
//# sourceMappingURL=parser-64C45UPQ.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
blocksToPages,
|
|
5
5
|
encodePng,
|
|
6
6
|
escapeLiteralDollar
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-4O5XQSCT.js";
|
|
8
8
|
import {
|
|
9
9
|
hasRequestedPagesAfter,
|
|
10
10
|
parsePageRange
|
|
@@ -44,15 +44,15 @@ import {
|
|
|
44
44
|
startsNewItem,
|
|
45
45
|
trimTrailingEmptyTableCols,
|
|
46
46
|
wrapJoiner
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-46H2PPG7.js";
|
|
48
48
|
import {
|
|
49
49
|
stripScriptTags
|
|
50
50
|
} from "./chunk-3IB7LBHC.js";
|
|
51
|
-
import "./chunk-
|
|
51
|
+
import "./chunk-AWWFGIBA.js";
|
|
52
52
|
import {
|
|
53
53
|
KordocError,
|
|
54
54
|
sanitizeHref
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-7NYRZI2Z.js";
|
|
56
56
|
|
|
57
57
|
// src/pdf/ocr-region-merge.ts
|
|
58
58
|
function mergeOcrImageRegions(blocks, page, regions, ocrBlocks) {
|
|
@@ -2507,7 +2507,7 @@ function mergeLinkRuns(markdown) {
|
|
|
2507
2507
|
|
|
2508
2508
|
// src/pdf/formula-ocr.ts
|
|
2509
2509
|
async function applyFormulaOcr(buffer, blocks, pageFilter, effectivePageCount, warnings, _onProgress) {
|
|
2510
|
-
const formulaMod = await import("./formula-
|
|
2510
|
+
const formulaMod = await import("./formula-EUX2AHXG.js");
|
|
2511
2511
|
const { FormulaPipeline, ensureFormulaModels } = formulaMod;
|
|
2512
2512
|
await ensureFormulaModels((p) => {
|
|
2513
2513
|
if (p.phase === "download" && p.total) {
|
|
@@ -2890,7 +2890,7 @@ async function parsePdfDocument(buffer, options) {
|
|
|
2890
2890
|
}
|
|
2891
2891
|
if (targets.size > 0) {
|
|
2892
2892
|
try {
|
|
2893
|
-
const { runPdfOcr } = await import("./pdf-ocr-
|
|
2893
|
+
const { runPdfOcr } = await import("./pdf-ocr-ZYRJLOWQ.js");
|
|
2894
2894
|
const mode = typeof options?.ocr === "function" ? options.ocr : "builtin";
|
|
2895
2895
|
const regionPages = new Map([...ocrRegions].filter(([p]) => options?.ocr !== "force" && !isImageBased && !pageQuality.find((q) => q.page === p)?.needsOcr));
|
|
2896
2896
|
const ocrPageBlocks = await runPdfOcr(ocrBuffer, targets, mode, warnings, options?.onProgress, options?.tables !== false, vectorPageOps, regionPages);
|
|
@@ -3090,4 +3090,4 @@ export {
|
|
|
3090
3090
|
parsePdfDocument,
|
|
3091
3091
|
removeHeaderFooterBlocks
|
|
3092
3092
|
};
|
|
3093
|
-
//# sourceMappingURL=parser-
|
|
3093
|
+
//# sourceMappingURL=parser-NARS2CF7.js.map
|