kordoc 4.24.48 → 4.24.49
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 +3 -3
- package/dist/{-3EMVBTE7.js → -22V6D2US.js} +42 -42
- package/dist/{chunk-TOOOWCKQ.cjs → chunk-2UWWWM4Q.cjs} +98 -98
- package/dist/{chunk-TOOOWCKQ.cjs.map → chunk-2UWWWM4Q.cjs.map} +1 -1
- package/dist/{chunk-MHAPDR6T.cjs → chunk-367WLMPO.cjs} +59 -67
- package/dist/chunk-367WLMPO.cjs.map +1 -0
- package/dist/{chunk-WVUR3HYW.js → chunk-4HJKBRZJ.js} +129 -40
- package/dist/chunk-4HJKBRZJ.js.map +1 -0
- package/dist/{chunk-7F5SKDUG.js → chunk-4MWUBTAE.js} +2 -2
- package/dist/{chunk-4N2ESXR2.js → chunk-67GSFYG7.js} +2 -2
- package/dist/{chunk-WICMTKWR.js → chunk-6BFWLS7E.js} +3 -3
- package/dist/{chunk-LBH4KAQM.cjs → chunk-6NZ32OTX.cjs} +8 -3
- package/dist/chunk-6NZ32OTX.cjs.map +1 -0
- package/dist/{chunk-JC2TMUU5.js → chunk-7KKL3PRK.js} +5 -13
- package/dist/chunk-7KKL3PRK.js.map +1 -0
- package/dist/{chunk-7EL6BCO5.js → chunk-AUAJVQQK.js} +2 -2
- package/dist/{chunk-QJBVP2BS.js → chunk-AXW2FMVR.js} +2 -2
- package/dist/{chunk-SUOJQHIN.js → chunk-CCQMSIZQ.js} +19 -19
- package/dist/{chunk-OUUI7I5V.js → chunk-DA5AXURC.js} +52 -4
- package/dist/chunk-DA5AXURC.js.map +1 -0
- package/dist/{chunk-3UY7ARXP.js → chunk-DAAJO62F.js} +2 -2
- package/dist/{chunk-QM65ELZE.js → chunk-EUJX7HTR.js} +32 -10
- package/dist/chunk-EUJX7HTR.js.map +1 -0
- package/dist/{chunk-E47LO7XG.js → chunk-EYSXMDA7.js} +17 -17
- package/dist/{chunk-TQ4QOCKT.js → chunk-FU6ZDWCI.js} +7 -2
- package/dist/chunk-FU6ZDWCI.js.map +1 -0
- package/dist/{chunk-MHLTZ3VI.js → chunk-HETGOJ6V.js} +2 -2
- package/dist/{chunk-OQPIN2OY.js → chunk-HW7WVYBF.js} +2 -2
- package/dist/{chunk-LHZL52HO.cjs → chunk-IRAZCKQ6.cjs} +3 -3
- package/dist/{chunk-LHZL52HO.cjs.map → chunk-IRAZCKQ6.cjs.map} +1 -1
- package/dist/{chunk-AC7FZDVP.js → chunk-KB4ORA7M.js} +2 -2
- package/dist/{chunk-SHYNOLL6.js → chunk-KXHUHGMC.js} +2 -2
- package/dist/{chunk-WO6PZMMB.js → chunk-L3JP55ZY.js} +2 -2
- package/dist/{chunk-OBNOOHAW.js → chunk-LCRSRVFJ.js} +2 -2
- package/dist/{chunk-OBNOOHAW.js.map → chunk-LCRSRVFJ.js.map} +1 -1
- package/dist/{chunk-OO4DHHTG.js → chunk-LFFARZYZ.js} +2 -2
- package/dist/{chunk-OO4DHHTG.js.map → chunk-LFFARZYZ.js.map} +1 -1
- package/dist/{chunk-NLPIXQOV.js → chunk-LOSCIAHY.js} +2 -2
- package/dist/{chunk-HW3DZ7TY.js → chunk-M5RQ2PNP.js} +6 -14
- package/dist/chunk-M5RQ2PNP.js.map +1 -0
- package/dist/{chunk-GFWCBYAI.js → chunk-MIJTZKWF.js} +2 -2
- package/dist/{chunk-PHU4VSNF.js → chunk-MLBX6KQM.js} +37 -3
- package/dist/chunk-MLBX6KQM.js.map +1 -0
- package/dist/{chunk-D4TKVZKB.js → chunk-OAETOHH3.js} +3 -3
- package/dist/{chunk-SI3GXM7Z.js → chunk-PMGJQWSW.js} +2 -2
- package/dist/{chunk-QOBWIFJA.cjs → chunk-PVV6OY4M.cjs} +135 -87
- package/dist/{chunk-QOBWIFJA.cjs.map → chunk-PVV6OY4M.cjs.map} +1 -1
- package/dist/{chunk-VXHZPUMS.cjs → chunk-PW7MQZI4.cjs} +2 -2
- package/dist/{chunk-VXHZPUMS.cjs.map → chunk-PW7MQZI4.cjs.map} +1 -1
- package/dist/{chunk-MYIRYP6D.js → chunk-Q7FDPJUS.js} +10 -10
- package/dist/{chunk-N6B5BINC.js → chunk-R2RLNUNK.js} +6 -6
- package/dist/{chunk-FQMPHPHE.js → chunk-RQLEGKEV.js} +2 -2
- package/dist/{chunk-KTGOULMH.js → chunk-S54DZB2Z.js} +51 -3
- package/dist/chunk-S54DZB2Z.js.map +1 -0
- package/dist/{chunk-D7SOY3VR.js → chunk-TAHS42ED.js} +33 -11
- package/dist/chunk-TAHS42ED.js.map +1 -0
- package/dist/{chunk-YFTD6WOP.cjs → chunk-TQOAPKLU.cjs} +6 -6
- package/dist/{chunk-YFTD6WOP.cjs.map → chunk-TQOAPKLU.cjs.map} +1 -1
- package/dist/{chunk-A6EOKPKG.cjs → chunk-UBY2PLKR.cjs} +54 -32
- package/dist/chunk-UBY2PLKR.cjs.map +1 -0
- package/dist/{chunk-UN2F6EKQ.js → chunk-UJELMNOU.js} +7 -2
- package/dist/chunk-UJELMNOU.js.map +1 -0
- package/dist/{chunk-REERG473.js → chunk-UU54HN5I.js} +6 -6
- package/dist/{chunk-E5RJLP2S.js → chunk-VMOUAWGD.js} +7 -7
- package/dist/{chunk-6YUMHSBG.js → chunk-WLFZOBZR.js} +3 -3
- package/dist/{chunk-SJXTCW7I.cjs → chunk-Y4MFHEK4.cjs} +40 -6
- package/dist/chunk-Y4MFHEK4.cjs.map +1 -0
- package/dist/{chunk-UJ3TZF4Y.js → chunk-Y6QW3FJQ.js} +2 -2
- package/dist/{chunk-GOYAJVR6.js → chunk-ZF24SO45.js} +37 -3
- package/dist/chunk-ZF24SO45.js.map +1 -0
- package/dist/chunks-Q7242OJE.js +11 -0
- package/dist/cli.js +73 -53
- package/dist/cli.js.map +1 -1
- package/dist/{formula-DUHNPES2.js → formula-BYEDWWZU.js} +4 -4
- package/dist/{formula-XNCKOV6K.js → formula-FQLMMBDP.js} +3 -3
- package/dist/{formula-7RJOEJHX.cjs → formula-QJEOIVKR.cjs} +9 -9
- package/dist/{formula-7RJOEJHX.cjs.map → formula-QJEOIVKR.cjs.map} +1 -1
- package/dist/generator-FTM6GOGB.cjs +11 -0
- package/dist/{generator-XXVCF6TG.cjs.map → generator-FTM6GOGB.cjs.map} +1 -1
- package/dist/generator-Q3L7RNUY.js +17 -0
- package/dist/generator-SU73HZHR.js +10 -0
- package/dist/{image-ocr-PYOXD5K4.js → image-ocr-7Y3FCGRR.js} +12 -10
- package/dist/image-ocr-7Y3FCGRR.js.map +1 -0
- package/dist/{image-ocr-NFCTNIL5.js → image-ocr-VIGZE4YL.js} +9 -7
- package/dist/image-ocr-VIGZE4YL.js.map +1 -0
- package/dist/{image-ocr-ZLAPJMES.cjs → image-ocr-WRILL3WO.cjs} +29 -27
- package/dist/image-ocr-WRILL3WO.cjs.map +1 -0
- package/dist/index.cjs +1250 -1161
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -5
- package/dist/index.d.ts +13 -5
- package/dist/index.js +207 -118
- package/dist/index.js.map +1 -1
- package/dist/mcp.js +42 -43
- package/dist/mcp.js.map +1 -1
- package/dist/memo-T5ZQEXEA.js +17 -0
- package/dist/{model-bundle-TIHWFIN5.js → model-bundle-UJRQPYUU.js} +5 -5
- package/dist/{models-YBHBEM6J.js → models-64YLAWTI.js} +5 -5
- package/dist/{parse-worker-v2-Q7ST3SDO.js → parse-worker-v2-QWQZKFQO.js} +25 -24
- package/dist/parse-worker-v2-QWQZKFQO.js.map +1 -0
- package/dist/{parser-7JSQYNLS.js → parser-JPWANPLM.js} +77 -32
- package/dist/parser-JPWANPLM.js.map +1 -0
- package/dist/{parser-A76QS3VJ.cjs → parser-RB6CBNAM.cjs} +259 -214
- package/dist/parser-RB6CBNAM.cjs.map +1 -0
- package/dist/{parser-V25GYLBJ.js → parser-XFU3VRWM.js} +80 -35
- package/dist/parser-XFU3VRWM.js.map +1 -0
- package/dist/pdf-ocr-NOJHEH4M.cjs +42 -0
- package/dist/{pdf-ocr-5YCDSSLG.cjs.map → pdf-ocr-NOJHEH4M.cjs.map} +1 -1
- package/dist/{pdf-ocr-IJXT6ZJR.js → pdf-ocr-XTZZEYKJ.js} +6 -6
- package/dist/{pdf-ocr-GEAW23FB.js → pdf-ocr-ZV3KYIIE.js} +9 -9
- package/dist/{profile-io-Y7SMMS2R.js → profile-io-FAJORRD2.js} +3 -3
- package/dist/{rasterize-MLEHT6PU.js → rasterize-4ZJUA2DZ.js} +3 -3
- package/dist/{redact-doc-GPO2UTTJ.js → redact-doc-JPNROEH6.js} +30 -30
- package/dist/{render-TNWY53S4.js → render-D4WBOBKI.js} +13 -13
- package/dist/{rewrite-fallback-AHGTN757.js → rewrite-fallback-OF3QI6CX.js} +14 -14
- package/dist/seal-DQWEHIAM.js +16 -0
- package/dist/{setup-TJ57DQ6I.js → setup-YC25YCQB.js} +3 -3
- package/dist/to-hwpx-D7OMPDUQ.js +21 -0
- package/dist/to-hwpx-LUA6F5RR.cjs +16 -0
- package/dist/{to-hwpx-XLQUY2L2.cjs.map → to-hwpx-LUA6F5RR.cjs.map} +1 -1
- package/dist/{to-hwpx-DLVARUND.js → to-hwpx-ZWN64NCQ.js} +5 -5
- package/dist/visual-SW7NPY6K.js +37 -0
- package/dist/{watch-6CHDQ355.js → watch-ZU576VSR.js} +24 -24
- package/package.json +1 -1
- package/dist/chunk-A6EOKPKG.cjs.map +0 -1
- package/dist/chunk-D7SOY3VR.js.map +0 -1
- package/dist/chunk-GOYAJVR6.js.map +0 -1
- package/dist/chunk-HW3DZ7TY.js.map +0 -1
- package/dist/chunk-JC2TMUU5.js.map +0 -1
- package/dist/chunk-KTGOULMH.js.map +0 -1
- package/dist/chunk-LBH4KAQM.cjs.map +0 -1
- package/dist/chunk-MHAPDR6T.cjs.map +0 -1
- package/dist/chunk-OUUI7I5V.js.map +0 -1
- package/dist/chunk-PHU4VSNF.js.map +0 -1
- package/dist/chunk-QM65ELZE.js.map +0 -1
- package/dist/chunk-SJXTCW7I.cjs.map +0 -1
- package/dist/chunk-TQ4QOCKT.js.map +0 -1
- package/dist/chunk-UN2F6EKQ.js.map +0 -1
- package/dist/chunk-WVUR3HYW.js.map +0 -1
- package/dist/chunks-QTVEFJOS.js +0 -11
- package/dist/generator-6BFIABTF.js +0 -10
- package/dist/generator-XJLIBYDJ.js +0 -17
- package/dist/generator-XXVCF6TG.cjs +0 -11
- package/dist/hancom-7F53R77A.cjs +0 -85
- package/dist/hancom-7F53R77A.cjs.map +0 -1
- package/dist/hancom-D4E3WBPI.js +0 -84
- package/dist/hancom-D4E3WBPI.js.map +0 -1
- package/dist/hancom-IPF6HM5F.js +0 -85
- package/dist/hancom-IPF6HM5F.js.map +0 -1
- package/dist/image-ocr-NFCTNIL5.js.map +0 -1
- package/dist/image-ocr-PYOXD5K4.js.map +0 -1
- package/dist/image-ocr-ZLAPJMES.cjs.map +0 -1
- package/dist/memo-CNW6ZJFE.js +0 -17
- package/dist/parse-worker-v2-Q7ST3SDO.js.map +0 -1
- package/dist/parser-7JSQYNLS.js.map +0 -1
- package/dist/parser-A76QS3VJ.cjs.map +0 -1
- package/dist/parser-V25GYLBJ.js.map +0 -1
- package/dist/pdf-ocr-5YCDSSLG.cjs +0 -42
- package/dist/seal-7HBR3HBQ.js +0 -16
- package/dist/to-hwpx-6JF6Q2TZ.js +0 -21
- package/dist/to-hwpx-XLQUY2L2.cjs +0 -16
- package/dist/visual-VBDQUUKP.js +0 -37
- /package/dist/{-3EMVBTE7.js.map → -22V6D2US.js.map} +0 -0
- /package/dist/{chunk-7F5SKDUG.js.map → chunk-4MWUBTAE.js.map} +0 -0
- /package/dist/{chunk-4N2ESXR2.js.map → chunk-67GSFYG7.js.map} +0 -0
- /package/dist/{chunk-WICMTKWR.js.map → chunk-6BFWLS7E.js.map} +0 -0
- /package/dist/{chunk-7EL6BCO5.js.map → chunk-AUAJVQQK.js.map} +0 -0
- /package/dist/{chunk-QJBVP2BS.js.map → chunk-AXW2FMVR.js.map} +0 -0
- /package/dist/{chunk-SUOJQHIN.js.map → chunk-CCQMSIZQ.js.map} +0 -0
- /package/dist/{chunk-3UY7ARXP.js.map → chunk-DAAJO62F.js.map} +0 -0
- /package/dist/{chunk-E47LO7XG.js.map → chunk-EYSXMDA7.js.map} +0 -0
- /package/dist/{chunk-MHLTZ3VI.js.map → chunk-HETGOJ6V.js.map} +0 -0
- /package/dist/{chunk-OQPIN2OY.js.map → chunk-HW7WVYBF.js.map} +0 -0
- /package/dist/{chunk-AC7FZDVP.js.map → chunk-KB4ORA7M.js.map} +0 -0
- /package/dist/{chunk-SHYNOLL6.js.map → chunk-KXHUHGMC.js.map} +0 -0
- /package/dist/{chunk-WO6PZMMB.js.map → chunk-L3JP55ZY.js.map} +0 -0
- /package/dist/{chunk-NLPIXQOV.js.map → chunk-LOSCIAHY.js.map} +0 -0
- /package/dist/{chunk-GFWCBYAI.js.map → chunk-MIJTZKWF.js.map} +0 -0
- /package/dist/{chunk-D4TKVZKB.js.map → chunk-OAETOHH3.js.map} +0 -0
- /package/dist/{chunk-SI3GXM7Z.js.map → chunk-PMGJQWSW.js.map} +0 -0
- /package/dist/{chunk-MYIRYP6D.js.map → chunk-Q7FDPJUS.js.map} +0 -0
- /package/dist/{chunk-N6B5BINC.js.map → chunk-R2RLNUNK.js.map} +0 -0
- /package/dist/{chunk-FQMPHPHE.js.map → chunk-RQLEGKEV.js.map} +0 -0
- /package/dist/{chunk-REERG473.js.map → chunk-UU54HN5I.js.map} +0 -0
- /package/dist/{chunk-E5RJLP2S.js.map → chunk-VMOUAWGD.js.map} +0 -0
- /package/dist/{chunk-6YUMHSBG.js.map → chunk-WLFZOBZR.js.map} +0 -0
- /package/dist/{chunk-UJ3TZF4Y.js.map → chunk-Y6QW3FJQ.js.map} +0 -0
- /package/dist/{chunks-QTVEFJOS.js.map → chunks-Q7242OJE.js.map} +0 -0
- /package/dist/{formula-DUHNPES2.js.map → formula-BYEDWWZU.js.map} +0 -0
- /package/dist/{formula-XNCKOV6K.js.map → formula-FQLMMBDP.js.map} +0 -0
- /package/dist/{generator-6BFIABTF.js.map → generator-Q3L7RNUY.js.map} +0 -0
- /package/dist/{generator-XJLIBYDJ.js.map → generator-SU73HZHR.js.map} +0 -0
- /package/dist/{memo-CNW6ZJFE.js.map → memo-T5ZQEXEA.js.map} +0 -0
- /package/dist/{model-bundle-TIHWFIN5.js.map → model-bundle-UJRQPYUU.js.map} +0 -0
- /package/dist/{models-YBHBEM6J.js.map → models-64YLAWTI.js.map} +0 -0
- /package/dist/{pdf-ocr-GEAW23FB.js.map → pdf-ocr-XTZZEYKJ.js.map} +0 -0
- /package/dist/{pdf-ocr-IJXT6ZJR.js.map → pdf-ocr-ZV3KYIIE.js.map} +0 -0
- /package/dist/{profile-io-Y7SMMS2R.js.map → profile-io-FAJORRD2.js.map} +0 -0
- /package/dist/{rasterize-MLEHT6PU.js.map → rasterize-4ZJUA2DZ.js.map} +0 -0
- /package/dist/{redact-doc-GPO2UTTJ.js.map → redact-doc-JPNROEH6.js.map} +0 -0
- /package/dist/{render-TNWY53S4.js.map → render-D4WBOBKI.js.map} +0 -0
- /package/dist/{rewrite-fallback-AHGTN757.js.map → rewrite-fallback-OF3QI6CX.js.map} +0 -0
- /package/dist/{seal-7HBR3HBQ.js.map → seal-DQWEHIAM.js.map} +0 -0
- /package/dist/{setup-TJ57DQ6I.js.map → setup-YC25YCQB.js.map} +0 -0
- /package/dist/{to-hwpx-6JF6Q2TZ.js.map → to-hwpx-D7OMPDUQ.js.map} +0 -0
- /package/dist/{to-hwpx-DLVARUND.js.map → to-hwpx-ZWN64NCQ.js.map} +0 -0
- /package/dist/{visual-VBDQUUKP.js.map → visual-SW7NPY6K.js.map} +0 -0
- /package/dist/{watch-6CHDQ355.js.map → watch-ZU576VSR.js.map} +0 -0
package/dist/mcp.js
CHANGED
|
@@ -45,45 +45,45 @@ import {
|
|
|
45
45
|
unknownFontWarnings,
|
|
46
46
|
usesGaejosikMunche,
|
|
47
47
|
usesLogicStructure
|
|
48
|
-
} from "./chunk-
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-GOYAJVR6.js";
|
|
48
|
+
} from "./chunk-4HJKBRZJ.js";
|
|
49
|
+
import "./chunk-ZF24SO45.js";
|
|
51
50
|
import {
|
|
52
51
|
extractHwpxMetadataOnly,
|
|
53
52
|
patchHwp,
|
|
54
53
|
patchHwpx
|
|
55
|
-
} from "./chunk-
|
|
56
|
-
import "./chunk-D4TKVZKB.js";
|
|
54
|
+
} from "./chunk-EYSXMDA7.js";
|
|
57
55
|
import {
|
|
58
56
|
AGENCY_COMMON_NAME,
|
|
59
57
|
PRESET_ALIAS,
|
|
60
58
|
agencyNames,
|
|
61
59
|
incompatibleGongmunWarnings,
|
|
62
60
|
markdownToHwpx
|
|
63
|
-
} from "./chunk-
|
|
64
|
-
import "./chunk-
|
|
65
|
-
import "./chunk-
|
|
66
|
-
import "./chunk-
|
|
67
|
-
import "./chunk-FQMPHPHE.js";
|
|
68
|
-
import "./chunk-UJ3TZF4Y.js";
|
|
61
|
+
} from "./chunk-CCQMSIZQ.js";
|
|
62
|
+
import "./chunk-R2RLNUNK.js";
|
|
63
|
+
import "./chunk-VMOUAWGD.js";
|
|
64
|
+
import "./chunk-Y6QW3FJQ.js";
|
|
69
65
|
import {
|
|
70
66
|
extractFormFields,
|
|
71
67
|
fillWithUniqueGuard
|
|
72
68
|
} from "./chunk-3AHL6YEA.js";
|
|
73
|
-
import "./chunk-AC7FZDVP.js";
|
|
74
69
|
import {
|
|
75
70
|
hwpToHwpx
|
|
76
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-M5RQ2PNP.js";
|
|
72
|
+
import "./chunk-3WSNLH4B.js";
|
|
73
|
+
import "./chunk-L3JP55ZY.js";
|
|
74
|
+
import "./chunk-Q7FDPJUS.js";
|
|
75
|
+
import "./chunk-OAETOHH3.js";
|
|
76
|
+
import "./chunk-MIJTZKWF.js";
|
|
77
|
+
import "./chunk-RQLEGKEV.js";
|
|
78
|
+
import "./chunk-KB4ORA7M.js";
|
|
77
79
|
import {
|
|
78
80
|
extractHwp5MetadataOnly
|
|
79
|
-
} from "./chunk-
|
|
80
|
-
import "./chunk-
|
|
81
|
+
} from "./chunk-UU54HN5I.js";
|
|
82
|
+
import "./chunk-FU6ZDWCI.js";
|
|
81
83
|
import "./chunk-OFVHQ2TZ.js";
|
|
82
|
-
import "./chunk-
|
|
84
|
+
import "./chunk-LOSCIAHY.js";
|
|
83
85
|
import "./chunk-WFKFG2RT.js";
|
|
84
|
-
import "./chunk-
|
|
85
|
-
import "./chunk-WO6PZMMB.js";
|
|
86
|
-
import "./chunk-4N2ESXR2.js";
|
|
86
|
+
import "./chunk-67GSFYG7.js";
|
|
87
87
|
import "./chunk-VQFA55IC.js";
|
|
88
88
|
import {
|
|
89
89
|
detectFormat,
|
|
@@ -92,16 +92,16 @@ import {
|
|
|
92
92
|
} from "./chunk-GHHVT4Q5.js";
|
|
93
93
|
import "./chunk-H7K5YHWQ.js";
|
|
94
94
|
import "./chunk-IIOBUTXH.js";
|
|
95
|
-
import "./chunk-
|
|
95
|
+
import "./chunk-LCRSRVFJ.js";
|
|
96
96
|
import {
|
|
97
97
|
blocksToMarkdown
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-HETGOJ6V.js";
|
|
99
99
|
import "./chunk-KFF47XZ7.js";
|
|
100
100
|
import {
|
|
101
101
|
assertWithinRoot,
|
|
102
102
|
getAccessRoot,
|
|
103
103
|
isOfflineMode
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-AXW2FMVR.js";
|
|
105
105
|
import {
|
|
106
106
|
KordocError,
|
|
107
107
|
VERSION,
|
|
@@ -109,7 +109,7 @@ import {
|
|
|
109
109
|
routeConsoleToStderr,
|
|
110
110
|
sanitizeError,
|
|
111
111
|
toArrayBuffer
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-KXHUHGMC.js";
|
|
113
113
|
|
|
114
114
|
// src/mcp.ts
|
|
115
115
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
@@ -426,7 +426,7 @@ ${markdown}`);
|
|
|
426
426
|
break;
|
|
427
427
|
case "pdf":
|
|
428
428
|
try {
|
|
429
|
-
const { extractPdfMetadataOnly } = await import("./parser-
|
|
429
|
+
const { extractPdfMetadataOnly } = await import("./parser-JPWANPLM.js");
|
|
430
430
|
metadata = await extractPdfMetadataOnly(buffer);
|
|
431
431
|
} catch {
|
|
432
432
|
metadata = void 0;
|
|
@@ -603,7 +603,7 @@ ${tableMarkdown}` }]
|
|
|
603
603
|
if (!parsed.success) {
|
|
604
604
|
return { content: [{ type: "text", text: `\uD30C\uC2F1 \uC2E4\uD328: ${parsed.error}` }], isError: true };
|
|
605
605
|
}
|
|
606
|
-
const { blocksToChunks } = await import("./chunks-
|
|
606
|
+
const { blocksToChunks } = await import("./chunks-Q7242OJE.js");
|
|
607
607
|
const chunks = blocksToChunks(parsed.blocks, { granularity, includeTableCells: include_table_cells });
|
|
608
608
|
return { content: [{ type: "text", text: capResponseText(JSON.stringify(chunks, null, 2)) }] };
|
|
609
609
|
} catch (err) {
|
|
@@ -883,7 +883,7 @@ ${previewMd}` }]
|
|
|
883
883
|
}
|
|
884
884
|
const image = new Uint8Array(await readFile2(imgResolved));
|
|
885
885
|
const ext = extname2(imgResolved).slice(1).toLowerCase();
|
|
886
|
-
const { placeSealHwpx } = await import("./seal-
|
|
886
|
+
const { placeSealHwpx } = await import("./seal-DQWEHIAM.js");
|
|
887
887
|
const result = await placeSealHwpx(buffer, [{
|
|
888
888
|
anchor,
|
|
889
889
|
occurrence,
|
|
@@ -939,7 +939,7 @@ ${previewMd}` }]
|
|
|
939
939
|
if (format !== "hwpx") {
|
|
940
940
|
return { content: [{ type: "text", text: `add_memo \uB294 HWPX\xB7HWP 5.x \uD30C\uC77C\uB9CC \uC9C0\uC6D0\uD569\uB2C8\uB2E4 (\uAC10\uC9C0\uB41C \uD3EC\uB9F7: ${format}).` }], isError: true };
|
|
941
941
|
}
|
|
942
|
-
const { addMemoHwpx } = await import("./memo-
|
|
942
|
+
const { addMemoHwpx } = await import("./memo-T5ZQEXEA.js");
|
|
943
943
|
const result = await addMemoHwpx(buffer, [{ anchor, text, author, occurrence }]);
|
|
944
944
|
await mkdir(dirname2(outPath), { recursive: true });
|
|
945
945
|
await writeOutputFile(outPath, Buffer.from(result.buffer));
|
|
@@ -981,7 +981,7 @@ ${previewMd}` }]
|
|
|
981
981
|
}
|
|
982
982
|
const original = new Uint8Array(buffer);
|
|
983
983
|
const result = isHwpx ? await patchHwpx(original, edited_markdown, structure === false ? { structure: false } : void 0) : await patchHwp(original, edited_markdown);
|
|
984
|
-
const { needsRewrite, rewriteEdited, rewritePath } = await import("./rewrite-fallback-
|
|
984
|
+
const { needsRewrite, rewriteEdited, rewritePath } = await import("./rewrite-fallback-OF3QI6CX.js");
|
|
985
985
|
const rewrite = needsRewrite(result) ? await rewriteEdited(original, isHwpx, edited_markdown, result.success) : null;
|
|
986
986
|
const rwOut = rewrite ? safeOutputPath(rewritePath(out), /* @__PURE__ */ new Set([".hwpx"])) : void 0;
|
|
987
987
|
if (rewrite && rwOut) {
|
|
@@ -1050,7 +1050,7 @@ ${rewriteLine}` }] };
|
|
|
1050
1050
|
if (outPath && await isSameFile(outPath, resolved)) {
|
|
1051
1051
|
return { content: [{ type: "text", text: "output_path\uAC00 \uC785\uB825 \uD30C\uC77C\uACFC \uAC19\uC2B5\uB2C8\uB2E4 \u2014 \uC6D0\uBCF8\uC744 \uB36E\uC5B4\uC4F0\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. \uB2E4\uB978 \uACBD\uB85C\uB97C \uC9C0\uC815\uD558\uC138\uC694." }], isError: true };
|
|
1052
1052
|
}
|
|
1053
|
-
const { redactDocument } = await import("./redact-doc-
|
|
1053
|
+
const { redactDocument } = await import("./redact-doc-JPNROEH6.js");
|
|
1054
1054
|
const r = await redactDocument(buffer, { rules, maskChar: mask_char, filePath: file_path, dryRun: dry_run });
|
|
1055
1055
|
const MAX_LINES = 50;
|
|
1056
1056
|
const listed = r.fileHits.length > 0 ? r.fileHits.map((h) => ` - [${h.rule}] ${h.masked} (${h.where} @ ${h.part})`) : r.markdownHits.map((h) => ` - [${h.rule}] ${h.masked}`);
|
|
@@ -1125,7 +1125,7 @@ function registerRenderTools(server2) {
|
|
|
1125
1125
|
const { buffer, resolved } = await readValidatedFile(file_path, MAX_FILE_SIZE, /* @__PURE__ */ new Set([".hwpx", ".hwp"]));
|
|
1126
1126
|
const isHwp5 = resolved.toLowerCase().endsWith(".hwp");
|
|
1127
1127
|
if (!isHwp5 && !pages && (format === "png" || format === "svg")) {
|
|
1128
|
-
const { renderHwpxToSvg } = await import("./render-
|
|
1128
|
+
const { renderHwpxToSvg } = await import("./render-D4WBOBKI.js");
|
|
1129
1129
|
const result = await renderHwpxToSvg(buffer, { highlights, reflow: true, reflowMode: reflow_mode, password });
|
|
1130
1130
|
const summary2 = [
|
|
1131
1131
|
`\uB80C\uB354 \uC644\uB8CC: ${result.pageCount}\uD398\uC774\uC9C0, ${Math.round(result.width)}x${Math.round(result.height)}pt (\uD14D\uC2A4\uD2B8 ${result.stats.texts}\xB7\uC774\uBBF8\uC9C0 ${result.stats.images}\xB7\uD45C ${result.stats.tables})`,
|
|
@@ -1137,7 +1137,7 @@ function registerRenderTools(server2) {
|
|
|
1137
1137
|
summary2.push(`\uC800\uC7A5: ${outPath}`);
|
|
1138
1138
|
return { content: [{ type: "text", text: summary2.join("\n") }] };
|
|
1139
1139
|
}
|
|
1140
|
-
const { rasterizeSvg } = await import("./rasterize-
|
|
1140
|
+
const { rasterizeSvg } = await import("./rasterize-4ZJUA2DZ.js");
|
|
1141
1141
|
const raster = await rasterizeSvg(result.svg, result.width, result.height, max_width_px ? { maxWidthPx: max_width_px } : void 0);
|
|
1142
1142
|
if (outPath) {
|
|
1143
1143
|
await mkdir2(dirname3(outPath), { recursive: true });
|
|
@@ -1152,7 +1152,7 @@ function registerRenderTools(server2) {
|
|
|
1152
1152
|
]
|
|
1153
1153
|
};
|
|
1154
1154
|
}
|
|
1155
|
-
const { renderDocument } = await import("./render-
|
|
1155
|
+
const { renderDocument } = await import("./render-D4WBOBKI.js");
|
|
1156
1156
|
const { scene, assets } = await renderDocument(buffer, { format, pages, highlights, reflow: true, reflowMode: reflow_mode, maxWidthPx: max_width_px, password });
|
|
1157
1157
|
const summary = [
|
|
1158
1158
|
`\uB80C\uB354 \uC644\uB8CC: \uBB38\uC11C ${scene.pages.length}\uD398\uC774\uC9C0 \uC911 ${assets.filter((a) => a.page !== void 0).length || 1}\uAC74 (\uD14D\uC2A4\uD2B8 ${scene.stats.texts}\xB7\uC774\uBBF8\uC9C0 ${scene.stats.images}\xB7\uD45C ${scene.stats.tables}\xB7\uB3C4\uD615 ${scene.stats.shapes})`,
|
|
@@ -1202,7 +1202,7 @@ function registerRenderTools(server2) {
|
|
|
1202
1202
|
try {
|
|
1203
1203
|
const { buffer } = await readValidatedFile(file_path, MAX_FILE_SIZE, /* @__PURE__ */ new Set([".hwpx", ".hwp"]));
|
|
1204
1204
|
const dir = safeOutputPath(join2(output_dir, "regions.json"), /* @__PURE__ */ new Set([".json"])).replace(/[\\/]regions\.json$/, "");
|
|
1205
|
-
const { extractRenderedRegions } = await import("./render-
|
|
1205
|
+
const { extractRenderedRegions } = await import("./render-D4WBOBKI.js");
|
|
1206
1206
|
const regions = await extractRenderedRegions(buffer, { types: target, format, pages, paddingPt: padding_pt, reflow: true });
|
|
1207
1207
|
await mkdir2(dir, { recursive: true });
|
|
1208
1208
|
const ext = format === "jpeg" ? "jpg" : "png";
|
|
@@ -1238,7 +1238,7 @@ function registerRenderTools(server2) {
|
|
|
1238
1238
|
}
|
|
1239
1239
|
const { buffer } = await readValidatedFile(file_path, MAX_FILE_SIZE, /* @__PURE__ */ new Set([".hwpx", ".hwp"]));
|
|
1240
1240
|
const dir = output_dir ? safeOutputPath(join2(output_dir, "tables.json"), /* @__PURE__ */ new Set([".json"])).replace(/[\\/]tables\.json$/, "") : void 0;
|
|
1241
|
-
const { extractTables } = await import("./visual-
|
|
1241
|
+
const { extractTables } = await import("./visual-SW7NPY6K.js");
|
|
1242
1242
|
const tables = await extractTables(buffer, { policy: visual, format, paddingPt: padding_pt });
|
|
1243
1243
|
if (dir) await mkdir2(dir, { recursive: true });
|
|
1244
1244
|
const ext = format === "jpeg" ? "jpg" : "png";
|
|
@@ -1295,7 +1295,7 @@ function registerGenerateTools(server2) {
|
|
|
1295
1295
|
try {
|
|
1296
1296
|
const out = safeOutputPath(output_path, PROFILE_EXTENSIONS);
|
|
1297
1297
|
const { buffer } = await readValidatedFile(hwpx_path);
|
|
1298
|
-
const { hwpxToProfile } = await import("./-
|
|
1298
|
+
const { hwpxToProfile } = await import("./-22V6D2US.js");
|
|
1299
1299
|
const profile = await hwpxToProfile(buffer);
|
|
1300
1300
|
await mkdir3(dirname4(out), { recursive: true });
|
|
1301
1301
|
await writeOutputFile(out, JSON.stringify(profile, null, 2));
|
|
@@ -1448,7 +1448,7 @@ ${g.blocking.map((f) => `- ${formatGateFinding(f)}`).join("\n")}` }],
|
|
|
1448
1448
|
}
|
|
1449
1449
|
let profile;
|
|
1450
1450
|
if (profile_path) {
|
|
1451
|
-
const { parseFormatProfileJson } = await import("./profile-io-
|
|
1451
|
+
const { parseFormatProfileJson } = await import("./profile-io-FAJORRD2.js");
|
|
1452
1452
|
profile = parseFormatProfileJson(await readFile3(safePath(profile_path, PROFILE_EXTENSIONS), "utf-8"));
|
|
1453
1453
|
}
|
|
1454
1454
|
const out = safeOutputPath(output_path, /* @__PURE__ */ new Set([".hwpx"]));
|
|
@@ -1599,7 +1599,7 @@ function registerLintTools(server2) {
|
|
|
1599
1599
|
let irBlocks;
|
|
1600
1600
|
if (file_path !== void 0) {
|
|
1601
1601
|
const { buffer, resolved } = await readValidatedFile(file_path, MAX_FILE_SIZE, ALLOWED_EXTENSIONS);
|
|
1602
|
-
const { parse: parse2 } = await import("./-
|
|
1602
|
+
const { parse: parse2 } = await import("./-22V6D2US.js");
|
|
1603
1603
|
const parsed = await parse2(buffer, { filePath: resolved });
|
|
1604
1604
|
if (!parsed.success) throw new KordocError(`\uBB38\uC11C\uB97C \uC77D\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4 \u2014 ${parsed.error}`);
|
|
1605
1605
|
body = parsed.markdown;
|
|
@@ -1647,10 +1647,9 @@ function registerConvertTools(server2) {
|
|
|
1647
1647
|
{
|
|
1648
1648
|
file_path: z6.string().min(1).describe("\uBCC0\uD658\uD560 HWP \uD30C\uC77C\uC758 \uC808\uB300 \uACBD\uB85C"),
|
|
1649
1649
|
output_path: z6.string().min(1).optional().describe("\uC800\uC7A5\uD560 .hwpx \uACBD\uB85C (\uAE30\uBCF8: \uC785\uB825\uACFC \uAC19\uC740 \uD3F4\uB354\xB7\uAC19\uC740 \uC774\uB984\uC758 .hwpx \u2014 \uADF8 \uD30C\uC77C\uC774 \uC774\uBBF8 \uC788\uC73C\uBA74 \uB36E\uC5B4\uC4F0\uC9C0 \uC54A\uACE0 \uC2E4\uD328\uD558\uB2C8 \uADF8\uB54C\uB294 \uACBD\uB85C\uB97C \uC9C0\uC815)"),
|
|
1650
|
-
password: z6.string().optional().describe("\uC554\uD638\uB85C \uBCF4\uD638\uB41C HWP \uC758 \uC5F4\uAE30 \uC554\uD638")
|
|
1651
|
-
engine: z6.enum(["kordoc", "hancom", "auto"]).optional().describe('\uBCC0\uD658 \uC5D4\uC9C4 \u2014 "kordoc"(\uAE30\uBCF8, \uC5B4\uB514\uC11C\uB098) | "hancom"(Windows \uD55C/\uAE00 \uC790\uCCB4 \uC800\uC7A5, \uD31D\uC5C5 \uC5C6\uC774 \u2014 HWP 3.x \uB3C4 \uC11C\uC2DD \uADF8\uB300\uB85C) | "auto"(\uD55C/\uAE00\uC774 \uC788\uC73C\uBA74 hancom)')
|
|
1650
|
+
password: z6.string().optional().describe("\uC554\uD638\uB85C \uBCF4\uD638\uB41C HWP \uC758 \uC5F4\uAE30 \uC554\uD638")
|
|
1652
1651
|
},
|
|
1653
|
-
async ({ file_path, output_path, password
|
|
1652
|
+
async ({ file_path, output_path, password }) => {
|
|
1654
1653
|
try {
|
|
1655
1654
|
const { buffer, resolved } = await readValidatedFile(file_path, MAX_FILE_SIZE, /* @__PURE__ */ new Set([".hwp", ".hml"]));
|
|
1656
1655
|
const outPath = safeOutputPath(output_path ?? resolved.replace(/\.(hwp|hml)$/i, "") + ".hwpx", /* @__PURE__ */ new Set([".hwpx"]));
|
|
@@ -1658,13 +1657,13 @@ function registerConvertTools(server2) {
|
|
|
1658
1657
|
if (!output_path && await access(outPath).then(() => true, () => false)) {
|
|
1659
1658
|
throw new KordocError(`${outPath} \uC774(\uAC00) \uC774\uBBF8 \uC788\uC2B5\uB2C8\uB2E4 \u2014 \uB36E\uC5B4\uC4F0\uB824\uBA74 output_path \uB85C \uACBD\uB85C\uB97C \uC9C1\uC811 \uC9C0\uC815\uD558\uC138\uC694`);
|
|
1660
1659
|
}
|
|
1661
|
-
const { convertToHwpx, validateHwpx } = await import("./-
|
|
1662
|
-
const result = await convertToHwpx(buffer, { password
|
|
1660
|
+
const { convertToHwpx, validateHwpx } = await import("./-22V6D2US.js");
|
|
1661
|
+
const result = await convertToHwpx(buffer, { password });
|
|
1663
1662
|
const check = await validateHwpx(result.data);
|
|
1664
1663
|
await mkdir4(dirname5(outPath), { recursive: true });
|
|
1665
1664
|
await writeOutputFile(outPath, result.data);
|
|
1666
1665
|
const lines = [
|
|
1667
|
-
`${result.mode === "preserve" ? "\uC11C\uC2DD \uADF8\uB300\uB85C" : "\uAE00\xB7\uD45C\uB9CC"} HWPX \uB85C \uBCC0\uD658\uD588\uC2B5\uB2C8\uB2E4
|
|
1666
|
+
`${result.mode === "preserve" ? "\uC11C\uC2DD \uADF8\uB300\uB85C" : "\uAE00\xB7\uD45C\uB9CC"} HWPX \uB85C \uBCC0\uD658\uD588\uC2B5\uB2C8\uB2E4: ${outPath} (${result.data.length.toLocaleString()} \uBC14\uC774\uD2B8)`,
|
|
1668
1667
|
...result.warnings.map((w) => `\u26A0\uFE0F ${w}`),
|
|
1669
1668
|
...check.ok ? [] : check.issues.map((i) => `\u2717 \uAD6C\uC870 \uBB38\uC81C ${i.path ? `${i.path}: ` : ""}${i.message}`)
|
|
1670
1669
|
];
|