kordoc 4.24.13 → 4.24.15
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 -7
- package/dist/{-NBCZTPBD.js → -CCZTES5C.js} +11 -11
- package/dist/{chunk-XWWQGSEP.js → chunk-4EVUCAW5.js} +2 -2
- package/dist/{chunk-VPKZB6Y7.cjs → chunk-4ZNM7XRW.cjs} +6 -6
- package/dist/{chunk-VPKZB6Y7.cjs.map → chunk-4ZNM7XRW.cjs.map} +1 -1
- package/dist/{chunk-XGESPSWE.cjs → chunk-6KQWC2KN.cjs} +3 -3
- package/dist/{chunk-XGESPSWE.cjs.map → chunk-6KQWC2KN.cjs.map} +1 -1
- package/dist/{chunk-QW2H2HHS.js → chunk-6WEHXC2D.js} +315 -6
- package/dist/chunk-6WEHXC2D.js.map +1 -0
- package/dist/{chunk-PUHBCAXI.js → chunk-7Y4MVNYA.js} +11 -11
- package/dist/{chunk-CKOCIQU6.js → chunk-7YCKDE5X.js} +2 -2
- package/dist/{chunk-FJ3IKKDV.js → chunk-DULJ7PPP.js} +315 -6
- package/dist/chunk-DULJ7PPP.js.map +1 -0
- package/dist/{chunk-KTXDK5A6.js → chunk-E5H5WHJH.js} +2 -2
- package/dist/{chunk-A232MW5F.js → chunk-EY3PT2X7.js} +2 -2
- package/dist/{chunk-W52B6GOE.cjs → chunk-GDE4YE2P.cjs} +3 -3
- package/dist/{chunk-W52B6GOE.cjs.map → chunk-GDE4YE2P.cjs.map} +1 -1
- package/dist/{chunk-UVQOPGOA.js → chunk-GZ3BY2LV.js} +14 -9
- package/dist/chunk-GZ3BY2LV.js.map +1 -0
- package/dist/{chunk-ZUMOEVMV.js → chunk-HZFYPOBJ.js} +3 -3
- package/dist/{chunk-OVQWOOS3.js → chunk-IGLRJCO6.js} +2 -2
- package/dist/{chunk-A4CYMI55.js → chunk-K37LMDT5.js} +2 -2
- package/dist/{chunk-X2E5QCKO.js → chunk-KMSLXG5F.js} +2 -2
- package/dist/{chunk-DMPX4KLC.js → chunk-KOHEEPQV.js} +2 -2
- package/dist/{chunk-37MTSMUF.js → chunk-MTAQVHCB.js} +2 -2
- package/dist/{chunk-2H2VYPM2.cjs → chunk-OICA67AT.cjs} +2 -2
- package/dist/{chunk-2H2VYPM2.cjs.map → chunk-OICA67AT.cjs.map} +1 -1
- package/dist/{chunk-QAGPSWGH.js → chunk-PCHGHLUP.js} +2 -2
- package/dist/{chunk-BC4LVU4D.js → chunk-SLHWOJNZ.js} +2 -2
- package/dist/{chunk-ZSCDH3NU.js → chunk-T7MDUY5X.js} +2 -2
- package/dist/{chunk-QVEAR6IR.js → chunk-UGO3UFXX.js} +48 -7
- package/dist/chunk-UGO3UFXX.js.map +1 -0
- package/dist/{chunk-WAWREGAC.js → chunk-UV2ZS65C.js} +2 -2
- package/dist/{chunk-4I2CKMKU.js → chunk-VNB2IKVA.js} +3 -3
- package/dist/{chunk-IQGXY63Y.js → chunk-VSYLST4K.js} +49 -8
- package/dist/chunk-VSYLST4K.js.map +1 -0
- package/dist/{chunk-QZ2H4ZTO.cjs → chunk-X2XZXDBZ.cjs} +390 -81
- package/dist/chunk-X2XZXDBZ.cjs.map +1 -0
- package/dist/{chunk-WOVJRXIA.js → chunk-XW7L76FE.js} +2 -2
- package/dist/{chunk-BJBPBU5B.js → chunk-Y3VNNGB2.js} +2 -2
- package/dist/{chunk-U2VAABMK.cjs → chunk-YAK4U7CC.cjs} +194 -153
- package/dist/chunk-YAK4U7CC.cjs.map +1 -0
- package/dist/chunks-74SE5QB2.js +10 -0
- package/dist/cli.js +30 -30
- package/dist/{formula-WFL6JRCR.js → formula-54IFKOYU.js} +3 -3
- package/dist/{formula-M4FM364X.js → formula-EW7XLBSA.js} +4 -4
- package/dist/{formula-ZKZGV6JV.cjs → formula-Q4MFVPEO.cjs} +9 -9
- package/dist/{formula-ZKZGV6JV.cjs.map → formula-Q4MFVPEO.cjs.map} +1 -1
- package/dist/{image-ocr-47CBNIS5.js → image-ocr-GWF2XELH.js} +9 -9
- package/dist/{image-ocr-YJISJPKE.js → image-ocr-I7UGQZF5.js} +6 -6
- package/dist/{image-ocr-2V3M3ZEA.cjs → image-ocr-OGJ6A3ML.cjs} +17 -17
- package/dist/{image-ocr-2V3M3ZEA.cjs.map → image-ocr-OGJ6A3ML.cjs.map} +1 -1
- package/dist/index.cjs +368 -363
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +14 -9
- package/dist/index.js.map +1 -1
- package/dist/mcp.js +23 -23
- package/dist/{model-bundle-7W344HDI.js → model-bundle-43YHGZCC.js} +5 -5
- package/dist/{models-TBHMNI7M.js → models-O3NS6OPX.js} +5 -5
- package/dist/{parse-worker-v2-JUYUEXCY.js → parse-worker-v2-OXW3CQOW.js} +12 -12
- package/dist/{parser-RNJ4KSDF.js → parser-B3RVTCOY.js} +9 -9
- package/dist/{parser-R44KTBZX.cjs → parser-FMVOWRG4.cjs} +159 -159
- package/dist/{parser-R44KTBZX.cjs.map → parser-FMVOWRG4.cjs.map} +1 -1
- package/dist/{parser-EKQCZLML.js → parser-H6OY6UWW.js} +12 -12
- package/dist/pdf-ocr-5Z6GDYBQ.cjs +35 -0
- package/dist/{pdf-ocr-74BOCXAT.cjs.map → pdf-ocr-5Z6GDYBQ.cjs.map} +1 -1
- package/dist/{pdf-ocr-ZAF4P74R.js → pdf-ocr-NE6Y4I6O.js} +6 -6
- package/dist/{pdf-ocr-EE5KGFVX.js → pdf-ocr-QHW74LO6.js} +9 -9
- package/dist/{profile-io-RU3RVIYV.js → profile-io-2IOYOBGP.js} +3 -3
- package/dist/{rasterize-UNCPM26D.js → rasterize-ZLPDGEZY.js} +3 -3
- package/dist/{redact-doc-BFE4UZCY.js → redact-doc-CDFM5S7S.js} +11 -11
- package/dist/{render-3DXTLKIA.js → render-VXAEYSJA.js} +7 -7
- package/dist/seal-YSBFBEXC.js +10 -0
- package/dist/{setup-7POQAKDG.js → setup-CBWVQJID.js} +3 -3
- package/dist/visual-MJVIFZHH.js +21 -0
- package/dist/{watch-37YCXJWW.js → watch-2SA3CTRT.js} +12 -12
- package/package.json +1 -1
- package/dist/chunk-FJ3IKKDV.js.map +0 -1
- package/dist/chunk-IQGXY63Y.js.map +0 -1
- package/dist/chunk-QVEAR6IR.js.map +0 -1
- package/dist/chunk-QW2H2HHS.js.map +0 -1
- package/dist/chunk-QZ2H4ZTO.cjs.map +0 -1
- package/dist/chunk-U2VAABMK.cjs.map +0 -1
- package/dist/chunk-UVQOPGOA.js.map +0 -1
- package/dist/chunks-IXFBIZPW.js +0 -10
- package/dist/pdf-ocr-74BOCXAT.cjs +0 -35
- package/dist/seal-3LBTETDG.js +0 -10
- package/dist/visual-7SVIGIJC.js +0 -21
- /package/dist/{-NBCZTPBD.js.map → -CCZTES5C.js.map} +0 -0
- /package/dist/{chunk-XWWQGSEP.js.map → chunk-4EVUCAW5.js.map} +0 -0
- /package/dist/{chunk-PUHBCAXI.js.map → chunk-7Y4MVNYA.js.map} +0 -0
- /package/dist/{chunk-CKOCIQU6.js.map → chunk-7YCKDE5X.js.map} +0 -0
- /package/dist/{chunk-KTXDK5A6.js.map → chunk-E5H5WHJH.js.map} +0 -0
- /package/dist/{chunk-A232MW5F.js.map → chunk-EY3PT2X7.js.map} +0 -0
- /package/dist/{chunk-ZUMOEVMV.js.map → chunk-HZFYPOBJ.js.map} +0 -0
- /package/dist/{chunk-OVQWOOS3.js.map → chunk-IGLRJCO6.js.map} +0 -0
- /package/dist/{chunk-A4CYMI55.js.map → chunk-K37LMDT5.js.map} +0 -0
- /package/dist/{chunk-X2E5QCKO.js.map → chunk-KMSLXG5F.js.map} +0 -0
- /package/dist/{chunk-DMPX4KLC.js.map → chunk-KOHEEPQV.js.map} +0 -0
- /package/dist/{chunk-37MTSMUF.js.map → chunk-MTAQVHCB.js.map} +0 -0
- /package/dist/{chunk-QAGPSWGH.js.map → chunk-PCHGHLUP.js.map} +0 -0
- /package/dist/{chunk-BC4LVU4D.js.map → chunk-SLHWOJNZ.js.map} +0 -0
- /package/dist/{chunk-ZSCDH3NU.js.map → chunk-T7MDUY5X.js.map} +0 -0
- /package/dist/{chunk-WAWREGAC.js.map → chunk-UV2ZS65C.js.map} +0 -0
- /package/dist/{chunk-4I2CKMKU.js.map → chunk-VNB2IKVA.js.map} +0 -0
- /package/dist/{chunk-WOVJRXIA.js.map → chunk-XW7L76FE.js.map} +0 -0
- /package/dist/{chunk-BJBPBU5B.js.map → chunk-Y3VNNGB2.js.map} +0 -0
- /package/dist/{chunks-IXFBIZPW.js.map → chunks-74SE5QB2.js.map} +0 -0
- /package/dist/{formula-WFL6JRCR.js.map → formula-54IFKOYU.js.map} +0 -0
- /package/dist/{formula-M4FM364X.js.map → formula-EW7XLBSA.js.map} +0 -0
- /package/dist/{image-ocr-47CBNIS5.js.map → image-ocr-GWF2XELH.js.map} +0 -0
- /package/dist/{image-ocr-YJISJPKE.js.map → image-ocr-I7UGQZF5.js.map} +0 -0
- /package/dist/{model-bundle-7W344HDI.js.map → model-bundle-43YHGZCC.js.map} +0 -0
- /package/dist/{models-TBHMNI7M.js.map → models-O3NS6OPX.js.map} +0 -0
- /package/dist/{parse-worker-v2-JUYUEXCY.js.map → parse-worker-v2-OXW3CQOW.js.map} +0 -0
- /package/dist/{parser-RNJ4KSDF.js.map → parser-B3RVTCOY.js.map} +0 -0
- /package/dist/{parser-EKQCZLML.js.map → parser-H6OY6UWW.js.map} +0 -0
- /package/dist/{pdf-ocr-EE5KGFVX.js.map → pdf-ocr-NE6Y4I6O.js.map} +0 -0
- /package/dist/{pdf-ocr-ZAF4P74R.js.map → pdf-ocr-QHW74LO6.js.map} +0 -0
- /package/dist/{profile-io-RU3RVIYV.js.map → profile-io-2IOYOBGP.js.map} +0 -0
- /package/dist/{rasterize-UNCPM26D.js.map → rasterize-ZLPDGEZY.js.map} +0 -0
- /package/dist/{redact-doc-BFE4UZCY.js.map → redact-doc-CDFM5S7S.js.map} +0 -0
- /package/dist/{render-3DXTLKIA.js.map → render-VXAEYSJA.js.map} +0 -0
- /package/dist/{seal-3LBTETDG.js.map → seal-YSBFBEXC.js.map} +0 -0
- /package/dist/{setup-7POQAKDG.js.map → setup-CBWVQJID.js.map} +0 -0
- /package/dist/{visual-7SVIGIJC.js.map → visual-MJVIFZHH.js.map} +0 -0
- /package/dist/{watch-37YCXJWW.js.map → watch-2SA3CTRT.js.map} +0 -0
package/dist/mcp.js
CHANGED
|
@@ -53,33 +53,33 @@ import {
|
|
|
53
53
|
unknownFontWarnings,
|
|
54
54
|
usesGaejosikMunche,
|
|
55
55
|
usesLogicStructure
|
|
56
|
-
} from "./chunk-
|
|
57
|
-
import "./chunk-
|
|
56
|
+
} from "./chunk-7Y4MVNYA.js";
|
|
57
|
+
import "./chunk-XW7L76FE.js";
|
|
58
58
|
import {
|
|
59
59
|
detectFormat,
|
|
60
60
|
detectOle2Format,
|
|
61
61
|
detectZipFormat,
|
|
62
62
|
extractHwp5MetadataOnly
|
|
63
|
-
} from "./chunk-
|
|
64
|
-
import "./chunk-
|
|
65
|
-
import "./chunk-
|
|
63
|
+
} from "./chunk-GZ3BY2LV.js";
|
|
64
|
+
import "./chunk-E5H5WHJH.js";
|
|
65
|
+
import "./chunk-MTAQVHCB.js";
|
|
66
66
|
import "./chunk-VKVDMH7X.js";
|
|
67
67
|
import "./chunk-VQFA55IC.js";
|
|
68
68
|
import "./chunk-BYMPPVT3.js";
|
|
69
|
-
import "./chunk-
|
|
69
|
+
import "./chunk-7YCKDE5X.js";
|
|
70
70
|
import {
|
|
71
71
|
blocksToMarkdown
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-KOHEEPQV.js";
|
|
73
73
|
import {
|
|
74
74
|
assertWithinRoot,
|
|
75
75
|
getAccessRoot,
|
|
76
76
|
isOfflineMode
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-T7MDUY5X.js";
|
|
78
78
|
import {
|
|
79
79
|
extractFormFields,
|
|
80
80
|
fillWithUniqueGuard
|
|
81
|
-
} from "./chunk-
|
|
82
|
-
import "./chunk-
|
|
81
|
+
} from "./chunk-HZFYPOBJ.js";
|
|
82
|
+
import "./chunk-4EVUCAW5.js";
|
|
83
83
|
import {
|
|
84
84
|
KordocError,
|
|
85
85
|
VERSION,
|
|
@@ -87,7 +87,7 @@ import {
|
|
|
87
87
|
routeConsoleToStderr,
|
|
88
88
|
sanitizeError,
|
|
89
89
|
toArrayBuffer
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-UV2ZS65C.js";
|
|
91
91
|
import "./chunk-3WSNLH4B.js";
|
|
92
92
|
|
|
93
93
|
// src/mcp.ts
|
|
@@ -402,7 +402,7 @@ ${markdown}`);
|
|
|
402
402
|
break;
|
|
403
403
|
case "pdf":
|
|
404
404
|
try {
|
|
405
|
-
const { extractPdfMetadataOnly } = await import("./parser-
|
|
405
|
+
const { extractPdfMetadataOnly } = await import("./parser-H6OY6UWW.js");
|
|
406
406
|
metadata = await extractPdfMetadataOnly(buffer);
|
|
407
407
|
} catch {
|
|
408
408
|
metadata = void 0;
|
|
@@ -579,7 +579,7 @@ ${tableMarkdown}` }]
|
|
|
579
579
|
if (!parsed.success) {
|
|
580
580
|
return { content: [{ type: "text", text: `\uD30C\uC2F1 \uC2E4\uD328: ${parsed.error}` }], isError: true };
|
|
581
581
|
}
|
|
582
|
-
const { blocksToChunks } = await import("./chunks-
|
|
582
|
+
const { blocksToChunks } = await import("./chunks-74SE5QB2.js");
|
|
583
583
|
const chunks = blocksToChunks(parsed.blocks, { granularity, includeTableCells: include_table_cells });
|
|
584
584
|
return { content: [{ type: "text", text: capResponseText(JSON.stringify(chunks, null, 2)) }] };
|
|
585
585
|
} catch (err) {
|
|
@@ -840,7 +840,7 @@ ${previewMd}` }]
|
|
|
840
840
|
}
|
|
841
841
|
const image = new Uint8Array(await readFile2(imgResolved));
|
|
842
842
|
const ext = extname2(imgResolved).slice(1).toLowerCase();
|
|
843
|
-
const { placeSealHwpx } = await import("./seal-
|
|
843
|
+
const { placeSealHwpx } = await import("./seal-YSBFBEXC.js");
|
|
844
844
|
const result = await placeSealHwpx(buffer, [{
|
|
845
845
|
anchor,
|
|
846
846
|
occurrence,
|
|
@@ -959,7 +959,7 @@ ${previewMd}` }]
|
|
|
959
959
|
if (outPath && await isSameFile(outPath, resolved)) {
|
|
960
960
|
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 };
|
|
961
961
|
}
|
|
962
|
-
const { redactDocument } = await import("./redact-doc-
|
|
962
|
+
const { redactDocument } = await import("./redact-doc-CDFM5S7S.js");
|
|
963
963
|
const r = await redactDocument(buffer, { rules, maskChar: mask_char, filePath: file_path, dryRun: dry_run });
|
|
964
964
|
const MAX_LINES = 50;
|
|
965
965
|
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}`);
|
|
@@ -1033,7 +1033,7 @@ function registerRenderTools(server2) {
|
|
|
1033
1033
|
const { buffer, resolved } = await readValidatedFile(file_path, MAX_FILE_SIZE, /* @__PURE__ */ new Set([".hwpx", ".hwp"]));
|
|
1034
1034
|
const isHwp5 = resolved.toLowerCase().endsWith(".hwp");
|
|
1035
1035
|
if (!isHwp5 && !pages && (format === "png" || format === "svg")) {
|
|
1036
|
-
const { renderHwpxToSvg } = await import("./render-
|
|
1036
|
+
const { renderHwpxToSvg } = await import("./render-VXAEYSJA.js");
|
|
1037
1037
|
const result = await renderHwpxToSvg(buffer, { highlights, reflow: true, reflowMode: reflow_mode });
|
|
1038
1038
|
const summary2 = [
|
|
1039
1039
|
`\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})`,
|
|
@@ -1045,7 +1045,7 @@ function registerRenderTools(server2) {
|
|
|
1045
1045
|
summary2.push(`\uC800\uC7A5: ${outPath}`);
|
|
1046
1046
|
return { content: [{ type: "text", text: summary2.join("\n") }] };
|
|
1047
1047
|
}
|
|
1048
|
-
const { rasterizeSvg } = await import("./rasterize-
|
|
1048
|
+
const { rasterizeSvg } = await import("./rasterize-ZLPDGEZY.js");
|
|
1049
1049
|
const raster = await rasterizeSvg(result.svg, result.width, result.height, max_width_px ? { maxWidthPx: max_width_px } : void 0);
|
|
1050
1050
|
if (outPath) {
|
|
1051
1051
|
await mkdir2(dirname3(outPath), { recursive: true });
|
|
@@ -1060,7 +1060,7 @@ function registerRenderTools(server2) {
|
|
|
1060
1060
|
]
|
|
1061
1061
|
};
|
|
1062
1062
|
}
|
|
1063
|
-
const { renderDocument } = await import("./render-
|
|
1063
|
+
const { renderDocument } = await import("./render-VXAEYSJA.js");
|
|
1064
1064
|
const { scene, assets } = await renderDocument(buffer, { format, pages, highlights, reflow: true, reflowMode: reflow_mode, maxWidthPx: max_width_px });
|
|
1065
1065
|
const summary = [
|
|
1066
1066
|
`\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})`,
|
|
@@ -1110,7 +1110,7 @@ function registerRenderTools(server2) {
|
|
|
1110
1110
|
try {
|
|
1111
1111
|
const { buffer } = await readValidatedFile(file_path, MAX_FILE_SIZE, /* @__PURE__ */ new Set([".hwpx", ".hwp"]));
|
|
1112
1112
|
const dir = safeOutputPath(join2(output_dir, "regions.json"), /* @__PURE__ */ new Set([".json"])).replace(/[\\/]regions\.json$/, "");
|
|
1113
|
-
const { extractRenderedRegions } = await import("./render-
|
|
1113
|
+
const { extractRenderedRegions } = await import("./render-VXAEYSJA.js");
|
|
1114
1114
|
const regions = await extractRenderedRegions(buffer, { types: target, format, pages, paddingPt: padding_pt, reflow: true });
|
|
1115
1115
|
await mkdir2(dir, { recursive: true });
|
|
1116
1116
|
const ext = format === "jpeg" ? "jpg" : "png";
|
|
@@ -1146,7 +1146,7 @@ function registerRenderTools(server2) {
|
|
|
1146
1146
|
}
|
|
1147
1147
|
const { buffer } = await readValidatedFile(file_path, MAX_FILE_SIZE, /* @__PURE__ */ new Set([".hwpx", ".hwp"]));
|
|
1148
1148
|
const dir = output_dir ? safeOutputPath(join2(output_dir, "tables.json"), /* @__PURE__ */ new Set([".json"])).replace(/[\\/]tables\.json$/, "") : void 0;
|
|
1149
|
-
const { extractTables } = await import("./visual-
|
|
1149
|
+
const { extractTables } = await import("./visual-MJVIFZHH.js");
|
|
1150
1150
|
const tables = await extractTables(buffer, { policy: visual, format, paddingPt: padding_pt });
|
|
1151
1151
|
if (dir) await mkdir2(dir, { recursive: true });
|
|
1152
1152
|
const ext = format === "jpeg" ? "jpg" : "png";
|
|
@@ -1203,7 +1203,7 @@ function registerGenerateTools(server2) {
|
|
|
1203
1203
|
try {
|
|
1204
1204
|
const out = safeOutputPath(output_path, PROFILE_EXTENSIONS);
|
|
1205
1205
|
const { buffer } = await readValidatedFile(hwpx_path);
|
|
1206
|
-
const { hwpxToProfile } = await import("./-
|
|
1206
|
+
const { hwpxToProfile } = await import("./-CCZTES5C.js");
|
|
1207
1207
|
const profile = await hwpxToProfile(buffer);
|
|
1208
1208
|
await mkdir3(dirname4(out), { recursive: true });
|
|
1209
1209
|
await writeOutputFile(out, JSON.stringify(profile, null, 2));
|
|
@@ -1356,7 +1356,7 @@ ${g.blocking.map((f) => `- ${formatGateFinding(f)}`).join("\n")}` }],
|
|
|
1356
1356
|
}
|
|
1357
1357
|
let profile;
|
|
1358
1358
|
if (profile_path) {
|
|
1359
|
-
const { parseFormatProfileJson } = await import("./profile-io-
|
|
1359
|
+
const { parseFormatProfileJson } = await import("./profile-io-2IOYOBGP.js");
|
|
1360
1360
|
profile = parseFormatProfileJson(await readFile3(safePath(profile_path, PROFILE_EXTENSIONS), "utf-8"));
|
|
1361
1361
|
}
|
|
1362
1362
|
const out = safeOutputPath(output_path, /* @__PURE__ */ new Set([".hwpx"]));
|
|
@@ -1507,7 +1507,7 @@ function registerLintTools(server2) {
|
|
|
1507
1507
|
let irBlocks;
|
|
1508
1508
|
if (file_path !== void 0) {
|
|
1509
1509
|
const { buffer, resolved } = await readValidatedFile(file_path, MAX_FILE_SIZE, ALLOWED_EXTENSIONS);
|
|
1510
|
-
const { parse: parse2 } = await import("./-
|
|
1510
|
+
const { parse: parse2 } = await import("./-CCZTES5C.js");
|
|
1511
1511
|
const parsed = await parse2(buffer, { filePath: resolved });
|
|
1512
1512
|
if (!parsed.success) throw new KordocError(`\uBB38\uC11C\uB97C \uC77D\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4 \u2014 ${parsed.error}`);
|
|
1513
1513
|
body = parsed.markdown;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
ALL_OCR_MODELS
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-K37LMDT5.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-SLHWOJNZ.js";
|
|
10
|
+
import "./chunk-T7MDUY5X.js";
|
|
11
|
+
import "./chunk-UV2ZS65C.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-43YHGZCC.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-K37LMDT5.js";
|
|
21
|
+
import "./chunk-SLHWOJNZ.js";
|
|
22
|
+
import "./chunk-T7MDUY5X.js";
|
|
23
|
+
import "./chunk-UV2ZS65C.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-O3NS6OPX.js.map
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
parseWorkerFile
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-VNB2IKVA.js";
|
|
5
5
|
import {
|
|
6
6
|
PRESET_ALIAS,
|
|
7
7
|
lintBlocks
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-7Y4MVNYA.js";
|
|
9
|
+
import "./chunk-XW7L76FE.js";
|
|
10
|
+
import "./chunk-GZ3BY2LV.js";
|
|
11
|
+
import "./chunk-E5H5WHJH.js";
|
|
12
|
+
import "./chunk-MTAQVHCB.js";
|
|
13
13
|
import "./chunk-VKVDMH7X.js";
|
|
14
14
|
import "./chunk-VQFA55IC.js";
|
|
15
15
|
import {
|
|
16
16
|
validateOcrOptions
|
|
17
17
|
} from "./chunk-BYMPPVT3.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-7YCKDE5X.js";
|
|
19
|
+
import "./chunk-KOHEEPQV.js";
|
|
20
|
+
import "./chunk-HZFYPOBJ.js";
|
|
21
|
+
import "./chunk-4EVUCAW5.js";
|
|
22
22
|
import {
|
|
23
23
|
VERSION,
|
|
24
24
|
sanitizeError
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-UV2ZS65C.js";
|
|
26
26
|
import "./chunk-3WSNLH4B.js";
|
|
27
27
|
|
|
28
28
|
// src/cli/parse-worker-v2.ts
|
|
@@ -354,4 +354,4 @@ export {
|
|
|
354
354
|
runParseWorkerV2,
|
|
355
355
|
toParseOptions
|
|
356
356
|
};
|
|
357
|
-
//# sourceMappingURL=parse-worker-v2-
|
|
357
|
+
//# sourceMappingURL=parse-worker-v2-OXW3CQOW.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
blocksToPages,
|
|
3
3
|
encodePng
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-EY3PT2X7.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-VSYLST4K.js";
|
|
65
65
|
import {
|
|
66
66
|
CELL_BASELINES,
|
|
67
67
|
CELL_EDGES,
|
|
@@ -79,12 +79,12 @@ import {
|
|
|
79
79
|
toTex,
|
|
80
80
|
unframeLayoutTables,
|
|
81
81
|
validateOcrOptions
|
|
82
|
-
} from "./chunk-
|
|
83
|
-
import "./chunk-
|
|
82
|
+
} from "./chunk-Y3VNNGB2.js";
|
|
83
|
+
import "./chunk-PCHGHLUP.js";
|
|
84
84
|
import {
|
|
85
85
|
KordocError,
|
|
86
86
|
sanitizeHref
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-IGLRJCO6.js";
|
|
88
88
|
|
|
89
89
|
// src/pdf/image-extract.ts
|
|
90
90
|
import { createHash } from "crypto";
|
|
@@ -4137,7 +4137,7 @@ function mergeLinkRuns(markdown) {
|
|
|
4137
4137
|
|
|
4138
4138
|
// src/pdf/formula-ocr.ts
|
|
4139
4139
|
async function applyFormulaOcr(buffer, blocks, pageFilter, effectivePageCount, warnings, _onProgress) {
|
|
4140
|
-
const formulaMod = await import("./formula-
|
|
4140
|
+
const formulaMod = await import("./formula-54IFKOYU.js");
|
|
4141
4141
|
const { FormulaPipeline, ensureFormulaModels } = formulaMod;
|
|
4142
4142
|
await ensureFormulaModels((p) => {
|
|
4143
4143
|
if (p.phase === "download" && p.total) {
|
|
@@ -4567,10 +4567,10 @@ async function parsePdfDocument(buffer, options) {
|
|
|
4567
4567
|
}
|
|
4568
4568
|
if (targets.size > 0) {
|
|
4569
4569
|
try {
|
|
4570
|
-
const { runPdfOcr } = await import("./pdf-ocr-
|
|
4570
|
+
const { runPdfOcr } = await import("./pdf-ocr-NE6Y4I6O.js");
|
|
4571
4571
|
const mode = typeof options?.ocr === "function" ? options.ocr : "builtin";
|
|
4572
4572
|
const regionPages = new Map([...ocrRegions].filter(([p]) => options?.ocr !== "force" && !isImageBased && !pageQuality.find((q) => q.page === p)?.needsOcr));
|
|
4573
|
-
const { builtinOcrConfig } = await import("./pdf-ocr-
|
|
4573
|
+
const { builtinOcrConfig } = await import("./pdf-ocr-NE6Y4I6O.js");
|
|
4574
4574
|
const ocrPageBlocks = await runPdfOcr(ocrBuffer, targets, mode, warnings, options?.onProgress, options?.tables !== false, vectorPageOps, regionPages, builtinOcrConfig(options), ocrLinesOut);
|
|
4575
4575
|
for (const obs of ocrPageBlocks.values()) stripScriptTags({ blocks: obs });
|
|
4576
4576
|
if (ocrPageBlocks.size > 0) {
|
|
@@ -4815,4 +4815,4 @@ export {
|
|
|
4815
4815
|
parsePdfDocument,
|
|
4816
4816
|
removeHeaderFooterBlocks
|
|
4817
4817
|
};
|
|
4818
|
-
//# sourceMappingURL=parser-
|
|
4818
|
+
//# sourceMappingURL=parser-B3RVTCOY.js.map
|