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.
Files changed (127) hide show
  1. package/README.md +7 -7
  2. package/dist/{-NBCZTPBD.js → -CCZTES5C.js} +11 -11
  3. package/dist/{chunk-XWWQGSEP.js → chunk-4EVUCAW5.js} +2 -2
  4. package/dist/{chunk-VPKZB6Y7.cjs → chunk-4ZNM7XRW.cjs} +6 -6
  5. package/dist/{chunk-VPKZB6Y7.cjs.map → chunk-4ZNM7XRW.cjs.map} +1 -1
  6. package/dist/{chunk-XGESPSWE.cjs → chunk-6KQWC2KN.cjs} +3 -3
  7. package/dist/{chunk-XGESPSWE.cjs.map → chunk-6KQWC2KN.cjs.map} +1 -1
  8. package/dist/{chunk-QW2H2HHS.js → chunk-6WEHXC2D.js} +315 -6
  9. package/dist/chunk-6WEHXC2D.js.map +1 -0
  10. package/dist/{chunk-PUHBCAXI.js → chunk-7Y4MVNYA.js} +11 -11
  11. package/dist/{chunk-CKOCIQU6.js → chunk-7YCKDE5X.js} +2 -2
  12. package/dist/{chunk-FJ3IKKDV.js → chunk-DULJ7PPP.js} +315 -6
  13. package/dist/chunk-DULJ7PPP.js.map +1 -0
  14. package/dist/{chunk-KTXDK5A6.js → chunk-E5H5WHJH.js} +2 -2
  15. package/dist/{chunk-A232MW5F.js → chunk-EY3PT2X7.js} +2 -2
  16. package/dist/{chunk-W52B6GOE.cjs → chunk-GDE4YE2P.cjs} +3 -3
  17. package/dist/{chunk-W52B6GOE.cjs.map → chunk-GDE4YE2P.cjs.map} +1 -1
  18. package/dist/{chunk-UVQOPGOA.js → chunk-GZ3BY2LV.js} +14 -9
  19. package/dist/chunk-GZ3BY2LV.js.map +1 -0
  20. package/dist/{chunk-ZUMOEVMV.js → chunk-HZFYPOBJ.js} +3 -3
  21. package/dist/{chunk-OVQWOOS3.js → chunk-IGLRJCO6.js} +2 -2
  22. package/dist/{chunk-A4CYMI55.js → chunk-K37LMDT5.js} +2 -2
  23. package/dist/{chunk-X2E5QCKO.js → chunk-KMSLXG5F.js} +2 -2
  24. package/dist/{chunk-DMPX4KLC.js → chunk-KOHEEPQV.js} +2 -2
  25. package/dist/{chunk-37MTSMUF.js → chunk-MTAQVHCB.js} +2 -2
  26. package/dist/{chunk-2H2VYPM2.cjs → chunk-OICA67AT.cjs} +2 -2
  27. package/dist/{chunk-2H2VYPM2.cjs.map → chunk-OICA67AT.cjs.map} +1 -1
  28. package/dist/{chunk-QAGPSWGH.js → chunk-PCHGHLUP.js} +2 -2
  29. package/dist/{chunk-BC4LVU4D.js → chunk-SLHWOJNZ.js} +2 -2
  30. package/dist/{chunk-ZSCDH3NU.js → chunk-T7MDUY5X.js} +2 -2
  31. package/dist/{chunk-QVEAR6IR.js → chunk-UGO3UFXX.js} +48 -7
  32. package/dist/chunk-UGO3UFXX.js.map +1 -0
  33. package/dist/{chunk-WAWREGAC.js → chunk-UV2ZS65C.js} +2 -2
  34. package/dist/{chunk-4I2CKMKU.js → chunk-VNB2IKVA.js} +3 -3
  35. package/dist/{chunk-IQGXY63Y.js → chunk-VSYLST4K.js} +49 -8
  36. package/dist/chunk-VSYLST4K.js.map +1 -0
  37. package/dist/{chunk-QZ2H4ZTO.cjs → chunk-X2XZXDBZ.cjs} +390 -81
  38. package/dist/chunk-X2XZXDBZ.cjs.map +1 -0
  39. package/dist/{chunk-WOVJRXIA.js → chunk-XW7L76FE.js} +2 -2
  40. package/dist/{chunk-BJBPBU5B.js → chunk-Y3VNNGB2.js} +2 -2
  41. package/dist/{chunk-U2VAABMK.cjs → chunk-YAK4U7CC.cjs} +194 -153
  42. package/dist/chunk-YAK4U7CC.cjs.map +1 -0
  43. package/dist/chunks-74SE5QB2.js +10 -0
  44. package/dist/cli.js +30 -30
  45. package/dist/{formula-WFL6JRCR.js → formula-54IFKOYU.js} +3 -3
  46. package/dist/{formula-M4FM364X.js → formula-EW7XLBSA.js} +4 -4
  47. package/dist/{formula-ZKZGV6JV.cjs → formula-Q4MFVPEO.cjs} +9 -9
  48. package/dist/{formula-ZKZGV6JV.cjs.map → formula-Q4MFVPEO.cjs.map} +1 -1
  49. package/dist/{image-ocr-47CBNIS5.js → image-ocr-GWF2XELH.js} +9 -9
  50. package/dist/{image-ocr-YJISJPKE.js → image-ocr-I7UGQZF5.js} +6 -6
  51. package/dist/{image-ocr-2V3M3ZEA.cjs → image-ocr-OGJ6A3ML.cjs} +17 -17
  52. package/dist/{image-ocr-2V3M3ZEA.cjs.map → image-ocr-OGJ6A3ML.cjs.map} +1 -1
  53. package/dist/index.cjs +368 -363
  54. package/dist/index.cjs.map +1 -1
  55. package/dist/index.js +14 -9
  56. package/dist/index.js.map +1 -1
  57. package/dist/mcp.js +23 -23
  58. package/dist/{model-bundle-7W344HDI.js → model-bundle-43YHGZCC.js} +5 -5
  59. package/dist/{models-TBHMNI7M.js → models-O3NS6OPX.js} +5 -5
  60. package/dist/{parse-worker-v2-JUYUEXCY.js → parse-worker-v2-OXW3CQOW.js} +12 -12
  61. package/dist/{parser-RNJ4KSDF.js → parser-B3RVTCOY.js} +9 -9
  62. package/dist/{parser-R44KTBZX.cjs → parser-FMVOWRG4.cjs} +159 -159
  63. package/dist/{parser-R44KTBZX.cjs.map → parser-FMVOWRG4.cjs.map} +1 -1
  64. package/dist/{parser-EKQCZLML.js → parser-H6OY6UWW.js} +12 -12
  65. package/dist/pdf-ocr-5Z6GDYBQ.cjs +35 -0
  66. package/dist/{pdf-ocr-74BOCXAT.cjs.map → pdf-ocr-5Z6GDYBQ.cjs.map} +1 -1
  67. package/dist/{pdf-ocr-ZAF4P74R.js → pdf-ocr-NE6Y4I6O.js} +6 -6
  68. package/dist/{pdf-ocr-EE5KGFVX.js → pdf-ocr-QHW74LO6.js} +9 -9
  69. package/dist/{profile-io-RU3RVIYV.js → profile-io-2IOYOBGP.js} +3 -3
  70. package/dist/{rasterize-UNCPM26D.js → rasterize-ZLPDGEZY.js} +3 -3
  71. package/dist/{redact-doc-BFE4UZCY.js → redact-doc-CDFM5S7S.js} +11 -11
  72. package/dist/{render-3DXTLKIA.js → render-VXAEYSJA.js} +7 -7
  73. package/dist/seal-YSBFBEXC.js +10 -0
  74. package/dist/{setup-7POQAKDG.js → setup-CBWVQJID.js} +3 -3
  75. package/dist/visual-MJVIFZHH.js +21 -0
  76. package/dist/{watch-37YCXJWW.js → watch-2SA3CTRT.js} +12 -12
  77. package/package.json +1 -1
  78. package/dist/chunk-FJ3IKKDV.js.map +0 -1
  79. package/dist/chunk-IQGXY63Y.js.map +0 -1
  80. package/dist/chunk-QVEAR6IR.js.map +0 -1
  81. package/dist/chunk-QW2H2HHS.js.map +0 -1
  82. package/dist/chunk-QZ2H4ZTO.cjs.map +0 -1
  83. package/dist/chunk-U2VAABMK.cjs.map +0 -1
  84. package/dist/chunk-UVQOPGOA.js.map +0 -1
  85. package/dist/chunks-IXFBIZPW.js +0 -10
  86. package/dist/pdf-ocr-74BOCXAT.cjs +0 -35
  87. package/dist/seal-3LBTETDG.js +0 -10
  88. package/dist/visual-7SVIGIJC.js +0 -21
  89. /package/dist/{-NBCZTPBD.js.map → -CCZTES5C.js.map} +0 -0
  90. /package/dist/{chunk-XWWQGSEP.js.map → chunk-4EVUCAW5.js.map} +0 -0
  91. /package/dist/{chunk-PUHBCAXI.js.map → chunk-7Y4MVNYA.js.map} +0 -0
  92. /package/dist/{chunk-CKOCIQU6.js.map → chunk-7YCKDE5X.js.map} +0 -0
  93. /package/dist/{chunk-KTXDK5A6.js.map → chunk-E5H5WHJH.js.map} +0 -0
  94. /package/dist/{chunk-A232MW5F.js.map → chunk-EY3PT2X7.js.map} +0 -0
  95. /package/dist/{chunk-ZUMOEVMV.js.map → chunk-HZFYPOBJ.js.map} +0 -0
  96. /package/dist/{chunk-OVQWOOS3.js.map → chunk-IGLRJCO6.js.map} +0 -0
  97. /package/dist/{chunk-A4CYMI55.js.map → chunk-K37LMDT5.js.map} +0 -0
  98. /package/dist/{chunk-X2E5QCKO.js.map → chunk-KMSLXG5F.js.map} +0 -0
  99. /package/dist/{chunk-DMPX4KLC.js.map → chunk-KOHEEPQV.js.map} +0 -0
  100. /package/dist/{chunk-37MTSMUF.js.map → chunk-MTAQVHCB.js.map} +0 -0
  101. /package/dist/{chunk-QAGPSWGH.js.map → chunk-PCHGHLUP.js.map} +0 -0
  102. /package/dist/{chunk-BC4LVU4D.js.map → chunk-SLHWOJNZ.js.map} +0 -0
  103. /package/dist/{chunk-ZSCDH3NU.js.map → chunk-T7MDUY5X.js.map} +0 -0
  104. /package/dist/{chunk-WAWREGAC.js.map → chunk-UV2ZS65C.js.map} +0 -0
  105. /package/dist/{chunk-4I2CKMKU.js.map → chunk-VNB2IKVA.js.map} +0 -0
  106. /package/dist/{chunk-WOVJRXIA.js.map → chunk-XW7L76FE.js.map} +0 -0
  107. /package/dist/{chunk-BJBPBU5B.js.map → chunk-Y3VNNGB2.js.map} +0 -0
  108. /package/dist/{chunks-IXFBIZPW.js.map → chunks-74SE5QB2.js.map} +0 -0
  109. /package/dist/{formula-WFL6JRCR.js.map → formula-54IFKOYU.js.map} +0 -0
  110. /package/dist/{formula-M4FM364X.js.map → formula-EW7XLBSA.js.map} +0 -0
  111. /package/dist/{image-ocr-47CBNIS5.js.map → image-ocr-GWF2XELH.js.map} +0 -0
  112. /package/dist/{image-ocr-YJISJPKE.js.map → image-ocr-I7UGQZF5.js.map} +0 -0
  113. /package/dist/{model-bundle-7W344HDI.js.map → model-bundle-43YHGZCC.js.map} +0 -0
  114. /package/dist/{models-TBHMNI7M.js.map → models-O3NS6OPX.js.map} +0 -0
  115. /package/dist/{parse-worker-v2-JUYUEXCY.js.map → parse-worker-v2-OXW3CQOW.js.map} +0 -0
  116. /package/dist/{parser-RNJ4KSDF.js.map → parser-B3RVTCOY.js.map} +0 -0
  117. /package/dist/{parser-EKQCZLML.js.map → parser-H6OY6UWW.js.map} +0 -0
  118. /package/dist/{pdf-ocr-EE5KGFVX.js.map → pdf-ocr-NE6Y4I6O.js.map} +0 -0
  119. /package/dist/{pdf-ocr-ZAF4P74R.js.map → pdf-ocr-QHW74LO6.js.map} +0 -0
  120. /package/dist/{profile-io-RU3RVIYV.js.map → profile-io-2IOYOBGP.js.map} +0 -0
  121. /package/dist/{rasterize-UNCPM26D.js.map → rasterize-ZLPDGEZY.js.map} +0 -0
  122. /package/dist/{redact-doc-BFE4UZCY.js.map → redact-doc-CDFM5S7S.js.map} +0 -0
  123. /package/dist/{render-3DXTLKIA.js.map → render-VXAEYSJA.js.map} +0 -0
  124. /package/dist/{seal-3LBTETDG.js.map → seal-YSBFBEXC.js.map} +0 -0
  125. /package/dist/{setup-7POQAKDG.js.map → setup-CBWVQJID.js.map} +0 -0
  126. /package/dist/{visual-7SVIGIJC.js.map → visual-MJVIFZHH.js.map} +0 -0
  127. /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-PUHBCAXI.js";
