kordoc 4.25.19 → 4.25.21

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 (114) hide show
  1. package/README.md +3 -3
  2. package/dist/{chunk-CZFY7JGT.js → chunk-24LB25LZ.js} +2 -2
  3. package/dist/{chunk-HKO6HWYM.js → chunk-3AYNFK6J.js} +2 -2
  4. package/dist/{chunk-74QGGXVH.js → chunk-5MDRUEHP.js} +14 -4
  5. package/dist/chunk-5MDRUEHP.js.map +1 -0
  6. package/dist/{chunk-PCOKS4ZE.js → chunk-5PEMTYTM.js} +37 -10
  7. package/dist/chunk-5PEMTYTM.js.map +7 -0
  8. package/dist/{chunk-LQGZ3PBZ.js → chunk-5ULHNZ3P.js} +3 -3
  9. package/dist/{chunk-EFBIMFVT.js → chunk-6I3X54AQ.js} +2 -2
  10. package/dist/{chunk-HH5IOQTP.js → chunk-6MCJHRSM.js} +2 -2
  11. package/dist/{chunk-NCO7BAS7.js → chunk-COJYQKGH.js} +6 -4
  12. package/dist/{chunk-NCO7BAS7.js.map → chunk-COJYQKGH.js.map} +2 -2
  13. package/dist/{chunk-TPPL3OVT.js → chunk-DHXKCDAU.js} +50 -6
  14. package/dist/chunk-DHXKCDAU.js.map +7 -0
  15. package/dist/{chunk-UTLVAA7X.js → chunk-DZOA5N5W.js} +2 -2
  16. package/dist/{chunk-HCHWG3HO.js → chunk-FDSFXE2L.js} +3 -3
  17. package/dist/{chunk-ZCDTZZ3C.js → chunk-GJORKM42.js} +2 -2
  18. package/dist/{chunk-VOK3R4WW.js → chunk-HQILGS2O.js} +2 -2
  19. package/dist/{chunk-FCWPQZYU.js → chunk-KW4JO5CV.js} +3 -3
  20. package/dist/{chunk-EI4PBZW2.js → chunk-LSUTK3DH.js} +2 -2
  21. package/dist/{chunk-FZ7XCPHO.js → chunk-MWCJYIJC.js} +20 -20
  22. package/dist/{chunk-6YQ2LARO.js → chunk-PFNZQ3XI.js} +2 -2
  23. package/dist/{chunk-XCD6WLTU.js → chunk-PVOLFVXE.js} +3 -3
  24. package/dist/{chunk-FNMJ2DK4.js → chunk-QNJ2LMUO.js} +8 -8
  25. package/dist/{chunk-VVR2ZSFZ.js → chunk-QOCUFTT4.js} +4 -4
  26. package/dist/{chunk-3DX4GW75.js → chunk-S553BW45.js} +6 -6
  27. package/dist/{chunk-IUD535LX.js → chunk-TI6S3KZF.js} +2 -2
  28. package/dist/{chunk-RECWLRRB.js → chunk-TYJSNW4Z.js} +55 -46
  29. package/dist/chunk-TYJSNW4Z.js.map +7 -0
  30. package/dist/{chunk-LEWJRIVZ.js → chunk-W5AHXAUP.js} +6 -6
  31. package/dist/{chunk-TW6WYJD6.js → chunk-XUBBFY3H.js} +6 -6
  32. package/dist/{chunk-LXPFTU3C.js → chunk-ZCMMU34Z.js} +2 -2
  33. package/dist/{chunk-IVNUMREN.js → chunk-ZO4P735U.js} +2 -2
  34. package/dist/chunks-XX7RHVQF.js +10 -0
  35. package/dist/cli.js +38 -38
  36. package/dist/{formula-U2RXOOE4.js → formula-HMKT4BZL.js} +4 -4
  37. package/dist/{generator-K6I6IYOH.js → generator-HOY4SZ26.js} +7 -7
  38. package/dist/{hancom-ARDTLWD5.js → hancom-QWJBWOOE.js} +2 -2
  39. package/dist/{image-ocr-RDWOEEQ2.js → image-ocr-P5AIZNT3.js} +12 -12
  40. package/dist/index.cjs +211 -89
  41. package/dist/index.cjs.map +1 -1
  42. package/dist/index.js +22 -22
  43. package/dist/mcp.js +34 -34
  44. package/dist/memo-Q7772VJD.js +15 -0
  45. package/dist/{model-bundle-A6C5PVSS.js → model-bundle-5CXCIZHZ.js} +5 -5
  46. package/dist/{models-KTY3IZU2.js → models-PS4L7NLP.js} +5 -5
  47. package/dist/{page-images-PVXQYU7Z.js → page-images-QW7IUTUB.js} +3 -3
  48. package/dist/{parse-worker-v2-E4T4427H.js → parse-worker-v2-PRH6KVKP.js} +24 -24
  49. package/dist/{parser-3F66AQAA.js → parser-OQIR5ZMI.js} +97 -58
  50. package/dist/{parser-3F66AQAA.js.map → parser-OQIR5ZMI.js.map} +2 -2
  51. package/dist/{pdf-ocr-C6DYPI2Q.js → pdf-ocr-ZH4JAUTR.js} +9 -9
  52. package/dist/{profile-io-LZ5YPCIW.js → profile-io-JFRAM2VE.js} +3 -3
  53. package/dist/{rasterize-K2VVPUGE.js → rasterize-JJOMUTYX.js} +3 -3
  54. package/dist/{redact-doc-A3M2YEXE.js → redact-doc-A7TW4MNF.js} +23 -23
  55. package/dist/{render-HS2YWRJE.js → render-VAOMAQV2.js} +11 -11
  56. package/dist/{rewrite-fallback-3YVRWPRM.js → rewrite-fallback-7PR7V3AZ.js} +13 -13
  57. package/dist/seal-RZZNRJFL.js +14 -0
  58. package/dist/{setup-YK2SCVLP.js → setup-6DXZJQCT.js} +3 -3
  59. package/dist/to-hwpx-A56R6H27.js +20 -0
  60. package/dist/visual-25RY7EFI.js +42 -0
  61. package/dist/{watch-CQX4TSVQ.js → watch-7W6CKGX7.js} +23 -23
  62. package/package.json +1 -1
  63. package/dist/chunk-74QGGXVH.js.map +0 -1
  64. package/dist/chunk-PCOKS4ZE.js.map +0 -7
  65. package/dist/chunk-RECWLRRB.js.map +0 -7
  66. package/dist/chunk-TPPL3OVT.js.map +0 -7
  67. package/dist/chunks-IDWF6IOZ.js +0 -10
  68. package/dist/memo-RND3VIEW.js +0 -15
  69. package/dist/seal-DYLPFEC6.js +0 -14
  70. package/dist/to-hwpx-XNBAWVNY.js +0 -20
  71. package/dist/visual-SQORG4IC.js +0 -42
  72. /package/dist/{chunk-CZFY7JGT.js.map → chunk-24LB25LZ.js.map} +0 -0
  73. /package/dist/{chunk-HKO6HWYM.js.map → chunk-3AYNFK6J.js.map} +0 -0
  74. /package/dist/{chunk-LQGZ3PBZ.js.map → chunk-5ULHNZ3P.js.map} +0 -0
  75. /package/dist/{chunk-EFBIMFVT.js.map → chunk-6I3X54AQ.js.map} +0 -0
  76. /package/dist/{chunk-HH5IOQTP.js.map → chunk-6MCJHRSM.js.map} +0 -0
  77. /package/dist/{chunk-UTLVAA7X.js.map → chunk-DZOA5N5W.js.map} +0 -0
  78. /package/dist/{chunk-HCHWG3HO.js.map → chunk-FDSFXE2L.js.map} +0 -0
  79. /package/dist/{chunk-ZCDTZZ3C.js.map → chunk-GJORKM42.js.map} +0 -0
  80. /package/dist/{chunk-VOK3R4WW.js.map → chunk-HQILGS2O.js.map} +0 -0
  81. /package/dist/{chunk-FCWPQZYU.js.map → chunk-KW4JO5CV.js.map} +0 -0
  82. /package/dist/{chunk-EI4PBZW2.js.map → chunk-LSUTK3DH.js.map} +0 -0
  83. /package/dist/{chunk-FZ7XCPHO.js.map → chunk-MWCJYIJC.js.map} +0 -0
  84. /package/dist/{chunk-6YQ2LARO.js.map → chunk-PFNZQ3XI.js.map} +0 -0
  85. /package/dist/{chunk-XCD6WLTU.js.map → chunk-PVOLFVXE.js.map} +0 -0
  86. /package/dist/{chunk-FNMJ2DK4.js.map → chunk-QNJ2LMUO.js.map} +0 -0
  87. /package/dist/{chunk-VVR2ZSFZ.js.map → chunk-QOCUFTT4.js.map} +0 -0
  88. /package/dist/{chunk-3DX4GW75.js.map → chunk-S553BW45.js.map} +0 -0
  89. /package/dist/{chunk-IUD535LX.js.map → chunk-TI6S3KZF.js.map} +0 -0
  90. /package/dist/{chunk-LEWJRIVZ.js.map → chunk-W5AHXAUP.js.map} +0 -0
  91. /package/dist/{chunk-TW6WYJD6.js.map → chunk-XUBBFY3H.js.map} +0 -0
  92. /package/dist/{chunk-LXPFTU3C.js.map → chunk-ZCMMU34Z.js.map} +0 -0
  93. /package/dist/{chunk-IVNUMREN.js.map → chunk-ZO4P735U.js.map} +0 -0
  94. /package/dist/{chunks-IDWF6IOZ.js.map → chunks-XX7RHVQF.js.map} +0 -0
  95. /package/dist/{formula-U2RXOOE4.js.map → formula-HMKT4BZL.js.map} +0 -0
  96. /package/dist/{generator-K6I6IYOH.js.map → generator-HOY4SZ26.js.map} +0 -0
  97. /package/dist/{hancom-ARDTLWD5.js.map → hancom-QWJBWOOE.js.map} +0 -0
  98. /package/dist/{image-ocr-RDWOEEQ2.js.map → image-ocr-P5AIZNT3.js.map} +0 -0
  99. /package/dist/{memo-RND3VIEW.js.map → memo-Q7772VJD.js.map} +0 -0
  100. /package/dist/{model-bundle-A6C5PVSS.js.map → model-bundle-5CXCIZHZ.js.map} +0 -0
  101. /package/dist/{models-KTY3IZU2.js.map → models-PS4L7NLP.js.map} +0 -0
  102. /package/dist/{page-images-PVXQYU7Z.js.map → page-images-QW7IUTUB.js.map} +0 -0
  103. /package/dist/{parse-worker-v2-E4T4427H.js.map → parse-worker-v2-PRH6KVKP.js.map} +0 -0
  104. /package/dist/{pdf-ocr-C6DYPI2Q.js.map → pdf-ocr-ZH4JAUTR.js.map} +0 -0
  105. /package/dist/{profile-io-LZ5YPCIW.js.map → profile-io-JFRAM2VE.js.map} +0 -0
  106. /package/dist/{rasterize-K2VVPUGE.js.map → rasterize-JJOMUTYX.js.map} +0 -0
  107. /package/dist/{redact-doc-A3M2YEXE.js.map → redact-doc-A7TW4MNF.js.map} +0 -0
  108. /package/dist/{render-HS2YWRJE.js.map → render-VAOMAQV2.js.map} +0 -0
  109. /package/dist/{rewrite-fallback-3YVRWPRM.js.map → rewrite-fallback-7PR7V3AZ.js.map} +0 -0
  110. /package/dist/{seal-DYLPFEC6.js.map → seal-RZZNRJFL.js.map} +0 -0
  111. /package/dist/{setup-YK2SCVLP.js.map → setup-6DXZJQCT.js.map} +0 -0
  112. /package/dist/{to-hwpx-XNBAWVNY.js.map → to-hwpx-A56R6H27.js.map} +0 -0
  113. /package/dist/{visual-SQORG4IC.js.map → visual-25RY7EFI.js.map} +0 -0
  114. /package/dist/{watch-CQX4TSVQ.js.map → watch-7W6CKGX7.js.map} +0 -0
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  collectSites
3
- } from "./chunk-VVR2ZSFZ.js";
3
+ } from "./chunk-QOCUFTT4.js";
4
4
  import {
5
5
  patchZipEntries
6
- } from "./chunk-HH5IOQTP.js";
6
+ } from "./chunk-6MCJHRSM.js";
7
7
  import {
8
8
  applySplices,
9
9
  changedLinesegRemovalSplices,
@@ -13,14 +13,14 @@ import {
13
13
  } from "./chunk-B2SRYWEY.js";
14
14
  import {
15
15
  readZipEntry
16
- } from "./chunk-EFBIMFVT.js";
16
+ } from "./chunk-6I3X54AQ.js";
17
17
  import {
18
18
  fileTimeText
19
- } from "./chunk-EI4PBZW2.js";
19
+ } from "./chunk-LSUTK3DH.js";
20
20
  import {
21
21
  KordocError,
22
22
  precheckZipSize
23
- } from "./chunk-CZFY7JGT.js";
23
+ } from "./chunk-24LB25LZ.js";
24
24
 
