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.
- package/README.md +2 -2
- package/dist/{chunk-B7H5UL47.js → chunk-32WLCR37.js} +2 -2
- package/dist/{chunk-V4QVT6QR.js → chunk-42FWJVN5.js} +4 -4
- package/dist/{chunk-WUSVNBD7.js → chunk-4J2DUBJJ.js} +2 -2
- package/dist/{chunk-ZEZXWJYM.js → chunk-6CHKXHKR.js} +6 -6
- package/dist/{chunk-326FIQ5H.js → chunk-AII6CXYG.js} +2 -2
- package/dist/{chunk-YUZ4LOUT.js → chunk-BPY62DTT.js} +2 -2
- package/dist/{chunk-4RH2EH2N.js → chunk-C4TGNDQY.js} +18 -18
- package/dist/{chunk-ZR5IST7H.js → chunk-CGXJE6Y5.js} +5 -5
- package/dist/chunk-DQDATFAC.js +11544 -0
- package/dist/chunk-DQDATFAC.js.map +1 -0
- package/dist/{chunk-V4ELYHT3.js → chunk-I52IXA2S.js} +2 -2
- package/dist/{chunk-CLYEGEML.js → chunk-KRP74WIV.js} +8 -8
- package/dist/{chunk-42ULFI4V.js → chunk-MQAUBK77.js} +2 -2
- package/dist/{chunk-MMVFU3QP.js → chunk-N2EOYLZX.js} +10 -10
- package/dist/{chunk-TA7U2DSX.js → chunk-NEVZP6O3.js} +2 -2
- package/dist/{chunk-33LMQELD.js → chunk-NL4434I2.js} +2 -2
- package/dist/{chunk-ODDU5OMP.js → chunk-NLZ44M5L.js} +6 -6
- package/dist/{chunk-XPPQON6I.js → chunk-NQXM6MED.js} +2 -2
- package/dist/{chunk-ZKTIY4FT.js → chunk-QVZEBMYW.js} +2 -2
- package/dist/{chunk-SQCTT2VJ.js → chunk-QYS4V2OA.js} +4 -4
- package/dist/{chunk-RCJGXJ7Z.js → chunk-RQPM72FM.js} +2 -2
- package/dist/{chunk-OQVTA7UB.js → chunk-SKIWLEZA.js} +3 -3
- package/dist/{chunk-L55XLEWF.js → chunk-SPFCULY3.js} +2 -2
- package/dist/{chunk-2LKQSPAZ.js → chunk-TSEJQZ7C.js} +2 -2
- package/dist/{chunk-DCE6AZIT.js → chunk-VCLEQ7GS.js} +3 -3
- package/dist/{chunk-BAMX5KQB.js → chunk-YSOBUGNT.js} +6 -6
- package/dist/{chunk-S3MREIEB.js → chunk-ZRXXCZRZ.js} +2 -2
- package/dist/chunks-SIAIY4VX.js +10 -0
- package/dist/cli.js +37 -37
- package/dist/{formula-QXB2LSVI.js → formula-ZM2EYXWB.js} +4 -4
- package/dist/{generator-ELGW2EW4.js → generator-AUA3RJD6.js} +7 -7
- package/dist/{hancom-K4SDE7NS.js → hancom-M6DIM23B.js} +2 -2
- package/dist/{image-ocr-QJHYVJ5H.js → image-ocr-LZH6Q32C.js} +11 -11
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -7
- package/dist/index.js +21 -21
- package/dist/mcp.js +33 -33
- package/dist/memo-W2SNZRX5.js +15 -0
- package/dist/{model-bundle-5UGPJA5A.js → model-bundle-C4A7JHYJ.js} +5 -5
- package/dist/{models-IQ2E6S7I.js → models-K5FUWGWQ.js} +5 -5
- package/dist/{page-images-4KQEJMSE.js → page-images-O6SF454R.js} +2 -2
- package/dist/{parse-worker-v2-2H4MQEQD.js → parse-worker-v2-Y7SF2Q6I.js} +23 -23
- package/dist/{parser-KDR5BCSS.js → parser-ZHK66LCI.js} +14 -14
- package/dist/{pdf-ocr-EUVLBRD2.js → pdf-ocr-IU2UUBMJ.js} +9 -9
- package/dist/{profile-io-6M6LOS5G.js → profile-io-ZF7UPT6V.js} +3 -3
- package/dist/{rasterize-BG2WFQ2Z.js → rasterize-QO3NBE33.js} +3 -3
- package/dist/{redact-doc-6MLYQLK4.js → redact-doc-KIA2A3RM.js} +22 -22
- package/dist/{render-ND6GL3LZ.js → render-7UZDAEZ7.js} +10 -10
- package/dist/{rewrite-fallback-XL23DFE3.js → rewrite-fallback-YO6ZVEAI.js} +12 -12
- package/dist/seal-W2BHUQA4.js +14 -0
- package/dist/{setup-GHNRAYXC.js → setup-X5GNUS4Q.js} +3 -3
- package/dist/{to-hwpx-SNBZPKKH.js → to-hwpx-TE7TLCR5.js} +7 -7
- package/dist/visual-KFHP6RKA.js +42 -0
- package/dist/{watch-ZIO2QNWJ.js → watch-FMCC23HZ.js} +22 -22
- package/package.json +1 -1
- package/dist/chunk-7RDY5HRX.js +0 -11544
- package/dist/chunk-7RDY5HRX.js.map +0 -7
- package/dist/chunks-3GVZAG27.js +0 -10
- package/dist/memo-UYRYOV37.js +0 -15
- package/dist/seal-UYTM4Z4H.js +0 -14
- package/dist/visual-5YSDVJNI.js +0 -42
- /package/dist/{chunk-B7H5UL47.js.map → chunk-32WLCR37.js.map} +0 -0
- /package/dist/{chunk-V4QVT6QR.js.map → chunk-42FWJVN5.js.map} +0 -0
- /package/dist/{chunk-WUSVNBD7.js.map → chunk-4J2DUBJJ.js.map} +0 -0
- /package/dist/{chunk-ZEZXWJYM.js.map → chunk-6CHKXHKR.js.map} +0 -0
- /package/dist/{chunk-326FIQ5H.js.map → chunk-AII6CXYG.js.map} +0 -0
- /package/dist/{chunk-YUZ4LOUT.js.map → chunk-BPY62DTT.js.map} +0 -0
- /package/dist/{chunk-4RH2EH2N.js.map → chunk-C4TGNDQY.js.map} +0 -0
- /package/dist/{chunk-ZR5IST7H.js.map → chunk-CGXJE6Y5.js.map} +0 -0
- /package/dist/{chunk-V4ELYHT3.js.map → chunk-I52IXA2S.js.map} +0 -0
- /package/dist/{chunk-CLYEGEML.js.map → chunk-KRP74WIV.js.map} +0 -0
- /package/dist/{chunk-42ULFI4V.js.map → chunk-MQAUBK77.js.map} +0 -0
- /package/dist/{chunk-MMVFU3QP.js.map → chunk-N2EOYLZX.js.map} +0 -0
- /package/dist/{chunk-TA7U2DSX.js.map → chunk-NEVZP6O3.js.map} +0 -0
- /package/dist/{chunk-33LMQELD.js.map → chunk-NL4434I2.js.map} +0 -0
- /package/dist/{chunk-ODDU5OMP.js.map → chunk-NLZ44M5L.js.map} +0 -0
- /package/dist/{chunk-XPPQON6I.js.map → chunk-NQXM6MED.js.map} +0 -0
- /package/dist/{chunk-ZKTIY4FT.js.map → chunk-QVZEBMYW.js.map} +0 -0
- /package/dist/{chunk-SQCTT2VJ.js.map → chunk-QYS4V2OA.js.map} +0 -0
- /package/dist/{chunk-RCJGXJ7Z.js.map → chunk-RQPM72FM.js.map} +0 -0
- /package/dist/{chunk-OQVTA7UB.js.map → chunk-SKIWLEZA.js.map} +0 -0
- /package/dist/{chunk-L55XLEWF.js.map → chunk-SPFCULY3.js.map} +0 -0
- /package/dist/{chunk-2LKQSPAZ.js.map → chunk-TSEJQZ7C.js.map} +0 -0
- /package/dist/{chunk-DCE6AZIT.js.map → chunk-VCLEQ7GS.js.map} +0 -0
- /package/dist/{chunk-BAMX5KQB.js.map → chunk-YSOBUGNT.js.map} +0 -0
- /package/dist/{chunk-S3MREIEB.js.map → chunk-ZRXXCZRZ.js.map} +0 -0
- /package/dist/{chunks-3GVZAG27.js.map → chunks-SIAIY4VX.js.map} +0 -0
- /package/dist/{formula-QXB2LSVI.js.map → formula-ZM2EYXWB.js.map} +0 -0
- /package/dist/{generator-ELGW2EW4.js.map → generator-AUA3RJD6.js.map} +0 -0
- /package/dist/{hancom-K4SDE7NS.js.map → hancom-M6DIM23B.js.map} +0 -0
- /package/dist/{image-ocr-QJHYVJ5H.js.map → image-ocr-LZH6Q32C.js.map} +0 -0
- /package/dist/{memo-UYRYOV37.js.map → memo-W2SNZRX5.js.map} +0 -0
- /package/dist/{model-bundle-5UGPJA5A.js.map → model-bundle-C4A7JHYJ.js.map} +0 -0
- /package/dist/{models-IQ2E6S7I.js.map → models-K5FUWGWQ.js.map} +0 -0
- /package/dist/{page-images-4KQEJMSE.js.map → page-images-O6SF454R.js.map} +0 -0
- /package/dist/{parse-worker-v2-2H4MQEQD.js.map → parse-worker-v2-Y7SF2Q6I.js.map} +0 -0
- /package/dist/{parser-KDR5BCSS.js.map → parser-ZHK66LCI.js.map} +0 -0
- /package/dist/{pdf-ocr-EUVLBRD2.js.map → pdf-ocr-IU2UUBMJ.js.map} +0 -0
- /package/dist/{profile-io-6M6LOS5G.js.map → profile-io-ZF7UPT6V.js.map} +0 -0
- /package/dist/{rasterize-BG2WFQ2Z.js.map → rasterize-QO3NBE33.js.map} +0 -0
- /package/dist/{redact-doc-6MLYQLK4.js.map → redact-doc-KIA2A3RM.js.map} +0 -0
- /package/dist/{render-ND6GL3LZ.js.map → render-7UZDAEZ7.js.map} +0 -0
- /package/dist/{rewrite-fallback-XL23DFE3.js.map → rewrite-fallback-YO6ZVEAI.js.map} +0 -0
- /package/dist/{seal-UYTM4Z4H.js.map → seal-W2BHUQA4.js.map} +0 -0
- /package/dist/{setup-GHNRAYXC.js.map → setup-X5GNUS4Q.js.map} +0 -0
- /package/dist/{to-hwpx-SNBZPKKH.js.map → to-hwpx-TE7TLCR5.js.map} +0 -0
- /package/dist/{visual-5YSDVJNI.js.map → visual-KFHP6RKA.js.map} +0 -0
- /package/dist/{watch-ZIO2QNWJ.js.map → watch-FMCC23HZ.js.map} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parse
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-C4TGNDQY.js";
|
|
4
4
|
import {
|
|
5
5
|
classifyError,
|
|
6
6
|
sanitizeError,
|
|
7
7
|
toArrayBuffer
|
|
8
|
-
} from "./chunk-
|
|
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-
|
|
28
|
+
//# sourceMappingURL=chunk-SKIWLEZA.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
KordocError
|
|
3
|
-
} from "./chunk-
|
|
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-
|
|
51
|
+
//# sourceMappingURL=chunk-SPFCULY3.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
KordocError
|
|
3
|
-
} from "./chunk-
|
|
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-
|
|
91
|
+
//# sourceMappingURL=chunk-TSEJQZ7C.js.map
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
hwpxAppMajor,
|
|
12
12
|
parseRenderStyles,
|
|
13
13
|
readZipEntry
|
|
14
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
15970
|
+
//# sourceMappingURL=chunk-VCLEQ7GS.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
collectSites
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QYS4V2OA.js";
|
|
4
4
|
import {
|
|
5
5
|
patchZipEntries
|
|
6
|
-
} from "./chunk-
|
|
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-
|
|
16
|
+
} from "./chunk-QVZEBMYW.js";
|
|
17
17
|
import {
|
|
18
18
|
fileTimeText
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-RQPM72FM.js";
|
|
20
20
|
import {
|
|
21
21
|
KordocError,
|
|
22
22
|
precheckZipSize
|
|
23
|
-
} from "./chunk-
|
|
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-
|
|
130
|
+
//# sourceMappingURL=chunk-YSOBUGNT.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
assignTableIds,
|
|
3
3
|
blocksToMarkdown
|
|
4
|
-
} from "./chunk-
|
|
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-
|
|
84
|
+
//# sourceMappingURL=chunk-ZRXXCZRZ.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-
|
|
4
|
+
} from "./chunk-SKIWLEZA.js";
|
|
5
5
|
import {
|
|
6
6
|
parseFormatProfileJson
|
|
7
|
-
} from "./chunk-
|
|
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-
|
|
54
|
-
import "./chunk-
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
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-
|
|
60
|
-
import "./chunk-
|
|
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-
|
|
70
|
-
import "./chunk-
|
|
71
|
-
import "./chunk-
|
|
72
|
-
import "./chunk-
|
|
73
|
-
import "./chunk-
|
|
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-
|
|
82
|
+
} from "./chunk-QVZEBMYW.js";
|
|
83
83
|
import "./chunk-IXQ45P43.js";
|
|
84
84
|
import {
|
|
85
85
|
hwpToHwpx
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-NLZ44M5L.js";
|
|
87
87
|
import {
|
|
88
88
|
detectImageMime
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-CGXJE6Y5.js";
|
|
90
90
|
import "./chunk-PCOKS4ZE.js";
|
|
91
91
|
import "./chunk-AASNBZDZ.js";
|
|
92
|
-
import "./chunk-
|
|
92
|
+
import "./chunk-RQPM72FM.js";
|
|
93
93
|
import "./chunk-WIIPAV2D.js";
|
|
94
94
|
import "./chunk-F5EARPSA.js";
|
|
95
|
-
import "./chunk-
|
|
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-
|
|
105
|
+
import "./chunk-NL4434I2.js";
|
|
106
106
|
import {
|
|
107
107
|
blocksToMarkdown
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-MQAUBK77.js";
|
|
109
109
|
import "./chunk-QXQX4AN7.js";
|
|
110
110
|
import "./chunk-AY66PEUP.js";
|
|
111
|
-
import "./chunk-
|
|
112
|
-
import "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
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-
|
|
1179
|
+
//# sourceMappingURL=formula-ZM2EYXWB.js.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
markdownToHwpx
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-6CHKXHKR.js";
|
|
4
|
+
import "./chunk-VCLEQ7GS.js";
|
|
5
5
|
import "./chunk-B2SRYWEY.js";
|
|
6
|
-
import "./chunk-
|
|
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-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-NL4434I2.js";
|
|
12
|
+
import "./chunk-MQAUBK77.js";
|
|
13
13
|
import "./chunk-QXQX4AN7.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-BPY62DTT.js";
|
|
15
15
|
export {
|
|
16
16
|
markdownToHwpx
|
|
17
17
|
};
|
|
18
|
-
//# sourceMappingURL=generator-
|
|
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-
|
|
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-
|
|
90
|
+
//# sourceMappingURL=hancom-M6DIM23B.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
dcxPages,
|
|
3
3
|
heicToRgba,
|
|
4
4
|
pcxToRgba
|
|
5
|
-
} from "./chunk-
|
|
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-
|
|
34
|
-
import "./chunk-
|
|
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-
|
|
39
|
-
import "./chunk-
|
|
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-
|
|
43
|
+
} from "./chunk-4J2DUBJJ.js";
|
|
44
44
|
import "./chunk-AY66PEUP.js";
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
291
|
+
//# sourceMappingURL=image-ocr-LZH6Q32C.js.map
|