57
- import "./chunk-WOVJRXIA.js";
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-UVQOPGOA.js";
64
- import "./chunk-KTXDK5A6.js";
65
- import "./chunk-37MTSMUF.js";
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-CKOCIQU6.js";
69
+ import "./chunk-7YCKDE5X.js";
70
70
  import {
71
71
  blocksToMarkdown
72
- } from "./chunk-DMPX4KLC.js";
72
+ } from "./chunk-KOHEEPQV.js";
73
73
  import {
74
74
  assertWithinRoot,
75
75
  getAccessRoot,
76
76
  isOfflineMode
77
- } from "./chunk-ZSCDH3NU.js";
77
+ } from "./chunk-T7MDUY5X.js";
78
78
  import {
79
79
  extractFormFields,
80
80
  fillWithUniqueGuard
81
- } from "./chunk-ZUMOEVMV.js";
82
- import "./chunk-XWWQGSEP.js";
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-WAWREGAC.js";
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-EKQCZLML.js");
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-IXFBIZPW.js");
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-3LBTETDG.js");
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-BFE4UZCY.js");
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-3DXTLKIA.js");
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-UNCPM26D.js");
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-3DXTLKIA.js");
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-3DXTLKIA.js");
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-7SVIGIJC.js");
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("./-NBCZTPBD.js");
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-RU3RVIYV.js");
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("./-NBCZTPBD.js");
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-A4CYMI55.js";
4
+ } from "./chunk-K37LMDT5.js";
5
5
  import {
6
6
  ALL_FORMULA_MODELS,
7
7
  getModelStatusIn,
8
8
  getModelsDir
9
- } from "./chunk-BC4LVU4D.js";
10
- import "./chunk-ZSCDH3NU.js";
11
- import "./chunk-WAWREGAC.js";
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-7W344HDI.js.map
104
+ //# sourceMappingURL=model-bundle-43YHGZCC.js.map
@@ -17,10 +17,10 @@ import {
17
17
  ocrSourcePath,
18
18
  parseCharacterDict,
19
19
  resolveOcrModels
20
- } from "./chunk-A4CYMI55.js";
21
- import "./chunk-BC4LVU4D.js";
22
- import "./chunk-ZSCDH3NU.js";
23
- import "./chunk-WAWREGAC.js";
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-TBHMNI7M.js.map
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-4I2CKMKU.js";
4
+ } from "./chunk-VNB2IKVA.js";
5
5
  import {
6
6
  PRESET_ALIAS,
7
7
  lintBlocks
8
- } from "./chunk-PUHBCAXI.js";
9
- import "./chunk-WOVJRXIA.js";
10
- import "./chunk-UVQOPGOA.js";
11
- import "./chunk-KTXDK5A6.js";
12
- import "./chunk-37MTSMUF.js";
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-CKOCIQU6.js";
19
- import "./chunk-DMPX4KLC.js";
20
- import "./chunk-ZUMOEVMV.js";
21
- import "./chunk-XWWQGSEP.js";
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-WAWREGAC.js";
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-JUYUEXCY.js.map
357
+ //# sourceMappingURL=parse-worker-v2-OXW3CQOW.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  blocksToPages,
3
3
  encodePng
4
- } from "./chunk-A232MW5F.js";
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-IQGXY63Y.js";
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-BJBPBU5B.js";
83
- import "./chunk-QAGPSWGH.js";
82
+ } from "./chunk-Y3VNNGB2.js";
83
+ import "./chunk-PCHGHLUP.js";
84
84
  import {
85
85
  KordocError,
86
86
  sanitizeHref
87
- } from "./chunk-OVQWOOS3.js";
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-WFL6JRCR.js");
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-ZAF4P74R.js");
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-ZAF4P74R.js");
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-RNJ4KSDF.js.map
4818
+ //# sourceMappingURL=parser-B3RVTCOY.js.map