25
25
  // src/form/memo.ts
26
26
  import JSZip from "jszip";
@@ -127,4 +127,4 @@ async function addMemoHwpx(hwpxBuffer, ops, now = /* @__PURE__ */ new Date()) {
127
127
  export {
128
128
  addMemoHwpx
129
129
  };
130
- //# sourceMappingURL=chunk-LEWJRIVZ.js.map
130
+ //# sourceMappingURL=chunk-W5AHXAUP.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  inlineImagesIntoMarkdown
3
- } from "./chunk-PCOKS4ZE.js";
3
+ } from "./chunk-5PEMTYTM.js";
4
4
  import {
5
5
  hwpEquationToLatex
6
6
  } from "./chunk-AASNBZDZ.js";
@@ -34,7 +34,7 @@ import {
34
34
  parseFileHeader,
35
35
  readRecords,
36
36
  resolveLiteralLt
37
- } from "./chunk-EI4PBZW2.js";
37
+ } from "./chunk-LSUTK3DH.js";
38
38
  import {
39
39
  TOC_ENTRY_BLOCKS,
40
40
  takeTocLeaders
@@ -52,7 +52,7 @@ import {
52
52
  HEADING_RATIO_H3,
53
53
  tidyScriptTags,
54
54
  unframeLayoutTables
55
- } from "./chunk-ZCDTZZ3C.js";
55
+ } from "./chunk-GJORKM42.js";
56
56
  import {
57
57
  MAX_COLS,
58
58
  MAX_ROWS,
@@ -65,7 +65,7 @@ import {
65
65
  flattenLayoutTables,
66
66
  markNonLayoutTable,
67
67
  sanitizeText
68
- } from "./chunk-HKO6HWYM.js";
68
+ } from "./chunk-3AYNFK6J.js";
69
69
  import {
70
70
  circledHangul,
71
71
  circledNumber,
@@ -76,7 +76,7 @@ import {
76
76
  import {
77
77
  KordocError,
78
78
  sanitizeHref
79
- } from "./chunk-CZFY7JGT.js";
79
+ } from "./chunk-24LB25LZ.js";
80
80
 
81
81
  // src/memo-notes.ts
82
82
  var squash = (s) => sanitizeText(s).replace(/\s+/g, "");
@@ -2758,4 +2758,4 @@ export {
2758
2758
  parseHwp5Document,
2759
2759
  extractHwp5MetadataOnly
2760
2760
  };
2761
- //# sourceMappingURL=chunk-TW6WYJD6.js.map
2761
+ //# sourceMappingURL=chunk-XUBBFY3H.js.map
@@ -2,7 +2,7 @@ import {
2
2
  ensureModelsIn,
3
3
  getModelStatusIn,
4
4
  getModelsDir
5
- } from "./chunk-IVNUMREN.js";
5
+ } from "./chunk-ZO4P735U.js";
6
6
 
