kordoc 4.24.71 → 4.24.73
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 +4 -4
- package/dist/{-F7GLIIGT.js → -CNXSUEGZ.js} +21 -21
- package/dist/{chunk-YPRIJDH6.js → chunk-2JA4FJJM.js} +2 -2
- package/dist/{chunk-M27VBFO6.js → chunk-32NWTEPA.js} +26 -6
- package/dist/chunk-32NWTEPA.js.map +1 -0
- package/dist/{chunk-SMEBVDM2.js → chunk-376JPHHC.js} +5 -5
- package/dist/{chunk-OW2XKTQA.cjs → chunk-5MBQW3KP.cjs} +8 -8
- package/dist/{chunk-OW2XKTQA.cjs.map → chunk-5MBQW3KP.cjs.map} +1 -1
- package/dist/{chunk-TYGZ6O2A.js → chunk-64QDDZO3.js} +11 -11
- package/dist/{chunk-RWU3Y5YK.js → chunk-A6YD5KUQ.js} +18 -16
- package/dist/chunk-A6YD5KUQ.js.map +1 -0
- package/dist/{chunk-OUHMNF2A.js → chunk-AAXWKG3C.js} +2 -2
- package/dist/{chunk-BHYBZSOC.js → chunk-ABNK5QI2.js} +2 -2
- package/dist/{chunk-KLUI4SAZ.js → chunk-AUGOG3KY.js} +2 -2
- package/dist/{chunk-O7PJFEOC.js → chunk-B5F7B5NL.js} +2 -2
- package/dist/{chunk-7KVDHXP2.js → chunk-BK55EX56.js} +4 -4
- package/dist/{chunk-T7MHZIFG.js → chunk-BUB3O7LS.js} +27 -7
- package/dist/chunk-BUB3O7LS.js.map +1 -0
- package/dist/{chunk-KGCJNPAI.js → chunk-BX23BOYN.js} +5 -5
- package/dist/{chunk-2CPEW6WC.js → chunk-CBGH37CU.js} +3 -3
- package/dist/{chunk-AUHQRRKM.js → chunk-CGOCVSWC.js} +3 -3
- package/dist/{chunk-MHXPW72E.js → chunk-E3G3JTXW.js} +2 -2
- package/dist/{chunk-NPBNJCXZ.js → chunk-G7QVY67O.js} +2 -2
- package/dist/{chunk-LFTO5QAP.cjs → chunk-HMHIF6QF.cjs} +2 -2
- package/dist/{chunk-LFTO5QAP.cjs.map → chunk-HMHIF6QF.cjs.map} +1 -1
- package/dist/{chunk-5WWGC5SG.js → chunk-IV6UP7MO.js} +2 -2
- package/dist/{chunk-HIYRMYAS.js → chunk-JDGPQVTX.js} +2 -2
- package/dist/{chunk-GRCIFCGC.js → chunk-JY4YMR6F.js} +2 -2
- package/dist/{chunk-2VBRCIPI.js → chunk-LMHDQWQM.js} +2 -2
- package/dist/{chunk-YISBYF7X.cjs → chunk-LUQH3SUU.cjs} +58 -58
- package/dist/{chunk-YISBYF7X.cjs.map → chunk-LUQH3SUU.cjs.map} +1 -1
- package/dist/{chunk-LNWURZ2Z.js → chunk-M4QZCXT4.js} +7 -7
- package/dist/{chunk-SK5AOGYK.cjs → chunk-MDDQRVA4.cjs} +104 -104
- package/dist/{chunk-SK5AOGYK.cjs.map → chunk-MDDQRVA4.cjs.map} +1 -1
- package/dist/{chunk-GFAWIBHG.js → chunk-MHLTXTP2.js} +10 -10
- package/dist/{chunk-IMT5TVVM.js → chunk-NQL7NCSE.js} +2 -2
- package/dist/{chunk-YTP7FPA5.cjs → chunk-O4TKUBCF.cjs} +3 -3
- package/dist/{chunk-YTP7FPA5.cjs.map → chunk-O4TKUBCF.cjs.map} +1 -1
- package/dist/{chunk-H2VOH7X3.cjs → chunk-OOD35TZR.cjs} +203 -183
- package/dist/chunk-OOD35TZR.cjs.map +1 -0
- package/dist/{chunk-2OF2YWIZ.js → chunk-P4FHTYVX.js} +2 -2
- package/dist/{chunk-BNP3WXTB.cjs → chunk-QLUFTCAE.cjs} +3 -3
- package/dist/{chunk-BNP3WXTB.cjs.map → chunk-QLUFTCAE.cjs.map} +1 -1
- package/dist/{chunk-WMA4GJHC.js → chunk-RJ26GRDB.js} +5 -5
- package/dist/{chunk-YJ2YVG6N.cjs → chunk-ROYGVYLL.cjs} +88 -88
- package/dist/{chunk-YJ2YVG6N.cjs.map → chunk-ROYGVYLL.cjs.map} +1 -1
- package/dist/{chunk-QK5KCWLE.js → chunk-S366ICXS.js} +2 -2
- package/dist/{chunk-EZNUMAAJ.js → chunk-S6K222FM.js} +2 -2
- package/dist/{chunk-ZPJZXTEG.js → chunk-TTIJTR5Z.js} +6 -6
- package/dist/{chunk-D4UFBXMT.js → chunk-UMVL776E.js} +2 -2
- package/dist/{chunk-YTDHH362.js → chunk-VMM5PVOA.js} +2 -2
- package/dist/{chunk-OJK4FLS5.js → chunk-VSWGRKTF.js} +3 -3
- package/dist/{chunk-6ZA4V4QS.js → chunk-X4HNVXJI.js} +2 -2
- package/dist/{chunk-RUUUGCXS.js → chunk-XSDVY4S6.js} +6 -6
- package/dist/{chunk-DSCT67WF.js → chunk-YLC25Z64.js} +3 -3
- package/dist/{chunk-UJQRIX4L.js → chunk-ZH322FQG.js} +2 -2
- package/dist/chunks-7XYOWREB.js +11 -0
- package/dist/cli.js +45 -45
- package/dist/{formula-3PJYUQMG.js → formula-7Q6CKLK2.js} +36 -6
- package/dist/formula-7Q6CKLK2.js.map +1 -0
- package/dist/{formula-RTPZD2IM.cjs → formula-AORKEC66.cjs} +41 -11
- package/dist/formula-AORKEC66.cjs.map +1 -0
- package/dist/{formula-UJF4RZ6W.js → formula-IP2SLKUY.js} +35 -5
- package/dist/formula-IP2SLKUY.js.map +1 -0
- package/dist/generator-BPEAWT2P.cjs +12 -0
- package/dist/{generator-INMUN6KB.cjs.map → generator-BPEAWT2P.cjs.map} +1 -1
- package/dist/generator-NLWOHWUW.js +18 -0
- package/dist/generator-VBJWJI3E.js +11 -0
- package/dist/{hancom-P3SUQXM4.js → hancom-DVWCKSEN.js} +2 -2
- package/dist/{hancom-MVPEYI4X.cjs → hancom-J2SWJYM6.cjs} +5 -5
- package/dist/{hancom-MVPEYI4X.cjs.map → hancom-J2SWJYM6.cjs.map} +1 -1
- package/dist/{hancom-RYIZHWJ5.js → hancom-P34JL3HX.js} +2 -2
- package/dist/{image-ocr-ZS4EMQN3.cjs → image-ocr-3CJ4KVOT.cjs} +28 -28
- package/dist/{image-ocr-ZS4EMQN3.cjs.map → image-ocr-3CJ4KVOT.cjs.map} +1 -1
- package/dist/{image-ocr-ZXLHPQI2.js → image-ocr-5RBEPJPK.js} +7 -7
- package/dist/{image-ocr-GL5YVCNU.js → image-ocr-7EOTOS42.js} +10 -10
- package/dist/index.cjs +1118 -1116
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -10
- package/dist/index.js.map +1 -1
- package/dist/mcp.js +36 -36
- package/dist/memo-ARHG3OC5.js +17 -0
- package/dist/{model-bundle-VCUAKBF3.js → model-bundle-7YL3PW4N.js} +5 -5
- package/dist/{models-UACAGYBI.js → models-ZXDUWX64.js} +5 -5
- package/dist/{parse-worker-v2-LJB4QXGF.js → parse-worker-v2-SGBIWVYJ.js} +22 -22
- package/dist/{parser-T4HAQ3QW.cjs → parser-6M4IIKSU.cjs} +166 -166
- package/dist/{parser-T4HAQ3QW.cjs.map → parser-6M4IIKSU.cjs.map} +1 -1
- package/dist/{parser-5GZUD22P.js → parser-HZANYZZA.js} +12 -12
- package/dist/{parser-HCZD4DUO.js → parser-RYPZ245J.js} +9 -9
- package/dist/pdf-ocr-26AWXUHX.cjs +43 -0
- package/dist/{pdf-ocr-H4DKZSOB.cjs.map → pdf-ocr-26AWXUHX.cjs.map} +1 -1
- package/dist/{pdf-ocr-JXVGK5MR.js → pdf-ocr-J5BIUOOQ.js} +6 -6
- package/dist/{pdf-ocr-YCMC2VL4.js → pdf-ocr-VMB4NOXR.js} +9 -9
- package/dist/{profile-io-MVTEOXAU.js → profile-io-F6WUV5PU.js} +3 -3
- package/dist/{rasterize-VWT3C3RW.js → rasterize-AFUYHCSP.js} +3 -3
- package/dist/{redact-doc-SU3JDC6F.js → redact-doc-UKYOAVBS.js} +21 -21
- package/dist/{render-D5N4FKWB.js → render-VRZS47LX.js} +12 -12
- package/dist/{rewrite-fallback-QXTWSPGY.js → rewrite-fallback-PNSM4XRC.js} +13 -13
- package/dist/seal-CJOUVTMN.js +16 -0
- package/dist/{setup-TXNJYX6P.js → setup-VV6ERJGY.js} +3 -3
- package/dist/to-hwpx-3OWX37Q4.cjs +16 -0
- package/dist/{to-hwpx-KZTTH7EY.cjs.map → to-hwpx-3OWX37Q4.cjs.map} +1 -1
- package/dist/{to-hwpx-Z7NHUMUD.js → to-hwpx-WBMWA54L.js} +7 -7
- package/dist/{to-hwpx-YHGVFTBO.js → to-hwpx-YYMXNCCW.js} +4 -4
- package/dist/visual-YY2BPPCJ.js +38 -0
- package/dist/{watch-EI5QYDT2.js → watch-BTAIN7LZ.js} +22 -22
- package/package.json +1 -1
- package/dist/chunk-H2VOH7X3.cjs.map +0 -1
- package/dist/chunk-M27VBFO6.js.map +0 -1
- package/dist/chunk-RWU3Y5YK.js.map +0 -1
- package/dist/chunk-T7MHZIFG.js.map +0 -1
- package/dist/chunks-JAD5Z5YY.js +0 -11
- package/dist/formula-3PJYUQMG.js.map +0 -1
- package/dist/formula-RTPZD2IM.cjs.map +0 -1
- package/dist/formula-UJF4RZ6W.js.map +0 -1
- package/dist/generator-EB2436BE.js +0 -18
- package/dist/generator-INMUN6KB.cjs +0 -12
- package/dist/generator-K5KMPSLC.js +0 -11
- package/dist/memo-JNMSGIO7.js +0 -17
- package/dist/pdf-ocr-H4DKZSOB.cjs +0 -43
- package/dist/seal-Q3BD6CRB.js +0 -16
- package/dist/to-hwpx-KZTTH7EY.cjs +0 -16
- package/dist/visual-LNHFYJDL.js +0 -38
- /package/dist/{-F7GLIIGT.js.map → -CNXSUEGZ.js.map} +0 -0
- /package/dist/{chunk-YPRIJDH6.js.map → chunk-2JA4FJJM.js.map} +0 -0
- /package/dist/{chunk-SMEBVDM2.js.map → chunk-376JPHHC.js.map} +0 -0
- /package/dist/{chunk-TYGZ6O2A.js.map → chunk-64QDDZO3.js.map} +0 -0
- /package/dist/{chunk-OUHMNF2A.js.map → chunk-AAXWKG3C.js.map} +0 -0
- /package/dist/{chunk-BHYBZSOC.js.map → chunk-ABNK5QI2.js.map} +0 -0
- /package/dist/{chunk-KLUI4SAZ.js.map → chunk-AUGOG3KY.js.map} +0 -0
- /package/dist/{chunk-O7PJFEOC.js.map → chunk-B5F7B5NL.js.map} +0 -0
- /package/dist/{chunk-7KVDHXP2.js.map → chunk-BK55EX56.js.map} +0 -0
- /package/dist/{chunk-KGCJNPAI.js.map → chunk-BX23BOYN.js.map} +0 -0
- /package/dist/{chunk-2CPEW6WC.js.map → chunk-CBGH37CU.js.map} +0 -0
- /package/dist/{chunk-AUHQRRKM.js.map → chunk-CGOCVSWC.js.map} +0 -0
- /package/dist/{chunk-MHXPW72E.js.map → chunk-E3G3JTXW.js.map} +0 -0
- /package/dist/{chunk-NPBNJCXZ.js.map → chunk-G7QVY67O.js.map} +0 -0
- /package/dist/{chunk-5WWGC5SG.js.map → chunk-IV6UP7MO.js.map} +0 -0
- /package/dist/{chunk-HIYRMYAS.js.map → chunk-JDGPQVTX.js.map} +0 -0
- /package/dist/{chunk-GRCIFCGC.js.map → chunk-JY4YMR6F.js.map} +0 -0
- /package/dist/{chunk-2VBRCIPI.js.map → chunk-LMHDQWQM.js.map} +0 -0
- /package/dist/{chunk-LNWURZ2Z.js.map → chunk-M4QZCXT4.js.map} +0 -0
- /package/dist/{chunk-GFAWIBHG.js.map → chunk-MHLTXTP2.js.map} +0 -0
- /package/dist/{chunk-IMT5TVVM.js.map → chunk-NQL7NCSE.js.map} +0 -0
- /package/dist/{chunk-2OF2YWIZ.js.map → chunk-P4FHTYVX.js.map} +0 -0
- /package/dist/{chunk-WMA4GJHC.js.map → chunk-RJ26GRDB.js.map} +0 -0
- /package/dist/{chunk-QK5KCWLE.js.map → chunk-S366ICXS.js.map} +0 -0
- /package/dist/{chunk-EZNUMAAJ.js.map → chunk-S6K222FM.js.map} +0 -0
- /package/dist/{chunk-ZPJZXTEG.js.map → chunk-TTIJTR5Z.js.map} +0 -0
- /package/dist/{chunk-D4UFBXMT.js.map → chunk-UMVL776E.js.map} +0 -0
- /package/dist/{chunk-YTDHH362.js.map → chunk-VMM5PVOA.js.map} +0 -0
- /package/dist/{chunk-OJK4FLS5.js.map → chunk-VSWGRKTF.js.map} +0 -0
- /package/dist/{chunk-6ZA4V4QS.js.map → chunk-X4HNVXJI.js.map} +0 -0
- /package/dist/{chunk-RUUUGCXS.js.map → chunk-XSDVY4S6.js.map} +0 -0
- /package/dist/{chunk-DSCT67WF.js.map → chunk-YLC25Z64.js.map} +0 -0
- /package/dist/{chunk-UJQRIX4L.js.map → chunk-ZH322FQG.js.map} +0 -0
- /package/dist/{chunks-JAD5Z5YY.js.map → chunks-7XYOWREB.js.map} +0 -0
- /package/dist/{generator-EB2436BE.js.map → generator-NLWOHWUW.js.map} +0 -0
- /package/dist/{generator-K5KMPSLC.js.map → generator-VBJWJI3E.js.map} +0 -0
- /package/dist/{hancom-P3SUQXM4.js.map → hancom-DVWCKSEN.js.map} +0 -0
- /package/dist/{hancom-RYIZHWJ5.js.map → hancom-P34JL3HX.js.map} +0 -0
- /package/dist/{image-ocr-ZXLHPQI2.js.map → image-ocr-5RBEPJPK.js.map} +0 -0
- /package/dist/{image-ocr-GL5YVCNU.js.map → image-ocr-7EOTOS42.js.map} +0 -0
- /package/dist/{memo-JNMSGIO7.js.map → memo-ARHG3OC5.js.map} +0 -0
- /package/dist/{model-bundle-VCUAKBF3.js.map → model-bundle-7YL3PW4N.js.map} +0 -0
- /package/dist/{models-UACAGYBI.js.map → models-ZXDUWX64.js.map} +0 -0
- /package/dist/{parse-worker-v2-LJB4QXGF.js.map → parse-worker-v2-SGBIWVYJ.js.map} +0 -0
- /package/dist/{parser-5GZUD22P.js.map → parser-HZANYZZA.js.map} +0 -0
- /package/dist/{parser-HCZD4DUO.js.map → parser-RYPZ245J.js.map} +0 -0
- /package/dist/{pdf-ocr-JXVGK5MR.js.map → pdf-ocr-J5BIUOOQ.js.map} +0 -0
- /package/dist/{pdf-ocr-YCMC2VL4.js.map → pdf-ocr-VMB4NOXR.js.map} +0 -0
- /package/dist/{profile-io-MVTEOXAU.js.map → profile-io-F6WUV5PU.js.map} +0 -0
- /package/dist/{rasterize-VWT3C3RW.js.map → rasterize-AFUYHCSP.js.map} +0 -0
- /package/dist/{redact-doc-SU3JDC6F.js.map → redact-doc-UKYOAVBS.js.map} +0 -0
- /package/dist/{render-D5N4FKWB.js.map → render-VRZS47LX.js.map} +0 -0
- /package/dist/{rewrite-fallback-QXTWSPGY.js.map → rewrite-fallback-PNSM4XRC.js.map} +0 -0
- /package/dist/{seal-Q3BD6CRB.js.map → seal-CJOUVTMN.js.map} +0 -0
- /package/dist/{setup-TXNJYX6P.js.map → setup-VV6ERJGY.js.map} +0 -0
- /package/dist/{to-hwpx-YHGVFTBO.js.map → to-hwpx-WBMWA54L.js.map} +0 -0
- /package/dist/{to-hwpx-Z7NHUMUD.js.map → to-hwpx-YYMXNCCW.js.map} +0 -0
- /package/dist/{visual-LNHFYJDL.js.map → visual-YY2BPPCJ.js.map} +0 -0
- /package/dist/{watch-EI5QYDT2.js.map → watch-BTAIN7LZ.js.map} +0 -0
package/dist/mcp.js
CHANGED
|
@@ -48,45 +48,45 @@ import {
|
|
|
48
48
|
unknownFontWarnings,
|
|
49
49
|
usesGaejosikMunche,
|
|
50
50
|
usesLogicStructure
|
|
51
|
-
} from "./chunk-
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-
|
|
51
|
+
} from "./chunk-A6YD5KUQ.js";
|
|
52
|
+
import "./chunk-MHLTXTP2.js";
|
|
53
|
+
import "./chunk-ZH322FQG.js";
|
|
54
54
|
import {
|
|
55
55
|
extractHwpxMetadataOnly,
|
|
56
56
|
patchHwp,
|
|
57
57
|
patchHwpx
|
|
58
|
-
} from "./chunk-
|
|
59
|
-
import "./chunk-
|
|
58
|
+
} from "./chunk-64QDDZO3.js";
|
|
59
|
+
import "./chunk-CBGH37CU.js";
|
|
60
60
|
import {
|
|
61
61
|
AGENCY_COMMON_NAME,
|
|
62
62
|
PRESET_ALIAS,
|
|
63
63
|
agencyNames,
|
|
64
64
|
incompatibleGongmunWarnings,
|
|
65
65
|
markdownToHwpx
|
|
66
|
-
} from "./chunk-
|
|
67
|
-
import "./chunk-
|
|
68
|
-
import "./chunk-
|
|
69
|
-
import "./chunk-
|
|
70
|
-
import "./chunk-
|
|
71
|
-
import "./chunk-
|
|
66
|
+
} from "./chunk-XSDVY4S6.js";
|
|
67
|
+
import "./chunk-AAXWKG3C.js";
|
|
68
|
+
import "./chunk-TTIJTR5Z.js";
|
|
69
|
+
import "./chunk-BX23BOYN.js";
|
|
70
|
+
import "./chunk-2JA4FJJM.js";
|
|
71
|
+
import "./chunk-B5F7B5NL.js";
|
|
72
72
|
import {
|
|
73
73
|
extractFormFields,
|
|
74
74
|
fillWithUniqueGuard
|
|
75
75
|
} from "./chunk-3AHL6YEA.js";
|
|
76
|
-
import "./chunk-
|
|
76
|
+
import "./chunk-UMVL776E.js";
|
|
77
77
|
import {
|
|
78
78
|
hwpToHwpx
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-M4QZCXT4.js";
|
|
80
80
|
import {
|
|
81
81
|
extractHwp5MetadataOnly
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-RJ26GRDB.js";
|
|
83
83
|
import "./chunk-FU6ZDWCI.js";
|
|
84
84
|
import "./chunk-OFVHQ2TZ.js";
|
|
85
|
-
import "./chunk-
|
|
85
|
+
import "./chunk-VMM5PVOA.js";
|
|
86
86
|
import "./chunk-WFKFG2RT.js";
|
|
87
87
|
import "./chunk-3WSNLH4B.js";
|
|
88
|
-
import "./chunk-
|
|
89
|
-
import "./chunk-
|
|
88
|
+
import "./chunk-IV6UP7MO.js";
|
|
89
|
+
import "./chunk-JDGPQVTX.js";
|
|
90
90
|
import "./chunk-VQFA55IC.js";
|
|
91
91
|
import {
|
|
92
92
|
detectFormat,
|
|
@@ -96,16 +96,16 @@ import {
|
|
|
96
96
|
import "./chunk-H7K5YHWQ.js";
|
|
97
97
|
import "./chunk-IIOBUTXH.js";
|
|
98
98
|
import "./chunk-QLZHIJWJ.js";
|
|
99
|
-
import "./chunk-
|
|
99
|
+
import "./chunk-G7QVY67O.js";
|
|
100
100
|
import {
|
|
101
101
|
blocksToMarkdown
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-P4FHTYVX.js";
|
|
103
103
|
import "./chunk-KFF47XZ7.js";
|
|
104
104
|
import {
|
|
105
105
|
assertWithinRoot,
|
|
106
106
|
getAccessRoot,
|
|
107
107
|
isOfflineMode
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-NQL7NCSE.js";
|
|
109
109
|
import {
|
|
110
110
|
KordocError,
|
|
111
111
|
VERSION,
|
|
@@ -113,7 +113,7 @@ import {
|
|
|
113
113
|
routeConsoleToStderr,
|
|
114
114
|
sanitizeError,
|
|
115
115
|
toArrayBuffer
|
|
116
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-S366ICXS.js";
|
|
117
117
|
|
|
118
118
|
// src/mcp.ts
|
|
119
119
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
@@ -430,7 +430,7 @@ ${markdown}`);
|
|
|
430
430
|
break;
|
|
431
431
|
case "pdf":
|
|
432
432
|
try {
|
|
433
|
-
const { extractPdfMetadataOnly } = await import("./parser-
|
|
433
|
+
const { extractPdfMetadataOnly } = await import("./parser-HZANYZZA.js");
|
|
434
434
|
metadata = await extractPdfMetadataOnly(buffer);
|
|
435
435
|
} catch {
|
|
436
436
|
metadata = void 0;
|
|
@@ -607,7 +607,7 @@ ${tableMarkdown}` }]
|
|
|
607
607
|
if (!parsed.success) {
|
|
608
608
|
return { content: [{ type: "text", text: `\uD30C\uC2F1 \uC2E4\uD328: ${parsed.error}` }], isError: true };
|
|
609
609
|
}
|
|
610
|
-
const { blocksToChunks } = await import("./chunks-
|
|
610
|
+
const { blocksToChunks } = await import("./chunks-7XYOWREB.js");
|
|
611
611
|
const chunks = blocksToChunks(parsed.blocks, { granularity, includeTableCells: include_table_cells });
|
|
612
612
|
return { content: [{ type: "text", text: capResponseText(JSON.stringify(chunks, null, 2)) }] };
|
|
613
613
|
} catch (err) {
|
|
@@ -887,7 +887,7 @@ ${previewMd}` }]
|
|
|
887
887
|
}
|
|
888
888
|
const image = new Uint8Array(await readFile2(imgResolved));
|
|
889
889
|
const ext = extname2(imgResolved).slice(1).toLowerCase();
|
|
890
|
-
const { placeSealHwpx } = await import("./seal-
|
|
890
|
+
const { placeSealHwpx } = await import("./seal-CJOUVTMN.js");
|
|
891
891
|
const result = await placeSealHwpx(buffer, [{
|
|
892
892
|
anchor,
|
|
893
893
|
occurrence,
|
|
@@ -943,7 +943,7 @@ ${previewMd}` }]
|
|
|
943
943
|
if (format !== "hwpx") {
|
|
944
944
|
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 };
|
|
945
945
|
}
|
|
946
|
-
const { addMemoHwpx } = await import("./memo-
|
|
946
|
+
const { addMemoHwpx } = await import("./memo-ARHG3OC5.js");
|
|
947
947
|
const result = await addMemoHwpx(buffer, [{ anchor, text, author, occurrence }]);
|
|
948
948
|
await mkdir(dirname2(outPath), { recursive: true });
|
|
949
949
|
await writeOutputFile(outPath, Buffer.from(result.buffer));
|
|
@@ -985,7 +985,7 @@ ${previewMd}` }]
|
|
|
985
985
|
}
|
|
986
986
|
const original = new Uint8Array(buffer);
|
|
987
987
|
const result = isHwpx ? await patchHwpx(original, edited_markdown, structure === false ? { structure: false } : void 0) : await patchHwp(original, edited_markdown);
|
|
988
|
-
const { needsRewrite, rewriteEdited, rewritePath } = await import("./rewrite-fallback-
|
|
988
|
+
const { needsRewrite, rewriteEdited, rewritePath } = await import("./rewrite-fallback-PNSM4XRC.js");
|
|
989
989
|
const rewrite = needsRewrite(result) ? await rewriteEdited(original, isHwpx, edited_markdown, result.success) : null;
|
|
990
990
|
const rwOut = rewrite ? safeOutputPath(rewritePath(out), /* @__PURE__ */ new Set([".hwpx"])) : void 0;
|
|
991
991
|
if (rewrite && rwOut) {
|
|
@@ -1054,7 +1054,7 @@ ${rewriteLine}` }] };
|
|
|
1054
1054
|
if (outPath && await isSameFile(outPath, resolved)) {
|
|
1055
1055
|
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 };
|
|
1056
1056
|
}
|
|
1057
|
-
const { redactDocument } = await import("./redact-doc-
|
|
1057
|
+
const { redactDocument } = await import("./redact-doc-UKYOAVBS.js");
|
|
1058
1058
|
const r = await redactDocument(buffer, { rules, maskChar: mask_char, filePath: file_path, dryRun: dry_run });
|
|
1059
1059
|
const MAX_LINES = 50;
|
|
1060
1060
|
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}`);
|
|
@@ -1129,7 +1129,7 @@ function registerRenderTools(server2) {
|
|
|
1129
1129
|
const { buffer, resolved } = await readValidatedFile(file_path, MAX_FILE_SIZE, /* @__PURE__ */ new Set([".hwpx", ".hwp"]));
|
|
1130
1130
|
const isHwp5 = resolved.toLowerCase().endsWith(".hwp");
|
|
1131
1131
|
if (!isHwp5 && !pages && (format === "png" || format === "svg")) {
|
|
1132
|
-
const { renderHwpxToSvg } = await import("./render-
|
|
1132
|
+
const { renderHwpxToSvg } = await import("./render-VRZS47LX.js");
|
|
1133
1133
|
const result = await renderHwpxToSvg(buffer, { highlights, reflow: true, reflowMode: reflow_mode, password });
|
|
1134
1134
|
const summary2 = [
|
|
1135
1135
|
`\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})`,
|
|
@@ -1141,7 +1141,7 @@ function registerRenderTools(server2) {
|
|
|
1141
1141
|
summary2.push(`\uC800\uC7A5: ${outPath}`);
|
|
1142
1142
|
return { content: [{ type: "text", text: summary2.join("\n") }] };
|
|
1143
1143
|
}
|
|
1144
|
-
const { rasterizeSvg } = await import("./rasterize-
|
|
1144
|
+
const { rasterizeSvg } = await import("./rasterize-AFUYHCSP.js");
|
|
1145
1145
|
const raster = await rasterizeSvg(result.svg, result.width, result.height, max_width_px ? { maxWidthPx: max_width_px } : void 0);
|
|
1146
1146
|
if (outPath) {
|
|
1147
1147
|
await mkdir2(dirname3(outPath), { recursive: true });
|
|
@@ -1156,7 +1156,7 @@ function registerRenderTools(server2) {
|
|
|
1156
1156
|
]
|
|
1157
1157
|
};
|
|
1158
1158
|
}
|
|
1159
|
-
const { renderDocument } = await import("./render-
|
|
1159
|
+
const { renderDocument } = await import("./render-VRZS47LX.js");
|
|
1160
1160
|
const { scene, assets } = await renderDocument(buffer, { format, pages, highlights, reflow: true, reflowMode: reflow_mode, maxWidthPx: max_width_px, password });
|
|
1161
1161
|
const summary = [
|
|
1162
1162
|
`\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})`,
|
|
@@ -1206,7 +1206,7 @@ function registerRenderTools(server2) {
|
|
|
1206
1206
|
try {
|
|
1207
1207
|
const { buffer } = await readValidatedFile(file_path, MAX_FILE_SIZE, /* @__PURE__ */ new Set([".hwpx", ".hwp"]));
|
|
1208
1208
|
const dir = safeOutputPath(join2(output_dir, "regions.json"), /* @__PURE__ */ new Set([".json"])).replace(/[\\/]regions\.json$/, "");
|
|
1209
|
-
const { extractRenderedRegions } = await import("./render-
|
|
1209
|
+
const { extractRenderedRegions } = await import("./render-VRZS47LX.js");
|
|
1210
1210
|
const regions = await extractRenderedRegions(buffer, { types: target, format, pages, paddingPt: padding_pt, reflow: true });
|
|
1211
1211
|
await mkdir2(dir, { recursive: true });
|
|
1212
1212
|
const ext = format === "jpeg" ? "jpg" : "png";
|
|
@@ -1242,7 +1242,7 @@ function registerRenderTools(server2) {
|
|
|
1242
1242
|
}
|
|
1243
1243
|
const { buffer } = await readValidatedFile(file_path, MAX_FILE_SIZE, /* @__PURE__ */ new Set([".hwpx", ".hwp"]));
|
|
1244
1244
|
const dir = output_dir ? safeOutputPath(join2(output_dir, "tables.json"), /* @__PURE__ */ new Set([".json"])).replace(/[\\/]tables\.json$/, "") : void 0;
|
|
1245
|
-
const { extractTables } = await import("./visual-
|
|
1245
|
+
const { extractTables } = await import("./visual-YY2BPPCJ.js");
|
|
1246
1246
|
const tables = await extractTables(buffer, { policy: visual, format, paddingPt: padding_pt });
|
|
1247
1247
|
if (dir) await mkdir2(dir, { recursive: true });
|
|
1248
1248
|
const ext = format === "jpeg" ? "jpg" : "png";
|
|
@@ -1299,7 +1299,7 @@ function registerGenerateTools(server2) {
|
|
|
1299
1299
|
try {
|
|
1300
1300
|
const out = safeOutputPath(output_path, PROFILE_EXTENSIONS);
|
|
1301
1301
|
const { buffer } = await readValidatedFile(hwpx_path);
|
|
1302
|
-
const { hwpxToProfile } = await import("./-
|
|
1302
|
+
const { hwpxToProfile } = await import("./-CNXSUEGZ.js");
|
|
1303
1303
|
const profile = await hwpxToProfile(buffer);
|
|
1304
1304
|
await mkdir3(dirname4(out), { recursive: true });
|
|
1305
1305
|
await writeOutputFile(out, JSON.stringify(profile, null, 2));
|
|
@@ -1452,7 +1452,7 @@ ${g.blocking.map((f) => `- ${formatGateFinding(f)}`).join("\n")}` }],
|
|
|
1452
1452
|
}
|
|
1453
1453
|
let profile;
|
|
1454
1454
|
if (profile_path) {
|
|
1455
|
-
const { parseFormatProfileJson } = await import("./profile-io-
|
|
1455
|
+
const { parseFormatProfileJson } = await import("./profile-io-F6WUV5PU.js");
|
|
1456
1456
|
profile = parseFormatProfileJson(await readFile3(safePath(profile_path, PROFILE_EXTENSIONS), "utf-8"));
|
|
1457
1457
|
}
|
|
1458
1458
|
const out = safeOutputPath(output_path, /* @__PURE__ */ new Set([".hwpx"]));
|
|
@@ -1603,7 +1603,7 @@ function registerLintTools(server2) {
|
|
|
1603
1603
|
let irBlocks;
|
|
1604
1604
|
if (file_path !== void 0) {
|
|
1605
1605
|
const { buffer, resolved } = await readValidatedFile(file_path, MAX_FILE_SIZE, ALLOWED_EXTENSIONS);
|
|
1606
|
-
const { parse: parse2 } = await import("./-
|
|
1606
|
+
const { parse: parse2 } = await import("./-CNXSUEGZ.js");
|
|
1607
1607
|
const parsed = await parse2(buffer, { filePath: resolved });
|
|
1608
1608
|
if (!parsed.success) throw new KordocError(`\uBB38\uC11C\uB97C \uC77D\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4 \u2014 ${parsed.error}`);
|
|
1609
1609
|
body = parsed.markdown;
|
|
@@ -1662,7 +1662,7 @@ function registerConvertTools(server2) {
|
|
|
1662
1662
|
if (!output_path && await access(outPath).then(() => true, () => false)) {
|
|
1663
1663
|
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`);
|
|
1664
1664
|
}
|
|
1665
|
-
const { convertToHwpx, validateHwpx } = await import("./-
|
|
1665
|
+
const { convertToHwpx, validateHwpx } = await import("./-CNXSUEGZ.js");
|
|
1666
1666
|
const result = await convertToHwpx(buffer, { password, engine });
|
|
1667
1667
|
const check = await validateHwpx(result.data);
|
|
1668
1668
|
await mkdir4(dirname5(outPath), { recursive: true });
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
addMemoHwpx
|
|
4
|
+
} from "./chunk-TTIJTR5Z.js";
|
|
5
|
+
import "./chunk-BX23BOYN.js";
|
|
6
|
+
import "./chunk-2JA4FJJM.js";
|
|
7
|
+
import "./chunk-B5F7B5NL.js";
|
|
8
|
+
import "./chunk-3AHL6YEA.js";
|
|
9
|
+
import "./chunk-UMVL776E.js";
|
|
10
|
+
import "./chunk-VMM5PVOA.js";
|
|
11
|
+
import "./chunk-WFKFG2RT.js";
|
|
12
|
+
import "./chunk-KFF47XZ7.js";
|
|
13
|
+
import "./chunk-S366ICXS.js";
|
|
14
|
+
export {
|
|
15
|
+
addMemoHwpx
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=memo-ARHG3OC5.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
ALL_OCR_MODELS
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ABNK5QI2.js";
|
|
5
5
|
import {
|
|
6
6
|
ALL_FORMULA_MODELS,
|
|
7
7
|
getModelStatusIn,
|
|
8
8
|
getModelsDir
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-X4HNVXJI.js";
|
|
10
|
+
import "./chunk-NQL7NCSE.js";
|
|
11
|
+
import "./chunk-S366ICXS.js";
|
|
12
12
|
|
|
13
13
|
// src/shared/model-bundle.ts
|
|
14
14
|
import { copyFile, mkdir } from "fs/promises";
|
|
@@ -101,4 +101,4 @@ export {
|
|
|
101
101
|
importModels,
|
|
102
102
|
modelCacheStatus
|
|
103
103
|
};
|
|
104
|
-
//# sourceMappingURL=model-bundle-
|
|
104
|
+
//# sourceMappingURL=model-bundle-7YL3PW4N.js.map
|
|
@@ -19,10 +19,10 @@ import {
|
|
|
19
19
|
ocrSourcePath,
|
|
20
20
|
parseCharacterDict,
|
|
21
21
|
resolveOcrModels
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-ABNK5QI2.js";
|
|
23
|
+
import "./chunk-X4HNVXJI.js";
|
|
24
|
+
import "./chunk-NQL7NCSE.js";
|
|
25
|
+
import "./chunk-S366ICXS.js";
|
|
26
26
|
export {
|
|
27
27
|
ALL_OCR_MODELS,
|
|
28
28
|
DEFAULT_OCR_MODELS,
|
|
@@ -44,4 +44,4 @@ export {
|
|
|
44
44
|
parseCharacterDict,
|
|
45
45
|
resolveOcrModels
|
|
46
46
|
};
|
|
47
|
-
//# sourceMappingURL=models-
|
|
47
|
+
//# sourceMappingURL=models-ZXDUWX64.js.map
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
parseWorkerFile
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-YLC25Z64.js";
|
|
5
5
|
import {
|
|
6
6
|
insideSandbox
|
|
7
7
|
} from "./chunk-7Y6KVNIT.js";
|
|
8
8
|
import {
|
|
9
9
|
lintBlocks
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-A6YD5KUQ.js";
|
|
11
|
+
import "./chunk-MHLTXTP2.js";
|
|
12
|
+
import "./chunk-ZH322FQG.js";
|
|
13
|
+
import "./chunk-64QDDZO3.js";
|
|
14
|
+
import "./chunk-CBGH37CU.js";
|
|
15
15
|
import {
|
|
16
16
|
PRESET_ALIAS
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-XSDVY4S6.js";
|
|
18
|
+
import "./chunk-AAXWKG3C.js";
|
|
19
|
+
import "./chunk-TTIJTR5Z.js";
|
|
20
|
+
import "./chunk-BX23BOYN.js";
|
|
21
|
+
import "./chunk-2JA4FJJM.js";
|
|
22
|
+
import "./chunk-B5F7B5NL.js";
|
|
23
23
|
import "./chunk-3AHL6YEA.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-UMVL776E.js";
|
|
25
|
+
import "./chunk-M4QZCXT4.js";
|
|
26
|
+
import "./chunk-RJ26GRDB.js";
|
|
27
27
|
import "./chunk-FU6ZDWCI.js";
|
|
28
28
|
import "./chunk-OFVHQ2TZ.js";
|
|
29
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-VMM5PVOA.js";
|
|
30
30
|
import "./chunk-WFKFG2RT.js";
|
|
31
31
|
import "./chunk-3WSNLH4B.js";
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-IV6UP7MO.js";
|
|
33
|
+
import "./chunk-JDGPQVTX.js";
|
|
34
34
|
import "./chunk-VQFA55IC.js";
|
|
35
35
|
import "./chunk-GHHVT4Q5.js";
|
|
36
36
|
import "./chunk-H7K5YHWQ.js";
|
|
@@ -38,13 +38,13 @@ import {
|
|
|
38
38
|
validateOcrOptions
|
|
39
39
|
} from "./chunk-IIOBUTXH.js";
|
|
40
40
|
import "./chunk-QLZHIJWJ.js";
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-G7QVY67O.js";
|
|
42
|
+
import "./chunk-P4FHTYVX.js";
|
|
43
43
|
import "./chunk-KFF47XZ7.js";
|
|
44
44
|
import {
|
|
45
45
|
VERSION,
|
|
46
46
|
sanitizeError
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-S366ICXS.js";
|
|
48
48
|
|
|
49
49
|
// src/cli/parse-worker-v2.ts
|
|
50
50
|
import { createHash } from "crypto";
|
|
@@ -387,4 +387,4 @@ export {
|
|
|
387
387
|
runParseWorkerV2,
|
|
388
388
|
toParseOptions
|
|
389
389
|
};
|
|
390
|
-
//# sourceMappingURL=parse-worker-v2-
|
|
390
|
+
//# sourceMappingURL=parse-worker-v2-SGBIWVYJ.js.map
|