kordoc 4.25.12 → 4.25.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 (109) hide show
  1. package/README.md +2 -2
  2. package/dist/{chunk-B7H5UL47.js → chunk-32WLCR37.js} +2 -2
  3. package/dist/{chunk-V4QVT6QR.js → chunk-42FWJVN5.js} +4 -4
  4. package/dist/{chunk-WUSVNBD7.js → chunk-4J2DUBJJ.js} +2 -2
  5. package/dist/{chunk-ZEZXWJYM.js → chunk-6CHKXHKR.js} +6 -6
  6. package/dist/{chunk-326FIQ5H.js → chunk-AII6CXYG.js} +2 -2
  7. package/dist/{chunk-YUZ4LOUT.js → chunk-BPY62DTT.js} +2 -2
  8. package/dist/{chunk-4RH2EH2N.js → chunk-C4TGNDQY.js} +18 -18
  9. package/dist/{chunk-ZR5IST7H.js → chunk-CGXJE6Y5.js} +5 -5
  10. package/dist/chunk-DQDATFAC.js +11544 -0
  11. package/dist/chunk-DQDATFAC.js.map +1 -0
  12. package/dist/{chunk-V4ELYHT3.js → chunk-I52IXA2S.js} +2 -2
  13. package/dist/{chunk-CLYEGEML.js → chunk-KRP74WIV.js} +8 -8
  14. package/dist/{chunk-42ULFI4V.js → chunk-MQAUBK77.js} +2 -2
  15. package/dist/{chunk-MMVFU3QP.js → chunk-N2EOYLZX.js} +10 -10
  16. package/dist/{chunk-TA7U2DSX.js → chunk-NEVZP6O3.js} +2 -2
  17. package/dist/{chunk-33LMQELD.js → chunk-NL4434I2.js} +2 -2
  18. package/dist/{chunk-ODDU5OMP.js → chunk-NLZ44M5L.js} +6 -6
  19. package/dist/{chunk-XPPQON6I.js → chunk-NQXM6MED.js} +2 -2
  20. package/dist/{chunk-ZKTIY4FT.js → chunk-QVZEBMYW.js} +2 -2
  21. package/dist/{chunk-SQCTT2VJ.js → chunk-QYS4V2OA.js} +4 -4
  22. package/dist/{chunk-RCJGXJ7Z.js → chunk-RQPM72FM.js} +2 -2
  23. package/dist/{chunk-OQVTA7UB.js → chunk-SKIWLEZA.js} +3 -3
  24. package/dist/{chunk-L55XLEWF.js → chunk-SPFCULY3.js} +2 -2
  25. package/dist/{chunk-2LKQSPAZ.js → chunk-TSEJQZ7C.js} +2 -2
  26. package/dist/{chunk-DCE6AZIT.js → chunk-VCLEQ7GS.js} +3 -3
  27. package/dist/{chunk-BAMX5KQB.js → chunk-YSOBUGNT.js} +6 -6
  28. package/dist/{chunk-S3MREIEB.js → chunk-ZRXXCZRZ.js} +2 -2
  29. package/dist/chunks-SIAIY4VX.js +10 -0
  30. package/dist/cli.js +37 -37
  31. package/dist/{formula-QXB2LSVI.js → formula-ZM2EYXWB.js} +4 -4
  32. package/dist/{generator-ELGW2EW4.js → generator-AUA3RJD6.js} +7 -7
  33. package/dist/{hancom-K4SDE7NS.js → hancom-M6DIM23B.js} +2 -2
  34. package/dist/{image-ocr-QJHYVJ5H.js → image-ocr-LZH6Q32C.js} +11 -11
  35. package/dist/index.cjs +2 -2
  36. package/dist/index.cjs.map +1 -7
  37. package/dist/index.js +21 -21
  38. package/dist/mcp.js +33 -33
  39. package/dist/memo-W2SNZRX5.js +15 -0
  40. package/dist/{model-bundle-5UGPJA5A.js → model-bundle-C4A7JHYJ.js} +5 -5
  41. package/dist/{models-IQ2E6S7I.js → models-K5FUWGWQ.js} +5 -5
  42. package/dist/{page-images-4KQEJMSE.js → page-images-O6SF454R.js} +2 -2
  43. package/dist/{parse-worker-v2-2H4MQEQD.js → parse-worker-v2-Y7SF2Q6I.js} +23 -23
  44. package/dist/{parser-KDR5BCSS.js → parser-ZHK66LCI.js} +14 -14
  45. package/dist/{pdf-ocr-EUVLBRD2.js → pdf-ocr-IU2UUBMJ.js} +9 -9
  46. package/dist/{profile-io-6M6LOS5G.js → profile-io-ZF7UPT6V.js} +3 -3
  47. package/dist/{rasterize-BG2WFQ2Z.js → rasterize-QO3NBE33.js} +3 -3
  48. package/dist/{redact-doc-6MLYQLK4.js → redact-doc-KIA2A3RM.js} +22 -22
  49. package/dist/{render-ND6GL3LZ.js → render-7UZDAEZ7.js} +10 -10
  50. package/dist/{rewrite-fallback-XL23DFE3.js → rewrite-fallback-YO6ZVEAI.js} +12 -12
  51. package/dist/seal-W2BHUQA4.js +14 -0
  52. package/dist/{setup-GHNRAYXC.js → setup-X5GNUS4Q.js} +3 -3
  53. package/dist/{to-hwpx-SNBZPKKH.js → to-hwpx-TE7TLCR5.js} +7 -7
  54. package/dist/visual-KFHP6RKA.js +42 -0
  55. package/dist/{watch-ZIO2QNWJ.js → watch-FMCC23HZ.js} +22 -22
  56. package/package.json +1 -1
  57. package/dist/chunk-7RDY5HRX.js +0 -11544
  58. package/dist/chunk-7RDY5HRX.js.map +0 -7
  59. package/dist/chunks-3GVZAG27.js +0 -10
  60. package/dist/memo-UYRYOV37.js +0 -15
  61. package/dist/seal-UYTM4Z4H.js +0 -14
  62. package/dist/visual-5YSDVJNI.js +0 -42
  63. /package/dist/{chunk-B7H5UL47.js.map → chunk-32WLCR37.js.map} +0 -0
  64. /package/dist/{chunk-V4QVT6QR.js.map → chunk-42FWJVN5.js.map} +0 -0
  65. /package/dist/{chunk-WUSVNBD7.js.map → chunk-4J2DUBJJ.js.map} +0 -0
  66. /package/dist/{chunk-ZEZXWJYM.js.map → chunk-6CHKXHKR.js.map} +0 -0
  67. /package/dist/{chunk-326FIQ5H.js.map → chunk-AII6CXYG.js.map} +0 -0
  68. /package/dist/{chunk-YUZ4LOUT.js.map → chunk-BPY62DTT.js.map} +0 -0
  69. /package/dist/{chunk-4RH2EH2N.js.map → chunk-C4TGNDQY.js.map} +0 -0
  70. /package/dist/{chunk-ZR5IST7H.js.map → chunk-CGXJE6Y5.js.map} +0 -0
  71. /package/dist/{chunk-V4ELYHT3.js.map → chunk-I52IXA2S.js.map} +0 -0
  72. /package/dist/{chunk-CLYEGEML.js.map → chunk-KRP74WIV.js.map} +0 -0
  73. /package/dist/{chunk-42ULFI4V.js.map → chunk-MQAUBK77.js.map} +0 -0
  74. /package/dist/{chunk-MMVFU3QP.js.map → chunk-N2EOYLZX.js.map} +0 -0
  75. /package/dist/{chunk-TA7U2DSX.js.map → chunk-NEVZP6O3.js.map} +0 -0
  76. /package/dist/{chunk-33LMQELD.js.map → chunk-NL4434I2.js.map} +0 -0
  77. /package/dist/{chunk-ODDU5OMP.js.map → chunk-NLZ44M5L.js.map} +0 -0
  78. /package/dist/{chunk-XPPQON6I.js.map → chunk-NQXM6MED.js.map} +0 -0
  79. /package/dist/{chunk-ZKTIY4FT.js.map → chunk-QVZEBMYW.js.map} +0 -0
  80. /package/dist/{chunk-SQCTT2VJ.js.map → chunk-QYS4V2OA.js.map} +0 -0
  81. /package/dist/{chunk-RCJGXJ7Z.js.map → chunk-RQPM72FM.js.map} +0 -0
  82. /package/dist/{chunk-OQVTA7UB.js.map → chunk-SKIWLEZA.js.map} +0 -0
  83. /package/dist/{chunk-L55XLEWF.js.map → chunk-SPFCULY3.js.map} +0 -0
  84. /package/dist/{chunk-2LKQSPAZ.js.map → chunk-TSEJQZ7C.js.map} +0 -0
  85. /package/dist/{chunk-DCE6AZIT.js.map → chunk-VCLEQ7GS.js.map} +0 -0
  86. /package/dist/{chunk-BAMX5KQB.js.map → chunk-YSOBUGNT.js.map} +0 -0
  87. /package/dist/{chunk-S3MREIEB.js.map → chunk-ZRXXCZRZ.js.map} +0 -0
  88. /package/dist/{chunks-3GVZAG27.js.map → chunks-SIAIY4VX.js.map} +0 -0
  89. /package/dist/{formula-QXB2LSVI.js.map → formula-ZM2EYXWB.js.map} +0 -0
  90. /package/dist/{generator-ELGW2EW4.js.map → generator-AUA3RJD6.js.map} +0 -0
  91. /package/dist/{hancom-K4SDE7NS.js.map → hancom-M6DIM23B.js.map} +0 -0
  92. /package/dist/{image-ocr-QJHYVJ5H.js.map → image-ocr-LZH6Q32C.js.map} +0 -0
  93. /package/dist/{memo-UYRYOV37.js.map → memo-W2SNZRX5.js.map} +0 -0
  94. /package/dist/{model-bundle-5UGPJA5A.js.map → model-bundle-C4A7JHYJ.js.map} +0 -0
  95. /package/dist/{models-IQ2E6S7I.js.map → models-K5FUWGWQ.js.map} +0 -0
  96. /package/dist/{page-images-4KQEJMSE.js.map → page-images-O6SF454R.js.map} +0 -0
  97. /package/dist/{parse-worker-v2-2H4MQEQD.js.map → parse-worker-v2-Y7SF2Q6I.js.map} +0 -0
  98. /package/dist/{parser-KDR5BCSS.js.map → parser-ZHK66LCI.js.map} +0 -0
  99. /package/dist/{pdf-ocr-EUVLBRD2.js.map → pdf-ocr-IU2UUBMJ.js.map} +0 -0
  100. /package/dist/{profile-io-6M6LOS5G.js.map → profile-io-ZF7UPT6V.js.map} +0 -0
  101. /package/dist/{rasterize-BG2WFQ2Z.js.map → rasterize-QO3NBE33.js.map} +0 -0
  102. /package/dist/{redact-doc-6MLYQLK4.js.map → redact-doc-KIA2A3RM.js.map} +0 -0
  103. /package/dist/{render-ND6GL3LZ.js.map → render-7UZDAEZ7.js.map} +0 -0
  104. /package/dist/{rewrite-fallback-XL23DFE3.js.map → rewrite-fallback-YO6ZVEAI.js.map} +0 -0
  105. /package/dist/{seal-UYTM4Z4H.js.map → seal-W2BHUQA4.js.map} +0 -0
  106. /package/dist/{setup-GHNRAYXC.js.map → setup-X5GNUS4Q.js.map} +0 -0
  107. /package/dist/{to-hwpx-SNBZPKKH.js.map → to-hwpx-TE7TLCR5.js.map} +0 -0
  108. /package/dist/{visual-5YSDVJNI.js.map → visual-KFHP6RKA.js.map} +0 -0
  109. /package/dist/{watch-ZIO2QNWJ.js.map → watch-FMCC23HZ.js.map} +0 -0
