kordoc 4.25.11 → 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 +3 -3
  2. package/dist/{chunk-5XGYWAZQ.js → chunk-32WLCR37.js} +2 -2
  3. package/dist/{chunk-YMMMRJCT.js → chunk-42FWJVN5.js} +4 -4
  4. package/dist/{chunk-QCUYNOP5.js → chunk-4J2DUBJJ.js} +2 -2
  5. package/dist/{chunk-U6FMV4FC.js → chunk-6CHKXHKR.js} +6 -6
  6. package/dist/{chunk-FNUKGSZ7.js → chunk-AII6CXYG.js} +4 -2
  7. package/dist/{chunk-FNUKGSZ7.js.map → chunk-AII6CXYG.js.map} +2 -2
  8. package/dist/{chunk-JWCSKPQV.js → chunk-BPY62DTT.js} +2 -2
  9. package/dist/{chunk-BV7UNFZB.js → chunk-C4TGNDQY.js} +18 -18
  10. package/dist/{chunk-D6COQDDG.js → chunk-CGXJE6Y5.js} +5 -5
  11. package/dist/chunk-DQDATFAC.js +11544 -0
  12. package/dist/chunk-DQDATFAC.js.map +1 -0
  13. package/dist/{chunk-MGQN2FF7.js → chunk-I52IXA2S.js} +2 -2
  14. package/dist/{chunk-RL55T7WN.js → chunk-KRP74WIV.js} +8 -8
  15. package/dist/{chunk-WTR27MWJ.js → chunk-MQAUBK77.js} +2 -2
  16. package/dist/{chunk-MBQOLEH4.js → chunk-N2EOYLZX.js} +10 -10
  17. package/dist/{chunk-55A447ZO.js → chunk-NEVZP6O3.js} +2 -2
  18. package/dist/{chunk-C7TBGCBG.js → chunk-NL4434I2.js} +2 -2
  19. package/dist/{chunk-26SWJ36T.js → chunk-NLZ44M5L.js} +6 -6
  20. package/dist/{chunk-BSTHPX7I.js → chunk-NQXM6MED.js} +2 -2
  21. package/dist/{chunk-QVZ22GJL.js → chunk-QVZEBMYW.js} +2 -2
  22. package/dist/{chunk-UZYND5YL.js → chunk-QYS4V2OA.js} +4 -4
  23. package/dist/{chunk-2PDA3G4N.js → chunk-RQPM72FM.js} +2 -2
  24. package/dist/{chunk-OGLPSYMT.js → chunk-SKIWLEZA.js} +3 -3
  25. package/dist/{chunk-POMLBQYN.js → chunk-SPFCULY3.js} +2 -2
  26. package/dist/{chunk-LEXLIQPZ.js → chunk-TSEJQZ7C.js} +2 -2
  27. package/dist/{chunk-E3G6CWCK.js → chunk-VCLEQ7GS.js} +3 -3
  28. package/dist/{chunk-A6IVC2QY.js → chunk-YSOBUGNT.js} +6 -6
  29. package/dist/{chunk-76AGDTU4.js → chunk-ZRXXCZRZ.js} +2 -2
  30. package/dist/chunks-SIAIY4VX.js +10 -0
  31. package/dist/cli.js +37 -37
  32. package/dist/{formula-FDVCTHUW.js → formula-ZM2EYXWB.js} +4 -4
  33. package/dist/{generator-7BL4LOSI.js → generator-AUA3RJD6.js} +7 -7
  34. package/dist/{hancom-JLKEVVHZ.js → hancom-M6DIM23B.js} +2 -2
  35. package/dist/{image-ocr-TERE3BVW.js → image-ocr-LZH6Q32C.js} +11 -11
  36. package/dist/index.cjs +10 -5
  37. package/dist/index.cjs.map +1 -7
  38. package/dist/index.js +21 -21
  39. package/dist/mcp.js +33 -33
  40. package/dist/memo-W2SNZRX5.js +15 -0
  41. package/dist/{model-bundle-W475P46B.js → model-bundle-C4A7JHYJ.js} +5 -5
  42. package/dist/{models-355HCTHN.js → models-K5FUWGWQ.js} +5 -5
  43. package/dist/{page-images-6V4ITZOV.js → page-images-O6SF454R.js} +2 -2
  44. package/dist/{parse-worker-v2-FRPCYNFL.js → parse-worker-v2-Y7SF2Q6I.js} +23 -23
  45. package/dist/{parser-HUFDUGGR.js → parser-ZHK66LCI.js} +20 -17
  46. package/dist/{parser-HUFDUGGR.js.map → parser-ZHK66LCI.js.map} +2 -2
  47. package/dist/{pdf-ocr-N3Y2U7RW.js → pdf-ocr-IU2UUBMJ.js} +9 -9
  48. package/dist/{profile-io-NP3WBLKY.js → profile-io-ZF7UPT6V.js} +3 -3
  49. package/dist/{rasterize-BN5LON4H.js → rasterize-QO3NBE33.js} +3 -3
  50. package/dist/{redact-doc-UDJAVQJ2.js → redact-doc-KIA2A3RM.js} +22 -22
  51. package/dist/{render-SY6FTYPO.js → render-7UZDAEZ7.js} +10 -10
  52. package/dist/{rewrite-fallback-LBP6FTJX.js → rewrite-fallback-YO6ZVEAI.js} +12 -12
  53. package/dist/seal-W2BHUQA4.js +14 -0
  54. package/dist/{setup-G7IX4KU7.js → setup-X5GNUS4Q.js} +3 -3
  55. package/dist/{to-hwpx-MEKEYN65.js → to-hwpx-TE7TLCR5.js} +7 -7
  56. package/dist/visual-KFHP6RKA.js +42 -0
  57. package/dist/{watch-FZTAPLDJ.js → watch-FMCC23HZ.js} +22 -22
  58. package/package.json +1 -1
  59. package/dist/chunk-VOWOPWLJ.js +0 -11544
  60. package/dist/chunk-VOWOPWLJ.js.map +0 -7
  61. package/dist/chunks-2HYR36MC.js +0 -10
  62. package/dist/memo-622OKP73.js +0 -15
  63. package/dist/seal-5GEIRBNY.js +0 -14
  64. package/dist/visual-CYKZQ5AK.js +0 -42
  65. /package/dist/{chunk-5XGYWAZQ.js.map → chunk-32WLCR37.js.map} +0 -0
  66. /package/dist/{chunk-YMMMRJCT.js.map → chunk-42FWJVN5.js.map} +0 -0
  67. /package/dist/{chunk-QCUYNOP5.js.map → chunk-4J2DUBJJ.js.map} +0 -0
  68. /package/dist/{chunk-U6FMV4FC.js.map → chunk-6CHKXHKR.js.map} +0 -0
  69. /package/dist/{chunk-JWCSKPQV.js.map → chunk-BPY62DTT.js.map} +0 -0
  70. /package/dist/{chunk-BV7UNFZB.js.map → chunk-C4TGNDQY.js.map} +0 -0
  71. /package/dist/{chunk-D6COQDDG.js.map → chunk-CGXJE6Y5.js.map} +0 -0
  72. /package/dist/{chunk-MGQN2FF7.js.map → chunk-I52IXA2S.js.map} +0 -0
  73. /package/dist/{chunk-RL55T7WN.js.map → chunk-KRP74WIV.js.map} +0 -0
  74. /package/dist/{chunk-WTR27MWJ.js.map → chunk-MQAUBK77.js.map} +0 -0
  75. /package/dist/{chunk-MBQOLEH4.js.map → chunk-N2EOYLZX.js.map} +0 -0
  76. /package/dist/{chunk-55A447ZO.js.map → chunk-NEVZP6O3.js.map} +0 -0
  77. /package/dist/{chunk-C7TBGCBG.js.map → chunk-NL4434I2.js.map} +0 -0
  78. /package/dist/{chunk-26SWJ36T.js.map → chunk-NLZ44M5L.js.map} +0 -0
  79. /package/dist/{chunk-BSTHPX7I.js.map → chunk-NQXM6MED.js.map} +0 -0
  80. /package/dist/{chunk-QVZ22GJL.js.map → chunk-QVZEBMYW.js.map} +0 -0
  81. /package/dist/{chunk-UZYND5YL.js.map → chunk-QYS4V2OA.js.map} +0 -0
  82. /package/dist/{chunk-2PDA3G4N.js.map → chunk-RQPM72FM.js.map} +0 -0
  83. /package/dist/{chunk-OGLPSYMT.js.map → chunk-SKIWLEZA.js.map} +0 -0
  84. /package/dist/{chunk-POMLBQYN.js.map → chunk-SPFCULY3.js.map} +0 -0
  85. /package/dist/{chunk-LEXLIQPZ.js.map → chunk-TSEJQZ7C.js.map} +0 -0
  86. /package/dist/{chunk-E3G6CWCK.js.map → chunk-VCLEQ7GS.js.map} +0 -0
  87. /package/dist/{chunk-A6IVC2QY.js.map → chunk-YSOBUGNT.js.map} +0 -0
  88. /package/dist/{chunk-76AGDTU4.js.map → chunk-ZRXXCZRZ.js.map} +0 -0
  89. /package/dist/{chunks-2HYR36MC.js.map → chunks-SIAIY4VX.js.map} +0 -0
  90. /package/dist/{formula-FDVCTHUW.js.map → formula-ZM2EYXWB.js.map} +0 -0
  91. /package/dist/{generator-7BL4LOSI.js.map → generator-AUA3RJD6.js.map} +0 -0
  92. /package/dist/{hancom-JLKEVVHZ.js.map → hancom-M6DIM23B.js.map} +0 -0
  93. /package/dist/{image-ocr-TERE3BVW.js.map → image-ocr-LZH6Q32C.js.map} +0 -0
  94. /package/dist/{memo-622OKP73.js.map → memo-W2SNZRX5.js.map} +0 -0
  95. /package/dist/{model-bundle-W475P46B.js.map → model-bundle-C4A7JHYJ.js.map} +0 -0
  96. /package/dist/{models-355HCTHN.js.map → models-K5FUWGWQ.js.map} +0 -0
  97. /package/dist/{page-images-6V4ITZOV.js.map → page-images-O6SF454R.js.map} +0 -0
  98. /package/dist/{parse-worker-v2-FRPCYNFL.js.map → parse-worker-v2-Y7SF2Q6I.js.map} +0 -0
  99. /package/dist/{pdf-ocr-N3Y2U7RW.js.map → pdf-ocr-IU2UUBMJ.js.map} +0 -0
  100. /package/dist/{profile-io-NP3WBLKY.js.map → profile-io-ZF7UPT6V.js.map} +0 -0
  101. /package/dist/{rasterize-BN5LON4H.js.map → rasterize-QO3NBE33.js.map} +0 -0
  102. /package/dist/{redact-doc-UDJAVQJ2.js.map → redact-doc-KIA2A3RM.js.map} +0 -0
  103. /package/dist/{render-SY6FTYPO.js.map → render-7UZDAEZ7.js.map} +0 -0
  104. /package/dist/{rewrite-fallback-LBP6FTJX.js.map → rewrite-fallback-YO6ZVEAI.js.map} +0 -0
  105. /package/dist/{seal-5GEIRBNY.js.map → seal-W2BHUQA4.js.map} +0 -0
  106. /package/dist/{setup-G7IX4KU7.js.map → setup-X5GNUS4Q.js.map} +0 -0
  107. /package/dist/{to-hwpx-MEKEYN65.js.map → to-hwpx-TE7TLCR5.js.map} +0 -0
  108. /package/dist/{visual-CYKZQ5AK.js.map → visual-KFHP6RKA.js.map} +0 -0
  109. /package/dist/{watch-FZTAPLDJ.js.map → watch-FMCC23HZ.js.map} +0 -0
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  parse
3
- } from "./chunk-BV7UNFZB.js";
3
+ } from "./chunk-C4TGNDQY.js";
4
4
  import {
5
5
  classifyError,
6
6
  sanitizeError,
7
7
  toArrayBuffer
8
- } from "./chunk-JWCSKPQV.js";
8
+ } from "./chunk-BPY62DTT.js";
9
9
 