7
7
  // src/ocr/models.ts
8
8
  import { join } from "path";
@@ -193,4 +193,4 @@ export {
193
193
  parseCharacterDict,
194
194
  ocrModelPath
195
195
  };
196
- //# sourceMappingURL=chunk-LXPFTU3C.js.map
196
+ //# sourceMappingURL=chunk-ZCMMU34Z.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  assertNetworkAllowed
3
- } from "./chunk-IUD535LX.js";
3
+ } from "./chunk-TI6S3KZF.js";
4
4
 
5
5
  // src/pdf/formula/models.ts
6
6
  import { createHash as createHash2 } from "crypto";
@@ -299,4 +299,4 @@ export {
299
299
  ensureFormulaModels,
300
300
  ensureSingleModel
301
301
  };
302
- //# sourceMappingURL=chunk-IVNUMREN.js.map
302
+ //# sourceMappingURL=chunk-ZO4P735U.js.map
@@ -0,0 +1,10 @@
1
+ import {
2
+ blocksToChunks
3
+ } from "./chunk-DZOA5N5W.js";
4
+ import "./chunk-3AYNFK6J.js";
5
+ import "./chunk-QXQX4AN7.js";
6
+ import "./chunk-24LB25LZ.js";
7
+ export {
8
+ blocksToChunks
9
+ };
10
+ //# sourceMappingURL=chunks-XX7RHVQF.js.map
package/dist/cli.js CHANGED
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  parseWorkerFile
4
- } from "./chunk-FCWPQZYU.js";
4
+ } from "./chunk-KW4JO5CV.js";
5
5
  import {
6
6
  parseFormatProfileJson
7
- } from "./chunk-6YQ2LARO.js";
7
+ } from "./chunk-PFNZQ3XI.js";
8
8
  import {
9
9
  BODY_FONTS,
10
10
  BULLET2_CHARS,
@@ -50,14 +50,14 @@ import {
50
50
  unknownFontWarnings,
51
51
  usesGaejosikMunche,
52
52
  usesLogicStructure
53
- } from "./chunk-FZ7XCPHO.js";
54
- import "./chunk-FNMJ2DK4.js";
55
- import "./chunk-VOK3R4WW.js";
56
- import "./chunk-XCD6WLTU.js";
53
+ } from "./chunk-MWCJYIJC.js";
54
+ import "./chunk-QNJ2LMUO.js";
55
+ import "./chunk-HQILGS2O.js";
56
+ import "./chunk-PVOLFVXE.js";
57
57
  import {
58
58
  extractClickHereFields
59
- } from "./chunk-RECWLRRB.js";
60
- import "./chunk-HCHWG3HO.js";
59
+ } from "./chunk-TYJSNW4Z.js";
60
+ import "./chunk-FDSFXE2L.js";
61
61
  import "./chunk-YVFNHYJK.js";