package/dist/index.js CHANGED
@@ -57,7 +57,7 @@ import {
57
57
  usesGaejosikMunche,
58
58
  usesLogicStructure,
59
59
  validateHwpx
60
- } from "./chunk-4RH2EH2N.js";
60
+ } from "./chunk-C4TGNDQY.js";
61
61
  import {
62
62
  blocksToPdf,
63
63
  extractRenderedRegions,
@@ -67,17 +67,17 @@ import {
67
67
  renderHtml,
68
68
  renderHwp5Pages,
69
69
  renderSceneToHtml
70
- } from "./chunk-CLYEGEML.js";
71
- import "./chunk-XPPQON6I.js";
70
+ } from "./chunk-KRP74WIV.js";
71
+ import "./chunk-NQXM6MED.js";
72
72
  import {
73
73
  blocksToPages
74
- } from "./chunk-326FIQ5H.js";
74
+ } from "./chunk-AII6CXYG.js";
75
75
  import {
76
76
  extractClickHereFields,
77
77
  patchHwp,
78
78
  patchHwpx
79
- } from "./chunk-MMVFU3QP.js";
80
- import "./chunk-B7H5UL47.js";
79
+ } from "./chunk-N2EOYLZX.js";
80
+ import "./chunk-32WLCR37.js";
81
81
  import "./chunk-YVFNHYJK.js";