10
10
  // src/cli/worker-parse.ts
11
11
  import { readFile, stat } from "fs/promises";
@@ -25,4 +25,4 @@ async function parseWorkerFile(absPath, options) {
25
25
  export {
26
26
  parseWorkerFile
27
27
  };
28
- //# sourceMappingURL=chunk-OGLPSYMT.js.map
28
+ //# sourceMappingURL=chunk-SKIWLEZA.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  KordocError
3
- } from "./chunk-JWCSKPQV.js";
3
+ } from "./chunk-BPY62DTT.js";
4
4
 
5
5
  // src/shared/offline.ts
6
6
  import { realpathSync } from "fs";
@@ -48,4 +48,4 @@ export {
48
48
  getAccessRoot,
49
49
  assertWithinRoot
50
50
  };
51
- //# sourceMappingURL=chunk-POMLBQYN.js.map
51
+ //# sourceMappingURL=chunk-SPFCULY3.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  KordocError
3
- } from "./chunk-JWCSKPQV.js";
3
+ } from "./chunk-BPY62DTT.js";
4
4
 
5
5
  // src/hwpx/profile-io.ts
6
6
  import { z } from "zod";
@@ -88,4 +88,4 @@ export {
88
88
  formatProfileSchema,
89
89
  parseFormatProfileJson
90
90
  };