62
62
  import {
63
63
  PRESET_ALIAS,
@@ -66,11 +66,11 @@ import {
66
66
  markdownToHwpx,
67
67
  parseLeadingMarker,
68
68
  resolveSectionPaths
69
- } from "./chunk-TPPL3OVT.js";
70
- import "./chunk-LQGZ3PBZ.js";
71
- import "./chunk-LEWJRIVZ.js";
72
- import "./chunk-VVR2ZSFZ.js";
73
- import "./chunk-HH5IOQTP.js";
69
+ } from "./chunk-DHXKCDAU.js";
70
+ import "./chunk-5ULHNZ3P.js";
71
+ import "./chunk-W5AHXAUP.js";
72
+ import "./chunk-QOCUFTT4.js";
73
+ import "./chunk-6MCJHRSM.js";
74
74
  import {
75
75
  extractFormFields,
76
76
  fillPlan,
@@ -79,20 +79,20 @@ import {
79
79
  import {
80
80
  createXmlParser,
81
81
  readZipEntry
82
- } from "./chunk-EFBIMFVT.js";
82
+ } from "./chunk-6I3X54AQ.js";
83
83
  import "./chunk-IXQ45P43.js";
84
84
  import {
85
85
  hwpToHwpx
86
- } from "./chunk-3DX4GW75.js";
86
+ } from "./chunk-S553BW45.js";
87
87
  import {
88
88
  detectImageMime
89
- } from "./chunk-TW6WYJD6.js";
90
- import "./chunk-PCOKS4ZE.js";
89
+ } from "./chunk-XUBBFY3H.js";
90
+ import "./chunk-5PEMTYTM.js";
91
91
  import "./chunk-AASNBZDZ.js";