82
82
  import {
83
83
  AGENCY_COMMON_NAME,
@@ -88,7 +88,7 @@ import {
88
88
  markdownToHwpx,
89
89
  normalizeGongmunPreset,
90
90
  placeTotalRow
91
- } from "./chunk-ZEZXWJYM.js";
91
+ } from "./chunk-6CHKXHKR.js";
92
92
  import {
93
93
  SPACE_EM_FIXED,
94
94
  SPACE_EM_FONT,
@@ -98,14 +98,14 @@ import {
98
98
  renderHwpxToSvg,
99
99
  simulateWrap,
100
100
  simulateWrapKeepWord
101
- } from "./chunk-DCE6AZIT.js";
101
+ } from "./chunk-VCLEQ7GS.js";
102
102
  import {
103
103
  addMemoHwpx
104
- } from "./chunk-BAMX5KQB.js";
104
+ } from "./chunk-YSOBUGNT.js";
105
105
  import {
106
106
  placeSealHwpx
107
- } from "./chunk-SQCTT2VJ.js";
108
- import "./chunk-V4ELYHT3.js";
107
+ } from "./chunk-QYS4V2OA.js";
108
+ import "./chunk-I52IXA2S.js";
109
109
  import {
110
110
  ValueCursor,
111
111
  applySplices,
@@ -119,16 +119,16 @@ import {
119
119
  isLabelCell,
120
120
  scanSectionXml
121
121
  } from "./chunk-B2SRYWEY.js";
122
- import "./chunk-ZKTIY4FT.js";
122
+ import "./chunk-QVZEBMYW.js";
123
123
  import "./chunk-IXQ45P43.js";
124
124
  import {
125
125
  convertToHwpx,
126
126
  hwpToHwpx
127
- } from "./chunk-ODDU5OMP.js";
128
- import "./chunk-ZR5IST7H.js";
127
+ } from "./chunk-NLZ44M5L.js";
128
+ import "./chunk-CGXJE6Y5.js";
129
129
  import "./chunk-PCOKS4ZE.js";
130
130
  import "./chunk-AASNBZDZ.js";
131
- import "./chunk-RCJGXJ7Z.js";
131
+ import "./chunk-RQPM72FM.js";
132
132
  import "./chunk-WIIPAV2D.js";
133
133
  import {
134
134
  DEFAULT_REDACT_RULES,
@@ -137,7 +137,7 @@ import {
137
137
  } from "./chunk-F5EARPSA.js";
138
138
  import {
139
139
  blocksToChunks
140
- } from "./chunk-S3MREIEB.js";
140
+ } from "./chunk-ZRXXCZRZ.js";
141
141
  import "./chunk-Y56TLZ42.js";
142
142
  import {
143
143
  detectFormat,
@@ -152,19 +152,19 @@ import "./chunk-Y6BVOW4Y.js";
152
152
  import "./chunk-DUAZNEQ6.js";
153
153
  import "./chunk-67I4YNFQ.js";
154
154
  import "./chunk-L3U4XTBO.js";
155
- import "./chunk-33LMQELD.js";
155
+ import "./chunk-NL4434I2.js";
156
156
  import {
157
157
  blocksToMarkdown,
158
158
  flattenLayoutTables,
159
159
  hasStructuredCellContent
160
- } from "./chunk-42ULFI4V.js";
160
+ } from "./chunk-MQAUBK77.js";
161
161
  import "./chunk-QXQX4AN7.js";
162
162
  import "./chunk-AY66PEUP.js";
163
- import "./chunk-TA7U2DSX.js";
164
- import "./chunk-L55XLEWF.js";
163
+ import "./chunk-NEVZP6O3.js";
164
+ import "./chunk-SPFCULY3.js";
165
165
  import {
166
166
  VERSION
167
- } from "./chunk-YUZ4LOUT.js";
167
+ } from "./chunk-BPY62DTT.js";
168
168
  export {
169
169
  AGENCY_COMMON_NAME,
170
170
  BUILTIN_TEMPLATES,
package/dist/mcp.js CHANGED
@@ -51,16 +51,16 @@ import {
51
51
  unknownFontWarnings,
52
52
  usesGaejosikMunche,
53
53
  usesLogicStructure
54
- } from "./chunk-4RH2EH2N.js";
55
- import "./chunk-CLYEGEML.js";
56
- import "./chunk-XPPQON6I.js";
57
- import "./chunk-326FIQ5H.js";
54
+ } from "./chunk-C4TGNDQY.js";
55
+ import "./chunk-KRP74WIV.js";
56
+ import "./chunk-NQXM6MED.js";
57
+ import "./chunk-AII6CXYG.js";
58
58
  import {
59
59
  extractHwpxMetadataOnly,
60
60
  patchHwp,
61
61
  patchHwpx
62
- } from "./chunk-MMVFU3QP.js";
63
- import "./chunk-B7H5UL47.js";
62
+ } from "./chunk-N2EOYLZX.js";
63
+ import "./chunk-32WLCR37.js";
64
64
  import "./chunk-YVFNHYJK.js";