91
- //# sourceMappingURL=chunk-LEXLIQPZ.js.map
91
+ //# sourceMappingURL=chunk-TSEJQZ7C.js.map
@@ -11,7 +11,7 @@ import {
11
11
  hwpxAppMajor,
12
12
  parseRenderStyles,
13
13
  readZipEntry
14
- } from "./chunk-QVZ22GJL.js";
14
+ } from "./chunk-QVZEBMYW.js";
15
15
  import {
16
16
  hwpEquationToLatex
17
17
  } from "./chunk-AASNBZDZ.js";
@@ -27,7 +27,7 @@ import {
27
27
  compareSectionPaths,
28
28
  precheckZipSize,
29
29
  stripDtd
30
- } from "./chunk-JWCSKPQV.js";
30
+ } from "./chunk-BPY62DTT.js";
31
31
 
32
32
  // src/hwpx/hft-latin-widths.ts
33
33
  var HFT_LATIN = {
@@ -15967,4 +15967,4 @@ export {
15967
15967
  assemblePageSvgs,
15968
15968
  renderHwpxPages
15969
15969
  };
15970
- //# sourceMappingURL=chunk-E3G6CWCK.js.map
15970
+ //# sourceMappingURL=chunk-VCLEQ7GS.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  collectSites
3
- } from "./chunk-UZYND5YL.js";
3
+ } from "./chunk-QYS4V2OA.js";
4
4
  import {
5
5
  patchZipEntries
6
- } from "./chunk-MGQN2FF7.js";
6
+ } from "./chunk-I52IXA2S.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-QVZ22GJL.js";
16
+ } from "./chunk-QVZEBMYW.js";
17
17
  import {
18
18
  fileTimeText
19
- } from "./chunk-2PDA3G4N.js";
19
+ } from "./chunk-RQPM72FM.js";
20
20
  import {
21
21
  KordocError,
22
22
  precheckZipSize
23
- } from "./chunk-JWCSKPQV.js";
23
+ } from "./chunk-BPY62DTT.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-A6IVC2QY.js.map
130
+ //# sourceMappingURL=chunk-YSOBUGNT.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  assignTableIds,
3
3
  blocksToMarkdown
