kordoc 4.18.12 → 4.18.13

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 (119) hide show
  1. package/README.md +2 -2
  2. package/dist/{-WZOQMDES.js → -DC2OO5KO.js} +11 -11
  3. package/dist/{chunk-GZAYV2SV.js → chunk-32ZUIHSY.js} +3 -3
  4. package/dist/{chunk-OB3GPKKZ.cjs → chunk-3FGHQWJP.cjs} +38 -24
  5. package/dist/chunk-3FGHQWJP.cjs.map +1 -0
  6. package/dist/{chunk-PTWSL4FG.js → chunk-6AYTYTFY.js} +3 -3
  7. package/dist/{chunk-A7VXXIRT.cjs → chunk-6CQZMVXW.cjs} +3 -3
  8. package/dist/{chunk-A7VXXIRT.cjs.map → chunk-6CQZMVXW.cjs.map} +1 -1
  9. package/dist/{chunk-5WLN2JNN.cjs → chunk-6FW3AZWN.cjs} +6 -6
  10. package/dist/{chunk-5WLN2JNN.cjs.map → chunk-6FW3AZWN.cjs.map} +1 -1
  11. package/dist/{chunk-A72XCFET.js → chunk-7LOD4IGO.js} +4 -4
  12. package/dist/{chunk-PTLYGMNQ.js → chunk-DHEUQXXR.js} +2 -2
  13. package/dist/{chunk-APPUKIPQ.js → chunk-EBXJ45VZ.js} +2 -2
  14. package/dist/{chunk-XRVJ7UHC.js → chunk-EZSWBHHI.js} +2 -2
  15. package/dist/{chunk-GGX5AA2L.cjs → chunk-GGMIPTM5.cjs} +12 -12
  16. package/dist/{chunk-GGX5AA2L.cjs.map → chunk-GGMIPTM5.cjs.map} +1 -1
  17. package/dist/{chunk-XM2ZOOEW.js → chunk-GSW7W7AL.js} +2 -2
  18. package/dist/{chunk-T3AJHRWN.js → chunk-GUH6HYSZ.js} +10 -10
  19. package/dist/{chunk-G2PGKJUH.js → chunk-INESPVEV.js} +19 -5
  20. package/dist/chunk-INESPVEV.js.map +1 -0
  21. package/dist/{chunk-M7CCB6J3.js → chunk-IRN5SDY2.js} +2 -2
  22. package/dist/{chunk-CXNMHMPS.js → chunk-ISC2TH24.js} +2 -2
  23. package/dist/{chunk-MFA3TJWM.js → chunk-JKHU7HID.js} +2 -2
  24. package/dist/{chunk-FWLSXLDC.js → chunk-JPSLMPFI.js} +2 -2
  25. package/dist/{chunk-QYT3XW2J.js → chunk-JWTZ3OVZ.js} +2 -2
  26. package/dist/{chunk-2CMRR7SH.cjs → chunk-K6WSMTVU.cjs} +2 -2
  27. package/dist/{chunk-2CMRR7SH.cjs.map → chunk-K6WSMTVU.cjs.map} +1 -1
  28. package/dist/{chunk-MXCQIXGJ.js → chunk-LKA7Z2NH.js} +2 -2
  29. package/dist/{chunk-A2B5AYXD.js → chunk-PHMWSWHJ.js} +2 -2
  30. package/dist/{chunk-5V4XXKGX.js → chunk-PN5WWW56.js} +2 -2
  31. package/dist/{chunk-XRJRZCJA.cjs → chunk-RQEDNI4P.cjs} +3 -3
  32. package/dist/{chunk-XRJRZCJA.cjs.map → chunk-RQEDNI4P.cjs.map} +1 -1
  33. package/dist/{chunk-4SKWUNN7.js → chunk-SVIOP7PE.js} +6 -6
  34. package/dist/{chunk-4RVCC5YD.js → chunk-V7LKQNC4.js} +2 -2
  35. package/dist/{chunk-C7P6EZHR.js → chunk-VDEENOPW.js} +2 -2
  36. package/dist/{chunk-R2NGHNS3.js → chunk-XVB3PUPJ.js} +2 -2
  37. package/dist/{chunk-IRTDNELH.js → chunk-ZNY5BRV6.js} +20 -6
  38. package/dist/chunk-ZNY5BRV6.js.map +1 -0
  39. package/dist/chunks-JZW2TXIZ.js +10 -0
  40. package/dist/cli.js +26 -26
  41. package/dist/{formula-7FODYMWG.js → formula-DAMFHLQO.js} +3 -3
  42. package/dist/{formula-CAUZGR3C.cjs → formula-HJNQGPRC.cjs} +9 -9
  43. package/dist/{formula-CAUZGR3C.cjs.map → formula-HJNQGPRC.cjs.map} +1 -1
  44. package/dist/{formula-VWCF7AV5.js → formula-YCAO5IVW.js} +4 -4
  45. package/dist/{image-ocr-YLTHT7IE.cjs → image-ocr-AZ25IOC7.cjs} +15 -15
  46. package/dist/{image-ocr-YLTHT7IE.cjs.map → image-ocr-AZ25IOC7.cjs.map} +1 -1
  47. package/dist/{image-ocr-UOAHUR4Y.js → image-ocr-PAF76DAW.js} +9 -9
  48. package/dist/{image-ocr-LFMD7GFW.js → image-ocr-VH54SDZ7.js} +6 -6
  49. package/dist/index.cjs +277 -277
  50. package/dist/index.js +5 -5
  51. package/dist/mcp.js +22 -22
  52. package/dist/{model-bundle-IRGZNITZ.js → model-bundle-53CHDYCG.js} +5 -5
  53. package/dist/{models-QLW4GG62.js → models-UVLAKK3M.js} +5 -5
  54. package/dist/{parser-MOZDJZHH.cjs → parser-HWAOPQYK.cjs} +126 -126
  55. package/dist/{parser-MOZDJZHH.cjs.map → parser-HWAOPQYK.cjs.map} +1 -1
  56. package/dist/{parser-KPWQK4CU.js → parser-I4D3TRGU.js} +11 -11
  57. package/dist/{parser-VDZTRLXN.js → parser-Z6PHB54O.js} +8 -8
  58. package/dist/pdf-ocr-F4ICXO7W.js +20 -0
  59. package/dist/pdf-ocr-HR6CXGTX.cjs +17 -0
  60. package/dist/{pdf-ocr-IDZQ2KUS.cjs.map → pdf-ocr-HR6CXGTX.cjs.map} +1 -1
  61. package/dist/pdf-ocr-JI3K7JIN.js +16 -0
  62. package/dist/{profile-io-UJWTARCU.js → profile-io-WHCWCOPW.js} +3 -3
  63. package/dist/{rasterize-2FB766KD.js → rasterize-5DZ3DHGH.js} +3 -3
  64. package/dist/{redact-doc-J6U6WWKD.js → redact-doc-RNJVMFGQ.js} +11 -11
  65. package/dist/{render-CCIUMRLV.js → render-NZ6RA6SW.js} +7 -7
  66. package/dist/seal-WHJ6O5HT.js +10 -0
  67. package/dist/{setup-EEMGK6BR.js → setup-U3EQNK4Z.js} +3 -3
  68. package/dist/visual-JDAS4R43.js +20 -0
  69. package/dist/{watch-6I73YNFW.js → watch-GB2M7XU6.js} +12 -12
  70. package/package.json +1 -1
  71. package/dist/chunk-G2PGKJUH.js.map +0 -1
  72. package/dist/chunk-IRTDNELH.js.map +0 -1
  73. package/dist/chunk-OB3GPKKZ.cjs.map +0 -1
  74. package/dist/chunks-UQYMW7PG.js +0 -10
  75. package/dist/pdf-ocr-7MEF7NN4.js +0 -16
  76. package/dist/pdf-ocr-GO7BGPHA.js +0 -20
  77. package/dist/pdf-ocr-IDZQ2KUS.cjs +0 -17
  78. package/dist/seal-NKE6UTJL.js +0 -10
  79. package/dist/visual-6K3FOUEP.js +0 -20
  80. /package/dist/{-WZOQMDES.js.map → -DC2OO5KO.js.map} +0 -0
  81. /package/dist/{chunk-GZAYV2SV.js.map → chunk-32ZUIHSY.js.map} +0 -0
  82. /package/dist/{chunk-PTWSL4FG.js.map → chunk-6AYTYTFY.js.map} +0 -0
  83. /package/dist/{chunk-A72XCFET.js.map → chunk-7LOD4IGO.js.map} +0 -0
  84. /package/dist/{chunk-PTLYGMNQ.js.map → chunk-DHEUQXXR.js.map} +0 -0
  85. /package/dist/{chunk-APPUKIPQ.js.map → chunk-EBXJ45VZ.js.map} +0 -0
  86. /package/dist/{chunk-XRVJ7UHC.js.map → chunk-EZSWBHHI.js.map} +0 -0
  87. /package/dist/{chunk-XM2ZOOEW.js.map → chunk-GSW7W7AL.js.map} +0 -0
  88. /package/dist/{chunk-T3AJHRWN.js.map → chunk-GUH6HYSZ.js.map} +0 -0
  89. /package/dist/{chunk-M7CCB6J3.js.map → chunk-IRN5SDY2.js.map} +0 -0
  90. /package/dist/{chunk-CXNMHMPS.js.map → chunk-ISC2TH24.js.map} +0 -0
  91. /package/dist/{chunk-MFA3TJWM.js.map → chunk-JKHU7HID.js.map} +0 -0
  92. /package/dist/{chunk-FWLSXLDC.js.map → chunk-JPSLMPFI.js.map} +0 -0
  93. /package/dist/{chunk-QYT3XW2J.js.map → chunk-JWTZ3OVZ.js.map} +0 -0
  94. /package/dist/{chunk-MXCQIXGJ.js.map → chunk-LKA7Z2NH.js.map} +0 -0
  95. /package/dist/{chunk-A2B5AYXD.js.map → chunk-PHMWSWHJ.js.map} +0 -0
  96. /package/dist/{chunk-5V4XXKGX.js.map → chunk-PN5WWW56.js.map} +0 -0
  97. /package/dist/{chunk-4SKWUNN7.js.map → chunk-SVIOP7PE.js.map} +0 -0
  98. /package/dist/{chunk-4RVCC5YD.js.map → chunk-V7LKQNC4.js.map} +0 -0
  99. /package/dist/{chunk-C7P6EZHR.js.map → chunk-VDEENOPW.js.map} +0 -0
  100. /package/dist/{chunk-R2NGHNS3.js.map → chunk-XVB3PUPJ.js.map} +0 -0
  101. /package/dist/{chunks-UQYMW7PG.js.map → chunks-JZW2TXIZ.js.map} +0 -0
  102. /package/dist/{formula-7FODYMWG.js.map → formula-DAMFHLQO.js.map} +0 -0
  103. /package/dist/{formula-VWCF7AV5.js.map → formula-YCAO5IVW.js.map} +0 -0
  104. /package/dist/{image-ocr-UOAHUR4Y.js.map → image-ocr-PAF76DAW.js.map} +0 -0
  105. /package/dist/{image-ocr-LFMD7GFW.js.map → image-ocr-VH54SDZ7.js.map} +0 -0
  106. /package/dist/{model-bundle-IRGZNITZ.js.map → model-bundle-53CHDYCG.js.map} +0 -0
  107. /package/dist/{models-QLW4GG62.js.map → models-UVLAKK3M.js.map} +0 -0
  108. /package/dist/{parser-KPWQK4CU.js.map → parser-I4D3TRGU.js.map} +0 -0
  109. /package/dist/{parser-VDZTRLXN.js.map → parser-Z6PHB54O.js.map} +0 -0
  110. /package/dist/{pdf-ocr-7MEF7NN4.js.map → pdf-ocr-F4ICXO7W.js.map} +0 -0
  111. /package/dist/{pdf-ocr-GO7BGPHA.js.map → pdf-ocr-JI3K7JIN.js.map} +0 -0
  112. /package/dist/{profile-io-UJWTARCU.js.map → profile-io-WHCWCOPW.js.map} +0 -0
  113. /package/dist/{rasterize-2FB766KD.js.map → rasterize-5DZ3DHGH.js.map} +0 -0
  114. /package/dist/{redact-doc-J6U6WWKD.js.map → redact-doc-RNJVMFGQ.js.map} +0 -0
  115. /package/dist/{render-CCIUMRLV.js.map → render-NZ6RA6SW.js.map} +0 -0
  116. /package/dist/{seal-NKE6UTJL.js.map → seal-WHJ6O5HT.js.map} +0 -0
  117. /package/dist/{setup-EEMGK6BR.js.map → setup-U3EQNK4Z.js.map} +0 -0
  118. /package/dist/{visual-6K3FOUEP.js.map → visual-JDAS4R43.js.map} +0 -0
  119. /package/dist/{watch-6I73YNFW.js.map → watch-GB2M7XU6.js.map} +0 -0
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  blocksToPages,
3
3
  inlineImagesIntoMarkdown