65
65
  import {
66
66
  AGENCY_COMMON_NAME,
@@ -68,29 +68,29 @@ import {
68
68
  agencyNames,
69
69
  incompatibleGongmunWarnings,
70
70
  markdownToHwpx
71
- } from "./chunk-ZEZXWJYM.js";
72
- import "./chunk-DCE6AZIT.js";
73
- import "./chunk-BAMX5KQB.js";
74
- import "./chunk-SQCTT2VJ.js";
75
- import "./chunk-V4ELYHT3.js";
71
+ } from "./chunk-6CHKXHKR.js";
72
+ import "./chunk-VCLEQ7GS.js";
73
+ import "./chunk-YSOBUGNT.js";
74
+ import "./chunk-QYS4V2OA.js";
75
+ import "./chunk-I52IXA2S.js";
76
76
  import {
77
77
  extractFormFields,
78
78
  fillWithUniqueGuard
79
79
  } from "./chunk-B2SRYWEY.js";
80
- import "./chunk-ZKTIY4FT.js";
80
+ import "./chunk-QVZEBMYW.js";
81
81
  import "./chunk-IXQ45P43.js";
82
82
  import {
83
83
  hwpToHwpx
84
- } from "./chunk-ODDU5OMP.js";
84
+ } from "./chunk-NLZ44M5L.js";
85
85
  import {
86
86
  extractHwp5MetadataOnly
87
- } from "./chunk-ZR5IST7H.js";
87
+ } from "./chunk-CGXJE6Y5.js";
88
88
  import "./chunk-PCOKS4ZE.js";
89
89
  import "./chunk-AASNBZDZ.js";
90
- import "./chunk-RCJGXJ7Z.js";
90
+ import "./chunk-RQPM72FM.js";
91
91
  import "./chunk-WIIPAV2D.js";
92
92
  import "./chunk-F5EARPSA.js";
93
- import "./chunk-S3MREIEB.js";
93
+ import "./chunk-ZRXXCZRZ.js";
94
94
  import "./chunk-Y56TLZ42.js";
95
95
  import {
96
96
  detectFormat,
@@ -101,18 +101,18 @@ import "./chunk-Y6BVOW4Y.js";
101
101
  import "./chunk-DUAZNEQ6.js";
102
102
  import "./chunk-67I4YNFQ.js";
103
103
  import "./chunk-L3U4XTBO.js";
104
- import "./chunk-33LMQELD.js";
104
+ import "./chunk-NL4434I2.js";
105
105
  import {
106
106
  blocksToMarkdown
107
- } from "./chunk-42ULFI4V.js";
107
+ } from "./chunk-MQAUBK77.js";
108
108
  import "./chunk-QXQX4AN7.js";
109
109
  import "./chunk-AY66PEUP.js";
110
- import "./chunk-TA7U2DSX.js";
110
+ import "./chunk-NEVZP6O3.js";
111
111
  import {
112
112
  assertWithinRoot,
113
113
  getAccessRoot,
114
114
  isOfflineMode
115
- } from "./chunk-L55XLEWF.js";
115
+ } from "./chunk-SPFCULY3.js";
116
116
  import {
117
117
  KordocError,
118
118
  VERSION,
@@ -120,7 +120,7 @@ import {
120
120
  routeConsoleToStderr,
121
121
  sanitizeError,
122
122
  toArrayBuffer
123
- } from "./chunk-YUZ4LOUT.js";
123
+ } from "./chunk-BPY62DTT.js";
124
124
 
125
125
  // src/mcp.ts
126
126
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
@@ -451,7 +451,7 @@ ${markdown}`);
451
451
  break;
452
452
  case "pdf":
453
453
  try {
454
- const { extractPdfMetadataOnly } = await import("./parser-KDR5BCSS.js");
454
+ const { extractPdfMetadataOnly } = await import("./parser-ZHK66LCI.js");
455
455
  metadata = await extractPdfMetadataOnly(buffer);
456
456
  } catch {
457
457
  metadata = void 0;
@@ -628,7 +628,7 @@ ${tableMarkdown}` }]
628
628
  if (!parsed.success) {
629
629
  return { content: [{ type: "text", text: `파싱 실패: ${parsed.error}` }], isError: true };
630
630
  }
631
- const { blocksToChunks } = await import("./chunks-3GVZAG27.js");
631
+ const { blocksToChunks } = await import("./chunks-SIAIY4VX.js");
632
632
  const chunks = blocksToChunks(parsed.blocks, { granularity, includeTableCells: include_table_cells });
633
633
  return { content: [{ type: "text", text: capResponseText(JSON.stringify(chunks, null, 2)) }] };
634
634
  } catch (err) {
@@ -908,7 +908,7 @@ ${previewMd}` }]
908
908
  }
909
909
  const image = new Uint8Array(await readFile2(imgResolved));
910
910
  const ext = extname2(imgResolved).slice(1).toLowerCase();
911
- const { placeSealHwpx } = await import("./seal-UYTM4Z4H.js");
911
+ const { placeSealHwpx } = await import("./seal-W2BHUQA4.js");
912
912
  const result = await placeSealHwpx(buffer, [{
913
913
  anchor,
914
914
  occurrence,
@@ -964,7 +964,7 @@ ${previewMd}` }]
964
964
  if (format !== "hwpx") {
965
965
  return { content: [{ type: "text", text: `add_memo 는 HWPX·HWP 5.x 파일만 지원합니다 (감지된 포맷: ${format}).` }], isError: true };
966
966
  }
967
- const { addMemoHwpx } = await import("./memo-UYRYOV37.js");
967
+ const { addMemoHwpx } = await import("./memo-W2SNZRX5.js");
968
968
  const result = await addMemoHwpx(buffer, [{ anchor, text, author, occurrence }]);