4
- } from "./chunk-WTR27MWJ.js";
4
+ } from "./chunk-MQAUBK77.js";
5
5
 
6
6
  // src/chunks.ts
7
7
  var LIST_MARKER_RE = /^(?:[□■◇◆○◎●◦ㅇ•▪▸▶※-]|\d{1,3}[.)]|[가나다라마바사아자차카타파하][.)]|\([가나다라마바사아자차카타파하0-9]{1,3}\)|[①-⑳㉮-㉻㈎-㈛])\s/;
@@ -81,4 +81,4 @@ function blocksToChunks(blocks, options) {
81
81
  export {
82
82
  blocksToChunks
83
83
  };
84
- //# sourceMappingURL=chunk-76AGDTU4.js.map
84
+ //# sourceMappingURL=chunk-ZRXXCZRZ.js.map
@@ -0,0 +1,10 @@
1
+ import {
2
+ blocksToChunks
3
+ } from "./chunk-ZRXXCZRZ.js";
4
+ import "./chunk-MQAUBK77.js";
5
+ import "./chunk-QXQX4AN7.js";
6
+ import "./chunk-BPY62DTT.js";
7
+ export {
8
+ blocksToChunks
9
+ };
10
+ //# sourceMappingURL=chunks-SIAIY4VX.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-OGLPSYMT.js";
4
+ } from "./chunk-SKIWLEZA.js";
5
5
  import {
6
6
  parseFormatProfileJson
7
- } from "./chunk-LEXLIQPZ.js";
7
+ } from "./chunk-TSEJQZ7C.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-BV7UNFZB.js";
54
- import "./chunk-RL55T7WN.js";
55
- import "./chunk-BSTHPX7I.js";
56
- import "./chunk-FNUKGSZ7.js";
53
+ } from "./chunk-C4TGNDQY.js";
54
+ import "./chunk-KRP74WIV.js";
55
+ import "./chunk-NQXM6MED.js";
56
+ import "./chunk-AII6CXYG.js";
57
57
  import {
58
58
  extractClickHereFields
59
- } from "./chunk-MBQOLEH4.js";
60
- import "./chunk-5XGYWAZQ.js";
59
+ } from "./chunk-N2EOYLZX.js";
60
+ import "./chunk-32WLCR37.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-U6FMV4FC.js";
70
- import "./chunk-E3G6CWCK.js";
71
- import "./chunk-A6IVC2QY.js";
72
- import "./chunk-UZYND5YL.js";
73
- import "./chunk-MGQN2FF7.js";
69
+ } from "./chunk-6CHKXHKR.js";
70
+ import "./chunk-VCLEQ7GS.js";
71
+ import "./chunk-YSOBUGNT.js";
72
+ import "./chunk-QYS4V2OA.js";
73
+ import "./chunk-I52IXA2S.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-QVZ22GJL.js";
82
+ } from "./chunk-QVZEBMYW.js";
83
83
  import "./chunk-IXQ45P43.js";