4
- } from "./chunk-C7P6EZHR.js";
4
+ } from "./chunk-VDEENOPW.js";
5
5
  import {
6
6
  parsePageRange
7
7
  } from "./chunk-V4BH5SRQ.js";
@@ -31,7 +31,7 @@ import {
31
31
  tidyScriptTags,
32
32
  unframeLayoutTables,
33
33
  wrapScript
34
- } from "./chunk-FWLSXLDC.js";
34
+ } from "./chunk-JPSLMPFI.js";
35
35
  import {
36
36
  KordocError,
37
37
  OPTIONAL_DEP_INSTALL_HINT,
@@ -49,7 +49,7 @@ import {
49
49
  toArrayBuffer,
50
50
  unescapeHtml,
51
51
  unzipLimitBytes
52
- } from "./chunk-APPUKIPQ.js";
52
+ } from "./chunk-EBXJ45VZ.js";
53
53
 
54
54
  // src/plain-markdown.ts
55
55
  function toPlainMarkdown(md2) {
@@ -41634,7 +41634,7 @@ function scriptsOff(r, off) {
41634
41634
  }
41635
41635
  async function parseImage(buffer, options) {
41636
41636
  try {
41637
- const { parseImageDocument } = await import("./image-ocr-LFMD7GFW.js");
41637
+ const { parseImageDocument } = await import("./image-ocr-VH54SDZ7.js");
41638
41638
  const { blocks, warnings } = await parseImageDocument(buffer, options);
41639
41639
  stripScriptTags({ blocks });
41640
41640
  return {
@@ -41694,7 +41694,7 @@ async function parseHwp(buffer, options) {
41694
41694
  async function parsePdf(buffer, options) {
41695
41695
  let parsePdfDocument;
41696
41696
  try {
41697
- const mod = await import("./parser-VDZTRLXN.js");
41697
+ const mod = await import("./parser-Z6PHB54O.js");
41698
41698
  parsePdfDocument = mod.parsePdfDocument;
41699
41699
  } catch {
41700
41700
  return {
package/dist/mcp.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  assertWithinRoot,
4
4
  getAccessRoot,
5
5
  isOfflineMode
6
- } from "./chunk-CXNMHMPS.js";
6
+ } from "./chunk-ISC2TH24.js";
7
7
  import {
8
8
  APPROVAL_MAX,
9
9
  BODY_FONTS,
@@ -43,25 +43,25 @@ import {
43
43
  resolveBuiltinTemplate,
44
44
  unknownFontWarnings,
45
45
  usesGaejosikMunche
46
- } from "./chunk-T3AJHRWN.js";
47
- import "./chunk-4RVCC5YD.js";
48
- import "./chunk-PTWSL4FG.js";
46
+ } from "./chunk-GUH6HYSZ.js";
47
+ import "./chunk-V7LKQNC4.js";
48
+ import "./chunk-6AYTYTFY.js";
49
49
  import "./chunk-3WSNLH4B.js";
50
- import "./chunk-XM2ZOOEW.js";
50
+ import "./chunk-GSW7W7AL.js";
51
51
  import {
52
52
  detectFormat,
53
53
  detectOle2Format,
54
54
  detectZipFormat,
55
55
  extractHwp5MetadataOnly
56
- } from "./chunk-4SKWUNN7.js";
56
+ } from "./chunk-SVIOP7PE.js";
57
57
  import "./chunk-7FCNOKOR.js";
58
- import "./chunk-R2NGHNS3.js";
58
+ import "./chunk-XVB3PUPJ.js";
59
59
  import "./chunk-VQFA55IC.js";
60
- import "./chunk-PTLYGMNQ.js";
60
+ import "./chunk-DHEUQXXR.js";
61
61
  import {
62
62
  blocksToMarkdown
63
- } from "./chunk-MFA3TJWM.js";
64
- import "./chunk-M7CCB6J3.js";
63
+ } from "./chunk-JKHU7HID.js";
64
+ import "./chunk-IRN5SDY2.js";
65
65
  import {
66
66
  KordocError,
67
67
  VERSION,
@@ -69,7 +69,7 @@ import {
69
69
  routeConsoleToStderr,
70
70
  sanitizeError,
71
71
  toArrayBuffer
72
- } from "./chunk-5V4XXKGX.js";
72
+ } from "./chunk-PN5WWW56.js";
73
73
 
74
74
  // src/mcp.ts
75
75
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
@@ -353,7 +353,7 @@ ${markdown}`);
353
353
  break;
354
354
  case "pdf":
355
355
  try {
356
- const { extractPdfMetadataOnly } = await import("./parser-KPWQK4CU.js");
356
+ const { extractPdfMetadataOnly } = await import("./parser-I4D3TRGU.js");
357
357
  metadata = await extractPdfMetadataOnly(buffer);
358
358
  } catch {
359
359
  metadata = void 0;
@@ -530,7 +530,7 @@ ${tableMarkdown}` }]
530
530
  if (!parsed.success) {
531
531
  return { content: [{ type: "text", text: `\uD30C\uC2F1 \uC2E4\uD328: ${parsed.error}` }], isError: true };
532
532
  }
533
- const { blocksToChunks } = await import("./chunks-UQYMW7PG.js");
533
+ const { blocksToChunks } = await import("./chunks-JZW2TXIZ.js");
534
534
  const chunks = blocksToChunks(parsed.blocks, { granularity, includeTableCells: include_table_cells });
535
535
  return { content: [{ type: "text", text: capResponseText(JSON.stringify(chunks, null, 2)) }] };
536
536
  } catch (err) {
@@ -775,7 +775,7 @@ ${previewMd}` }]
775
775
  }
776
776
  const image = new Uint8Array(await readFile2(imgResolved));
777
777
  const ext = extname2(imgResolved).slice(1).toLowerCase();
778
- const { placeSealHwpx } = await import("./seal-NKE6UTJL.js");
778
+ const { placeSealHwpx } = await import("./seal-WHJ6O5HT.js");
779
779
  const result = await placeSealHwpx(buffer, [{
780
780
  anchor,
781
781
  occurrence,
@@ -892,7 +892,7 @@ ${previewMd}` }]
892
892
  if (outPath && await isSameFile(outPath, resolved)) {
893
893
  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 };