969
969
  await mkdir(dirname2(outPath), { recursive: true });
970
970
  await writeOutputFile(outPath, Buffer.from(result.buffer));
@@ -1006,7 +1006,7 @@ ${previewMd}` }]
1006
1006
  }
1007
1007
  const original = new Uint8Array(buffer);
1008
1008
  const result = isHwpx ? await patchHwpx(original, edited_markdown, structure === false ? { structure: false } : void 0) : await patchHwp(original, edited_markdown);
1009
- const { needsRewrite, rewriteEdited, rewritePath } = await import("./rewrite-fallback-XL23DFE3.js");
1009
+ const { needsRewrite, rewriteEdited, rewritePath } = await import("./rewrite-fallback-YO6ZVEAI.js");
1010
1010
  const rewrite = needsRewrite(result) ? await rewriteEdited(original, isHwpx, edited_markdown, result.success) : null;
1011
1011
  const rwOut = rewrite ? safeOutputPath(rewritePath(out), /* @__PURE__ */ new Set([".hwpx"])) : void 0;
1012
1012
  if (rewrite && rwOut) {
@@ -1076,7 +1076,7 @@ ${rewriteLine}` }] };
1076
1076
  if (outPath && await isSameFile(outPath, resolved)) {
1077
1077
  return { content: [{ type: "text", text: "output_path가 입력 파일과 같습니다 — 원본을 덮어쓰지 않습니다. 다른 경로를 지정하세요." }], isError: true };
1078
1078
  }
1079
- const { redactDocument } = await import("./redact-doc-6MLYQLK4.js");
1079
+ const { redactDocument } = await import("./redact-doc-KIA2A3RM.js");
1080
1080
  const r = await redactDocument(buffer, { rules, maskChar: mask_char, filePath: file_path, dryRun: dry_run, model: use_model });
1081
1081
  const MAX_LINES = 50;
1082
1082
  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}`);
@@ -1151,7 +1151,7 @@ function registerRenderTools(server2) {
1151
1151
  const { buffer, resolved } = await readValidatedFile(file_path, MAX_FILE_SIZE, /* @__PURE__ */ new Set([".hwpx", ".hwp"]));
1152
1152
  const isHwp5 = resolved.toLowerCase().endsWith(".hwp");
1153
1153
  if (!isHwp5 && !pages && (format === "png" || format === "svg")) {
1154
- const { renderHwpxToSvg } = await import("./render-ND6GL3LZ.js");
1154
+ const { renderHwpxToSvg } = await import("./render-7UZDAEZ7.js");
1155
1155
  const result = await renderHwpxToSvg(buffer, { highlights, reflow: true, reflowMode: reflow_mode, password });
1156
1156
  const summary2 = [
1157
1157
  `렌더 완료: ${result.pageCount}페이지, ${Math.round(result.width)}x${Math.round(result.height)}pt (텍스트 ${result.stats.texts}·이미지 ${result.stats.images}·표 ${result.stats.tables})`,
@@ -1163,7 +1163,7 @@ function registerRenderTools(server2) {
1163
1163
  summary2.push(`저장: ${outPath}`);
1164
1164
  return { content: [{ type: "text", text: summary2.join("\n") }] };
1165
1165
  }
1166
- const { rasterizeSvg } = await import("./rasterize-BG2WFQ2Z.js");
1166
+ const { rasterizeSvg } = await import("./rasterize-QO3NBE33.js");
1167
1167
  const raster = await rasterizeSvg(result.svg, result.width, result.height, max_width_px ? { maxWidthPx: max_width_px } : void 0);
1168
1168
  if (outPath) {
1169
1169
  await mkdir2(dirname3(outPath), { recursive: true });
@@ -1178,7 +1178,7 @@ function registerRenderTools(server2) {
1178
1178
  ]
1179
1179
  };
1180
1180
  }
1181
- const { renderDocument } = await import("./render-ND6GL3LZ.js");
1181
+ const { renderDocument } = await import("./render-7UZDAEZ7.js");
1182
1182
  const { scene, assets } = await renderDocument(buffer, { format, pages, highlights, reflow: true, reflowMode: reflow_mode, maxWidthPx: max_width_px, password });
1183
1183
  const summary = [
1184
1184
  `렌더 완료: 문서 ${scene.pages.length}페이지 중 ${assets.filter((a) => a.page !== void 0).length || 1}건 (텍스트 ${scene.stats.texts}·이미지 ${scene.stats.images}·표 ${scene.stats.tables}·도형 ${scene.stats.shapes})`,
@@ -1228,7 +1228,7 @@ function registerRenderTools(server2) {
1228
1228
  try {
1229
1229
  const { buffer } = await readValidatedFile(file_path, MAX_FILE_SIZE, /* @__PURE__ */ new Set([".hwpx", ".hwp"]));
1230
1230
  const dir = safeOutputPath(join2(output_dir, "regions.json"), /* @__PURE__ */ new Set([".json"])).replace(/[\\/]regions\.json$/, "");
1231
- const { extractRenderedRegions } = await import("./render-ND6GL3LZ.js");
1231
+ const { extractRenderedRegions } = await import("./render-7UZDAEZ7.js");
1232
1232
  const regions = await extractRenderedRegions(buffer, { types: target, format, pages, paddingPt: padding_pt, reflow: true });
1233
1233
  await mkdir2(dir, { recursive: true });
1234
1234
  const ext = format === "jpeg" ? "jpg" : "png";
@@ -1264,7 +1264,7 @@ function registerRenderTools(server2) {
1264
1264
  }
1265
1265
  const { buffer } = await readValidatedFile(file_path, MAX_FILE_SIZE, /* @__PURE__ */ new Set([".hwpx", ".hwp"]));
1266
1266
  const dir = output_dir ? safeOutputPath(join2(output_dir, "tables.json"), /* @__PURE__ */ new Set([".json"])).replace(/[\\/]tables\.json$/, "") : void 0;
1267
- const { extractTables } = await import("./visual-5YSDVJNI.js");
1267
+ const { extractTables } = await import("./visual-KFHP6RKA.js");
1268
1268
  const tables = await extractTables(buffer, { policy: visual, format, paddingPt: padding_pt });
1269
1269
  if (dir) await mkdir2(dir, { recursive: true });
1270
1270
  const ext = format === "jpeg" ? "jpg" : "png";
@@ -1488,7 +1488,7 @@ ${g.blocking.map((f) => `- ${formatGateFinding(f)}`).join("\n")}` }],
1488
1488
  }