84
84
  import {
85
85
  hwpToHwpx
86
- } from "./chunk-26SWJ36T.js";
86
+ } from "./chunk-NLZ44M5L.js";
87
87
  import {
88
88
  detectImageMime
89
- } from "./chunk-D6COQDDG.js";
89
+ } from "./chunk-CGXJE6Y5.js";
90
90
  import "./chunk-PCOKS4ZE.js";
91
91
  import "./chunk-AASNBZDZ.js";
92
- import "./chunk-2PDA3G4N.js";
92
+ import "./chunk-RQPM72FM.js";
93
93
  import "./chunk-WIIPAV2D.js";
94
94
  import "./chunk-F5EARPSA.js";
95
- import "./chunk-76AGDTU4.js";
95
+ import "./chunk-ZRXXCZRZ.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-67I4YNFQ.js";
104
104
  import "./chunk-L3U4XTBO.js";
105
- import "./chunk-C7TBGCBG.js";
105
+ import "./chunk-NL4434I2.js";
106
106
  import {
107
107
  blocksToMarkdown
108
- } from "./chunk-WTR27MWJ.js";
108
+ } from "./chunk-MQAUBK77.js";
109
109
  import "./chunk-QXQX4AN7.js";
110
110
  import "./chunk-AY66PEUP.js";
111
- import "./chunk-55A447ZO.js";
112
- import "./chunk-POMLBQYN.js";
111
+ import "./chunk-NEVZP6O3.js";
112
+ import "./chunk-SPFCULY3.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-JWCSKPQV.js";
122
+ } from "./chunk-BPY62DTT.js";
123
123
 
124
124
  // src/cli.ts
125
125
  import { Command, Option } from "commander";
