kordoc 4.22.9 → 4.22.10
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 +5 -4
- package/dist/{-KJW567ZH.js → -K6ZEUCPU.js} +11 -11
- package/dist/{chunk-F6C4UO55.js → chunk-3HEWZNSJ.js} +2 -2
- package/dist/{chunk-UPZISYRP.js → chunk-4OZKQ4ET.js} +2 -2
- package/dist/{chunk-VSH7EV3W.cjs → chunk-55JC3WIX.cjs} +3 -3
- package/dist/{chunk-VSH7EV3W.cjs.map → chunk-55JC3WIX.cjs.map} +1 -1
- package/dist/{chunk-7RVYIPLH.js → chunk-5QEVIUXM.js} +2 -2
- package/dist/{chunk-R5TMMRVG.js → chunk-5RBT7L72.js} +2 -2
- package/dist/{chunk-UNFXTOU3.js → chunk-5TVTSRHH.js} +3 -3
- package/dist/{chunk-VQ5DOQZO.js → chunk-6ZQ47CXH.js} +3 -3
- package/dist/{chunk-55XTFFLH.js → chunk-7YDXV44H.js} +4 -4
- package/dist/{chunk-3MTKUEA7.js → chunk-A65TQXWP.js} +4 -4
- package/dist/{chunk-D44JWJPI.js → chunk-APEYJ6G5.js} +2 -2
- package/dist/{chunk-D44JWJPI.js.map → chunk-APEYJ6G5.js.map} +1 -1
- package/dist/{chunk-NT54LN6C.js → chunk-ATSTJQMI.js} +58 -17
- package/dist/chunk-ATSTJQMI.js.map +1 -0
- package/dist/{chunk-MLTGRR6C.js → chunk-AXOFVPF2.js} +2 -2
- package/dist/{chunk-EREKI4DD.cjs → chunk-D7FPRPEZ.cjs} +2 -2
- package/dist/{chunk-EREKI4DD.cjs.map → chunk-D7FPRPEZ.cjs.map} +1 -1
- package/dist/{chunk-ZBUOPXGD.js → chunk-FMVSQED7.js} +2 -2
- package/dist/{chunk-CKWCSQGW.js → chunk-GWYFJQL7.js} +11 -11
- package/dist/{chunk-SO4ZYWYE.cjs → chunk-HRFGBMVO.cjs} +6 -6
- package/dist/{chunk-SO4ZYWYE.cjs.map → chunk-HRFGBMVO.cjs.map} +1 -1
- package/dist/{chunk-VH2QBIUA.js → chunk-HTPPDXDH.js} +2 -2
- package/dist/{chunk-7PBVL7NL.js → chunk-JJSSXV55.js} +2 -2
- package/dist/{chunk-6LM4CAOF.js → chunk-K65R6PB4.js} +2 -2
- package/dist/{chunk-AX3XT5Y7.js → chunk-LAZZEGT4.js} +3 -3
- package/dist/{chunk-OREE2GWG.js → chunk-M4P52HHG.js} +2 -2
- package/dist/{chunk-DF6NB52F.js → chunk-M7AXOSY5.js} +4 -4
- package/dist/{chunk-SU6ABNIX.cjs → chunk-MILWFVER.cjs} +3 -3
- package/dist/{chunk-SU6ABNIX.cjs.map → chunk-MILWFVER.cjs.map} +1 -1
- package/dist/{chunk-XSRXVLOL.js → chunk-NU4IFUHW.js} +2 -2
- package/dist/{chunk-Z4SUS7JW.js → chunk-TUEX7M4N.js} +2 -2
- package/dist/{chunk-ZP6SRHAD.js → chunk-VLAYMRFS.js} +2 -2
- package/dist/{chunk-Q3GZMZTK.cjs → chunk-WCXPF7PT.cjs} +24 -24
- package/dist/{chunk-Q3GZMZTK.cjs.map → chunk-WCXPF7PT.cjs.map} +1 -1
- package/dist/{chunk-BTLQOIES.cjs → chunk-ZN4BGNYO.cjs} +23 -23
- package/dist/{chunk-BTLQOIES.cjs.map → chunk-ZN4BGNYO.cjs.map} +1 -1
- package/dist/{chunk-AZUWSGMI.js → chunk-ZWBFTG3T.js} +2 -2
- package/dist/{chunk-AZUWSGMI.js.map → chunk-ZWBFTG3T.js.map} +1 -1
- package/dist/chunks-A4DKG5YP.js +10 -0
- package/dist/cli.js +30 -30
- package/dist/{formula-47QIFQ7V.js → formula-J5DTOYGK.js} +4 -4
- package/dist/{formula-JCG77RAE.cjs → formula-SOILYG2T.cjs} +9 -9
- package/dist/{formula-JCG77RAE.cjs.map → formula-SOILYG2T.cjs.map} +1 -1
- package/dist/{formula-GZEMCXLD.js → formula-YYMYI32F.js} +3 -3
- package/dist/{image-ocr-RTS5BZRM.cjs → image-ocr-2FQTSQAQ.cjs} +17 -17
- package/dist/{image-ocr-RTS5BZRM.cjs.map → image-ocr-2FQTSQAQ.cjs.map} +1 -1
- package/dist/{image-ocr-FAHJNFDG.js → image-ocr-EXZCN2Q5.js} +9 -9
- package/dist/{image-ocr-HEKAORHV.js → image-ocr-HXLPIDJH.js} +6 -6
- package/dist/index.cjs +447 -406
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +58 -17
- package/dist/index.js.map +1 -1
- package/dist/mcp.js +30 -23
- package/dist/mcp.js.map +1 -1
- package/dist/{model-bundle-IN3RQ52S.js → model-bundle-L2OLSYAW.js} +5 -5
- package/dist/{models-FHSKU7WB.js → models-A4JR64CR.js} +5 -5
- package/dist/{parse-worker-v2-I3A77UZB.js → parse-worker-v2-YCNMSEIB.js} +12 -12
- package/dist/{parser-ZLZRQLZU.js → parser-2QCANHDO.js} +9 -9
- package/dist/{parser-A4SIJK2I.cjs → parser-S3IJOFFP.cjs} +157 -157
- package/dist/{parser-A4SIJK2I.cjs.map → parser-S3IJOFFP.cjs.map} +1 -1
- package/dist/{parser-JDLV2EI4.js → parser-WFLZFNN4.js} +12 -12
- package/dist/pdf-ocr-6S4U4T56.cjs +31 -0
- package/dist/{pdf-ocr-MKSW5GJ7.cjs.map → pdf-ocr-6S4U4T56.cjs.map} +1 -1
- package/dist/{pdf-ocr-SJKJ7JT7.js → pdf-ocr-MXOMLVFC.js} +6 -6
- package/dist/{pdf-ocr-VIEII6TD.js → pdf-ocr-UBQ4K63F.js} +9 -9
- package/dist/{profile-io-ZPCTNRBM.js → profile-io-PIHSFGQ6.js} +3 -3
- package/dist/{rasterize-QT7IPC27.js → rasterize-7GBVLJG4.js} +3 -3
- package/dist/{redact-doc-64PLXN3U.js → redact-doc-CVJWVNKE.js} +11 -11
- package/dist/{render-43RSFAGY.js → render-FQN7Y52S.js} +7 -7
- package/dist/seal-FZGFDRBC.js +10 -0
- package/dist/{setup-46VYX5XM.js → setup-JTVGMAJB.js} +3 -3
- package/dist/visual-SNHWQXSM.js +21 -0
- package/dist/{watch-ZBBQKEKD.js → watch-5MU2GVS4.js} +12 -12
- package/package.json +1 -1
- package/dist/chunk-NT54LN6C.js.map +0 -1
- package/dist/chunks-YCPWFWFT.js +0 -10
- package/dist/pdf-ocr-MKSW5GJ7.cjs +0 -31
- package/dist/seal-RQZTBH54.js +0 -10
- package/dist/visual-JFUP46UP.js +0 -21
- /package/dist/{-KJW567ZH.js.map → -K6ZEUCPU.js.map} +0 -0
- /package/dist/{chunk-F6C4UO55.js.map → chunk-3HEWZNSJ.js.map} +0 -0
- /package/dist/{chunk-UPZISYRP.js.map → chunk-4OZKQ4ET.js.map} +0 -0
- /package/dist/{chunk-7RVYIPLH.js.map → chunk-5QEVIUXM.js.map} +0 -0
- /package/dist/{chunk-R5TMMRVG.js.map → chunk-5RBT7L72.js.map} +0 -0
- /package/dist/{chunk-UNFXTOU3.js.map → chunk-5TVTSRHH.js.map} +0 -0
- /package/dist/{chunk-VQ5DOQZO.js.map → chunk-6ZQ47CXH.js.map} +0 -0
- /package/dist/{chunk-55XTFFLH.js.map → chunk-7YDXV44H.js.map} +0 -0
- /package/dist/{chunk-3MTKUEA7.js.map → chunk-A65TQXWP.js.map} +0 -0
- /package/dist/{chunk-MLTGRR6C.js.map → chunk-AXOFVPF2.js.map} +0 -0
- /package/dist/{chunk-ZBUOPXGD.js.map → chunk-FMVSQED7.js.map} +0 -0
- /package/dist/{chunk-CKWCSQGW.js.map → chunk-GWYFJQL7.js.map} +0 -0
- /package/dist/{chunk-VH2QBIUA.js.map → chunk-HTPPDXDH.js.map} +0 -0
- /package/dist/{chunk-7PBVL7NL.js.map → chunk-JJSSXV55.js.map} +0 -0
- /package/dist/{chunk-6LM4CAOF.js.map → chunk-K65R6PB4.js.map} +0 -0
- /package/dist/{chunk-AX3XT5Y7.js.map → chunk-LAZZEGT4.js.map} +0 -0
- /package/dist/{chunk-OREE2GWG.js.map → chunk-M4P52HHG.js.map} +0 -0
- /package/dist/{chunk-DF6NB52F.js.map → chunk-M7AXOSY5.js.map} +0 -0
- /package/dist/{chunk-XSRXVLOL.js.map → chunk-NU4IFUHW.js.map} +0 -0
- /package/dist/{chunk-Z4SUS7JW.js.map → chunk-TUEX7M4N.js.map} +0 -0
- /package/dist/{chunk-ZP6SRHAD.js.map → chunk-VLAYMRFS.js.map} +0 -0
- /package/dist/{chunks-YCPWFWFT.js.map → chunks-A4DKG5YP.js.map} +0 -0
- /package/dist/{formula-47QIFQ7V.js.map → formula-J5DTOYGK.js.map} +0 -0
- /package/dist/{formula-GZEMCXLD.js.map → formula-YYMYI32F.js.map} +0 -0
- /package/dist/{image-ocr-FAHJNFDG.js.map → image-ocr-EXZCN2Q5.js.map} +0 -0
- /package/dist/{image-ocr-HEKAORHV.js.map → image-ocr-HXLPIDJH.js.map} +0 -0
- /package/dist/{model-bundle-IN3RQ52S.js.map → model-bundle-L2OLSYAW.js.map} +0 -0
- /package/dist/{models-FHSKU7WB.js.map → models-A4JR64CR.js.map} +0 -0
- /package/dist/{parse-worker-v2-I3A77UZB.js.map → parse-worker-v2-YCNMSEIB.js.map} +0 -0
- /package/dist/{parser-ZLZRQLZU.js.map → parser-2QCANHDO.js.map} +0 -0
- /package/dist/{parser-JDLV2EI4.js.map → parser-WFLZFNN4.js.map} +0 -0
- /package/dist/{pdf-ocr-SJKJ7JT7.js.map → pdf-ocr-MXOMLVFC.js.map} +0 -0
- /package/dist/{pdf-ocr-VIEII6TD.js.map → pdf-ocr-UBQ4K63F.js.map} +0 -0
- /package/dist/{profile-io-ZPCTNRBM.js.map → profile-io-PIHSFGQ6.js.map} +0 -0
- /package/dist/{rasterize-QT7IPC27.js.map → rasterize-7GBVLJG4.js.map} +0 -0
- /package/dist/{redact-doc-64PLXN3U.js.map → redact-doc-CVJWVNKE.js.map} +0 -0
- /package/dist/{render-43RSFAGY.js.map → render-FQN7Y52S.js.map} +0 -0
- /package/dist/{seal-RQZTBH54.js.map → seal-FZGFDRBC.js.map} +0 -0
- /package/dist/{setup-46VYX5XM.js.map → setup-JTVGMAJB.js.map} +0 -0
- /package/dist/{visual-JFUP46UP.js.map → visual-SNHWQXSM.js.map} +0 -0
- /package/dist/{watch-ZBBQKEKD.js.map → watch-5MU2GVS4.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-JJSSXV55.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-FMVSQED7.js";
|
|
10
|
+
import "./chunk-VLAYMRFS.js";
|
|
11
|
+
import "./chunk-ZWBFTG3T.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-L2OLSYAW.js.map
|
|
@@ -17,10 +17,10 @@ import {
|
|
|
17
17
|
ocrSourcePath,
|
|
18
18
|
parseCharacterDict,
|
|
19
19
|
resolveOcrModels
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-JJSSXV55.js";
|
|
21
|
+
import "./chunk-FMVSQED7.js";
|
|
22
|
+
import "./chunk-VLAYMRFS.js";
|
|
23
|
+
import "./chunk-ZWBFTG3T.js";
|
|
24
24
|
export {
|
|
25
25
|
ALL_OCR_MODELS,
|
|
26
26
|
DEFAULT_OCR_MODELS,
|
|
@@ -40,4 +40,4 @@ export {
|
|
|
40
40
|
parseCharacterDict,
|
|
41
41
|
resolveOcrModels
|
|
42
42
|
};
|
|
43
|
-
//# sourceMappingURL=models-
|
|
43
|
+
//# sourceMappingURL=models-A4JR64CR.js.map
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
parseWorkerFile
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-6ZQ47CXH.js";
|
|
5
|
+
import "./chunk-GWYFJQL7.js";
|
|
6
|
+
import "./chunk-4OZKQ4ET.js";
|
|
7
|
+
import "./chunk-ATSTJQMI.js";
|
|
8
|
+
import "./chunk-HTPPDXDH.js";
|
|
9
|
+
import "./chunk-NU4IFUHW.js";
|
|
10
10
|
import "./chunk-VKVDMH7X.js";
|
|
11
11
|
import "./chunk-VQFA55IC.js";
|
|
12
12
|
import {
|
|
13
13
|
validateOcrOptions
|
|
14
14
|
} from "./chunk-BYMPPVT3.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-K65R6PB4.js";
|
|
16
|
+
import "./chunk-3HEWZNSJ.js";
|
|
17
|
+
import "./chunk-5TVTSRHH.js";
|
|
18
|
+
import "./chunk-5QEVIUXM.js";
|
|
19
19
|
import {
|
|
20
20
|
VERSION,
|
|
21
21
|
sanitizeError
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-ZWBFTG3T.js";
|
|
23
23
|
import "./chunk-3WSNLH4B.js";
|
|
24
24
|
|
|
25
25
|
// src/cli/parse-worker-v2.ts
|
|
@@ -311,4 +311,4 @@ export {
|
|
|
311
311
|
runParseWorkerV2,
|
|
312
312
|
toParseOptions
|
|
313
313
|
};
|
|
314
|
-
//# sourceMappingURL=parse-worker-v2-
|
|
314
|
+
//# sourceMappingURL=parse-worker-v2-YCNMSEIB.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
blocksToPages,
|
|
3
3
|
encodePng
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-M4P52HHG.js";
|
|
5
5
|
import {
|
|
6
6
|
hasRequestedPagesAfter,
|
|
7
7
|
parsePageRange
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
stripAbsorbedRunningLines,
|
|
62
62
|
trimTrailingEmptyTableCols,
|
|
63
63
|
wrapJoiner
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-7YDXV44H.js";
|
|
65
65
|
import {
|
|
66
66
|
CELL_BASELINES,
|
|
67
67
|
CELL_EDGES,
|
|
@@ -78,12 +78,12 @@ import {
|
|
|
78
78
|
stripScriptTags,
|
|
79
79
|
unframeLayoutTables,
|
|
80
80
|
validateOcrOptions
|
|
81
|
-
} from "./chunk-
|
|
82
|
-
import "./chunk-
|
|
81
|
+
} from "./chunk-AXOFVPF2.js";
|
|
82
|
+
import "./chunk-TUEX7M4N.js";
|
|
83
83
|
import {
|
|
84
84
|
KordocError,
|
|
85
85
|
sanitizeHref
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-APEYJ6G5.js";
|
|
87
87
|
|
|
88
88
|
// src/pdf/image-extract.ts
|
|
89
89
|
import { createHash } from "crypto";
|
|
@@ -4003,7 +4003,7 @@ function mergeLinkRuns(markdown) {
|
|
|
4003
4003
|
|
|
4004
4004
|
// src/pdf/formula-ocr.ts
|
|
4005
4005
|
async function applyFormulaOcr(buffer, blocks, pageFilter, effectivePageCount, warnings, _onProgress) {
|
|
4006
|
-
const formulaMod = await import("./formula-
|
|
4006
|
+
const formulaMod = await import("./formula-YYMYI32F.js");
|
|
4007
4007
|
const { FormulaPipeline, ensureFormulaModels } = formulaMod;
|
|
4008
4008
|
await ensureFormulaModels((p) => {
|
|
4009
4009
|
if (p.phase === "download" && p.total) {
|
|
@@ -4430,10 +4430,10 @@ async function parsePdfDocument(buffer, options) {
|
|
|
4430
4430
|
}
|
|
4431
4431
|
if (targets.size > 0) {
|
|
4432
4432
|
try {
|
|
4433
|
-
const { runPdfOcr } = await import("./pdf-ocr-
|
|
4433
|
+
const { runPdfOcr } = await import("./pdf-ocr-MXOMLVFC.js");
|
|
4434
4434
|
const mode = typeof options?.ocr === "function" ? options.ocr : "builtin";
|
|
4435
4435
|
const regionPages = new Map([...ocrRegions].filter(([p]) => options?.ocr !== "force" && !isImageBased && !pageQuality.find((q) => q.page === p)?.needsOcr));
|
|
4436
|
-
const { builtinOcrConfig } = await import("./pdf-ocr-
|
|
4436
|
+
const { builtinOcrConfig } = await import("./pdf-ocr-MXOMLVFC.js");
|
|
4437
4437
|
const ocrPageBlocks = await runPdfOcr(ocrBuffer, targets, mode, warnings, options?.onProgress, options?.tables !== false, vectorPageOps, regionPages, builtinOcrConfig(options), ocrLinesOut);
|
|
4438
4438
|
for (const obs of ocrPageBlocks.values()) stripScriptTags({ blocks: obs });
|
|
4439
4439
|
if (ocrPageBlocks.size > 0) {
|
|
@@ -4678,4 +4678,4 @@ export {
|
|
|
4678
4678
|
parsePdfDocument,
|
|
4679
4679
|
removeHeaderFooterBlocks
|
|
4680
4680
|
};
|
|
4681
|
-
//# sourceMappingURL=parser-
|
|
4681
|
+
//# sourceMappingURL=parser-2QCANHDO.js.map
|