1489
1489
  let profile;
1490
1490
  if (profile_path) {
1491
- const { parseFormatProfileJson } = await import("./profile-io-6M6LOS5G.js");
1491
+ const { parseFormatProfileJson } = await import("./profile-io-ZF7UPT6V.js");
1492
1492
  profile = parseFormatProfileJson(await readFile3(safePath(profile_path, PROFILE_EXTENSIONS), "utf-8"));
1493
1493
  }
1494
1494
  const out = safeOutputPath(output_path, /* @__PURE__ */ new Set([".hwpx", ".hwp"]));
@@ -0,0 +1,15 @@
1
+ import {
2
+ addMemoHwpx
3
+ } from "./chunk-YSOBUGNT.js";
4
+ import "./chunk-QYS4V2OA.js";
5
+ import "./chunk-I52IXA2S.js";
6
+ import "./chunk-B2SRYWEY.js";
7
+ import "./chunk-QVZEBMYW.js";
8
+ import "./chunk-RQPM72FM.js";
9
+ import "./chunk-WIIPAV2D.js";
10
+ import "./chunk-QXQX4AN7.js";
11
+ import "./chunk-BPY62DTT.js";
12
+ export {
13
+ addMemoHwpx
14
+ };
15
+ //# sourceMappingURL=memo-W2SNZRX5.js.map
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  ALL_OCR_MODELS
3
- } from "./chunk-WUSVNBD7.js";
3
+ } from "./chunk-4J2DUBJJ.js";
4
4
  import {
5
5
  ALL_FORMULA_MODELS,
6
6
  getModelStatusIn,
7
7
  getModelsDir
8
- } from "./chunk-TA7U2DSX.js";
9
- import "./chunk-L55XLEWF.js";
10
- import "./chunk-YUZ4LOUT.js";
8
+ } from "./chunk-NEVZP6O3.js";
9
+ import "./chunk-SPFCULY3.js";
10
+ import "./chunk-BPY62DTT.js";
11
11
 
12
12
  // src/shared/model-bundle.ts
13
13
  import { copyFile, mkdir } from "fs/promises";
@@ -100,4 +100,4 @@ export {
100
100
  importModels,
101
101
  modelCacheStatus
102
102
  };
103
- //# sourceMappingURL=model-bundle-5UGPJA5A.js.map
103
+ //# sourceMappingURL=model-bundle-C4A7JHYJ.js.map
@@ -20,10 +20,10 @@ import {
20
20
  ocrSourcePath,
21
21
  parseCharacterDict,
22
22
  resolveOcrModels
23
- } from "./chunk-WUSVNBD7.js";
24
- import "./chunk-TA7U2DSX.js";
25
- import "./chunk-L55XLEWF.js";
26
- import "./chunk-YUZ4LOUT.js";
23
+ } from "./chunk-4J2DUBJJ.js";
24
+ import "./chunk-NEVZP6O3.js";
25
+ import "./chunk-SPFCULY3.js";
26
+ import "./chunk-BPY62DTT.js";
27
27
  export {
28
28
  ALL_OCR_MODELS,
29
29
  DEFAULT_OCR_MODELS,
@@ -47,4 +47,4 @@ export {
47
47
  parseCharacterDict,
48
48
  resolveOcrModels
49
49
  };
50
- //# sourceMappingURL=models-IQ2E6S7I.js.map
50
+ //# sourceMappingURL=models-K5FUWGWQ.js.map
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-67I4YNFQ.js";
10
10
  import {
11
11
  KordocError
12
- } from "./chunk-YUZ4LOUT.js";
12
+ } from "./chunk-BPY62DTT.js";
13
13
 
14
14
  // src/ocr/page-images.ts
15
15
  var MAX_BYTES = 128 * 1024 * 1024;
@@ -91,4 +91,4 @@ var PageImageSink = class {
91
91
  export {
92
92
  PageImageSink
93
93
  };
94
- //# sourceMappingURL=page-images-4KQEJMSE.js.map
94
+ //# sourceMappingURL=page-images-O6SF454R.js.map
@@ -1,36 +1,36 @@
1
1
  import {
2
2
  parseWorkerFile
3
- } from "./chunk-OQVTA7UB.js";
3
+ } from "./chunk-SKIWLEZA.js";
4
4
  import {
5
5
  insideSandbox
6
6
  } from "./chunk-R3QAI2E7.js";
7
7
  import {
8
8
  lintBlocks
9
- } from "./chunk-4RH2EH2N.js";
10
- import "./chunk-CLYEGEML.js";
11
- import "./chunk-XPPQON6I.js";
12
- import "./chunk-326FIQ5H.js";
13
- import "./chunk-MMVFU3QP.js";
14
- import "./chunk-B7H5UL47.js";
9
+ } from "./chunk-C4TGNDQY.js";
10
+ import "./chunk-KRP74WIV.js";
11
+ import "./chunk-NQXM6MED.js";
12
+ import "./chunk-AII6CXYG.js";
13
+ import "./chunk-N2EOYLZX.js";
14
+ import "./chunk-32WLCR37.js";
15
15
  import "./chunk-YVFNHYJK.js";
16
16
  import {
17
17
  PRESET_ALIAS
18
- } from "./chunk-ZEZXWJYM.js";
19
- import "./chunk-DCE6AZIT.js";
20
- import "./chunk-BAMX5KQB.js";
21
- import "./chunk-SQCTT2VJ.js";
22
- import "./chunk-V4ELYHT3.js";
18
+ } from "./chunk-6CHKXHKR.js";
19
+ import "./chunk-VCLEQ7GS.js";
20
+ import "./chunk-YSOBUGNT.js";
21
+ import "./chunk-QYS4V2OA.js";
22
+ import "./chunk-I52IXA2S.js";
23
23
  import "./chunk-B2SRYWEY.js";
