kordoc 4.25.20 → 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.
- package/README.md +2 -2
- package/dist/{chunk-NJ4XKLJ2.js → chunk-24LB25LZ.js} +2 -2
- package/dist/{chunk-2PG66APB.js → chunk-3AYNFK6J.js} +2 -2
- package/dist/{chunk-3PP4Z3FP.js → chunk-5MDRUEHP.js} +3 -3
- package/dist/{chunk-BADCOPJC.js → chunk-5ULHNZ3P.js} +3 -3
- package/dist/{chunk-Y5SKJKIK.js → chunk-6I3X54AQ.js} +2 -2
- package/dist/{chunk-XPCPNLPL.js → chunk-6MCJHRSM.js} +2 -2
- package/dist/{chunk-LWH2LXGF.js → chunk-COJYQKGH.js} +6 -4
- package/dist/{chunk-LWH2LXGF.js.map → chunk-COJYQKGH.js.map} +2 -2
- package/dist/{chunk-SXCZLQWK.js → chunk-DHXKCDAU.js} +50 -6
- package/dist/chunk-DHXKCDAU.js.map +7 -0
- package/dist/{chunk-3VFPOZUF.js → chunk-DZOA5N5W.js} +2 -2
- package/dist/{chunk-C23CZCN2.js → chunk-FDSFXE2L.js} +2 -2
- package/dist/{chunk-JOVWROSN.js → chunk-GJORKM42.js} +2 -2
- package/dist/{chunk-53HOCVFW.js → chunk-HQILGS2O.js} +2 -2
- package/dist/{chunk-YL5NXWPG.js → chunk-KW4JO5CV.js} +3 -3
- package/dist/{chunk-YAJUYPG6.js → chunk-LSUTK3DH.js} +2 -2
- package/dist/{chunk-74PQK4BH.js → chunk-MWCJYIJC.js} +19 -19
- package/dist/{chunk-Q2IBOGTT.js → chunk-PFNZQ3XI.js} +2 -2
- package/dist/{chunk-OJL2KWEP.js → chunk-PVOLFVXE.js} +2 -2
- package/dist/{chunk-N4G253GI.js → chunk-QNJ2LMUO.js} +8 -8
- package/dist/{chunk-4AHUE7MM.js → chunk-QOCUFTT4.js} +4 -4
- package/dist/{chunk-FL3O63DT.js → chunk-S553BW45.js} +6 -6
- package/dist/{chunk-2RRYYIDJ.js → chunk-TI6S3KZF.js} +2 -2
- package/dist/{chunk-W24M3GRV.js → chunk-TYJSNW4Z.js} +55 -46
- package/dist/chunk-TYJSNW4Z.js.map +7 -0
- package/dist/{chunk-CCJ66IWE.js → chunk-W5AHXAUP.js} +6 -6
- package/dist/{chunk-P74JR5PT.js → chunk-XUBBFY3H.js} +5 -5
- package/dist/{chunk-YKPC2V2D.js → chunk-ZCMMU34Z.js} +2 -2
- package/dist/{chunk-4JIM5KIE.js → chunk-ZO4P735U.js} +2 -2
- package/dist/chunks-XX7RHVQF.js +10 -0
- package/dist/cli.js +37 -37
- package/dist/{formula-ZLRIPWXH.js → formula-HMKT4BZL.js} +4 -4
- package/dist/{generator-TQUJJGL2.js → generator-HOY4SZ26.js} +7 -7
- package/dist/{hancom-ET5G25Y3.js → hancom-QWJBWOOE.js} +2 -2
- package/dist/{image-ocr-PINHNXEM.js → image-ocr-P5AIZNT3.js} +11 -11
- package/dist/index.cjs +86 -36
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +21 -21
- package/dist/mcp.js +33 -33
- package/dist/memo-Q7772VJD.js +15 -0
- package/dist/{model-bundle-PHN7MCDR.js → model-bundle-5CXCIZHZ.js} +5 -5
- package/dist/{models-RVXHUSO6.js → models-PS4L7NLP.js} +5 -5
- package/dist/{page-images-V3NUHVIE.js → page-images-QW7IUTUB.js} +2 -2
- package/dist/{parse-worker-v2-N5GNR2M4.js → parse-worker-v2-PRH6KVKP.js} +23 -23
- package/dist/{parser-HJXLKIQJ.js → parser-OQIR5ZMI.js} +14 -14
- package/dist/{pdf-ocr-OCXKEJL7.js → pdf-ocr-ZH4JAUTR.js} +9 -9
- package/dist/{profile-io-DTAP26A4.js → profile-io-JFRAM2VE.js} +3 -3
- package/dist/{rasterize-UNT2CNKR.js → rasterize-JJOMUTYX.js} +3 -3
- package/dist/{redact-doc-D76ULHWT.js → redact-doc-A7TW4MNF.js} +22 -22
- package/dist/{render-D26TXZMX.js → render-VAOMAQV2.js} +10 -10
- package/dist/{rewrite-fallback-MP7LAJCW.js → rewrite-fallback-7PR7V3AZ.js} +12 -12
- package/dist/seal-RZZNRJFL.js +14 -0
- package/dist/{setup-3AEQJP6V.js → setup-6DXZJQCT.js} +3 -3
- package/dist/{to-hwpx-MNDLBCGC.js → to-hwpx-A56R6H27.js} +7 -7
- package/dist/visual-25RY7EFI.js +42 -0
- package/dist/{watch-2IVEGZ7U.js → watch-7W6CKGX7.js} +22 -22
- package/package.json +1 -1
- package/dist/chunk-SXCZLQWK.js.map +0 -7
- package/dist/chunk-W24M3GRV.js.map +0 -7
- package/dist/chunks-DDSN3VYT.js +0 -10
- package/dist/memo-JGUOC4ZP.js +0 -15
- package/dist/seal-OOIIF2IN.js +0 -14
- package/dist/visual-QQVRZNCA.js +0 -42
- /package/dist/{chunk-NJ4XKLJ2.js.map → chunk-24LB25LZ.js.map} +0 -0
- /package/dist/{chunk-2PG66APB.js.map → chunk-3AYNFK6J.js.map} +0 -0
- /package/dist/{chunk-3PP4Z3FP.js.map → chunk-5MDRUEHP.js.map} +0 -0
- /package/dist/{chunk-BADCOPJC.js.map → chunk-5ULHNZ3P.js.map} +0 -0
- /package/dist/{chunk-Y5SKJKIK.js.map → chunk-6I3X54AQ.js.map} +0 -0
- /package/dist/{chunk-XPCPNLPL.js.map → chunk-6MCJHRSM.js.map} +0 -0
- /package/dist/{chunk-3VFPOZUF.js.map → chunk-DZOA5N5W.js.map} +0 -0
- /package/dist/{chunk-C23CZCN2.js.map → chunk-FDSFXE2L.js.map} +0 -0
- /package/dist/{chunk-JOVWROSN.js.map → chunk-GJORKM42.js.map} +0 -0
- /package/dist/{chunk-53HOCVFW.js.map → chunk-HQILGS2O.js.map} +0 -0
- /package/dist/{chunk-YL5NXWPG.js.map → chunk-KW4JO5CV.js.map} +0 -0
- /package/dist/{chunk-YAJUYPG6.js.map → chunk-LSUTK3DH.js.map} +0 -0
- /package/dist/{chunk-74PQK4BH.js.map → chunk-MWCJYIJC.js.map} +0 -0
- /package/dist/{chunk-Q2IBOGTT.js.map → chunk-PFNZQ3XI.js.map} +0 -0
- /package/dist/{chunk-OJL2KWEP.js.map → chunk-PVOLFVXE.js.map} +0 -0
- /package/dist/{chunk-N4G253GI.js.map → chunk-QNJ2LMUO.js.map} +0 -0
- /package/dist/{chunk-4AHUE7MM.js.map → chunk-QOCUFTT4.js.map} +0 -0
- /package/dist/{chunk-FL3O63DT.js.map → chunk-S553BW45.js.map} +0 -0
- /package/dist/{chunk-2RRYYIDJ.js.map → chunk-TI6S3KZF.js.map} +0 -0
- /package/dist/{chunk-CCJ66IWE.js.map → chunk-W5AHXAUP.js.map} +0 -0
- /package/dist/{chunk-P74JR5PT.js.map → chunk-XUBBFY3H.js.map} +0 -0
- /package/dist/{chunk-YKPC2V2D.js.map → chunk-ZCMMU34Z.js.map} +0 -0
- /package/dist/{chunk-4JIM5KIE.js.map → chunk-ZO4P735U.js.map} +0 -0
- /package/dist/{chunks-DDSN3VYT.js.map → chunks-XX7RHVQF.js.map} +0 -0
- /package/dist/{formula-ZLRIPWXH.js.map → formula-HMKT4BZL.js.map} +0 -0
- /package/dist/{generator-TQUJJGL2.js.map → generator-HOY4SZ26.js.map} +0 -0
- /package/dist/{hancom-ET5G25Y3.js.map → hancom-QWJBWOOE.js.map} +0 -0
- /package/dist/{image-ocr-PINHNXEM.js.map → image-ocr-P5AIZNT3.js.map} +0 -0
- /package/dist/{memo-JGUOC4ZP.js.map → memo-Q7772VJD.js.map} +0 -0
- /package/dist/{model-bundle-PHN7MCDR.js.map → model-bundle-5CXCIZHZ.js.map} +0 -0
- /package/dist/{models-RVXHUSO6.js.map → models-PS4L7NLP.js.map} +0 -0
- /package/dist/{page-images-V3NUHVIE.js.map → page-images-QW7IUTUB.js.map} +0 -0
- /package/dist/{parse-worker-v2-N5GNR2M4.js.map → parse-worker-v2-PRH6KVKP.js.map} +0 -0
- /package/dist/{parser-HJXLKIQJ.js.map → parser-OQIR5ZMI.js.map} +0 -0
- /package/dist/{pdf-ocr-OCXKEJL7.js.map → pdf-ocr-ZH4JAUTR.js.map} +0 -0
- /package/dist/{profile-io-DTAP26A4.js.map → profile-io-JFRAM2VE.js.map} +0 -0
- /package/dist/{rasterize-UNT2CNKR.js.map → rasterize-JJOMUTYX.js.map} +0 -0
- /package/dist/{redact-doc-D76ULHWT.js.map → redact-doc-A7TW4MNF.js.map} +0 -0
- /package/dist/{render-D26TXZMX.js.map → render-VAOMAQV2.js.map} +0 -0
- /package/dist/{rewrite-fallback-MP7LAJCW.js.map → rewrite-fallback-7PR7V3AZ.js.map} +0 -0
- /package/dist/{seal-OOIIF2IN.js.map → seal-RZZNRJFL.js.map} +0 -0
- /package/dist/{setup-3AEQJP6V.js.map → setup-6DXZJQCT.js.map} +0 -0
- /package/dist/{to-hwpx-MNDLBCGC.js.map → to-hwpx-A56R6H27.js.map} +0 -0
- /package/dist/{visual-QQVRZNCA.js.map → visual-25RY7EFI.js.map} +0 -0
- /package/dist/{watch-2IVEGZ7U.js.map → watch-7W6CKGX7.js.map} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
collectSites
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QOCUFTT4.js";
|
|
4
4
|
import {
|
|
5
5
|
patchZipEntries
|
|
6
|
-
} from "./chunk-
|
|
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-
|
|
16
|
+
} from "./chunk-6I3X54AQ.js";
|
|
17
17
|
import {
|
|
18
18
|
fileTimeText
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-LSUTK3DH.js";
|
|
20
20
|
import {
|
|
21
21
|
KordocError,
|
|
22
22
|
precheckZipSize
|
|
23
|
-
} from "./chunk-
|
|
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-
|
|
130
|
+
//# sourceMappingURL=chunk-W5AHXAUP.js.map
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
parseFileHeader,
|
|
35
35
|
readRecords,
|
|
36
36
|
resolveLiteralLt
|
|
37
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
2761
|
+
//# sourceMappingURL=chunk-XUBBFY3H.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
ensureModelsIn,
|
|
3
3
|
getModelStatusIn,
|
|
4
4
|
getModelsDir
|
|
5
|
-
} from "./chunk-
|
|
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-
|
|
196
|
+
//# sourceMappingURL=chunk-ZCMMU34Z.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
assertNetworkAllowed
|
|
3
|
-
} from "./chunk-
|
|
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-
|
|
302
|
+
//# sourceMappingURL=chunk-ZO4P735U.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-KW4JO5CV.js";
|
|
5
5
|
import {
|
|
6
6
|
parseFormatProfileJson
|
|
7
|
-
} from "./chunk-
|
|
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-
|
|
54
|
-
import "./chunk-
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
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-
|
|
60
|
-
import "./chunk-
|
|
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-
|
|
70
|
-
import "./chunk-
|
|
71
|
-
import "./chunk-
|
|
72
|
-
import "./chunk-
|
|
73
|
-
import "./chunk-
|
|
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-
|
|
82
|
+
} from "./chunk-6I3X54AQ.js";
|
|
83
83
|
import "./chunk-IXQ45P43.js";
|
|
84
84
|
import {
|
|
85
85
|
hwpToHwpx
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-S553BW45.js";
|
|
87
87
|
import {
|
|
88
88
|
detectImageMime
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-XUBBFY3H.js";
|
|
90
90
|
import "./chunk-5PEMTYTM.js";
|
|
91
91
|
import "./chunk-AASNBZDZ.js";
|
|
92
|
-
import "./chunk-
|
|
92
|
+
import "./chunk-LSUTK3DH.js";
|
|
93
93
|
import "./chunk-WIIPAV2D.js";
|
|
94
94
|
import "./chunk-F5EARPSA.js";
|
|
95
|
-
import "./chunk-
|
|
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-
|
|
105
|
+
import "./chunk-GJORKM42.js";
|
|
106
106
|
import {
|
|
107
107
|
blocksToMarkdown
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-3AYNFK6J.js";
|
|
109
109
|
import "./chunk-QXQX4AN7.js";
|
|
110
110
|
import "./chunk-AY66PEUP.js";
|
|
111
|
-
import "./chunk-
|
|
112
|
-
import "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
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-
|
|
1179
|
+
//# sourceMappingURL=formula-HMKT4BZL.js.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
markdownToHwpx
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-DHXKCDAU.js";
|
|
4
|
+
import "./chunk-5ULHNZ3P.js";
|
|
5
5
|
import "./chunk-B2SRYWEY.js";
|
|
6
|
-
import "./chunk-
|
|
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-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-GJORKM42.js";
|
|
12
|
+
import "./chunk-3AYNFK6J.js";
|
|
13
13
|
import "./chunk-QXQX4AN7.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-24LB25LZ.js";
|
|
15
15
|
export {
|
|
16
16
|
markdownToHwpx
|
|
17
17
|
};
|
|
18
|
-
//# sourceMappingURL=generator-
|
|
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-
|
|
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-
|
|
90
|
+
//# sourceMappingURL=hancom-QWJBWOOE.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
dcxPages,
|
|
3
3
|
heicToRgba,
|
|
4
4
|
pcxToRgba
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-FDSFXE2L.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-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-
|
|
39
|
-
import "./chunk-
|
|
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-
|
|
43
|
+
} from "./chunk-ZCMMU34Z.js";
|
|
44
44
|
import "./chunk-AY66PEUP.js";
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
293
|
+
//# sourceMappingURL=image-ocr-P5AIZNT3.js.map
|