92
- import "./chunk-EI4PBZW2.js";
92
+ import "./chunk-LSUTK3DH.js";
93
93
  import "./chunk-WIIPAV2D.js";
94
94
  import "./chunk-F5EARPSA.js";
95
- import "./chunk-UTLVAA7X.js";
95
+ import "./chunk-DZOA5N5W.js";
96
96
  import "./chunk-Y56TLZ42.js";
97
97
  import {
98
98
  detectFormat,
@@ -102,14 +102,14 @@ import "./chunk-Y6BVOW4Y.js";
102
102
  import "./chunk-DUAZNEQ6.js";
103
103
  import "./chunk-ZDISS2SZ.js";
104
104
  import "./chunk-L3U4XTBO.js";
105
- import "./chunk-ZCDTZZ3C.js";
105
+ import "./chunk-GJORKM42.js";
106
106
  import {
107
107
  blocksToMarkdown
108
- } from "./chunk-HKO6HWYM.js";
108
+ } from "./chunk-3AYNFK6J.js";
109
109
  import "./chunk-QXQX4AN7.js";
110
110
  import "./chunk-AY66PEUP.js";
111
- import "./chunk-IVNUMREN.js";
112
- import "./chunk-IUD535LX.js";
111
+ import "./chunk-ZO4P735U.js";
112
+ import "./chunk-TI6S3KZF.js";
113
113
  import {
114
114
  KordocError,
115
115
  VERSION,
@@ -119,7 +119,7 @@ import {
119
119
  sanitizeError,
120
120
  stripDtd,
121
121
  toArrayBuffer
122
- } from "./chunk-CZFY7JGT.js";
122
+ } from "./chunk-24LB25LZ.js";
123
123
 
124
124
  // src/cli.ts
125
125
  import { Command, Option } from "commander";