@@ -270,7 +270,7 @@ async function convertFiles(files, opts, writeOutput = (text) => {
270
270
  `);
271
271
  }
272
272
  } else if (opts.format === "chunks") {
273
- const { blocksToChunks } = await import("./chunks-2HYR36MC.js");
273
+ const { blocksToChunks } = await import("./chunks-SIAIY4VX.js");
274
274
  const chunks = blocksToChunks(result.blocks, { tableFormat: parseOptions.tableFormat }).map((c) => {
275
275
  let text = c.text;
276
276
  if (opts.plain) text = toPlainMarkdown(text);
@@ -454,7 +454,7 @@ function registerDocCommands(program2) {
454
454
  if (command.getOptionValueSource("format") === "default" && program2.getOptionValueSource("format") === "cli") {
455
455
  opts.format = rootOpts.format;
456
456
  }
457
- const { watchDirectory } = await import("./watch-FZTAPLDJ.js");
457
+ const { watchDirectory } = await import("./watch-FMCC23HZ.js");
458
458
  await watchDirectory({
459
459
  dir,
460
460
  outDir: opts.outDir,
@@ -853,7 +853,7 @@ function registerDocCommands(program2) {
853
853
  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 });
854
854
  const ext = format === "hwp" ? ".hwp" : ".hwpx";
855
855
  const outPath = resolve3(output ?? original.replace(/\.hwpx?$/i, "") + ".patched" + ext);
856
- const { needsRewrite, rewriteEdited, rewritePath } = await import("./rewrite-fallback-LBP6FTJX.js");
856
+ const { needsRewrite, rewriteEdited, rewritePath } = await import("./rewrite-fallback-YO6ZVEAI.js");
857
857
  const rewrite = needsRewrite(result) ? await rewriteEdited(originalBuf, format !== "hwp", editedMarkdown, result.success) : null;
858
858
  const rewriteOut = rewrite ? rewritePath(outPath) : void 0;
859
859
  if (rewrite && rewriteOut) {
@@ -1737,7 +1737,7 @@ function registerGenerateCommands(program2) {
1737
1737
  });
1738
1738
  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) => {
1739
1739
  const { ALL_REDACT_RULES, DEFAULT_REDACT_RULES, redactText } = await import("./redact-JY72ESQ6.js");
1740
- const { redactDocument } = await import("./redact-doc-UDJAVQJ2.js");
1740
+ const { redactDocument } = await import("./redact-doc-KIA2A3RM.js");
1741
1741
  const rootOpts = program2.opts();
1742
1742
  const output = opts.output ?? rootOpts.output;
1743
1743
  const outDir = opts.outDir ?? rootOpts.outDir;
@@ -1958,7 +1958,7 @@ function registerRenderCommands(program2) {
1958
1958
  const absPath = resolve7(file);
1959
1959
  const stem = file.replace(/\.hwpx?$/i, "");
1960
1960
  if (fmt === "svg" && !outDir && !pages && !/\.hwp$/i.test(absPath)) {
1961
- const { renderHwpxToSvg } = await import("./render-SY6FTYPO.js");
1961
+ const { renderHwpxToSvg } = await import("./render-7UZDAEZ7.js");
1962
1962
  const buffer = readFileSync6(absPath);
1963
1963
  const result = await renderHwpxToSvg(toArrayBuffer(buffer), { highlights, reflow: opts.reflow, reflowMode: opts.reflowMode, password: rootOpts.password });
1964
1964
  const outPath = resolve7(output ?? stem + ".svg");
@@ -1972,7 +1972,7 @@ function registerRenderCommands(program2) {
1972
1972
  }
1973
1973
  return;
1974
1974
  }
1975
- const { renderDocument } = await import("./render-SY6FTYPO.js");
1975
+ const { renderDocument } = await import("./render-7UZDAEZ7.js");
1976
1976
  const { scene, assets } = await renderDocument(absPath, {
1977
1977
  format: fmt,
1978
1978
  pages,
@@ -2023,7 +2023,7 @@ function registerRenderCommands(program2) {
2023
2023
  if (!outDir) throw new KordocError("--out-dir 이 필요합니다 (crop 은 파일 여러 개를 냅니다)");
2024
2024
  const types = String(opts.target).split(",").map((t) => t.trim()).filter(Boolean);
2025
2025
  for (const t of types) if (!["table", "image", "paragraph", "shape"].includes(t)) throw new KordocError(`--target 유형 오류: ${t}`);
2026
- const { extractRenderedRegions } = await import("./render-SY6FTYPO.js");
2026
+ const { extractRenderedRegions } = await import("./render-7UZDAEZ7.js");
2027
2027
  const regions = await extractRenderedRegions(resolve7(file), {
2028
2028
  types,
2029
2029
  format: fmt,
@@ -2061,7 +2061,7 @@ function registerRenderCommands(program2) {
2061
2061
  if (policy !== "none" && !outDir) throw new KordocError("--visual 은 crop 파일을 내므로 --out-dir 이 필요합니다");
2062
2062
  const cropFmt = String(opts.cropFormat);
2063
2063
  if (!["png", "jpeg"].includes(cropFmt)) throw new KordocError(`--crop-format 은 png|jpeg: ${cropFmt}`);
2064
- const { extractTables } = await import("./visual-CYKZQ5AK.js");
2064
+ const { extractTables } = await import("./visual-KFHP6RKA.js");
2065
2065
  const tables = await extractTables(resolve7(file), { policy, format: cropFmt, paddingPt: Number(opts.padding) || 0 });
2066
2066
  const dir = outDir ? resolve7(outDir) : void 0;
2067
2067
  if (dir) mkdirSync6(dir, { recursive: true });
@@ -2105,7 +2105,7 @@ function registerRenderCommands(program2) {
2105
2105
  });
2106
2106
  program2.command("render-worker").description("persistent 렌더 워커 — stdin NDJSON 요청 → 조판 SVG 파일 출력 (프로세스 유지, 콜드스타트 제거)").action(async () => {
2107
2107
  const { createInterface } = await import("node:readline");
2108
- const { renderHwpxToSvg } = await import("./render-SY6FTYPO.js");
2108
+ const { renderHwpxToSvg } = await import("./render-7UZDAEZ7.js");
2109
2109
  const rl = createInterface({ input: process.stdin });
2110
2110
  const write = (o) => void process.stdout.write(JSON.stringify(o) + "\n");
2111
2111
  write({ ready: true, version: VERSION });
@@ -2154,12 +2154,12 @@ function registerSystemCommands(program2) {
2154
2154
  await startMcpServer();
2155
2155
  });
2156
2156
  program2.command("setup").description("대화형 설치 마법사 — AI 클라이언트 자동 등록 (Mac/Win/Linux)").action(async () => {
2157
- const { runSetup } = await import("./setup-G7IX4KU7.js");
2157
+ const { runSetup } = await import("./setup-X5GNUS4Q.js");
2158
2158
  await runSetup();
2159
2159
  });
2160
2160
  program2.command("check-formula-models").description("PDF 수식 OCR 모델(MFD + MFR + tokenizer, ~155MB) 상태 확인 — 없거나 SHA 불일치면 다운로드").option("--status-only", "상태만 JSON 으로 출력 (다운로드 안 함)").action(async (opts) => {
2161
2161
  try {
2162
- const { getFormulaModelStatus, ensureFormulaModels, getFormulaModelsDir } = await import("./formula-FDVCTHUW.js");
2162
+ const { getFormulaModelStatus, ensureFormulaModels, getFormulaModelsDir } = await import("./formula-ZM2EYXWB.js");
2163
2163
  const dir = getFormulaModelsDir();
2164
2164
  if (opts.statusOnly) {
2165
2165
  const status = await getFormulaModelStatus();
@@ -2213,7 +2213,7 @@ function registerSystemCommands(program2) {
2213
2213
  });
2214
2214
  program2.command("check-ocr-models").description("텍스트 OCR 모델(PP-OCRv5 korean det+rec, ~18MB) 상태 확인 — 없거나 SHA 불일치면 다운로드").option("--status-only", "상태만 JSON 으로 출력 (다운로드 안 함)").action(async (opts) => {
2215
2215
  try {
2216
- const { getOcrModelStatus, ensureOcrModels, getOcrModelsDir } = await import("./models-355HCTHN.js");
2216
+ const { getOcrModelStatus, ensureOcrModels, getOcrModelsDir } = await import("./models-K5FUWGWQ.js");
2217
2217
  const dir = getOcrModelsDir();
2218
2218
  if (opts.statusOnly) {
2219
2219
  const status = await getOcrModelStatus();
@@ -2267,7 +2267,7 @@ function registerSystemCommands(program2) {
2267
2267
  });
2268
2268
  program2.command("models").description("OCR/수식 모델 오프라인 사이드로드 — 폐쇄망 반입용 내보내기/가져오기 (SHA-256 검증)").option("--status", "캐시에 설치된 모델 상태를 JSON 으로 출력").option("--export <dir>", "로컬 캐시 → 번들 디렉토리로 내보내기 (온라인 PC에서 실행)").option("--import <dir>", "번들 디렉토리 → 로컬 캐시로 설치 (내부망 PC에서 실행)").action(async (opts) => {
2269
2269
  try {
2270
- const { exportModels, importModels, modelCacheStatus } = await import("./model-bundle-W475P46B.js");
2270
+ const { exportModels, importModels, modelCacheStatus } = await import("./model-bundle-C4A7JHYJ.js");
2271
2271
  if (opts.status) {
2272
2272
  process.stdout.write(JSON.stringify(await modelCacheStatus(), null, 2) + "\n");
2273
2273
  return;
@@ -2333,7 +2333,7 @@ function registerWorkerCommands(program2) {
2333
2333
  const maxRequestBytes = limit(opts.maxRequestBytes, "--max-request-bytes");
2334
2334
  const maxResponseBytes = limit(opts.maxResponseBytes, "--max-response-bytes");
2335
2335
  routeConsoleToStderr();
2336
- const { runParseWorkerV2 } = await import("./parse-worker-v2-FRPCYNFL.js");
2336
+ const { runParseWorkerV2 } = await import("./parse-worker-v2-Y7SF2Q6I.js");
2337
2337
  await runParseWorkerV2({ maxRequestBytes, maxResponseBytes });
2338
2338
  process.exit(0);
2339
2339
  }
@@ -11,9 +11,9 @@ import {
11
11
  ensureSingleModel,
12
12
  getFormulaModelStatus,
13
13
  getFormulaModelsDir
14
- } from "./chunk-55A447ZO.js";
15
- import "./chunk-POMLBQYN.js";
16
- import "./chunk-JWCSKPQV.js";
14
+ } from "./chunk-NEVZP6O3.js";
15
+ import "./chunk-SPFCULY3.js";
16
+ import "./chunk-BPY62DTT.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-FDVCTHUW.js.map
1179
+ //# sourceMappingURL=formula-ZM2EYXWB.js.map
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  markdownToHwpx
3
- } from "./chunk-U6FMV4FC.js";
4
- import "./chunk-E3G6CWCK.js";
3
+ } from "./chunk-6CHKXHKR.js";
4
+ import "./chunk-VCLEQ7GS.js";
5
5
  import "./chunk-B2SRYWEY.js";
6
- import "./chunk-QVZ22GJL.js";
6
+ import "./chunk-QVZEBMYW.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-C7TBGCBG.js";
12
- import "./chunk-WTR27MWJ.js";
11
+ import "./chunk-NL4434I2.js";
12
+ import "./chunk-MQAUBK77.js";
13
13
  import "./chunk-QXQX4AN7.js";
14
- import "./chunk-JWCSKPQV.js";
14
+ import "./chunk-BPY62DTT.js";
15
15
  export {
16
16
  markdownToHwpx
17
17
  };
18
- //# sourceMappingURL=generator-7BL4LOSI.js.map
18
+ //# sourceMappingURL=generator-AUA3RJD6.js.map
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-IXQ45P43.js";
6
6
  import {
7
7
  KordocError
8
- } from "./chunk-JWCSKPQV.js";
8
+ } from "./chunk-BPY62DTT.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-JLKEVVHZ.js.map
90
+ //# sourceMappingURL=hancom-M6DIM23B.js.map
@@ -2,7 +2,7 @@ import {
2
2
  dcxPages,
3
3
  heicToRgba,
4
4
  pcxToRgba
5
- } from "./chunk-5XGYWAZQ.js";
5
+ } from "./chunk-32WLCR37.js";
6
6
  import {
7
7
  flushHeifCache
8
8
  } from "./chunk-YVFNHYJK.js";
@@ -30,30 +30,30 @@ import {
30
30
  rescueEmptyCells,
31
31
  rotateQuarter,
32
32
  rulingToPdfLines
33
- } from "./chunk-YMMMRJCT.js";
34
- import "./chunk-VOWOPWLJ.js";
33
+ } from "./chunk-42FWJVN5.js";
34
+ import "./chunk-DQDATFAC.js";
35
35
  import "./chunk-DUAZNEQ6.js";
36
36
  import "./chunk-67I4YNFQ.js";
37
37
  import "./chunk-L3U4XTBO.js";
38
- import "./chunk-C7TBGCBG.js";
39
- import "./chunk-WTR27MWJ.js";
38
+ import "./chunk-NL4434I2.js";
39
+ import "./chunk-MQAUBK77.js";
40
40
  import "./chunk-QXQX4AN7.js";
41
41
  import {
42
42
  ensureOcrModelsFor
43
- } from "./chunk-QCUYNOP5.js";
43
+ } from "./chunk-4J2DUBJJ.js";
44
44
  import "./chunk-AY66PEUP.js";
45
- import "./chunk-55A447ZO.js";
46
- import "./chunk-POMLBQYN.js";
45
+ import "./chunk-NEVZP6O3.js";
46
+ import "./chunk-SPFCULY3.js";
47
47
  import {
48
48
  KordocError,
49
49
  OPTIONAL_DEP_INSTALL_HINT
50
- } from "./chunk-JWCSKPQV.js";
50
+ } from "./chunk-BPY62DTT.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-FDVCTHUW.js");
56
+ const { FormulaPipeline, ensureFormulaModels } = await import("./formula-ZM2EYXWB.js");
57
57
  await ensureFormulaModels();
58
58
  const pipeline = await FormulaPipeline.create();
59
59
  try {
@@ -288,4 +288,4 @@ export {
288
288
  imageScale,
289
289
  parseImageDocument
290
290
  };
291
- //# sourceMappingURL=image-ocr-TERE3BVW.js.map
291
+ //# sourceMappingURL=image-ocr-LZH6Q32C.js.map