24
- import "./chunk-ZKTIY4FT.js";
24
+ import "./chunk-QVZEBMYW.js";
25
25
  import "./chunk-IXQ45P43.js";
26
- import "./chunk-ODDU5OMP.js";
27
- import "./chunk-ZR5IST7H.js";
26
+ import "./chunk-NLZ44M5L.js";
27
+ import "./chunk-CGXJE6Y5.js";
28
28
  import "./chunk-PCOKS4ZE.js";
29
29
  import "./chunk-AASNBZDZ.js";
30
- import "./chunk-RCJGXJ7Z.js";
30
+ import "./chunk-RQPM72FM.js";
31
31
  import "./chunk-WIIPAV2D.js";
32
32
  import "./chunk-F5EARPSA.js";
33
- import "./chunk-S3MREIEB.js";
33
+ import "./chunk-ZRXXCZRZ.js";
34
34
  import "./chunk-Y56TLZ42.js";
35
35
  import "./chunk-5TS72XT2.js";
36
36
  import "./chunk-Y6BVOW4Y.js";
@@ -39,16 +39,16 @@ import {
39
39
  validateOcrOptions
40
40
  } from "./chunk-67I4YNFQ.js";
41
41
  import "./chunk-L3U4XTBO.js";
42
- import "./chunk-33LMQELD.js";
43
- import "./chunk-42ULFI4V.js";
42
+ import "./chunk-NL4434I2.js";
43
+ import "./chunk-MQAUBK77.js";
44
44
  import "./chunk-QXQX4AN7.js";
45
45
  import "./chunk-AY66PEUP.js";
46
- import "./chunk-TA7U2DSX.js";
47
- import "./chunk-L55XLEWF.js";
46
+ import "./chunk-NEVZP6O3.js";
47
+ import "./chunk-SPFCULY3.js";
48
48
  import {
49
49
  VERSION,
50
50
  sanitizeError
51
- } from "./chunk-YUZ4LOUT.js";
51
+ } from "./chunk-BPY62DTT.js";
52
52
 
53
53
  // src/cli/parse-worker-v2.ts
54
54
  import { createHash } from "crypto";
@@ -393,4 +393,4 @@ export {
393
393
  runParseWorkerV2,
394
394
  toParseOptions
395
395
  };
396
- //# sourceMappingURL=parse-worker-v2-2H4MQEQD.js.map
396
+ //# sourceMappingURL=parse-worker-v2-Y7SF2Q6I.js.map
@@ -16,7 +16,7 @@ import {
16
16
  restoreUnmappedCidSpaces,
17
17
  restoreUnmappedGlyphs,
18
18
  spaceMappedDots
19
- } from "./chunk-326FIQ5H.js";
19
+ } from "./chunk-AII6CXYG.js";
20
20
  import {
21
21
  WEBP_UNAVAILABLE,
22
22
  loadWebpEncoder
@@ -81,7 +81,7 @@ import {
81
81
  stripAbsorbedRunningLines,
82
82
  trimTrailingEmptyTableCols,
83
83
  wrapJoiner
84
- } from "./chunk-7RDY5HRX.js";
84
+ } from "./chunk-DQDATFAC.js";
85
85
  import {
86
86
  ImageKind,
87
87
  OPS,
@@ -99,12 +99,12 @@ import {
99
99
  stripScriptTags,
100
100
  toTex,
101
101
  unframeLayoutTables
102
- } from "./chunk-33LMQELD.js";
102
+ } from "./chunk-NL4434I2.js";
103
103
  import {
104
104
  assignTableIds,
105
105
  blocksToMarkdown,
106
106
  escapeLiteralDollar
107
- } from "./chunk-42ULFI4V.js";
107
+ } from "./chunk-MQAUBK77.js";
108
108
  import {
109
109
  WINGDINGS,
110
110
  enclosedNumber
@@ -113,13 +113,13 @@ import {
113
113
  handwritingFallbackModels,
114
114
  ocrModelsCached,
115
115
  resolveOcrModels
116
- } from "./chunk-WUSVNBD7.js";
117
- import "./chunk-TA7U2DSX.js";
118
- import "./chunk-L55XLEWF.js";
116
+ } from "./chunk-4J2DUBJJ.js";
117
+ import "./chunk-NEVZP6O3.js";
118
+ import "./chunk-SPFCULY3.js";
119
119
  import {
120
120
  KordocError,
121
121
  sanitizeHref
122
- } from "./chunk-YUZ4LOUT.js";
122
+ } from "./chunk-BPY62DTT.js";
123
123
 
124
124
  // src/pdf/image-extract.ts
125
125
  import { createHash } from "node:crypto";
