kordoc 4.24.39 → 4.24.41
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/{-7VE547IT.js → -5XLO3RHD.js} +21 -21
- package/dist/{chunk-F2JYJ2SP.js → chunk-2CHSOHDE.js} +2 -2
- package/dist/{chunk-YXKU6UJD.js → chunk-2IK2Z6PO.js} +2 -2
- package/dist/{chunk-3MHRL3OO.js → chunk-3GJ3CMYS.js} +2 -2
- package/dist/{chunk-4FWLCWNU.js → chunk-57LVGVIS.js} +2 -2
- package/dist/{chunk-PFHMNNW7.js → chunk-5QHQ56AK.js} +36 -6
- package/dist/chunk-5QHQ56AK.js.map +1 -0
- package/dist/{chunk-IM5SIGUN.cjs → chunk-5QMMROCA.cjs} +3 -3
- package/dist/chunk-5QMMROCA.cjs.map +1 -0
- package/dist/chunk-ARVHYL3V.cjs.map +1 -1
- package/dist/{chunk-RPAEXGWZ.js → chunk-C2YUJXHB.js} +2 -2
- package/dist/{chunk-QDQPAC4L.js → chunk-C5XJDCXW.js} +2 -2
- package/dist/{chunk-ZDMLZRS4.js → chunk-CCGGLBHD.js} +111 -34
- package/dist/chunk-CCGGLBHD.js.map +1 -0
- package/dist/chunk-DEVQZTE7.cjs.map +1 -1
- package/dist/{chunk-SFLHCRO6.js → chunk-EPR3TQS3.js} +2 -2
- package/dist/{chunk-7ZRUR4TZ.js → chunk-EPZVMBAQ.js} +2 -2
- package/dist/{chunk-CS76UPUC.js → chunk-FVYTDR6E.js} +29 -7
- package/dist/chunk-FVYTDR6E.js.map +1 -0
- package/dist/chunk-GS7T56RP.cjs.map +1 -1
- package/dist/{chunk-7BQWFZJO.js → chunk-GYMAGQNQ.js} +6 -6
- package/dist/{chunk-XYVTCXAG.cjs → chunk-HJGKVI7D.cjs} +81 -51
- package/dist/chunk-HJGKVI7D.cjs.map +1 -0
- package/dist/{chunk-RJNHXCMP.cjs → chunk-HR72SA4M.cjs} +182 -106
- package/dist/chunk-HR72SA4M.cjs.map +1 -0
- package/dist/{chunk-LU7X6LLW.cjs → chunk-IHMDGE7Z.cjs} +3 -3
- package/dist/chunk-IHMDGE7Z.cjs.map +1 -0
- package/dist/{chunk-WVER4OWF.js → chunk-IXFRVO7E.js} +3 -3
- package/dist/chunk-J55UQC5H.cjs.map +1 -1
- package/dist/{chunk-QDPYTJ4Y.js → chunk-JBQ5R4VV.js} +2 -2
- package/dist/{chunk-MANE7HAZ.cjs → chunk-JZEMASGR.cjs} +2 -2
- package/dist/chunk-JZEMASGR.cjs.map +1 -0
- package/dist/{chunk-NQJL3664.js → chunk-K2AVB6ZW.js} +3 -3
- package/dist/{chunk-PQIIYKNL.js → chunk-KF6MJIPV.js} +11 -11
- package/dist/{chunk-WPIG3KUV.js → chunk-KQDO246G.js} +28 -6
- package/dist/chunk-KQDO246G.js.map +1 -0
- package/dist/{chunk-NL5OTD2E.js → chunk-KTWCSSNS.js} +10 -10
- package/dist/chunk-LAYKIZOX.cjs.map +1 -1
- package/dist/{chunk-Y5O4DS56.js → chunk-MZ7AGKAN.js} +2 -2
- package/dist/{chunk-LOJYJISM.js → chunk-NHDOSQZ6.js} +110 -34
- package/dist/chunk-NHDOSQZ6.js.map +1 -0
- package/dist/{chunk-M2ZRTYQ5.js → chunk-OPE2XDGY.js} +5 -5
- package/dist/{chunk-2XXTL4S4.js → chunk-QNXWOUWQ.js} +2 -2
- package/dist/{chunk-FRMJTW3C.js → chunk-S7TKYRJB.js} +2 -2
- package/dist/{chunk-346W5O2J.js → chunk-SGBD6MTI.js} +2 -2
- package/dist/{chunk-BWBR5GWQ.js → chunk-SV462GOK.js} +2 -2
- package/dist/{chunk-7AYP2XO6.js → chunk-TGKYTBQ2.js} +3 -3
- package/dist/{chunk-UKTRLJII.cjs → chunk-TJARBWAJ.cjs} +98 -98
- package/dist/chunk-TJARBWAJ.cjs.map +1 -0
- package/dist/chunk-TK3FDAEE.cjs.map +1 -1
- package/dist/{chunk-LE3733C2.cjs → chunk-TVMNTRPZ.cjs} +104 -82
- package/dist/chunk-TVMNTRPZ.cjs.map +1 -0
- package/dist/{chunk-GXED6LJX.js → chunk-TWFL7T4K.js} +2 -2
- package/dist/{chunk-FZMZUX7B.js → chunk-UHN5TULI.js} +37 -7
- package/dist/chunk-UHN5TULI.js.map +1 -0
- package/dist/{chunk-L23XOAKF.js → chunk-UI3SZQXC.js} +6 -6
- package/dist/{chunk-V3IMDOZE.cjs → chunk-WNOSEEBH.cjs} +6 -6
- package/dist/chunk-WNOSEEBH.cjs.map +1 -0
- package/dist/{chunk-PHVAJBHM.js → chunk-WYJWJ7X4.js} +2 -2
- package/dist/chunk-X7RBVVDC.cjs.map +1 -1
- package/dist/{chunk-IZWZ3RQC.js → chunk-XBWP6REN.js} +2 -2
- package/dist/{chunk-COH7WXBK.js → chunk-XPYC55DA.js} +5 -5
- package/dist/{chunk-ZVAX6E63.js → chunk-ZDTP5IJU.js} +2 -2
- package/dist/{chunk-V2RIY72D.js → chunk-ZOCDODX3.js} +2 -2
- package/dist/chunk-ZTN3T3GH.cjs.map +1 -1
- package/dist/{chunk-U5OV6D66.js → chunk-ZUFIMOGS.js} +15 -15
- package/dist/chunks-23JEOBIH.js +11 -0
- package/dist/cli.js +43 -43
- package/dist/detect-V75ERMYL.cjs.map +1 -1
- package/dist/{formula-PFSZZNPP.js → formula-3X2Y6F6V.js} +3 -3
- package/dist/{formula-UI2UR74M.cjs → formula-4WGDQBOM.cjs} +9 -9
- package/dist/formula-4WGDQBOM.cjs.map +1 -0
- package/dist/{formula-MMLDES2Z.js → formula-IBE4CZ5R.js} +4 -4
- package/dist/generator-JYJLWH7T.js +17 -0
- package/dist/generator-PGOJNK7D.js +10 -0
- package/dist/generator-ZRVKK7UG.cjs +11 -0
- package/dist/generator-ZRVKK7UG.cjs.map +1 -0
- package/dist/{hancom-XO52GNC3.js → hancom-CBYVMPCO.js} +2 -2
- package/dist/{hancom-3V3USCW5.js → hancom-UACA2WTF.js} +2 -2
- package/dist/{hancom-GV5TTF5H.cjs → hancom-YR2BB373.cjs} +5 -5
- package/dist/hancom-YR2BB373.cjs.map +1 -0
- package/dist/{image-ocr-R2ASFKHX.js → image-ocr-2CUGPHIK.js} +10 -10
- package/dist/{image-ocr-SU4RPHBF.js → image-ocr-JEHNWQVE.js} +7 -7
- package/dist/{image-ocr-2WKCFABH.cjs → image-ocr-RNAJ66EN.cjs} +27 -27
- package/dist/image-ocr-RNAJ66EN.cjs.map +1 -0
- package/dist/index.cjs +1105 -1105
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +9 -9
- package/dist/mcp.js +37 -37
- package/dist/mcp.js.map +1 -1
- package/dist/memo-V24MEWBZ.js +17 -0
- package/dist/{model-bundle-JMSH2F4A.js → model-bundle-HLPWOTCS.js} +5 -5
- package/dist/{models-D5SATVOZ.js → models-AMOW56WP.js} +5 -5
- package/dist/page-range-QHHFTL7X.cjs.map +1 -1
- package/dist/{parse-worker-v2-WIIZQFRX.js → parse-worker-v2-Z4BCWVRX.js} +22 -22
- package/dist/{parser-MFBTEGJA.cjs → parser-D2DQIUP3.cjs} +159 -159
- package/dist/parser-D2DQIUP3.cjs.map +1 -0
- package/dist/{parser-SBJKV5GS.js → parser-Y4GUP7PZ.js} +12 -12
- package/dist/{parser-KCY43TBS.js → parser-YMNUQBLB.js} +9 -9
- package/dist/{pdf-ocr-UU5PSZ7Z.js → pdf-ocr-3K266ENT.js} +9 -9
- package/dist/{pdf-ocr-I6GNQEFS.js → pdf-ocr-EPIM3YWE.js} +6 -6
- package/dist/pdf-ocr-OX7H7NOU.cjs +40 -0
- package/dist/pdf-ocr-OX7H7NOU.cjs.map +1 -0
- package/dist/{profile-io-HZK4ZZ2O.js → profile-io-AW4GEYDQ.js} +3 -3
- package/dist/{rasterize-VNP4ULXM.js → rasterize-75AWRNSO.js} +3 -3
- package/dist/{redact-doc-SPHSBCPN.js → redact-doc-3UUPTXFI.js} +21 -21
- package/dist/{render-CKTTIDU2.js → render-JGMRAI2P.js} +12 -12
- package/dist/{rewrite-fallback-H2KMJV6G.js → rewrite-fallback-UDQAKQN2.js} +13 -13
- package/dist/rewrite-fallback-UDQAKQN2.js.map +1 -0
- package/dist/seal-WFNKTHBW.js +16 -0
- package/dist/{setup-GJVOXJN7.js → setup-JTHBR676.js} +3 -3
- package/dist/{to-hwpx-5UIBNW3D.js → to-hwpx-GJP66LQS.js} +7 -7
- package/dist/to-hwpx-LKPXAHSQ.cjs +16 -0
- package/dist/to-hwpx-LKPXAHSQ.cjs.map +1 -0
- package/dist/{to-hwpx-JJHDCYER.js → to-hwpx-ZD7IGU7G.js} +4 -4
- package/dist/visual-666SNQ3Y.js +37 -0
- package/dist/{watch-YZZES36Q.js → watch-QL4YAMRV.js} +22 -22
- package/package.json +1 -1
- package/dist/chunk-CS76UPUC.js.map +0 -1
- package/dist/chunk-FZMZUX7B.js.map +0 -1
- package/dist/chunk-IM5SIGUN.cjs.map +0 -1
- package/dist/chunk-LE3733C2.cjs.map +0 -1
- package/dist/chunk-LOJYJISM.js.map +0 -1
- package/dist/chunk-LU7X6LLW.cjs.map +0 -1
- package/dist/chunk-MANE7HAZ.cjs.map +0 -1
- package/dist/chunk-PFHMNNW7.js.map +0 -1
- package/dist/chunk-RJNHXCMP.cjs.map +0 -1
- package/dist/chunk-UKTRLJII.cjs.map +0 -1
- package/dist/chunk-V3IMDOZE.cjs.map +0 -1
- package/dist/chunk-WPIG3KUV.js.map +0 -1
- package/dist/chunk-XYVTCXAG.cjs.map +0 -1
- package/dist/chunk-ZDMLZRS4.js.map +0 -1
- package/dist/chunks-WTYZ4KG2.js +0 -11
- package/dist/formula-UI2UR74M.cjs.map +0 -1
- package/dist/generator-C3SCP3ZG.js +0 -10
- package/dist/generator-CHBOCLYX.cjs +0 -11
- package/dist/generator-CHBOCLYX.cjs.map +0 -1
- package/dist/generator-RTSNDZJB.js +0 -17
- package/dist/hancom-GV5TTF5H.cjs.map +0 -1
- package/dist/image-ocr-2WKCFABH.cjs.map +0 -1
- package/dist/memo-U4RZJRU2.js +0 -17
- package/dist/parser-MFBTEGJA.cjs.map +0 -1
- package/dist/pdf-ocr-L2O4SQUK.cjs +0 -40
- package/dist/pdf-ocr-L2O4SQUK.cjs.map +0 -1
- package/dist/rewrite-fallback-H2KMJV6G.js.map +0 -1
- package/dist/seal-MSY5G3UR.js +0 -16
- package/dist/to-hwpx-6BQNMA6P.cjs +0 -16
- package/dist/to-hwpx-6BQNMA6P.cjs.map +0 -1
- package/dist/visual-Q6PIMKSA.js +0 -37
- /package/dist/{-7VE547IT.js.map → -5XLO3RHD.js.map} +0 -0
- /package/dist/{chunk-F2JYJ2SP.js.map → chunk-2CHSOHDE.js.map} +0 -0
- /package/dist/{chunk-YXKU6UJD.js.map → chunk-2IK2Z6PO.js.map} +0 -0
- /package/dist/{chunk-3MHRL3OO.js.map → chunk-3GJ3CMYS.js.map} +0 -0
- /package/dist/{chunk-4FWLCWNU.js.map → chunk-57LVGVIS.js.map} +0 -0
- /package/dist/{chunk-RPAEXGWZ.js.map → chunk-C2YUJXHB.js.map} +0 -0
- /package/dist/{chunk-QDQPAC4L.js.map → chunk-C5XJDCXW.js.map} +0 -0
- /package/dist/{chunk-SFLHCRO6.js.map → chunk-EPR3TQS3.js.map} +0 -0
- /package/dist/{chunk-7ZRUR4TZ.js.map → chunk-EPZVMBAQ.js.map} +0 -0
- /package/dist/{chunk-7BQWFZJO.js.map → chunk-GYMAGQNQ.js.map} +0 -0
- /package/dist/{chunk-WVER4OWF.js.map → chunk-IXFRVO7E.js.map} +0 -0
- /package/dist/{chunk-QDPYTJ4Y.js.map → chunk-JBQ5R4VV.js.map} +0 -0
- /package/dist/{chunk-NQJL3664.js.map → chunk-K2AVB6ZW.js.map} +0 -0
- /package/dist/{chunk-PQIIYKNL.js.map → chunk-KF6MJIPV.js.map} +0 -0
- /package/dist/{chunk-NL5OTD2E.js.map → chunk-KTWCSSNS.js.map} +0 -0
- /package/dist/{chunk-Y5O4DS56.js.map → chunk-MZ7AGKAN.js.map} +0 -0
- /package/dist/{chunk-M2ZRTYQ5.js.map → chunk-OPE2XDGY.js.map} +0 -0
- /package/dist/{chunk-2XXTL4S4.js.map → chunk-QNXWOUWQ.js.map} +0 -0
- /package/dist/{chunk-FRMJTW3C.js.map → chunk-S7TKYRJB.js.map} +0 -0
- /package/dist/{chunk-346W5O2J.js.map → chunk-SGBD6MTI.js.map} +0 -0
- /package/dist/{chunk-BWBR5GWQ.js.map → chunk-SV462GOK.js.map} +0 -0
- /package/dist/{chunk-7AYP2XO6.js.map → chunk-TGKYTBQ2.js.map} +0 -0
- /package/dist/{chunk-GXED6LJX.js.map → chunk-TWFL7T4K.js.map} +0 -0
- /package/dist/{chunk-L23XOAKF.js.map → chunk-UI3SZQXC.js.map} +0 -0
- /package/dist/{chunk-PHVAJBHM.js.map → chunk-WYJWJ7X4.js.map} +0 -0
- /package/dist/{chunk-IZWZ3RQC.js.map → chunk-XBWP6REN.js.map} +0 -0
- /package/dist/{chunk-COH7WXBK.js.map → chunk-XPYC55DA.js.map} +0 -0
- /package/dist/{chunk-ZVAX6E63.js.map → chunk-ZDTP5IJU.js.map} +0 -0
- /package/dist/{chunk-V2RIY72D.js.map → chunk-ZOCDODX3.js.map} +0 -0
- /package/dist/{chunk-U5OV6D66.js.map → chunk-ZUFIMOGS.js.map} +0 -0
- /package/dist/{chunks-WTYZ4KG2.js.map → chunks-23JEOBIH.js.map} +0 -0
- /package/dist/{formula-PFSZZNPP.js.map → formula-3X2Y6F6V.js.map} +0 -0
- /package/dist/{formula-MMLDES2Z.js.map → formula-IBE4CZ5R.js.map} +0 -0
- /package/dist/{generator-C3SCP3ZG.js.map → generator-JYJLWH7T.js.map} +0 -0
- /package/dist/{generator-RTSNDZJB.js.map → generator-PGOJNK7D.js.map} +0 -0
- /package/dist/{hancom-XO52GNC3.js.map → hancom-CBYVMPCO.js.map} +0 -0
- /package/dist/{hancom-3V3USCW5.js.map → hancom-UACA2WTF.js.map} +0 -0
- /package/dist/{image-ocr-R2ASFKHX.js.map → image-ocr-2CUGPHIK.js.map} +0 -0
- /package/dist/{image-ocr-SU4RPHBF.js.map → image-ocr-JEHNWQVE.js.map} +0 -0
- /package/dist/{memo-U4RZJRU2.js.map → memo-V24MEWBZ.js.map} +0 -0
- /package/dist/{model-bundle-JMSH2F4A.js.map → model-bundle-HLPWOTCS.js.map} +0 -0
- /package/dist/{models-D5SATVOZ.js.map → models-AMOW56WP.js.map} +0 -0
- /package/dist/{parse-worker-v2-WIIZQFRX.js.map → parse-worker-v2-Z4BCWVRX.js.map} +0 -0
- /package/dist/{parser-SBJKV5GS.js.map → parser-Y4GUP7PZ.js.map} +0 -0
- /package/dist/{parser-KCY43TBS.js.map → parser-YMNUQBLB.js.map} +0 -0
- /package/dist/{pdf-ocr-I6GNQEFS.js.map → pdf-ocr-3K266ENT.js.map} +0 -0
- /package/dist/{pdf-ocr-UU5PSZ7Z.js.map → pdf-ocr-EPIM3YWE.js.map} +0 -0
- /package/dist/{profile-io-HZK4ZZ2O.js.map → profile-io-AW4GEYDQ.js.map} +0 -0
- /package/dist/{rasterize-VNP4ULXM.js.map → rasterize-75AWRNSO.js.map} +0 -0
- /package/dist/{redact-doc-SPHSBCPN.js.map → redact-doc-3UUPTXFI.js.map} +0 -0
- /package/dist/{render-CKTTIDU2.js.map → render-JGMRAI2P.js.map} +0 -0
- /package/dist/{seal-MSY5G3UR.js.map → seal-WFNKTHBW.js.map} +0 -0
- /package/dist/{setup-GJVOXJN7.js.map → setup-JTHBR676.js.map} +0 -0
- /package/dist/{to-hwpx-5UIBNW3D.js.map → to-hwpx-GJP66LQS.js.map} +0 -0
- /package/dist/{to-hwpx-JJHDCYER.js.map → to-hwpx-ZD7IGU7G.js.map} +0 -0
- /package/dist/{visual-Q6PIMKSA.js.map → visual-666SNQ3Y.js.map} +0 -0
- /package/dist/{watch-YZZES36Q.js.map → watch-QL4YAMRV.js.map} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -1655,8 +1655,8 @@ declare function markdownToHwpx(markdown: string, options?: MarkdownToHwpxOption
|
|
|
1655
1655
|
*
|
|
1656
1656
|
* 문서 모델이 같은 두 직렬화(이진 레코드 ↔ OWPML XML)라 값을 1:1 로 옮긴다: DocInfo → header.xml, BodyText 섹션 → sectionN.xml,
|
|
1657
1657
|
* BinData 스토리지 → BinData/imageN.확장자, 요약 정보·미리보기 글 → content.hpf·Preview. 한글이 같은 문서를 .hwpx 로 저장한 짝을
|
|
1658
|
-
* 정답으로 속성 단위 일치를 잰다(bench/hwp2hwpx.mjs). 암호 문서는 password 로 연다. 배포용
|
|
1659
|
-
*
|
|
1658
|
+
* 정답으로 속성 단위 일치를 잰다(bench/hwp2hwpx.mjs). 암호 문서는 password 로 연다. 배포용 문서는 복호한 ViewText 본문으로
|
|
1659
|
+
* 보통 HWPX 를 쓴다.
|
|
1660
1660
|
*/
|
|
1661
1661
|
interface HwpToHwpxOptions {
|
|
1662
1662
|
/** 암호 문서의 열기 암호 */
|
package/dist/index.d.ts
CHANGED
|
@@ -1655,8 +1655,8 @@ declare function markdownToHwpx(markdown: string, options?: MarkdownToHwpxOption
|
|
|
1655
1655
|
*
|
|
1656
1656
|
* 문서 모델이 같은 두 직렬화(이진 레코드 ↔ OWPML XML)라 값을 1:1 로 옮긴다: DocInfo → header.xml, BodyText 섹션 → sectionN.xml,
|
|
1657
1657
|
* BinData 스토리지 → BinData/imageN.확장자, 요약 정보·미리보기 글 → content.hpf·Preview. 한글이 같은 문서를 .hwpx 로 저장한 짝을
|
|
1658
|
-
* 정답으로 속성 단위 일치를 잰다(bench/hwp2hwpx.mjs). 암호 문서는 password 로 연다. 배포용
|
|
1659
|
-
*
|
|
1658
|
+
* 정답으로 속성 단위 일치를 잰다(bench/hwp2hwpx.mjs). 암호 문서는 password 로 연다. 배포용 문서는 복호한 ViewText 본문으로
|
|
1659
|
+
* 보통 HWPX 를 쓴다.
|
|
1660
1660
|
*/
|
|
1661
1661
|
interface HwpToHwpxOptions {
|
|
1662
1662
|
/** 암호 문서의 열기 암호 */
|
package/dist/index.js
CHANGED
|
@@ -49,10 +49,10 @@ import {
|
|
|
49
49
|
readRecords,
|
|
50
50
|
resolveImageBlocks,
|
|
51
51
|
unfilledClickHereGuide
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-NHDOSQZ6.js";
|
|
53
53
|
import {
|
|
54
54
|
blocksToPages
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-SV462GOK.js";
|
|
56
56
|
import {
|
|
57
57
|
bmpToPng,
|
|
58
58
|
inlineImagesIntoMarkdown
|
|
@@ -229,7 +229,7 @@ import {
|
|
|
229
229
|
unescapeGfm,
|
|
230
230
|
unescapeGfmCell,
|
|
231
231
|
wordHunks
|
|
232
|
-
} from "./chunk-
|
|
232
|
+
} from "./chunk-TGKYTBQ2.js";
|
|
233
233
|
import "./chunk-LT4QALSF.js";
|
|
234
234
|
import {
|
|
235
235
|
MAX_COLS,
|
|
@@ -252,7 +252,7 @@ import {
|
|
|
252
252
|
tidyScriptTags,
|
|
253
253
|
unframeLayoutTables,
|
|
254
254
|
wrapScript
|
|
255
|
-
} from "./chunk-
|
|
255
|
+
} from "./chunk-XBWP6REN.js";
|
|
256
256
|
import {
|
|
257
257
|
KordocError,
|
|
258
258
|
OPTIONAL_DEP_INSTALL_HINT,
|
|
@@ -268,7 +268,7 @@ import {
|
|
|
268
268
|
stripDtd,
|
|
269
269
|
toArrayBuffer,
|
|
270
270
|
unzipLimitBytes
|
|
271
|
-
} from "./chunk-
|
|
271
|
+
} from "./chunk-ZDTP5IJU.js";
|
|
272
272
|
|
|
273
273
|
// src/plain-markdown.ts
|
|
274
274
|
function toPlainMarkdown(md2) {
|
|
@@ -17785,7 +17785,7 @@ var MIN_SIDE = 24;
|
|
|
17785
17785
|
async function ocrEmbeddedImages(blocks, options, warnings) {
|
|
17786
17786
|
const ocr = options?.ocr;
|
|
17787
17787
|
if (ocr !== true && ocr !== "force" && typeof ocr !== "function") return false;
|
|
17788
|
-
const { parseImageDocument } = await import("./image-ocr-
|
|
17788
|
+
const { parseImageDocument } = await import("./image-ocr-JEHNWQVE.js");
|
|
17789
17789
|
let inserted = false, unreadable = 0;
|
|
17790
17790
|
let failed = null;
|
|
17791
17791
|
const walk = async (list, depth) => {
|
|
@@ -33826,7 +33826,7 @@ function scriptsOff(r, off) {
|
|
|
33826
33826
|
}
|
|
33827
33827
|
async function parseImage(buffer, options) {
|
|
33828
33828
|
try {
|
|
33829
|
-
const { parseImageDocument } = await import("./image-ocr-
|
|
33829
|
+
const { parseImageDocument } = await import("./image-ocr-JEHNWQVE.js");
|
|
33830
33830
|
const { blocks, warnings, lines } = await parseImageDocument(buffer, options);
|
|
33831
33831
|
stripScriptTags({ blocks });
|
|
33832
33832
|
return {
|
|
@@ -33892,7 +33892,7 @@ async function parseHwp(buffer, options) {
|
|
|
33892
33892
|
async function parsePdf(buffer, options) {
|
|
33893
33893
|
let parsePdfDocument;
|
|
33894
33894
|
try {
|
|
33895
|
-
const mod = await import("./parser-
|
|
33895
|
+
const mod = await import("./parser-YMNUQBLB.js");
|
|
33896
33896
|
parsePdfDocument = mod.parsePdfDocument;
|
|
33897
33897
|
} catch {
|
|
33898
33898
|
return {
|
|
@@ -33968,7 +33968,7 @@ async function fillForm(input, values, outputFormat = "markdown") {
|
|
|
33968
33968
|
throw new Error(`hwpx-preserve \uD3EC\uB9F7\uC740 HWPX\xB7HWP 5.x \uC785\uB825\uB9CC \uC9C0\uC6D0\uD569\uB2C8\uB2E4 (\uAC10\uC9C0\uB41C \uD3EC\uB9F7: ${zipFormat})`);
|
|
33969
33969
|
}
|
|
33970
33970
|
} else if (format2 === "hwp" && detectOle2Format(buffer) === "hwp") {
|
|
33971
|
-
const { hwpToHwpx: hwpToHwpx2 } = await import("./to-hwpx-
|
|
33971
|
+
const { hwpToHwpx: hwpToHwpx2 } = await import("./to-hwpx-ZD7IGU7G.js");
|
|
33972
33972
|
const hwpx = await hwpToHwpx2(new Uint8Array(buffer));
|
|
33973
33973
|
buffer = hwpx.buffer.slice(hwpx.byteOffset, hwpx.byteOffset + hwpx.byteLength);
|
|
33974
33974
|
} else {
|
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-
|
|
48
|
+
} from "./chunk-ZUFIMOGS.js";
|
|
49
|
+
import "./chunk-KTWCSSNS.js";
|
|
50
|
+
import "./chunk-SGBD6MTI.js";
|
|
51
51
|
import {
|
|
52
52
|
extractHwpxMetadataOnly,
|
|
53
53
|
patchHwp,
|
|
54
54
|
patchHwpx
|
|
55
|
-
} from "./chunk-
|
|
56
|
-
import "./chunk-
|
|
55
|
+
} from "./chunk-KF6MJIPV.js";
|
|
56
|
+
import "./chunk-K2AVB6ZW.js";
|
|
57
57
|
import {
|
|
58
58
|
AGENCY_COMMON_NAME,
|
|
59
59
|
PRESET_ALIAS,
|
|
60
60
|
agencyNames,
|
|
61
61
|
incompatibleGongmunWarnings,
|
|
62
62
|
markdownToHwpx
|
|
63
|
-
} from "./chunk-
|
|
64
|
-
import "./chunk-
|
|
65
|
-
import "./chunk-
|
|
66
|
-
import "./chunk-
|
|
67
|
-
import "./chunk-
|
|
68
|
-
import "./chunk-
|
|
63
|
+
} from "./chunk-UI3SZQXC.js";
|
|
64
|
+
import "./chunk-2CHSOHDE.js";
|
|
65
|
+
import "./chunk-GYMAGQNQ.js";
|
|
66
|
+
import "./chunk-XPYC55DA.js";
|
|
67
|
+
import "./chunk-JBQ5R4VV.js";
|
|
68
|
+
import "./chunk-EPR3TQS3.js";
|
|
69
69
|
import {
|
|
70
70
|
extractFormFields,
|
|
71
71
|
fillWithUniqueGuard
|
|
72
72
|
} from "./chunk-3AHL6YEA.js";
|
|
73
|
-
import "./chunk-
|
|
73
|
+
import "./chunk-57LVGVIS.js";
|
|
74
74
|
import {
|
|
75
75
|
hwpToHwpx
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-CCGGLBHD.js";
|
|
77
77
|
import {
|
|
78
78
|
extractHwp5MetadataOnly
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-OPE2XDGY.js";
|
|
80
80
|
import "./chunk-VKVDMH7X.js";
|
|
81
81
|
import "./chunk-OFVHQ2TZ.js";
|
|
82
|
-
import "./chunk-
|
|
82
|
+
import "./chunk-3GJ3CMYS.js";
|
|
83
83
|
import "./chunk-WFKFG2RT.js";
|
|
84
84
|
import "./chunk-3WSNLH4B.js";
|
|
85
|
-
import "./chunk-
|
|
86
|
-
import "./chunk-
|
|
85
|
+
import "./chunk-S7TKYRJB.js";
|
|
86
|
+
import "./chunk-TWFL7T4K.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-JIMG76FW.js";
|
|
95
|
-
import "./chunk-
|
|
95
|
+
import "./chunk-C5XJDCXW.js";
|
|
96
96
|
import {
|
|
97
97
|
blocksToMarkdown
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-C2YUJXHB.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-EPZVMBAQ.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-ZOCDODX3.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-Y4GUP7PZ.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-23JEOBIH.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-WFNKTHBW.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-V24MEWBZ.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-UDQAKQN2.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-3UUPTXFI.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-JGMRAI2P.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-75AWRNSO.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-JGMRAI2P.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-JGMRAI2P.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-666SNQ3Y.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("./-5XLO3RHD.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-AW4GEYDQ.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("./-5XLO3RHD.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;
|
|
@@ -1643,7 +1643,7 @@ import { dirname as dirname5 } from "path";
|
|
|
1643
1643
|
function registerConvertTools(server2) {
|
|
1644
1644
|
server2.tool(
|
|
1645
1645
|
"convert_to_hwpx",
|
|
1646
|
-
'HWP \uBB38\uC11C\uB97C HWPX \uB85C \uBCC0\uD658\uD574 \uC800\uC7A5\uD569\uB2C8\uB2E4. HWP 5.x \uB294 \uC11C\uC2DD \uADF8\uB300\uB85C \uC62E\uAE41\uB2C8\uB2E4 \u2014 \uAE00\uAF34\xB7\uAE00\uC790/\uBB38\uB2E8 \uBAA8\uC591\xB7\uC2A4\uD0C0\uC77C\xB7\uBC88\uD638, \uD45C(\uBCD1\uD569\xB7\uD14C\uB450\uB9AC), \uADF8\uB9BC\xB7\uB3C4\uD615\xB7\uAE00\uC0C1\uC790, \uC218\uC2DD, \uBA38\uB9AC\uB9D0\xB7\uAF2C\uB9AC\uB9D0, \uAC01\uC8FC\xB7\uBBF8\uC8FC, \uCABD \uBC88\uD638, \uB204\uB984\uD2C0\xB7\uD558\uC774\uD37C\uB9C1\uD06C, \uCC28\uD2B8. HWP 3.x \uB294 \uC11C\uC2DD \uBCF4\uC874 \uBCC0\uD658\uC774 \uC5C6\uC5B4 \uAE00\xB7\uD45C\uB9CC \uC62E\uAE41\uB2C8\uB2E4(\uACB0\uACFC\uC5D0 \uC54C\uB9BC). "hwp \uB97C hwpx \uB85C \uBC14\uAFD4 \uC918" \uAC19\uC740 \uC694\uCCAD\uC5D0 \uC4F0\uACE0, \uBC14\uAFBC \uB4A4 render_document \uB85C \uACB0\uACFC\uB97C \uD655\uC778\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4. \uBC30\uD3EC\uC6A9
|
|
1646
|
+
'HWP \uBB38\uC11C\uB97C HWPX \uB85C \uBCC0\uD658\uD574 \uC800\uC7A5\uD569\uB2C8\uB2E4. HWP 5.x \uB294 \uC11C\uC2DD \uADF8\uB300\uB85C \uC62E\uAE41\uB2C8\uB2E4 \u2014 \uAE00\uAF34\xB7\uAE00\uC790/\uBB38\uB2E8 \uBAA8\uC591\xB7\uC2A4\uD0C0\uC77C\xB7\uBC88\uD638, \uD45C(\uBCD1\uD569\xB7\uD14C\uB450\uB9AC), \uADF8\uB9BC\xB7\uB3C4\uD615\xB7\uAE00\uC0C1\uC790, \uC218\uC2DD, \uBA38\uB9AC\uB9D0\xB7\uAF2C\uB9AC\uB9D0, \uAC01\uC8FC\xB7\uBBF8\uC8FC, \uCABD \uBC88\uD638, \uB204\uB984\uD2C0\xB7\uD558\uC774\uD37C\uB9C1\uD06C, \uCC28\uD2B8. HWP 3.x \uB294 \uC11C\uC2DD \uBCF4\uC874 \uBCC0\uD658\uC774 \uC5C6\uC5B4 \uAE00\xB7\uD45C\uB9CC \uC62E\uAE41\uB2C8\uB2E4(\uACB0\uACFC\uC5D0 \uC54C\uB9BC). "hwp \uB97C hwpx \uB85C \uBC14\uAFD4 \uC918" \uAC19\uC740 \uC694\uCCAD\uC5D0 \uC4F0\uACE0, \uBC14\uAFBC \uB4A4 render_document \uB85C \uACB0\uACFC\uB97C \uD655\uC778\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4. \uBC30\uD3EC\uC6A9 \uBB38\uC11C\uB3C4 \uBCF5\uD638\uD55C \uBCF8\uBB38\uC73C\uB85C \uBC14\uAFC9\uB2C8\uB2E4.',
|
|
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)"),
|
|
@@ -1658,7 +1658,7 @@ function registerConvertTools(server2) {
|
|
|
1658
1658
|
if (!output_path && await access(outPath).then(() => true, () => false)) {
|
|
1659
1659
|
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
1660
|
}
|
|
1661
|
-
const { convertToHwpx, validateHwpx } = await import("./-
|
|
1661
|
+
const { convertToHwpx, validateHwpx } = await import("./-5XLO3RHD.js");
|
|
1662
1662
|
const result = await convertToHwpx(buffer, { password, engine });
|
|
1663
1663
|
const check = await validateHwpx(result.data);
|
|
1664
1664
|
await mkdir4(dirname5(outPath), { recursive: true });
|