kordoc 4.22.6 → 4.22.8
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 +7 -5
- package/dist/{-BNRFT3K4.js → -V3MHVWUQ.js} +11 -11
- package/dist/{chunk-UFQ2DEYM.js → chunk-4OMXOT6T.js} +10 -3
- package/dist/chunk-4OMXOT6T.js.map +1 -0
- package/dist/{chunk-2XRJECQJ.cjs → chunk-5TYEUZGN.cjs} +3 -3
- package/dist/{chunk-2XRJECQJ.cjs.map → chunk-5TYEUZGN.cjs.map} +1 -1
- package/dist/{chunk-3DF57KEK.cjs → chunk-5YXW5RLC.cjs} +30 -23
- package/dist/chunk-5YXW5RLC.cjs.map +1 -0
- package/dist/{chunk-A6TLFPDO.js → chunk-D7A5NKP3.js} +2 -2
- package/dist/{chunk-NOGYQ7QQ.js → chunk-DUQJ7EBY.js} +2 -2
- package/dist/chunk-DUQJ7EBY.js.map +1 -0
- package/dist/{chunk-7IUHIM2F.js → chunk-GVRCO3KT.js} +4 -3
- package/dist/chunk-GVRCO3KT.js.map +1 -0
- package/dist/{chunk-FK3UNG3M.js → chunk-I6XE7VJQ.js} +2 -2
- package/dist/{chunk-QSVBBIOO.js → chunk-JA4IIIEU.js} +2 -2
- package/dist/{chunk-JTBKTYUJ.js → chunk-JNHUOGGQ.js} +13 -4
- package/dist/chunk-JNHUOGGQ.js.map +1 -0
- package/dist/{chunk-Q3MCNMTJ.js → chunk-K5UU73BA.js} +13 -4
- package/dist/chunk-K5UU73BA.js.map +1 -0
- package/dist/{chunk-V6MEUROO.js → chunk-KZSDBXWS.js} +11 -11
- package/dist/{chunk-E5KDXBB5.js → chunk-LM3PI43Q.js} +2 -2
- package/dist/{chunk-37BDHFGX.cjs → chunk-LSOFR4R2.cjs} +17 -8
- package/dist/chunk-LSOFR4R2.cjs.map +1 -0
- package/dist/{chunk-6CHPX72J.js → chunk-ORFDIAP3.js} +4 -4
- package/dist/{chunk-2VTIZIMO.js → chunk-OXVNNCQQ.js} +2 -2
- package/dist/{chunk-RG5PQS5J.js → chunk-P53VOW4B.js} +3 -3
- package/dist/{chunk-ZG4JVJYJ.js → chunk-P7UB5SMI.js} +2 -2
- package/dist/{chunk-IXCLL2U3.cjs → chunk-RAZJF5QW.cjs} +24 -24
- package/dist/{chunk-IXCLL2U3.cjs.map → chunk-RAZJF5QW.cjs.map} +1 -1
- package/dist/{chunk-PLFDJC3I.js → chunk-RNBU6S2X.js} +2 -2
- package/dist/{chunk-JYUYW34P.cjs → chunk-TDCHLOY6.cjs} +3 -3
- package/dist/{chunk-JYUYW34P.cjs.map → chunk-TDCHLOY6.cjs.map} +1 -1
- package/dist/{chunk-HE5VV2CM.js → chunk-TVCGPOCE.js} +2 -2
- package/dist/{chunk-U6SSH2TG.cjs → chunk-UDB4YKOP.cjs} +2 -2
- package/dist/{chunk-U6SSH2TG.cjs.map → chunk-UDB4YKOP.cjs.map} +1 -1
- package/dist/{chunk-2VH7CAVX.js → chunk-V7BK7IKP.js} +2 -2
- package/dist/{chunk-JCF5DM7D.js → chunk-VGRTUHAU.js} +3 -3
- package/dist/{chunk-MYOUWFZQ.js → chunk-XZZ7WOCP.js} +2 -2
- package/dist/{chunk-XMBILEZY.js → chunk-YBD5XGFC.js} +103 -15
- package/dist/{chunk-XMBILEZY.js.map → chunk-YBD5XGFC.js.map} +1 -1
- package/dist/{chunk-2PCMUSEB.js → chunk-YDAGUSKH.js} +2 -2
- package/dist/{chunk-6HSRXDZ7.js → chunk-YSTWJWOY.js} +11 -4
- package/dist/chunk-YSTWJWOY.js.map +1 -0
- package/dist/{chunk-OWQSWIMU.js → chunk-Z5Z7HOER.js} +4 -4
- package/dist/chunks-OV75DVHD.js +10 -0
- package/dist/cli.js +30 -30
- package/dist/{formula-UZ52GCLC.cjs → formula-246A2T5B.cjs} +9 -9
- package/dist/{formula-UZ52GCLC.cjs.map → formula-246A2T5B.cjs.map} +1 -1
- package/dist/{formula-VKQA2725.js → formula-HO2NNWVN.js} +3 -3
- package/dist/{formula-VSCB3MH4.js → formula-SPMFPBGU.js} +4 -4
- package/dist/{image-ocr-VGCU4HVH.js → image-ocr-G2UUJPBI.js} +9 -9
- package/dist/{image-ocr-P5RHC2L3.js → image-ocr-WSRZMXYM.js} +6 -6
- package/dist/{image-ocr-PN3NFOXH.cjs → image-ocr-YRACG6TO.cjs} +17 -17
- package/dist/{image-ocr-PN3NFOXH.cjs.map → image-ocr-YRACG6TO.cjs.map} +1 -1
- package/dist/index.cjs +559 -470
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +105 -16
- package/dist/index.js.map +1 -1
- package/dist/mcp.js +22 -22
- package/dist/{model-bundle-WBD4F7F2.js → model-bundle-CJACYVVC.js} +5 -5
- package/dist/{models-K26273R4.js → models-HGIMOYGX.js} +5 -5
- package/dist/{parse-worker-v2-2VCHGYDP.js → parse-worker-v2-7GQJ5IGY.js} +12 -12
- package/dist/{parser-PNJE3RFH.js → parser-23M44GFD.js} +12 -12
- package/dist/{parser-KQNPM3WX.cjs → parser-Q3W25PYR.cjs} +157 -157
- package/dist/{parser-KQNPM3WX.cjs.map → parser-Q3W25PYR.cjs.map} +1 -1
- package/dist/{parser-EIPIIGFQ.js → parser-TW2QXVZR.js} +9 -9
- package/dist/{pdf-ocr-FMNWCHQ4.js → pdf-ocr-DHVUQ4H2.js} +9 -9
- package/dist/pdf-ocr-RAJ33NDH.cjs +31 -0
- package/dist/{pdf-ocr-AVP5KTGK.cjs.map → pdf-ocr-RAJ33NDH.cjs.map} +1 -1
- package/dist/{pdf-ocr-TCNOGBIK.js → pdf-ocr-RZR2VPQD.js} +6 -6
- package/dist/{profile-io-W325GOXE.js → profile-io-TP5LYMSB.js} +3 -3
- package/dist/{rasterize-6XYWTABU.js → rasterize-RENNLGB3.js} +3 -3
- package/dist/{redact-doc-KX7TI5ON.js → redact-doc-TRBUJ3EL.js} +11 -11
- package/dist/{render-AG5VVKE3.js → render-3X6FI2WM.js} +7 -7
- package/dist/seal-M5GYTAPE.js +10 -0
- package/dist/{setup-XTBRWZ7D.js → setup-F7JGWFDW.js} +3 -3
- package/dist/visual-PZRC23GE.js +21 -0
- package/dist/{watch-ZLJIZ6XU.js → watch-QYVW2AG6.js} +12 -12
- package/package.json +1 -1
- package/dist/chunk-37BDHFGX.cjs.map +0 -1
- package/dist/chunk-3DF57KEK.cjs.map +0 -1
- package/dist/chunk-6HSRXDZ7.js.map +0 -1
- package/dist/chunk-7IUHIM2F.js.map +0 -1
- package/dist/chunk-JTBKTYUJ.js.map +0 -1
- package/dist/chunk-NOGYQ7QQ.js.map +0 -1
- package/dist/chunk-Q3MCNMTJ.js.map +0 -1
- package/dist/chunk-UFQ2DEYM.js.map +0 -1
- package/dist/chunks-5BRSLKC7.js +0 -10
- package/dist/pdf-ocr-AVP5KTGK.cjs +0 -31
- package/dist/seal-ESKG2KMT.js +0 -10
- package/dist/visual-QTIPKQVD.js +0 -21
- /package/dist/{-BNRFT3K4.js.map → -V3MHVWUQ.js.map} +0 -0
- /package/dist/{chunk-A6TLFPDO.js.map → chunk-D7A5NKP3.js.map} +0 -0
- /package/dist/{chunk-FK3UNG3M.js.map → chunk-I6XE7VJQ.js.map} +0 -0
- /package/dist/{chunk-QSVBBIOO.js.map → chunk-JA4IIIEU.js.map} +0 -0
- /package/dist/{chunk-V6MEUROO.js.map → chunk-KZSDBXWS.js.map} +0 -0
- /package/dist/{chunk-E5KDXBB5.js.map → chunk-LM3PI43Q.js.map} +0 -0
- /package/dist/{chunk-6CHPX72J.js.map → chunk-ORFDIAP3.js.map} +0 -0
- /package/dist/{chunk-2VTIZIMO.js.map → chunk-OXVNNCQQ.js.map} +0 -0
- /package/dist/{chunk-RG5PQS5J.js.map → chunk-P53VOW4B.js.map} +0 -0
- /package/dist/{chunk-ZG4JVJYJ.js.map → chunk-P7UB5SMI.js.map} +0 -0
- /package/dist/{chunk-PLFDJC3I.js.map → chunk-RNBU6S2X.js.map} +0 -0
- /package/dist/{chunk-HE5VV2CM.js.map → chunk-TVCGPOCE.js.map} +0 -0
- /package/dist/{chunk-2VH7CAVX.js.map → chunk-V7BK7IKP.js.map} +0 -0
- /package/dist/{chunk-JCF5DM7D.js.map → chunk-VGRTUHAU.js.map} +0 -0
- /package/dist/{chunk-MYOUWFZQ.js.map → chunk-XZZ7WOCP.js.map} +0 -0
- /package/dist/{chunk-2PCMUSEB.js.map → chunk-YDAGUSKH.js.map} +0 -0
- /package/dist/{chunk-OWQSWIMU.js.map → chunk-Z5Z7HOER.js.map} +0 -0
- /package/dist/{chunks-5BRSLKC7.js.map → chunks-OV75DVHD.js.map} +0 -0
- /package/dist/{formula-VKQA2725.js.map → formula-HO2NNWVN.js.map} +0 -0
- /package/dist/{formula-VSCB3MH4.js.map → formula-SPMFPBGU.js.map} +0 -0
- /package/dist/{image-ocr-VGCU4HVH.js.map → image-ocr-G2UUJPBI.js.map} +0 -0
- /package/dist/{image-ocr-P5RHC2L3.js.map → image-ocr-WSRZMXYM.js.map} +0 -0
- /package/dist/{model-bundle-WBD4F7F2.js.map → model-bundle-CJACYVVC.js.map} +0 -0
- /package/dist/{models-K26273R4.js.map → models-HGIMOYGX.js.map} +0 -0
- /package/dist/{parse-worker-v2-2VCHGYDP.js.map → parse-worker-v2-7GQJ5IGY.js.map} +0 -0
- /package/dist/{parser-PNJE3RFH.js.map → parser-23M44GFD.js.map} +0 -0
- /package/dist/{parser-EIPIIGFQ.js.map → parser-TW2QXVZR.js.map} +0 -0
- /package/dist/{pdf-ocr-FMNWCHQ4.js.map → pdf-ocr-DHVUQ4H2.js.map} +0 -0
- /package/dist/{pdf-ocr-TCNOGBIK.js.map → pdf-ocr-RZR2VPQD.js.map} +0 -0
- /package/dist/{profile-io-W325GOXE.js.map → profile-io-TP5LYMSB.js.map} +0 -0
- /package/dist/{rasterize-6XYWTABU.js.map → rasterize-RENNLGB3.js.map} +0 -0
- /package/dist/{redact-doc-KX7TI5ON.js.map → redact-doc-TRBUJ3EL.js.map} +0 -0
- /package/dist/{render-AG5VVKE3.js.map → render-3X6FI2WM.js.map} +0 -0
- /package/dist/{seal-ESKG2KMT.js.map → seal-M5GYTAPE.js.map} +0 -0
- /package/dist/{setup-XTBRWZ7D.js.map → setup-F7JGWFDW.js.map} +0 -0
- /package/dist/{visual-QTIPKQVD.js.map → visual-PZRC23GE.js.map} +0 -0
- /package/dist/{watch-ZLJIZ6XU.js.map → watch-QYVW2AG6.js.map} +0 -0
package/dist/mcp.js
CHANGED
|
@@ -38,33 +38,33 @@ import {
|
|
|
38
38
|
resolveBuiltinTemplate,
|
|
39
39
|
unknownFontWarnings,
|
|
40
40
|
usesGaejosikMunche
|
|
41
|
-
} from "./chunk-
|
|
42
|
-
import "./chunk-
|
|
41
|
+
} from "./chunk-KZSDBXWS.js";
|
|
42
|
+
import "./chunk-JA4IIIEU.js";
|
|
43
43
|
import {
|
|
44
44
|
detectFormat,
|
|
45
45
|
detectOle2Format,
|
|
46
46
|
detectZipFormat,
|
|
47
47
|
extractHwp5MetadataOnly
|
|
48
|
-
} from "./chunk-
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
48
|
+
} from "./chunk-YBD5XGFC.js";
|
|
49
|
+
import "./chunk-TVCGPOCE.js";
|
|
50
|
+
import "./chunk-I6XE7VJQ.js";
|
|
51
51
|
import "./chunk-VKVDMH7X.js";
|
|
52
52
|
import "./chunk-VQFA55IC.js";
|
|
53
53
|
import "./chunk-BYMPPVT3.js";
|
|
54
|
-
import "./chunk-
|
|
54
|
+
import "./chunk-DUQJ7EBY.js";
|
|
55
55
|
import {
|
|
56
56
|
blocksToMarkdown
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-JNHUOGGQ.js";
|
|
58
58
|
import {
|
|
59
59
|
assertWithinRoot,
|
|
60
60
|
getAccessRoot,
|
|
61
61
|
isOfflineMode
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-LM3PI43Q.js";
|
|
63
63
|
import {
|
|
64
64
|
extractFormFields,
|
|
65
65
|
fillWithUniqueGuard
|
|
66
|
-
} from "./chunk-
|
|
67
|
-
import "./chunk-
|
|
66
|
+
} from "./chunk-P53VOW4B.js";
|
|
67
|
+
import "./chunk-GVRCO3KT.js";
|
|
68
68
|
import {
|
|
69
69
|
KordocError,
|
|
70
70
|
VERSION,
|
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
routeConsoleToStderr,
|
|
73
73
|
sanitizeError,
|
|
74
74
|
toArrayBuffer
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-D7A5NKP3.js";
|
|
76
76
|
import "./chunk-3WSNLH4B.js";
|
|
77
77
|
|
|
78
78
|
// src/mcp.ts
|
|
@@ -371,7 +371,7 @@ ${markdown}`);
|
|
|
371
371
|
break;
|
|
372
372
|
case "pdf":
|
|
373
373
|
try {
|
|
374
|
-
const { extractPdfMetadataOnly } = await import("./parser-
|
|
374
|
+
const { extractPdfMetadataOnly } = await import("./parser-23M44GFD.js");
|
|
375
375
|
metadata = await extractPdfMetadataOnly(buffer);
|
|
376
376
|
} catch {
|
|
377
377
|
metadata = void 0;
|
|
@@ -548,7 +548,7 @@ ${tableMarkdown}` }]
|
|
|
548
548
|
if (!parsed.success) {
|
|
549
549
|
return { content: [{ type: "text", text: `\uD30C\uC2F1 \uC2E4\uD328: ${parsed.error}` }], isError: true };
|
|
550
550
|
}
|
|
551
|
-
const { blocksToChunks } = await import("./chunks-
|
|
551
|
+
const { blocksToChunks } = await import("./chunks-OV75DVHD.js");
|
|
552
552
|
const chunks = blocksToChunks(parsed.blocks, { granularity, includeTableCells: include_table_cells });
|
|
553
553
|
return { content: [{ type: "text", text: capResponseText(JSON.stringify(chunks, null, 2)) }] };
|
|
554
554
|
} catch (err) {
|
|
@@ -818,7 +818,7 @@ ${previewMd}` }]
|
|
|
818
818
|
}
|
|
819
819
|
const image = new Uint8Array(await readFile2(imgResolved));
|
|
820
820
|
const ext = extname2(imgResolved).slice(1).toLowerCase();
|
|
821
|
-
const { placeSealHwpx } = await import("./seal-
|
|
821
|
+
const { placeSealHwpx } = await import("./seal-M5GYTAPE.js");
|
|
822
822
|
const result = await placeSealHwpx(buffer, [{
|
|
823
823
|
anchor,
|
|
824
824
|
occurrence,
|
|
@@ -935,7 +935,7 @@ ${previewMd}` }]
|
|
|
935
935
|
if (outPath && await isSameFile(outPath, resolved)) {
|
|
936
936
|
return { content: [{ type: "text", text: "output_path\uAC00 \uC785\uB825 \uD30C\uC77C\uACFC \uAC19\uC2B5\uB2C8\uB2E4 \u2014 \uC6D0\uBCF8\uC744 \uB36E\uC5B4\uC4F0\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. \uB2E4\uB978 \uACBD\uB85C\uB97C \uC9C0\uC815\uD558\uC138\uC694." }], isError: true };
|
|
937
937
|
}
|
|
938
|
-
const { redactDocument } = await import("./redact-doc-
|
|
938
|
+
const { redactDocument } = await import("./redact-doc-TRBUJ3EL.js");
|
|
939
939
|
const r = await redactDocument(buffer, { rules, maskChar: mask_char, filePath: file_path, dryRun: dry_run });
|
|
940
940
|
const MAX_LINES = 50;
|
|
941
941
|
const listed = r.fileHits.length > 0 ? r.fileHits.map((h) => ` - [${h.rule}] ${h.masked} (${h.where} @ ${h.part})`) : r.markdownHits.map((h) => ` - [${h.rule}] ${h.masked}`);
|
|
@@ -1009,7 +1009,7 @@ function registerRenderTools(server2) {
|
|
|
1009
1009
|
const { buffer, resolved } = await readValidatedFile(file_path, MAX_FILE_SIZE, /* @__PURE__ */ new Set([".hwpx", ".hwp"]));
|
|
1010
1010
|
const isHwp5 = resolved.toLowerCase().endsWith(".hwp");
|
|
1011
1011
|
if (!isHwp5 && !pages && (format === "png" || format === "svg")) {
|
|
1012
|
-
const { renderHwpxToSvg } = await import("./render-
|
|
1012
|
+
const { renderHwpxToSvg } = await import("./render-3X6FI2WM.js");
|
|
1013
1013
|
const result = await renderHwpxToSvg(buffer, { highlights, reflow: true, reflowMode: reflow_mode });
|
|
1014
1014
|
const summary2 = [
|
|
1015
1015
|
`\uB80C\uB354 \uC644\uB8CC: ${result.pageCount}\uD398\uC774\uC9C0, ${Math.round(result.width)}x${Math.round(result.height)}pt (\uD14D\uC2A4\uD2B8 ${result.stats.texts}\xB7\uC774\uBBF8\uC9C0 ${result.stats.images}\xB7\uD45C ${result.stats.tables})`,
|
|
@@ -1021,7 +1021,7 @@ function registerRenderTools(server2) {
|
|
|
1021
1021
|
summary2.push(`\uC800\uC7A5: ${outPath}`);
|
|
1022
1022
|
return { content: [{ type: "text", text: summary2.join("\n") }] };
|
|
1023
1023
|
}
|
|
1024
|
-
const { rasterizeSvg } = await import("./rasterize-
|
|
1024
|
+
const { rasterizeSvg } = await import("./rasterize-RENNLGB3.js");
|
|
1025
1025
|
const raster = await rasterizeSvg(result.svg, result.width, result.height, max_width_px ? { maxWidthPx: max_width_px } : void 0);
|
|
1026
1026
|
if (outPath) {
|
|
1027
1027
|
await mkdir2(dirname3(outPath), { recursive: true });
|
|
@@ -1036,7 +1036,7 @@ function registerRenderTools(server2) {
|
|
|
1036
1036
|
]
|
|
1037
1037
|
};
|
|
1038
1038
|
}
|
|
1039
|
-
const { renderDocument } = await import("./render-
|
|
1039
|
+
const { renderDocument } = await import("./render-3X6FI2WM.js");
|
|
1040
1040
|
const { scene, assets } = await renderDocument(buffer, { format, pages, highlights, reflow: true, reflowMode: reflow_mode, maxWidthPx: max_width_px });
|
|
1041
1041
|
const summary = [
|
|
1042
1042
|
`\uB80C\uB354 \uC644\uB8CC: \uBB38\uC11C ${scene.pages.length}\uD398\uC774\uC9C0 \uC911 ${assets.filter((a) => a.page !== void 0).length || 1}\uAC74 (\uD14D\uC2A4\uD2B8 ${scene.stats.texts}\xB7\uC774\uBBF8\uC9C0 ${scene.stats.images}\xB7\uD45C ${scene.stats.tables}\xB7\uB3C4\uD615 ${scene.stats.shapes})`,
|
|
@@ -1086,7 +1086,7 @@ function registerRenderTools(server2) {
|
|
|
1086
1086
|
try {
|
|
1087
1087
|
const { buffer } = await readValidatedFile(file_path, MAX_FILE_SIZE, /* @__PURE__ */ new Set([".hwpx", ".hwp"]));
|
|
1088
1088
|
const dir = safeOutputPath(join2(output_dir, "regions.json"), /* @__PURE__ */ new Set([".json"])).replace(/[\\/]regions\.json$/, "");
|
|
1089
|
-
const { extractRenderedRegions } = await import("./render-
|
|
1089
|
+
const { extractRenderedRegions } = await import("./render-3X6FI2WM.js");
|
|
1090
1090
|
const regions = await extractRenderedRegions(buffer, { types: target, format, pages, paddingPt: padding_pt, reflow: true });
|
|
1091
1091
|
await mkdir2(dir, { recursive: true });
|
|
1092
1092
|
const ext = format === "jpeg" ? "jpg" : "png";
|
|
@@ -1122,7 +1122,7 @@ function registerRenderTools(server2) {
|
|
|
1122
1122
|
}
|
|
1123
1123
|
const { buffer } = await readValidatedFile(file_path, MAX_FILE_SIZE, /* @__PURE__ */ new Set([".hwpx", ".hwp"]));
|
|
1124
1124
|
const dir = output_dir ? safeOutputPath(join2(output_dir, "tables.json"), /* @__PURE__ */ new Set([".json"])).replace(/[\\/]tables\.json$/, "") : void 0;
|
|
1125
|
-
const { extractTables } = await import("./visual-
|
|
1125
|
+
const { extractTables } = await import("./visual-PZRC23GE.js");
|
|
1126
1126
|
const tables = await extractTables(buffer, { policy: visual, format, paddingPt: padding_pt });
|
|
1127
1127
|
if (dir) await mkdir2(dir, { recursive: true });
|
|
1128
1128
|
const ext = format === "jpeg" ? "jpg" : "png";
|
|
@@ -1179,7 +1179,7 @@ function registerGenerateTools(server2) {
|
|
|
1179
1179
|
try {
|
|
1180
1180
|
const out = safeOutputPath(output_path, PROFILE_EXTENSIONS);
|
|
1181
1181
|
const { buffer } = await readValidatedFile(hwpx_path);
|
|
1182
|
-
const { hwpxToProfile } = await import("./-
|
|
1182
|
+
const { hwpxToProfile } = await import("./-V3MHVWUQ.js");
|
|
1183
1183
|
const profile = await hwpxToProfile(buffer);
|
|
1184
1184
|
await mkdir3(dirname4(out), { recursive: true });
|
|
1185
1185
|
await writeOutputFile(out, JSON.stringify(profile, null, 2));
|
|
@@ -1292,7 +1292,7 @@ function registerGenerateTools(server2) {
|
|
|
1292
1292
|
}
|
|
1293
1293
|
let profile;
|
|
1294
1294
|
if (profile_path) {
|
|
1295
|
-
const { parseFormatProfileJson } = await import("./profile-io-
|
|
1295
|
+
const { parseFormatProfileJson } = await import("./profile-io-TP5LYMSB.js");
|
|
1296
1296
|
profile = parseFormatProfileJson(await readFile3(safePath(profile_path, PROFILE_EXTENSIONS), "utf-8"));
|
|
1297
1297
|
}
|
|
1298
1298
|
const out = safeOutputPath(output_path, /* @__PURE__ */ new Set([".hwpx"]));
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
ALL_OCR_MODELS
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-YDAGUSKH.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-P7UB5SMI.js";
|
|
10
|
+
import "./chunk-LM3PI43Q.js";
|
|
11
|
+
import "./chunk-D7A5NKP3.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-CJACYVVC.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-YDAGUSKH.js";
|
|
21
|
+
import "./chunk-P7UB5SMI.js";
|
|
22
|
+
import "./chunk-LM3PI43Q.js";
|
|
23
|
+
import "./chunk-D7A5NKP3.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-HGIMOYGX.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-VGRTUHAU.js";
|
|
5
|
+
import "./chunk-KZSDBXWS.js";
|
|
6
|
+
import "./chunk-JA4IIIEU.js";
|
|
7
|
+
import "./chunk-YBD5XGFC.js";
|
|
8
|
+
import "./chunk-TVCGPOCE.js";
|
|
9
|
+
import "./chunk-I6XE7VJQ.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-DUQJ7EBY.js";
|
|
16
|
+
import "./chunk-JNHUOGGQ.js";
|
|
17
|
+
import "./chunk-P53VOW4B.js";
|
|
18
|
+
import "./chunk-GVRCO3KT.js";
|
|
19
19
|
import {
|
|
20
20
|
VERSION,
|
|
21
21
|
sanitizeError
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-D7A5NKP3.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-7GQJ5IGY.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
blocksToPages
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-I6XE7VJQ.js";
|
|
5
5
|
import {
|
|
6
6
|
encodePng
|
|
7
7
|
} from "./chunk-VKVDMH7X.js";
|
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
stripAbsorbedRunningLines,
|
|
63
63
|
trimTrailingEmptyTableCols,
|
|
64
64
|
wrapJoiner
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-4OMXOT6T.js";
|
|
66
66
|
import {
|
|
67
67
|
validateOcrOptions
|
|
68
68
|
} from "./chunk-BYMPPVT3.js";
|
|
@@ -74,7 +74,7 @@ import {
|
|
|
74
74
|
escapeLiteralTags,
|
|
75
75
|
stripScriptTags,
|
|
76
76
|
unframeLayoutTables
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-DUQJ7EBY.js";
|
|
78
78
|
import {
|
|
79
79
|
WINGDINGS,
|
|
80
80
|
assignTableIds,
|
|
@@ -83,17 +83,17 @@ import {
|
|
|
83
83
|
escapeLiteralDollar,
|
|
84
84
|
mapPuaText,
|
|
85
85
|
pairedNumber
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-JNHUOGGQ.js";
|
|
87
87
|
import {
|
|
88
88
|
ocrModelsCached,
|
|
89
89
|
resolveOcrModels
|
|
90
|
-
} from "./chunk-
|
|
91
|
-
import "./chunk-
|
|
92
|
-
import "./chunk-
|
|
90
|
+
} from "./chunk-YDAGUSKH.js";
|
|
91
|
+
import "./chunk-P7UB5SMI.js";
|
|
92
|
+
import "./chunk-LM3PI43Q.js";
|
|
93
93
|
import {
|
|
94
94
|
KordocError,
|
|
95
95
|
sanitizeHref
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-D7A5NKP3.js";
|
|
97
97
|
|
|
98
98
|
// src/pdf/image-extract.ts
|
|
99
99
|
import { createHash } from "crypto";
|
|
@@ -4013,7 +4013,7 @@ function mergeLinkRuns(markdown) {
|
|
|
4013
4013
|
|
|
4014
4014
|
// src/pdf/formula-ocr.ts
|
|
4015
4015
|
async function applyFormulaOcr(buffer, blocks, pageFilter, effectivePageCount, warnings, _onProgress) {
|
|
4016
|
-
const formulaMod = await import("./formula-
|
|
4016
|
+
const formulaMod = await import("./formula-SPMFPBGU.js");
|
|
4017
4017
|
const { FormulaPipeline, ensureFormulaModels } = formulaMod;
|
|
4018
4018
|
await ensureFormulaModels((p) => {
|
|
4019
4019
|
if (p.phase === "download" && p.total) {
|
|
@@ -4440,10 +4440,10 @@ async function parsePdfDocument(buffer, options) {
|
|
|
4440
4440
|
}
|
|
4441
4441
|
if (targets.size > 0) {
|
|
4442
4442
|
try {
|
|
4443
|
-
const { runPdfOcr } = await import("./pdf-ocr-
|
|
4443
|
+
const { runPdfOcr } = await import("./pdf-ocr-DHVUQ4H2.js");
|
|
4444
4444
|
const mode = typeof options?.ocr === "function" ? options.ocr : "builtin";
|
|
4445
4445
|
const regionPages = new Map([...ocrRegions].filter(([p]) => options?.ocr !== "force" && !isImageBased && !pageQuality.find((q) => q.page === p)?.needsOcr));
|
|
4446
|
-
const { builtinOcrConfig } = await import("./pdf-ocr-
|
|
4446
|
+
const { builtinOcrConfig } = await import("./pdf-ocr-DHVUQ4H2.js");
|
|
4447
4447
|
const ocrPageBlocks = await runPdfOcr(ocrBuffer, targets, mode, warnings, options?.onProgress, options?.tables !== false, vectorPageOps, regionPages, builtinOcrConfig(options), ocrLinesOut);
|
|
4448
4448
|
for (const obs of ocrPageBlocks.values()) stripScriptTags({ blocks: obs });
|
|
4449
4449
|
if (ocrPageBlocks.size > 0) {
|
|
@@ -4688,4 +4688,4 @@ export {
|
|
|
4688
4688
|
parsePdfDocument,
|
|
4689
4689
|
removeHeaderFooterBlocks
|
|
4690
4690
|
};
|
|
4691
|
-
//# sourceMappingURL=parser-
|
|
4691
|
+
//# sourceMappingURL=parser-23M44GFD.js.map
|