894
894
  }
895
- const { redactDocument } = await import("./redact-doc-J6U6WWKD.js");
895
+ const { redactDocument } = await import("./redact-doc-RNJVMFGQ.js");
896
896
  const r = await redactDocument(buffer, { rules, maskChar: mask_char, filePath: file_path, dryRun: dry_run });
897
897
  const MAX_LINES = 50;
898
898
  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}`);
@@ -966,7 +966,7 @@ function registerRenderTools(server2) {
966
966
  const { buffer, resolved } = await readValidatedFile(file_path, MAX_FILE_SIZE, /* @__PURE__ */ new Set([".hwpx", ".hwp"]));
967
967
  const isHwp5 = resolved.toLowerCase().endsWith(".hwp");
968
968
  if (!isHwp5 && !pages && (format === "png" || format === "svg")) {
969
- const { renderHwpxToSvg } = await import("./render-CCIUMRLV.js");
969
+ const { renderHwpxToSvg } = await import("./render-NZ6RA6SW.js");
970
970
  const result = await renderHwpxToSvg(buffer, { highlights, reflow: true, reflowMode: reflow_mode });
971
971
  const summary2 = [
972
972
  `\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})`,
@@ -978,7 +978,7 @@ function registerRenderTools(server2) {
978
978
  summary2.push(`\uC800\uC7A5: ${outPath}`);
979
979
  return { content: [{ type: "text", text: summary2.join("\n") }] };
980
980
  }
981
- const { rasterizeSvg } = await import("./rasterize-2FB766KD.js");
981
+ const { rasterizeSvg } = await import("./rasterize-5DZ3DHGH.js");
982
982
  const raster = await rasterizeSvg(result.svg, result.width, result.height, max_width_px ? { maxWidthPx: max_width_px } : void 0);
983
983
  if (outPath) {
984
984
  await mkdir2(dirname3(outPath), { recursive: true });
@@ -993,7 +993,7 @@ function registerRenderTools(server2) {
993
993
  ]
994
994
  };
995
995
  }
996
- const { renderDocument } = await import("./render-CCIUMRLV.js");
996
+ const { renderDocument } = await import("./render-NZ6RA6SW.js");
997
997
  const { scene, assets } = await renderDocument(buffer, { format, pages, highlights, reflow: true, reflowMode: reflow_mode, maxWidthPx: max_width_px });
998
998
  const summary = [
999
999
  `\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})`,
@@ -1043,7 +1043,7 @@ function registerRenderTools(server2) {
1043
1043
  try {
1044
1044
  const { buffer } = await readValidatedFile(file_path, MAX_FILE_SIZE, /* @__PURE__ */ new Set([".hwpx", ".hwp"]));
1045
1045
  const dir = safeOutputPath(join2(output_dir, "regions.json"), /* @__PURE__ */ new Set([".json"])).replace(/[\\/]regions\.json$/, "");
1046
- const { extractRenderedRegions } = await import("./render-CCIUMRLV.js");
1046
+ const { extractRenderedRegions } = await import("./render-NZ6RA6SW.js");
1047
1047
  const regions = await extractRenderedRegions(buffer, { types: target, format, pages, paddingPt: padding_pt, reflow: true });
1048
1048
  await mkdir2(dir, { recursive: true });
1049
1049
  const ext = format === "jpeg" ? "jpg" : "png";
@@ -1079,7 +1079,7 @@ function registerRenderTools(server2) {
1079
1079
  }
1080
1080
  const { buffer } = await readValidatedFile(file_path, MAX_FILE_SIZE, /* @__PURE__ */ new Set([".hwpx", ".hwp"]));
1081
1081
  const dir = output_dir ? safeOutputPath(join2(output_dir, "tables.json"), /* @__PURE__ */ new Set([".json"])).replace(/[\\/]tables\.json$/, "") : void 0;
1082
- const { extractTables } = await import("./visual-6K3FOUEP.js");
1082
+ const { extractTables } = await import("./visual-JDAS4R43.js");
1083
1083
  const tables = await extractTables(buffer, { policy: visual, format, paddingPt: padding_pt });
1084
1084
  if (dir) await mkdir2(dir, { recursive: true });
1085
1085
  const ext = format === "jpeg" ? "jpg" : "png";
@@ -1136,7 +1136,7 @@ function registerGenerateTools(server2) {
1136
1136
  try {
1137
1137
  const out = safeOutputPath(output_path, PROFILE_EXTENSIONS);
1138
1138
  const { buffer } = await readValidatedFile(hwpx_path);
1139
- const { hwpxToProfile } = await import("./-WZOQMDES.js");
1139
+ const { hwpxToProfile } = await import("./-DC2OO5KO.js");
1140
1140
  const profile = await hwpxToProfile(buffer);
1141
1141
  await mkdir3(dirname4(out), { recursive: true });
1142
1142
  await writeOutputFile(out, JSON.stringify(profile, null, 2));
@@ -1243,7 +1243,7 @@ function registerGenerateTools(server2) {
1243
1243
  }
1244
1244
  let profile;
1245
1245
  if (profile_path) {
1246
- const { parseFormatProfileJson } = await import("./profile-io-UJWTARCU.js");
1246
+ const { parseFormatProfileJson } = await import("./profile-io-WHCWCOPW.js");
1247
1247
  profile = parseFormatProfileJson(await readFile3(safePath(profile_path, PROFILE_EXTENSIONS), "utf-8"));
1248
1248
  }
1249
1249
  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-MXCQIXGJ.js";
4
+ } from "./chunk-LKA7Z2NH.js";
5
5
  import {
6
6
  ALL_FORMULA_MODELS,
7
7
  getModelStatusIn,
8
8
  getModelsDir
9
- } from "./chunk-QYT3XW2J.js";
10
- import "./chunk-CXNMHMPS.js";
11
- import "./chunk-5V4XXKGX.js";
9
+ } from "./chunk-JWTZ3OVZ.js";
10
+ import "./chunk-ISC2TH24.js";
11
+ import "./chunk-PN5WWW56.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-IRGZNITZ.js.map
104
+ //# sourceMappingURL=model-bundle-53CHDYCG.js.map
@@ -10,10 +10,10 @@ import {
10
10
  ocrModelPath,
11
11
  ocrModelsCached,
12
12
  parseCharacterDict
13
- } from "./chunk-MXCQIXGJ.js";
14
- import "./chunk-QYT3XW2J.js";
15
- import "./chunk-CXNMHMPS.js";
16
- import "./chunk-5V4XXKGX.js";
13
+ } from "./chunk-LKA7Z2NH.js";
14
+ import "./chunk-JWTZ3OVZ.js";
15
+ import "./chunk-ISC2TH24.js";
16
+ import "./chunk-PN5WWW56.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-QLW4GG62.js.map
29
+ //# sourceMappingURL=models-UVLAKK3M.js.map