@@ -3639,7 +3639,7 @@ function mergeLinkRuns(markdown) {
3639
3639
 
3640
3640
  // src/pdf/formula-ocr.ts
3641
3641
  async function applyFormulaOcr(buffer, blocks, pageFilter, effectivePageCount, warnings, _onProgress) {
3642
- const formulaMod = await import("./formula-QXB2LSVI.js");
3642
+ const formulaMod = await import("./formula-ZM2EYXWB.js");
3643
3643
  const { FormulaPipeline, ensureFormulaModels } = formulaMod;
3644
3644
  await ensureFormulaModels((p) => {
3645
3645
  if (p.phase === "download" && p.total) {
@@ -4006,7 +4006,7 @@ async function parsePdfDocument(buffer, options) {
4006
4006
  const isImageBased = pageFilter?.size !== 0 && totalChars / Math.max(parsedPageCount, 1) < 10;
4007
4007
  const ocrDone = /* @__PURE__ */ new Set();
4008
4008
  const ocrLinesOut = /* @__PURE__ */ new Map();
4009
- const pageRasters = options?.pageImages ? new (await import("./page-images-4KQEJMSE.js")).PageImageSink(options.pageImages) : null;
4009
+ const pageRasters = options?.pageImages ? new (await import("./page-images-O6SF454R.js")).PageImageSink(options.pageImages) : null;
4010
4010
  const allRegions = options?.ocr === true || typeof options?.ocr === "function";
4011
4011
  const ocrRegions = allRegions || autoOcr ? ocrImageRegions(uncoveredImageRegions, largeImageRegions, allRegions) : /* @__PURE__ */ new Map();
4012
4012
  if (ocrBuffer) {
@@ -4025,10 +4025,10 @@ async function parsePdfDocument(buffer, options) {
4025
4025
  }
4026
4026
  if (targets.size > 0) {
4027
4027
  try {
4028
- const { runPdfOcr } = await import("./pdf-ocr-EUVLBRD2.js");
4028
+ const { runPdfOcr } = await import("./pdf-ocr-IU2UUBMJ.js");
4029
4029
  const mode = typeof options?.ocr === "function" ? options.ocr : "builtin";
4030
4030
  const regionPages = new Map([...ocrRegions].filter(([p]) => options?.ocr !== "force" && !isImageBased && !pageQuality.find((q) => q.page === p)?.needsOcr));
4031
- const { builtinOcrConfig } = await import("./pdf-ocr-EUVLBRD2.js");
4031
+ const { builtinOcrConfig } = await import("./pdf-ocr-IU2UUBMJ.js");
4032
4032
  const ocrPageBlocks = await runPdfOcr(ocrBuffer, targets, mode, warnings, options?.onProgress, options?.tables !== false, vectorPageOps, regionPages, builtinOcrConfig(options), ocrLinesOut, pageRasters ?? void 0);
4033
4033
  for (const obs of ocrPageBlocks.values()) stripScriptTags({ blocks: obs });
4034
4034
  if (ocrPageBlocks.size > 0) {
@@ -4070,7 +4070,7 @@ async function parsePdfDocument(buffer, options) {
4070
4070
  const rest = [];
4071
4071
  for (let i = 1; i <= effectivePageCount; i++) if ((!pageFilter || pageFilter.has(i)) && !pageRasters.has(i)) rest.push(i);
4072
4072
  try {
4073
- const { renderPdfPageImages } = await import("./pdf-ocr-EUVLBRD2.js");
4073
+ const { renderPdfPageImages } = await import("./pdf-ocr-IU2UUBMJ.js");
4074
4074
  await renderPdfPageImages(buffer, rest, pageRasters, warnings);
4075
4075
  } catch (e) {
4076
4076
  warnings.push({ message: `pageImages 실행 불가: ${e instanceof Error ? e.message : String(e)}`, code: "SKIPPED_IMAGE" });
@@ -4277,4 +4277,4 @@ export {
4277
4277
  parsePdfDocument,
4278
4278
  removeHeaderFooterBlocks
4279
4279
  };
4280
- //# sourceMappingURL=parser-KDR5BCSS.js.map
4280
+ //# sourceMappingURL=parser-ZHK66LCI.js.map
@@ -15,19 +15,19 @@ import {
15
15
  runPdfOcr,
16
16
  stretchFaintCrop,
17
17
  toOcrLine
18
- } from "./chunk-V4QVT6QR.js";
19
- import "./chunk-7RDY5HRX.js";
18
+ } from "./chunk-42FWJVN5.js";
19
+ import "./chunk-DQDATFAC.js";
20
20
  import "./chunk-DUAZNEQ6.js";
21
21
  import "./chunk-67I4YNFQ.js";
22
22
  import "./chunk-L3U4XTBO.js";
23
- import "./chunk-33LMQELD.js";
24
- import "./chunk-42ULFI4V.js";
23
+ import "./chunk-NL4434I2.js";
24
+ import "./chunk-MQAUBK77.js";
25
25
  import "./chunk-QXQX4AN7.js";
26
- import "./chunk-WUSVNBD7.js";
26
+ import "./chunk-4J2DUBJJ.js";
27
27
  import "./chunk-AY66PEUP.js";
28
- import "./chunk-TA7U2DSX.js";
29
- import "./chunk-L55XLEWF.js";
30
- import "./chunk-YUZ4LOUT.js";
28
+ import "./chunk-NEVZP6O3.js";
29
+ import "./chunk-SPFCULY3.js";
30
+ import "./chunk-BPY62DTT.js";
31
31
  export {
32
32
  DEFAULT_BUILTIN_OCR,
33
33
  MAX_OCR_PIXELS,
@@ -46,4 +46,4 @@ export {
46
46
  stretchFaintCrop,
47
47
  toOcrLine
48
48
  };
49
- //# sourceMappingURL=pdf-ocr-EUVLBRD2.js.map
49
+ //# sourceMappingURL=pdf-ocr-IU2UUBMJ.js.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  formatProfileSchema,
3
3
  parseFormatProfileJson
4
- } from "./chunk-2LKQSPAZ.js";
5
- import "./chunk-YUZ4LOUT.js";
4
+ } from "./chunk-TSEJQZ7C.js";
5
+ import "./chunk-BPY62DTT.js";
6
6
  export {
7
7
  formatProfileSchema,
8
8
  parseFormatProfileJson
9
9
  };
10
- //# sourceMappingURL=profile-io-6M6LOS5G.js.map
10
+ //# sourceMappingURL=profile-io-ZF7UPT6V.js.map
@@ -2,11 +2,11 @@ import {
2
2
  loadSharp,
3
3
  rasterizePageSvg,
4
4
  rasterizeSvg
5
- } from "./chunk-XPPQON6I.js";
6
- import "./chunk-YUZ4LOUT.js";
5
+ } from "./chunk-NQXM6MED.js";
6
+ import "./chunk-BPY62DTT.js";
7
7
  export {
8
8
  loadSharp,
9
9
  rasterizePageSvg,
10
10
  rasterizeSvg
11
11
  };
12
- //# sourceMappingURL=rasterize-BG2WFQ2Z.js.map
12
+ //# sourceMappingURL=rasterize-QO3NBE33.js.map