@@ -271,7 +271,7 @@ async function convertFiles(files, opts, writeOutput = (text) => {
271
271
  `);
272
272
  }
273
273
  } else if (opts.format === "chunks") {
274
- const { blocksToChunks } = await import("./chunks-IDWF6IOZ.js");
274
+ const { blocksToChunks } = await import("./chunks-XX7RHVQF.js");
275
275
  const chunks = blocksToChunks(result.blocks, { tableFormat: parseOptions.tableFormat }).map((c) => {
276
276
  let text = c.text;
277
277
  if (opts.plain) text = toPlainMarkdown(text);
@@ -455,7 +455,7 @@ function registerDocCommands(program2) {
455
455
  if (command.getOptionValueSource("format") === "default" && program2.getOptionValueSource("format") === "cli") {
456
456
  opts.format = rootOpts.format;
457
457
  }
458
- const { watchDirectory } = await import("./watch-CQX4TSVQ.js");
458
+ const { watchDirectory } = await import("./watch-7W6CKGX7.js");
459
459
  await watchDirectory({
460
460
  dir,
461
461
  outDir: opts.outDir,
@@ -854,7 +854,7 @@ function registerDocCommands(program2) {
854
854
  const result = format === "hwp" ? await patchHwp(originalBuf, editedMarkdown, { verify: opts.verify !== false, keepLineseg: opts.keepLineseg === true }) : await patchHwpx(originalBuf, editedMarkdown, { verify: opts.verify !== false, structure: opts.structure !== false });
855
855
  const ext = format === "hwp" ? ".hwp" : ".hwpx";
856
856
  const outPath = resolve3(output ?? original.replace(/\.hwpx?$/i, "") + ".patched" + ext);
857
- const { needsRewrite, rewriteEdited, rewritePath } = await import("./rewrite-fallback-3YVRWPRM.js");
857
+ const { needsRewrite, rewriteEdited, rewritePath } = await import("./rewrite-fallback-7PR7V3AZ.js");
858
858
  const rewrite = needsRewrite(result) ? await rewriteEdited(originalBuf, format !== "hwp", editedMarkdown, result.success) : null;
859
859
  const rewriteOut = rewrite ? rewritePath(outPath) : void 0;
860
860
  if (rewrite && rewriteOut) {
@@ -1738,7 +1738,7 @@ function registerGenerateCommands(program2) {
1738
1738
  });
1739
1739
  program2.command("redact <files...>").description("개인정보 서식 보존 마스킹 — 주민·외국인등록번호·전화·이메일·카드·계좌·사업자등록번호·여권·운전면허(--rules 로 인명·주소 opt-in)를 탐지해 HWPX/HWP는 원본 서식 그대로 같은 길이로 가린 파일(본문·표·머리말/꼬리말·각주·글상자·미리보기·메타데이터 포함), 그 외 포맷(PDF 등)은 원본을 건드리지 않고 마스킹된 마크다운만 출력. 자동 검출 보조 도구이므로 결과는 반드시 사람이 최종 확인하세요 (이미지 속 글자는 탐지 불가)").option("--rules <csv>", "적용 룰 (기본: rrn,phone,email,card,account,brn,passport,driver — crn(법인등록번호),ip,name(인명),address(주소)는 opt-in)").option("--model [variant]", "인명·주소를 학습 모델(schift-ko-pii-ax-v1)로도 탐지 — name·address 룰을 함께 켬. variant: int8(기본, 처음 151MB 받음)·q4(81MB). onnxruntime-node 필요, 모델은 Schift License v2.0").option("--mask-char <ch>", "마스크 문자 1글자 (기본: ●)").option("-o, --output <path>", "출력 경로 (단일 파일 시)").option("-d, --out-dir <dir>", "출력 디렉토리 (다중 파일 시)").option("--dry-run", "탐지 리포트만 출력, 파일 미생성").option("--json", "리포트를 JSON으로 stdout 출력").option("--silent", "진행 메시지 숨기기").action(async (files, opts) => {
1740
1740
  const { ALL_REDACT_RULES, DEFAULT_REDACT_RULES, redactText } = await import("./redact-JY72ESQ6.js");
1741
- const { redactDocument } = await import("./redact-doc-A3M2YEXE.js");
1741
+ const { redactDocument } = await import("./redact-doc-A7TW4MNF.js");
1742
1742
  const rootOpts = program2.opts();
1743
1743
  const output = opts.output ?? rootOpts.output;
1744
1744
  const outDir = opts.outDir ?? rootOpts.outDir;
@@ -1959,7 +1959,7 @@ function registerRenderCommands(program2) {
1959
1959
  const absPath = resolve7(file);
1960
1960
  const stem = file.replace(/\.hwpx?$/i, "");
1961
1961
  if (fmt === "svg" && !outDir && !pages && !/\.hwp$/i.test(absPath)) {
1962
- const { renderHwpxToSvg } = await import("./render-HS2YWRJE.js");
1962
+ const { renderHwpxToSvg } = await import("./render-VAOMAQV2.js");
1963
1963
  const buffer = readFileSync6(absPath);
1964
1964
  const result = await renderHwpxToSvg(toArrayBuffer(buffer), { highlights, reflow: opts.reflow, reflowMode: opts.reflowMode, password: rootOpts.password });
1965
1965
  const outPath = resolve7(output ?? stem + ".svg");
@@ -1973,7 +1973,7 @@ function registerRenderCommands(program2) {
1973
1973
  }
1974
1974
  return;
1975
1975
  }
1976
- const { renderDocument } = await import("./render-HS2YWRJE.js");
1976
+ const { renderDocument } = await import("./render-VAOMAQV2.js");
1977
1977
  const { scene, assets } = await renderDocument(absPath, {
1978
1978
  format: fmt,
1979
1979
  pages,
@@ -2024,7 +2024,7 @@ function registerRenderCommands(program2) {
2024
2024
  if (!outDir) throw new KordocError("--out-dir 이 필요합니다 (crop 은 파일 여러 개를 냅니다)");
2025
2025
  const types = String(opts.target).split(",").map((t) => t.trim()).filter(Boolean);
2026
2026
  for (const t of types) if (!["table", "image", "paragraph", "shape"].includes(t)) throw new KordocError(`--target 유형 오류: ${t}`);
2027
- const { extractRenderedRegions } = await import("./render-HS2YWRJE.js");
2027
+ const { extractRenderedRegions } = await import("./render-VAOMAQV2.js");
2028
2028
  const regions = await extractRenderedRegions(resolve7(file), {
2029
2029
  types,
2030
2030
  format: fmt,
@@ -2062,7 +2062,7 @@ function registerRenderCommands(program2) {
2062
2062
  if (policy !== "none" && !outDir) throw new KordocError("--visual 은 crop 파일을 내므로 --out-dir 이 필요합니다");
2063
2063
  const cropFmt = String(opts.cropFormat);
2064
2064
  if (!["png", "jpeg"].includes(cropFmt)) throw new KordocError(`--crop-format 은 png|jpeg: ${cropFmt}`);
2065
- const { extractTables } = await import("./visual-SQORG4IC.js");
2065
+ const { extractTables } = await import("./visual-25RY7EFI.js");
2066
2066
  const tables = await extractTables(resolve7(file), { policy, format: cropFmt, paddingPt: Number(opts.padding) || 0 });
2067
2067
  const dir = outDir ? resolve7(outDir) : void 0;
2068
2068
  if (dir) mkdirSync6(dir, { recursive: true });
@@ -2106,7 +2106,7 @@ function registerRenderCommands(program2) {
2106
2106
  });
2107
2107
  program2.command("render-worker").description("persistent 렌더 워커 — stdin NDJSON 요청 → 조판 SVG 파일 출력 (프로세스 유지, 콜드스타트 제거)").action(async () => {
2108
2108
  const { createInterface } = await import("node:readline");
2109
- const { renderHwpxToSvg } = await import("./render-HS2YWRJE.js");
2109
+ const { renderHwpxToSvg } = await import("./render-VAOMAQV2.js");
2110
2110
  const rl = createInterface({ input: process.stdin });
2111
2111
  const write = (o) => void process.stdout.write(JSON.stringify(o) + "\n");
2112
2112
  write({ ready: true, version: VERSION });
@@ -2155,12 +2155,12 @@ function registerSystemCommands(program2) {
2155
2155
  await startMcpServer();
2156
2156
  });
2157
2157
  program2.command("setup").description("대화형 설치 마법사 — AI 클라이언트 자동 등록 (Mac/Win/Linux)").action(async () => {
2158
- const { runSetup } = await import("./setup-YK2SCVLP.js");
2158
+ const { runSetup } = await import("./setup-6DXZJQCT.js");
2159
2159
  await runSetup();
2160
2160
  });
2161
2161
  program2.command("check-formula-models").description("PDF 수식 OCR 모델(MFD + MFR + tokenizer, ~155MB) 상태 확인 — 없거나 SHA 불일치면 다운로드").option("--status-only", "상태만 JSON 으로 출력 (다운로드 안 함)").action(async (opts) => {
2162
2162
  try {
2163
- const { getFormulaModelStatus, ensureFormulaModels, getFormulaModelsDir } = await import("./formula-U2RXOOE4.js");
2163
+ const { getFormulaModelStatus, ensureFormulaModels, getFormulaModelsDir } = await import("./formula-HMKT4BZL.js");
2164
2164
  const dir = getFormulaModelsDir();
2165
2165
  if (opts.statusOnly) {
2166
2166
  const status = await getFormulaModelStatus();
@@ -2214,7 +2214,7 @@ function registerSystemCommands(program2) {
2214
2214
  });
2215
2215
  program2.command("check-ocr-models").description("텍스트 OCR 모델(PP-OCRv5 korean det+rec, ~18MB) 상태 확인 — 없거나 SHA 불일치면 다운로드").option("--status-only", "상태만 JSON 으로 출력 (다운로드 안 함)").action(async (opts) => {
2216
2216
  try {
2217
- const { getOcrModelStatus, ensureOcrModels, getOcrModelsDir } = await import("./models-KTY3IZU2.js");
2217
+ const { getOcrModelStatus, ensureOcrModels, getOcrModelsDir } = await import("./models-PS4L7NLP.js");
2218
2218
  const dir = getOcrModelsDir();
2219
2219
  if (opts.statusOnly) {
2220
2220
  const status = await getOcrModelStatus();
@@ -2268,7 +2268,7 @@ function registerSystemCommands(program2) {
2268
2268
  });
2269
2269
  program2.command("models").description("OCR/수식 모델 오프라인 사이드로드 — 폐쇄망 반입용 내보내기/가져오기 (SHA-256 검증)").option("--status", "캐시에 설치된 모델 상태를 JSON 으로 출력").option("--export <dir>", "로컬 캐시 → 번들 디렉토리로 내보내기 (온라인 PC에서 실행)").option("--import <dir>", "번들 디렉토리 → 로컬 캐시로 설치 (내부망 PC에서 실행)").action(async (opts) => {
2270
2270
  try {
2271
- const { exportModels, importModels, modelCacheStatus } = await import("./model-bundle-A6C5PVSS.js");
2271
+ const { exportModels, importModels, modelCacheStatus } = await import("./model-bundle-5CXCIZHZ.js");
2272
2272
  if (opts.status) {
2273
2273
  process.stdout.write(JSON.stringify(await modelCacheStatus(), null, 2) + "\n");
2274
2274
  return;
@@ -2334,7 +2334,7 @@ function registerWorkerCommands(program2) {
2334
2334
  const maxRequestBytes = limit(opts.maxRequestBytes, "--max-request-bytes");
2335
2335
  const maxResponseBytes = limit(opts.maxResponseBytes, "--max-response-bytes");
2336
2336
  routeConsoleToStderr();
2337
- const { runParseWorkerV2 } = await import("./parse-worker-v2-E4T4427H.js");
2337
+ const { runParseWorkerV2 } = await import("./parse-worker-v2-PRH6KVKP.js");
2338
2338
  await runParseWorkerV2({ maxRequestBytes, maxResponseBytes });
2339
2339
  process.exit(0);
2340
2340
  }
@@ -11,9 +11,9 @@ import {
11
11
  ensureSingleModel,
12
12
  getFormulaModelStatus,
13
13
  getFormulaModelsDir
14
- } from "./chunk-IVNUMREN.js";
15
- import "./chunk-IUD535LX.js";
16
- import "./chunk-CZFY7JGT.js";
14
+ } from "./chunk-ZO4P735U.js";
15
+ import "./chunk-TI6S3KZF.js";
16
+ import "./chunk-24LB25LZ.js";
17
17
 
18
18
  // src/pdf/formula/postprocess.ts
19
19
  var TRAILING_WHITESPACE_CMDS = [
@@ -1176,4 +1176,4 @@ export {
1176
1176
  getFormulaModelsDir,
1177
1177
  postProcessLatex
1178
1178
  };
1179
- //# sourceMappingURL=formula-U2RXOOE4.js.map
1179
+ //# sourceMappingURL=formula-HMKT4BZL.js.map
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  markdownToHwpx
3
- } from "./chunk-TPPL3OVT.js";
4
- import "./chunk-LQGZ3PBZ.js";
3
+ } from "./chunk-DHXKCDAU.js";
4
+ import "./chunk-5ULHNZ3P.js";
5
5
  import "./chunk-B2SRYWEY.js";
6
- import "./chunk-EFBIMFVT.js";
6
+ import "./chunk-6I3X54AQ.js";
7
7
  import "./chunk-IXQ45P43.js";
8
8
  import "./chunk-AASNBZDZ.js";
9
9
  import "./chunk-WIIPAV2D.js";
10
10
  import "./chunk-L3U4XTBO.js";
11
- import "./chunk-ZCDTZZ3C.js";
12
- import "./chunk-HKO6HWYM.js";
11
+ import "./chunk-GJORKM42.js";
12
+ import "./chunk-3AYNFK6J.js";
13
13
  import "./chunk-QXQX4AN7.js";
14
- import "./chunk-CZFY7JGT.js";
14
+ import "./chunk-24LB25LZ.js";
15
15
  export {
16
16
  markdownToHwpx
17
17
  };
18
- //# sourceMappingURL=generator-K6I6IYOH.js.map
18
+ //# sourceMappingURL=generator-HOY4SZ26.js.map
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-IXQ45P43.js";
6
6
  import {
7
7
  KordocError
8
- } from "./chunk-CZFY7JGT.js";
8
+ } from "./chunk-24LB25LZ.js";
9
9
 
10
10
  // src/hwp5/to-hwpx/hancom.ts
11
11
  import { execFileSync } from "child_process";
@@ -87,4 +87,4 @@ export {
87
87
  hancomSaveInvocation,
88
88
  hwpToHwpxViaHancom
89
89
  };
90
- //# sourceMappingURL=hancom-ARDTLWD5.js.map
90
+ //# sourceMappingURL=hancom-QWJBWOOE.js.map
@@ -2,7 +2,7 @@ import {
2
2
  dcxPages,
3
3
  heicToRgba,
4
4
  pcxToRgba
5
- } from "./chunk-HCHWG3HO.js";
5
+ } from "./chunk-FDSFXE2L.js";
6
6
  import {
7
7
  flushHeifCache
8
8
  } from "./chunk-YVFNHYJK.js";
@@ -10,7 +10,7 @@ import {
10
10
  MAX_PIXELS,
11
11
  bmpToRgba,
12
12
  encodePng
13
- } from "./chunk-PCOKS4ZE.js";
13
+ } from "./chunk-5PEMTYTM.js";
14
14
  import {
15
15
  imageFormat
16
16
  } from "./chunk-5TS72XT2.js";
@@ -30,30 +30,30 @@ import {
30
30
  rescueEmptyCells,
31
31
  rotateQuarter,
32
32
  rulingToPdfLines
33
- } from "./chunk-NCO7BAS7.js";
34
- import "./chunk-74QGGXVH.js";
33
+ } from "./chunk-COJYQKGH.js";
34
+ import "./chunk-5MDRUEHP.js";
35
35
  import "./chunk-DUAZNEQ6.js";
36
36
  import "./chunk-ZDISS2SZ.js";
37
37
  import "./chunk-L3U4XTBO.js";
38
- import "./chunk-ZCDTZZ3C.js";
39
- import "./chunk-HKO6HWYM.js";
38
+ import "./chunk-GJORKM42.js";
39
+ import "./chunk-3AYNFK6J.js";
40
40
  import "./chunk-QXQX4AN7.js";
41
41
  import {
42
42
  ensureOcrModelsFor
43
- } from "./chunk-LXPFTU3C.js";
43
+ } from "./chunk-ZCMMU34Z.js";
44
44
  import "./chunk-AY66PEUP.js";
45
- import "./chunk-IVNUMREN.js";
46
- import "./chunk-IUD535LX.js";
45
+ import "./chunk-ZO4P735U.js";
46
+ import "./chunk-TI6S3KZF.js";
47
47
  import {
48
48
  KordocError,
49
49
  OPTIONAL_DEP_INSTALL_HINT
50
- } from "./chunk-CZFY7JGT.js";
50
+ } from "./chunk-24LB25LZ.js";
51
51
 
52
52
  // src/ocr/image-formula.ts
53
53
  async function applyImageFormulas(items, rgba, width, height, warnings) {
54
54
  let regions;
55
55
  try {
56
- const { FormulaPipeline, ensureFormulaModels } = await import("./formula-U2RXOOE4.js");
56
+ const { FormulaPipeline, ensureFormulaModels } = await import("./formula-HMKT4BZL.js");
57
57
  await ensureFormulaModels();
58
58
  const pipeline = await FormulaPipeline.create();
59
59
  try {
@@ -290,4 +290,4 @@ export {
290
290
  imageScale,
291
291
  parseImageDocument
292
292
  };
293
- //# sourceMappingURL=image-ocr-RDWOEEQ2.js.map
293
+ //# sourceMappingURL=image-ocr-P5AIZNT3.js.map