kordoc 4.24.72 → 4.24.74
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/NOTICE +17 -0
- package/README.md +5 -5
- package/dist/{-S32WDXC4.js → -U7FV47XK.js} +25 -23
- package/dist/{chunk-LINC7S3M.js → chunk-2HHE3D4S.js} +2 -2
- package/dist/{chunk-BD75GPTM.js → chunk-2SMYX3L4.js} +2 -2
- package/dist/{chunk-MCO77XJN.js → chunk-2ZZCE4EM.js} +2 -2
- package/dist/{chunk-GHHVT4Q5.js → chunk-3O3KTZ7H.js} +38 -7
- package/dist/chunk-3O3KTZ7H.js.map +1 -0
- package/dist/{chunk-IPYSZ2WD.js → chunk-3PTQBVDC.js} +6 -6
- package/dist/{chunk-JE4NCQIN.cjs → chunk-4TDUZ6UN.cjs} +126 -39
- package/dist/chunk-4TDUZ6UN.cjs.map +1 -0
- package/dist/{chunk-NHWWNRQT.js → chunk-4VOOFNBK.js} +122 -35
- package/dist/chunk-4VOOFNBK.js.map +1 -0
- package/dist/{chunk-ARVHYL3V.cjs → chunk-56KADCSC.cjs} +39 -8
- package/dist/chunk-56KADCSC.cjs.map +1 -0
- package/dist/{chunk-4UL2KIOH.js → chunk-5CGWJW3U.js} +3 -3
- package/dist/chunk-5IEMZTNA.js +107 -0
- package/dist/chunk-5IEMZTNA.js.map +1 -0
- package/dist/{chunk-JEPTA64I.js → chunk-6OFHUEHR.js} +2 -2
- package/dist/{chunk-U2K3WVR5.cjs → chunk-7DB4UKU4.cjs} +3 -3
- package/dist/{chunk-U2K3WVR5.cjs.map → chunk-7DB4UKU4.cjs.map} +1 -1
- package/dist/{chunk-WWTG5JUI.cjs → chunk-A4GYP4G4.cjs} +62 -62
- package/dist/{chunk-WWTG5JUI.cjs.map → chunk-A4GYP4G4.cjs.map} +1 -1
- package/dist/{chunk-YZXGUJFI.js → chunk-AJYPIUQK.js} +2 -2
- package/dist/{chunk-U6CZ5IGF.js → chunk-AYEDNFX7.js} +2 -2
- package/dist/chunk-CK7LADMK.js +232 -0
- package/dist/chunk-CK7LADMK.js.map +1 -0
- package/dist/{chunk-FTPYYLCR.js → chunk-CRUAWSRK.js} +3 -3
- package/dist/{chunk-7N2L6FBB.js → chunk-DDWV6OTG.js} +8 -8
- package/dist/chunk-EFQPEQ43.js +45 -0
- package/dist/chunk-EFQPEQ43.js.map +1 -0
- package/dist/{chunk-UOML7PVK.js → chunk-EYDAQBE7.js} +2 -2
- package/dist/{chunk-G3TKEQZ3.js → chunk-FCAMCNBA.js} +4 -4
- package/dist/{chunk-L4GCUYDS.cjs → chunk-FE7463HF.cjs} +8 -8
- package/dist/{chunk-L4GCUYDS.cjs.map → chunk-FE7463HF.cjs.map} +1 -1
- package/dist/{chunk-6GQGU57N.js → chunk-GJFS3GMY.js} +3 -3
- package/dist/{chunk-COG4POSK.cjs → chunk-HFYDNNDB.cjs} +29 -28
- package/dist/chunk-HFYDNNDB.cjs.map +1 -0
- package/dist/chunk-HHLZQQNL.cjs +230 -0
- package/dist/chunk-HHLZQQNL.cjs.map +1 -0
- package/dist/{chunk-DIHV6CDK.js → chunk-HSDIWTFF.js} +2 -2
- package/dist/{chunk-CQUOEZBJ.js → chunk-IOMH3NL4.js} +2 -2
- package/dist/{chunk-4QOTRR5Z.js → chunk-KD6SFQFJ.js} +6 -6
- package/dist/{chunk-4GPZVPYG.js → chunk-LGCD3V22.js} +3 -3
- package/dist/{chunk-C3USRXCH.js → chunk-LUMA2HI3.js} +2 -2
- package/dist/{chunk-C3USRXCH.js.map → chunk-LUMA2HI3.js.map} +1 -1
- package/dist/{chunk-FKCSNCWC.js → chunk-N32TKLQ6.js} +5 -5
- package/dist/chunk-NOYOXAOE.js +230 -0
- package/dist/chunk-NOYOXAOE.js.map +1 -0
- package/dist/{chunk-O4MTW4JH.js → chunk-NSGKHLS6.js} +104 -50
- package/dist/chunk-NSGKHLS6.js.map +1 -0
- package/dist/{chunk-2SUWIRWH.js → chunk-NT5EVBAI.js} +11 -11
- package/dist/{chunk-6DIACQ3R.js → chunk-PNAMF4RV.js} +2 -2
- package/dist/{chunk-C4K2XCGX.js → chunk-PS7U47KE.js} +2 -2
- package/dist/{chunk-C4K2XCGX.js.map → chunk-PS7U47KE.js.map} +1 -1
- package/dist/chunk-Q6U3VJIE.js +106 -0
- package/dist/chunk-Q6U3VJIE.js.map +1 -0
- package/dist/{chunk-S6H3ZPYQ.js → chunk-Q7CKFUYR.js} +38 -7
- package/dist/chunk-Q7CKFUYR.js.map +1 -0
- package/dist/{chunk-GK4OHUV5.js → chunk-R2EIJJ34.js} +2 -2
- package/dist/{chunk-4Q7L4IDD.js → chunk-RI5NWSUQ.js} +122 -35
- package/dist/chunk-RI5NWSUQ.js.map +1 -0
- package/dist/{chunk-ZTVH2HQ5.cjs → chunk-TOUR2SPI.cjs} +2 -2
- package/dist/{chunk-ZTVH2HQ5.cjs.map → chunk-TOUR2SPI.cjs.map} +1 -1
- package/dist/chunk-TV7B6DJQ.cjs +43 -0
- package/dist/chunk-TV7B6DJQ.cjs.map +1 -0
- package/dist/{chunk-MHYFBIS5.js → chunk-TXX5GDY3.js} +2 -2
- package/dist/{chunk-4ECEC6FD.js → chunk-UI4NGY4W.js} +8 -7
- package/dist/chunk-UI4NGY4W.js.map +1 -0
- package/dist/{chunk-SGQC3BVV.js → chunk-UPBZ2BVU.js} +7 -6
- package/dist/chunk-UPBZ2BVU.js.map +1 -0
- package/dist/{chunk-BJCTFKEU.js → chunk-VFSDX4GE.js} +2 -2
- package/dist/{chunk-WXKUE2MU.js → chunk-VOW7QLFA.js} +9 -9
- package/dist/{chunk-VRJ3CABR.js → chunk-VREPDKMC.js} +2 -2
- package/dist/chunk-VRUIVEGD.cjs +106 -0
- package/dist/chunk-VRUIVEGD.cjs.map +1 -0
- package/dist/{chunk-GAZDWFRT.js → chunk-VZUIOYCU.js} +17 -14
- package/dist/chunk-VZUIOYCU.js.map +1 -0
- package/dist/{chunk-SNNM4GFE.js → chunk-WSNU2OAY.js} +2 -2
- package/dist/chunk-XJW45ICD.js +43 -0
- package/dist/chunk-XJW45ICD.js.map +1 -0
- package/dist/{chunk-5CYWVW3V.cjs → chunk-XKT4J6AG.cjs} +88 -88
- package/dist/{chunk-5CYWVW3V.cjs.map → chunk-XKT4J6AG.cjs.map} +1 -1
- package/dist/{chunk-GOQWCHX5.js → chunk-YGCR55V2.js} +8 -8
- package/dist/{chunk-TDNYBCPC.cjs → chunk-ZYSH465A.cjs} +104 -104
- package/dist/{chunk-TDNYBCPC.cjs.map → chunk-ZYSH465A.cjs.map} +1 -1
- package/dist/chunks-EVKTSUGA.js +11 -0
- package/dist/cli.js +50 -48
- package/dist/cli.js.map +1 -1
- package/dist/{detect-ALS4RBCY.js → detect-EBGOXZ66.js} +8 -4
- package/dist/{detect-LCFITDPT.js → detect-H2VUHKJS.js} +8 -4
- package/dist/detect-W6JF4PI4.cjs +31 -0
- package/dist/detect-W6JF4PI4.cjs.map +1 -0
- package/dist/{formula-BLK43PWB.cjs → formula-CXRJQ5FS.cjs} +9 -9
- package/dist/{formula-BLK43PWB.cjs.map → formula-CXRJQ5FS.cjs.map} +1 -1
- package/dist/{formula-E5QNTLM3.js → formula-JZZKJXHR.js} +3 -3
- package/dist/{formula-WVFBIXND.js → formula-TE5U7IPG.js} +4 -4
- package/dist/generator-CKTUVW7V.js +11 -0
- package/dist/generator-EVRLN745.cjs +12 -0
- package/dist/{generator-APR6DUTL.cjs.map → generator-EVRLN745.cjs.map} +1 -1
- package/dist/generator-Q5M3CZPW.js +18 -0
- package/dist/{hancom-DJTR4HYI.cjs → hancom-GYOFLPQZ.cjs} +5 -5
- package/dist/{hancom-DJTR4HYI.cjs.map → hancom-GYOFLPQZ.cjs.map} +1 -1
- package/dist/{hancom-BCYRSFDF.js → hancom-JHPB6VOJ.js} +2 -2
- package/dist/{hancom-HLLJXF2H.js → hancom-UFNCFHMZ.js} +2 -2
- package/dist/{image-ocr-B5SIBPET.js → image-ocr-CYVL5C2B.js} +96 -26
- package/dist/image-ocr-CYVL5C2B.js.map +1 -0
- package/dist/{image-ocr-QSSVO27L.js → image-ocr-YPZTKLHR.js} +93 -23
- package/dist/image-ocr-YPZTKLHR.js.map +1 -0
- package/dist/image-ocr-YYC2JENT.cjs +284 -0
- package/dist/image-ocr-YYC2JENT.cjs.map +1 -0
- package/dist/index.cjs +1223 -1166
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.js +102 -45
- package/dist/index.js.map +1 -1
- package/dist/mcp.js +43 -41
- package/dist/mcp.js.map +1 -1
- package/dist/memo-FOTH3KQZ.js +17 -0
- package/dist/{model-bundle-KB7GFS7J.js → model-bundle-PJXVN44L.js} +5 -5
- package/dist/{models-A6PYBE2Q.js → models-GGI6Z7WG.js} +5 -5
- package/dist/{parse-worker-v2-OSOABIQB.js → parse-worker-v2-22KSHQGB.js} +26 -24
- package/dist/{parse-worker-v2-OSOABIQB.js.map → parse-worker-v2-22KSHQGB.js.map} +1 -1
- package/dist/{parser-E2ZCR6UV.js → parser-7WVQ4BOA.js} +20 -18
- package/dist/{parser-E2ZCR6UV.js.map → parser-7WVQ4BOA.js.map} +1 -1
- package/dist/{parser-F7Q2ENVO.js → parser-M3T5WYXG.js} +17 -15
- package/dist/{parser-F7Q2ENVO.js.map → parser-M3T5WYXG.js.map} +1 -1
- package/dist/{parser-JQXLIKOT.cjs → parser-YJYGGUJP.cjs} +172 -170
- package/dist/parser-YJYGGUJP.cjs.map +1 -0
- package/dist/{pdf-ocr-B6QVPBMI.js → pdf-ocr-T7XAXRHM.js} +6 -6
- package/dist/pdf-ocr-TBGICSC2.cjs +43 -0
- package/dist/{pdf-ocr-AV7FKNFZ.cjs.map → pdf-ocr-TBGICSC2.cjs.map} +1 -1
- package/dist/{pdf-ocr-RY6UZ5PG.js → pdf-ocr-ZS6UGPZE.js} +9 -9
- package/dist/{profile-io-FX2SDCMR.js → profile-io-BRKSGV5H.js} +3 -3
- package/dist/{rasterize-ZJAMZCQM.js → rasterize-NE7ODEL3.js} +3 -3
- package/dist/{redact-doc-DNXUF4WL.js → redact-doc-QMKBSH77.js} +25 -23
- package/dist/{redact-doc-DNXUF4WL.js.map → redact-doc-QMKBSH77.js.map} +1 -1
- package/dist/{render-FQ2LMZIL.js → render-YUUT36B3.js} +14 -14
- package/dist/{rewrite-fallback-QNLQXJRS.js → rewrite-fallback-VMIWMLXI.js} +15 -15
- package/dist/seal-WH555ZEQ.js +16 -0
- package/dist/{setup-2VMN6LBY.js → setup-EINQOQZN.js} +3 -3
- package/dist/to-hwpx-4VONWOHX.js +21 -0
- package/dist/to-hwpx-FL6MGYNQ.cjs +16 -0
- package/dist/{to-hwpx-2RENWAWF.cjs.map → to-hwpx-FL6MGYNQ.cjs.map} +1 -1
- package/dist/{to-hwpx-DS6DH5WH.js → to-hwpx-RGSKEFZO.js} +5 -5
- package/dist/visual-TROK2J5W.js +40 -0
- package/dist/{watch-53NVSD5Z.js → watch-LNCWW6C5.js} +26 -24
- package/dist/{watch-53NVSD5Z.js.map → watch-LNCWW6C5.js.map} +1 -1
- package/package.json +6 -1
- package/dist/chunk-4ECEC6FD.js.map +0 -1
- package/dist/chunk-4Q7L4IDD.js.map +0 -1
- package/dist/chunk-6NZ32OTX.cjs +0 -149
- package/dist/chunk-6NZ32OTX.cjs.map +0 -1
- package/dist/chunk-ARVHYL3V.cjs.map +0 -1
- package/dist/chunk-COG4POSK.cjs.map +0 -1
- package/dist/chunk-FU6ZDWCI.js +0 -151
- package/dist/chunk-FU6ZDWCI.js.map +0 -1
- package/dist/chunk-GAZDWFRT.js.map +0 -1
- package/dist/chunk-GHHVT4Q5.js.map +0 -1
- package/dist/chunk-JE4NCQIN.cjs.map +0 -1
- package/dist/chunk-NHWWNRQT.js.map +0 -1
- package/dist/chunk-O4MTW4JH.js.map +0 -1
- package/dist/chunk-S6H3ZPYQ.js.map +0 -1
- package/dist/chunk-SGQC3BVV.js.map +0 -1
- package/dist/chunk-UJELMNOU.js +0 -149
- package/dist/chunk-UJELMNOU.js.map +0 -1
- package/dist/chunks-XNCDYMWO.js +0 -11
- package/dist/detect-V75ERMYL.cjs +0 -27
- package/dist/detect-V75ERMYL.cjs.map +0 -1
- package/dist/generator-5VFDO4CB.js +0 -11
- package/dist/generator-APR6DUTL.cjs +0 -12
- package/dist/generator-IOGPVCG2.js +0 -18
- package/dist/image-ocr-B5SIBPET.js.map +0 -1
- package/dist/image-ocr-HCT57HQA.cjs +0 -214
- package/dist/image-ocr-HCT57HQA.cjs.map +0 -1
- package/dist/image-ocr-QSSVO27L.js.map +0 -1
- package/dist/memo-R5CO35OZ.js +0 -17
- package/dist/parser-JQXLIKOT.cjs.map +0 -1
- package/dist/pdf-ocr-AV7FKNFZ.cjs +0 -43
- package/dist/seal-6LBVNZYX.js +0 -16
- package/dist/to-hwpx-2RENWAWF.cjs +0 -16
- package/dist/to-hwpx-H7B6CEN5.js +0 -21
- package/dist/visual-3H3HGNOW.js +0 -38
- /package/dist/{-S32WDXC4.js.map → -U7FV47XK.js.map} +0 -0
- /package/dist/{chunk-LINC7S3M.js.map → chunk-2HHE3D4S.js.map} +0 -0
- /package/dist/{chunk-BD75GPTM.js.map → chunk-2SMYX3L4.js.map} +0 -0
- /package/dist/{chunk-MCO77XJN.js.map → chunk-2ZZCE4EM.js.map} +0 -0
- /package/dist/{chunk-IPYSZ2WD.js.map → chunk-3PTQBVDC.js.map} +0 -0
- /package/dist/{chunk-4UL2KIOH.js.map → chunk-5CGWJW3U.js.map} +0 -0
- /package/dist/{chunk-JEPTA64I.js.map → chunk-6OFHUEHR.js.map} +0 -0
- /package/dist/{chunk-YZXGUJFI.js.map → chunk-AJYPIUQK.js.map} +0 -0
- /package/dist/{chunk-U6CZ5IGF.js.map → chunk-AYEDNFX7.js.map} +0 -0
- /package/dist/{chunk-FTPYYLCR.js.map → chunk-CRUAWSRK.js.map} +0 -0
- /package/dist/{chunk-7N2L6FBB.js.map → chunk-DDWV6OTG.js.map} +0 -0
- /package/dist/{chunk-UOML7PVK.js.map → chunk-EYDAQBE7.js.map} +0 -0
- /package/dist/{chunk-G3TKEQZ3.js.map → chunk-FCAMCNBA.js.map} +0 -0
- /package/dist/{chunk-6GQGU57N.js.map → chunk-GJFS3GMY.js.map} +0 -0
- /package/dist/{chunk-DIHV6CDK.js.map → chunk-HSDIWTFF.js.map} +0 -0
- /package/dist/{chunk-CQUOEZBJ.js.map → chunk-IOMH3NL4.js.map} +0 -0
- /package/dist/{chunk-4QOTRR5Z.js.map → chunk-KD6SFQFJ.js.map} +0 -0
- /package/dist/{chunk-4GPZVPYG.js.map → chunk-LGCD3V22.js.map} +0 -0
- /package/dist/{chunk-FKCSNCWC.js.map → chunk-N32TKLQ6.js.map} +0 -0
- /package/dist/{chunk-2SUWIRWH.js.map → chunk-NT5EVBAI.js.map} +0 -0
- /package/dist/{chunk-6DIACQ3R.js.map → chunk-PNAMF4RV.js.map} +0 -0
- /package/dist/{chunk-GK4OHUV5.js.map → chunk-R2EIJJ34.js.map} +0 -0
- /package/dist/{chunk-MHYFBIS5.js.map → chunk-TXX5GDY3.js.map} +0 -0
- /package/dist/{chunk-BJCTFKEU.js.map → chunk-VFSDX4GE.js.map} +0 -0
- /package/dist/{chunk-WXKUE2MU.js.map → chunk-VOW7QLFA.js.map} +0 -0
- /package/dist/{chunk-VRJ3CABR.js.map → chunk-VREPDKMC.js.map} +0 -0
- /package/dist/{chunk-SNNM4GFE.js.map → chunk-WSNU2OAY.js.map} +0 -0
- /package/dist/{chunk-GOQWCHX5.js.map → chunk-YGCR55V2.js.map} +0 -0
- /package/dist/{chunks-XNCDYMWO.js.map → chunks-EVKTSUGA.js.map} +0 -0
- /package/dist/{detect-ALS4RBCY.js.map → detect-EBGOXZ66.js.map} +0 -0
- /package/dist/{detect-LCFITDPT.js.map → detect-H2VUHKJS.js.map} +0 -0
- /package/dist/{formula-E5QNTLM3.js.map → formula-JZZKJXHR.js.map} +0 -0
- /package/dist/{formula-WVFBIXND.js.map → formula-TE5U7IPG.js.map} +0 -0
- /package/dist/{generator-5VFDO4CB.js.map → generator-CKTUVW7V.js.map} +0 -0
- /package/dist/{generator-IOGPVCG2.js.map → generator-Q5M3CZPW.js.map} +0 -0
- /package/dist/{hancom-BCYRSFDF.js.map → hancom-JHPB6VOJ.js.map} +0 -0
- /package/dist/{hancom-HLLJXF2H.js.map → hancom-UFNCFHMZ.js.map} +0 -0
- /package/dist/{memo-R5CO35OZ.js.map → memo-FOTH3KQZ.js.map} +0 -0
- /package/dist/{model-bundle-KB7GFS7J.js.map → model-bundle-PJXVN44L.js.map} +0 -0
- /package/dist/{models-A6PYBE2Q.js.map → models-GGI6Z7WG.js.map} +0 -0
- /package/dist/{pdf-ocr-B6QVPBMI.js.map → pdf-ocr-T7XAXRHM.js.map} +0 -0
- /package/dist/{pdf-ocr-RY6UZ5PG.js.map → pdf-ocr-ZS6UGPZE.js.map} +0 -0
- /package/dist/{profile-io-FX2SDCMR.js.map → profile-io-BRKSGV5H.js.map} +0 -0
- /package/dist/{rasterize-ZJAMZCQM.js.map → rasterize-NE7ODEL3.js.map} +0 -0
- /package/dist/{render-FQ2LMZIL.js.map → render-YUUT36B3.js.map} +0 -0
- /package/dist/{rewrite-fallback-QNLQXJRS.js.map → rewrite-fallback-VMIWMLXI.js.map} +0 -0
- /package/dist/{seal-6LBVNZYX.js.map → seal-WH555ZEQ.js.map} +0 -0
- /package/dist/{setup-2VMN6LBY.js.map → setup-EINQOQZN.js.map} +0 -0
- /package/dist/{to-hwpx-DS6DH5WH.js.map → to-hwpx-4VONWOHX.js.map} +0 -0
- /package/dist/{to-hwpx-H7B6CEN5.js.map → to-hwpx-RGSKEFZO.js.map} +0 -0
- /package/dist/{visual-3H3HGNOW.js.map → visual-TROK2J5W.js.map} +0 -0
package/dist/mcp.js
CHANGED
|
@@ -48,64 +48,66 @@ import {
|
|
|
48
48
|
unknownFontWarnings,
|
|
49
49
|
usesGaejosikMunche,
|
|
50
50
|
usesLogicStructure
|
|
51
|
-
} from "./chunk-
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-
|
|
51
|
+
} from "./chunk-NSGKHLS6.js";
|
|
52
|
+
import "./chunk-NT5EVBAI.js";
|
|
53
|
+
import "./chunk-RI5NWSUQ.js";
|
|
54
54
|
import {
|
|
55
55
|
extractHwpxMetadataOnly,
|
|
56
56
|
patchHwp,
|
|
57
57
|
patchHwpx
|
|
58
|
-
} from "./chunk-
|
|
59
|
-
import "./chunk-
|
|
58
|
+
} from "./chunk-VZUIOYCU.js";
|
|
59
|
+
import "./chunk-CRUAWSRK.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-KD6SFQFJ.js";
|
|
67
|
+
import "./chunk-WSNU2OAY.js";
|
|
68
|
+
import "./chunk-3PTQBVDC.js";
|
|
69
|
+
import "./chunk-N32TKLQ6.js";
|
|
70
|
+
import "./chunk-EYDAQBE7.js";
|
|
71
|
+
import "./chunk-IOMH3NL4.js";
|
|
72
72
|
import {
|
|
73
73
|
extractFormFields,
|
|
74
74
|
fillWithUniqueGuard
|
|
75
75
|
} from "./chunk-3AHL6YEA.js";
|
|
76
|
-
import "./chunk-
|
|
76
|
+
import "./chunk-AYEDNFX7.js";
|
|
77
77
|
import {
|
|
78
78
|
hwpToHwpx
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-YGCR55V2.js";
|
|
80
80
|
import {
|
|
81
81
|
extractHwp5MetadataOnly
|
|
82
|
-
} from "./chunk-
|
|
83
|
-
import "./chunk-FU6ZDWCI.js";
|
|
82
|
+
} from "./chunk-DDWV6OTG.js";
|
|
84
83
|
import "./chunk-OFVHQ2TZ.js";
|
|
85
|
-
import "./chunk-
|
|
84
|
+
import "./chunk-6OFHUEHR.js";
|
|
86
85
|
import "./chunk-WFKFG2RT.js";
|
|
87
86
|
import "./chunk-3WSNLH4B.js";
|
|
88
|
-
import "./chunk-
|
|
89
|
-
import "./chunk-
|
|
87
|
+
import "./chunk-2SMYX3L4.js";
|
|
88
|
+
import "./chunk-R2EIJJ34.js";
|
|
90
89
|
import "./chunk-VQFA55IC.js";
|
|
90
|
+
import "./chunk-5IEMZTNA.js";
|
|
91
|
+
import "./chunk-EFQPEQ43.js";
|
|
92
|
+
import "./chunk-CK7LADMK.js";
|
|
91
93
|
import {
|
|
92
94
|
detectFormat,
|
|
93
95
|
detectOle2Format,
|
|
94
96
|
detectZipFormat
|
|
95
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-3O3KTZ7H.js";
|
|
96
98
|
import "./chunk-H7K5YHWQ.js";
|
|
97
99
|
import "./chunk-IIOBUTXH.js";
|
|
98
100
|
import "./chunk-QLZHIJWJ.js";
|
|
99
|
-
import "./chunk-
|
|
101
|
+
import "./chunk-PS7U47KE.js";
|
|
100
102
|
import {
|
|
101
103
|
blocksToMarkdown
|
|
102
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-VFSDX4GE.js";
|
|
103
105
|
import "./chunk-KFF47XZ7.js";
|
|
104
106
|
import {
|
|
105
107
|
assertWithinRoot,
|
|
106
108
|
getAccessRoot,
|
|
107
109
|
isOfflineMode
|
|
108
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-PNAMF4RV.js";
|
|
109
111
|
import {
|
|
110
112
|
KordocError,
|
|
111
113
|
VERSION,
|
|
@@ -113,7 +115,7 @@ import {
|
|
|
113
115
|
routeConsoleToStderr,
|
|
114
116
|
sanitizeError,
|
|
115
117
|
toArrayBuffer
|
|
116
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-VREPDKMC.js";
|
|
117
119
|
|
|
118
120
|
// src/mcp.ts
|
|
119
121
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
@@ -129,7 +131,7 @@ import { realpathSync, openSync, readSync, closeSync, lstatSync, constants } fro
|
|
|
129
131
|
import { readFile, stat, realpath, open } from "fs/promises";
|
|
130
132
|
import { resolve, isAbsolute, extname, dirname, basename, join } from "path";
|
|
131
133
|
var ALLOWED_EXTENSIONS = /* @__PURE__ */ new Set([".hwp", ".hwpx", ".hml", ".pdf", ".xls", ".xlsx", ".docx", ".pptx"]);
|
|
132
|
-
var PARSE_EXTENSIONS = /* @__PURE__ */ new Set([...ALLOWED_EXTENSIONS, ".png", ".jpg", ".jpeg", ".webp"]);
|
|
134
|
+
var PARSE_EXTENSIONS = /* @__PURE__ */ new Set([...ALLOWED_EXTENSIONS, ".png", ".jpg", ".jpeg", ".webp", ".tif", ".tiff", ".gif", ".avif", ".heic", ".heif", ".pcx", ".dcx", ".bmp"]);
|
|
133
135
|
var IMAGE_EXTENSIONS = /* @__PURE__ */ new Set([".png", ".jpg", ".jpeg", ".gif", ".bmp"]);
|
|
134
136
|
var PROFILE_EXTENSIONS = /* @__PURE__ */ new Set([".json"]);
|
|
135
137
|
var FIELDS_FILE_EXTENSIONS = /* @__PURE__ */ new Set([".json"]);
|
|
@@ -271,9 +273,9 @@ function detectFormatFromHeader(resolved) {
|
|
|
271
273
|
function registerParseTools(server2) {
|
|
272
274
|
server2.tool(
|
|
273
275
|
"parse_document",
|
|
274
|
-
"\uD55C\uAD6D \uBB38\uC11C \uD30C\uC77C(HWP, HWPX, PDF, XLSX, DOCX)\uACFC \uC774\uBBF8\uC9C0(PNG/JPG/WebP)\uB97C \uB9C8\uD06C\uB2E4\uC6B4\uC73C\uB85C \uBCC0\uD658\uD569\uB2C8\uB2E4. \uD30C\uC77C \uACBD\uB85C\uB97C \uC785\uB825\uD558\uBA74 \uD3EC\uB9F7\uC744 \uC790\uB3D9 \uAC10\uC9C0\uD558\uC5EC \uD14D\uC2A4\uD2B8\uB97C \uCD94\uCD9C\uD569\uB2C8\uB2E4. \uC774\uBBF8\uC9C0\uB294 OCR(\uB0B4\uC7A5 PP-OCRv5)\uC774 \uC790\uB3D9 \uC801\uC6A9\uB418\uACE0 \uD45C \uAD18\uC120\uB3C4 \uBCF5\uC6D0\uB429\uB2C8\uB2E4. \uACAC\uBCF8 \uC11C\uC2DD\uB300\uB85C \uC0C8 \uBB38\uC11C\uB97C \uC4F0\uAC70\uB098(\uC11C\uC2DD \uBCA0\uB07C\uAE30) \uBB38\uAD6C\uB97C \uACE0\uCCD0 patch_document \uB85C \uB118\uAE38 \uB9C8\uD06C\uB2E4\uC6B4\uC774\uBA74 keep_layout_tables: true \uB85C \uC77D\uC73C\uC138\uC694.",
|
|
276
|
+
"\uD55C\uAD6D \uBB38\uC11C \uD30C\uC77C(HWP, HWPX, PDF, XLSX, DOCX)\uACFC \uC774\uBBF8\uC9C0(PNG/JPG/WebP/TIFF/GIF/BMP/AVIF/HEIC/PCX)\uB97C \uB9C8\uD06C\uB2E4\uC6B4\uC73C\uB85C \uBCC0\uD658\uD569\uB2C8\uB2E4. \uD30C\uC77C \uACBD\uB85C\uB97C \uC785\uB825\uD558\uBA74 \uD3EC\uB9F7\uC744 \uC790\uB3D9 \uAC10\uC9C0\uD558\uC5EC \uD14D\uC2A4\uD2B8\uB97C \uCD94\uCD9C\uD569\uB2C8\uB2E4. \uC774\uBBF8\uC9C0\uB294 OCR(\uB0B4\uC7A5 PP-OCRv5)\uC774 \uC790\uB3D9 \uC801\uC6A9\uB418\uACE0 \uD45C \uAD18\uC120\uB3C4 \uBCF5\uC6D0\uB429\uB2C8\uB2E4. \uACAC\uBCF8 \uC11C\uC2DD\uB300\uB85C \uC0C8 \uBB38\uC11C\uB97C \uC4F0\uAC70\uB098(\uC11C\uC2DD \uBCA0\uB07C\uAE30) \uBB38\uAD6C\uB97C \uACE0\uCCD0 patch_document \uB85C \uB118\uAE38 \uB9C8\uD06C\uB2E4\uC6B4\uC774\uBA74 keep_layout_tables: true \uB85C \uC77D\uC73C\uC138\uC694.",
|
|
275
277
|
{
|
|
276
|
-
file_path: z.string().min(1).describe("\uD30C\uC2F1\uD560 \uBB38\uC11C \uD30C\uC77C\uC758 \uC808\uB300 \uACBD\uB85C (HWP, HWPX, PDF, XLSX, DOCX, PNG/JPG/WebP)"),
|
|
278
|
+
file_path: z.string().min(1).describe("\uD30C\uC2F1\uD560 \uBB38\uC11C \uD30C\uC77C\uC758 \uC808\uB300 \uACBD\uB85C (HWP, HWPX, PDF, XLSX, DOCX, PNG/JPG/WebP/TIFF/GIF/BMP/AVIF/HEIC/PCX)"),
|
|
277
279
|
ocr: z.union([z.boolean(), z.literal("force")]).optional().describe('\uC2A4\uCE94/\uC774\uBBF8\uC9C0 PDF \uD14D\uC2A4\uD2B8 OCR (\uB0B4\uC7A5 PP-OCRv5 korean, \uCCAB \uC0AC\uC6A9 \uC2DC ~18MB \uC790\uB3D9 \uB2E4\uC6B4\uB85C\uB4DC). true=\uD14D\uC2A4\uD2B8\uCE35\uC774 \uC5C6\uAC70\uB098 \uAE68\uC9C4 \uD398\uC774\uC9C0\uB9CC \uC778\uC2DD\uD558\uACE0 \uC815\uC0C1 \uD398\uC774\uC9C0\uB294 \uADF8\uB300\uB85C \uB461\uB2C8\uB2E4. "force"=\uD14D\uC2A4\uD2B8\uCE35\uC774 \uC788\uC5B4\uB3C4 \uBB34\uC2DC\uD558\uACE0 \uC804 \uD398\uC774\uC9C0 \uAC15\uC81C \uC7AC\uC778\uC2DD. parse \uACB0\uACFC\uC5D0 NEEDS_OCR \uACBD\uACE0\uAC00 \uC788\uC73C\uBA74 \uC774 \uC635\uC158\uC73C\uB85C \uC7AC\uC2DC\uB3C4\uD558\uC138\uC694'),
|
|
278
280
|
remove_header_footer: z.boolean().optional().describe("PDF \uBA38\uB9AC\uAE00/\uBC14\uB2E5\uAE00 \uC790\uB3D9 \uC81C\uAC70 (\uAE30\uBCF8 true \u2014 false\uB85C \uB044\uAE30, CLI --no-header-footer \uB300\uC751)"),
|
|
279
281
|
formula_ocr: z.boolean().optional().describe("PDF \uC218\uC2DD OCR \uD65C\uC131\uD654 (MFD+MFR ONNX, \uCCAB \uC0AC\uC6A9 \uC2DC \uBAA8\uB378 ~155MB \uC790\uB3D9 \uB2E4\uC6B4\uB85C\uB4DC, CLI --formula-ocr \uB300\uC751)"),
|
|
@@ -430,7 +432,7 @@ ${markdown}`);
|
|
|
430
432
|
break;
|
|
431
433
|
case "pdf":
|
|
432
434
|
try {
|
|
433
|
-
const { extractPdfMetadataOnly } = await import("./parser-
|
|
435
|
+
const { extractPdfMetadataOnly } = await import("./parser-7WVQ4BOA.js");
|
|
434
436
|
metadata = await extractPdfMetadataOnly(buffer);
|
|
435
437
|
} catch {
|
|
436
438
|
metadata = void 0;
|
|
@@ -607,7 +609,7 @@ ${tableMarkdown}` }]
|
|
|
607
609
|
if (!parsed.success) {
|
|
608
610
|
return { content: [{ type: "text", text: `\uD30C\uC2F1 \uC2E4\uD328: ${parsed.error}` }], isError: true };
|
|
609
611
|
}
|
|
610
|
-
const { blocksToChunks } = await import("./chunks-
|
|
612
|
+
const { blocksToChunks } = await import("./chunks-EVKTSUGA.js");
|
|
611
613
|
const chunks = blocksToChunks(parsed.blocks, { granularity, includeTableCells: include_table_cells });
|
|
612
614
|
return { content: [{ type: "text", text: capResponseText(JSON.stringify(chunks, null, 2)) }] };
|
|
613
615
|
} catch (err) {
|
|
@@ -887,7 +889,7 @@ ${previewMd}` }]
|
|
|
887
889
|
}
|
|
888
890
|
const image = new Uint8Array(await readFile2(imgResolved));
|
|
889
891
|
const ext = extname2(imgResolved).slice(1).toLowerCase();
|
|
890
|
-
const { placeSealHwpx } = await import("./seal-
|
|
892
|
+
const { placeSealHwpx } = await import("./seal-WH555ZEQ.js");
|
|
891
893
|
const result = await placeSealHwpx(buffer, [{
|
|
892
894
|
anchor,
|
|
893
895
|
occurrence,
|
|
@@ -943,7 +945,7 @@ ${previewMd}` }]
|
|
|
943
945
|
if (format !== "hwpx") {
|
|
944
946
|
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
947
|
}
|
|
946
|
-
const { addMemoHwpx } = await import("./memo-
|
|
948
|
+
const { addMemoHwpx } = await import("./memo-FOTH3KQZ.js");
|
|
947
949
|
const result = await addMemoHwpx(buffer, [{ anchor, text, author, occurrence }]);
|
|
948
950
|
await mkdir(dirname2(outPath), { recursive: true });
|
|
949
951
|
await writeOutputFile(outPath, Buffer.from(result.buffer));
|
|
@@ -985,7 +987,7 @@ ${previewMd}` }]
|
|
|
985
987
|
}
|
|
986
988
|
const original = new Uint8Array(buffer);
|
|
987
989
|
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-
|
|
990
|
+
const { needsRewrite, rewriteEdited, rewritePath } = await import("./rewrite-fallback-VMIWMLXI.js");
|
|
989
991
|
const rewrite = needsRewrite(result) ? await rewriteEdited(original, isHwpx, edited_markdown, result.success) : null;
|
|
990
992
|
const rwOut = rewrite ? safeOutputPath(rewritePath(out), /* @__PURE__ */ new Set([".hwpx"])) : void 0;
|
|
991
993
|
if (rewrite && rwOut) {
|
|
@@ -1054,7 +1056,7 @@ ${rewriteLine}` }] };
|
|
|
1054
1056
|
if (outPath && await isSameFile(outPath, resolved)) {
|
|
1055
1057
|
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
1058
|
}
|
|
1057
|
-
const { redactDocument } = await import("./redact-doc-
|
|
1059
|
+
const { redactDocument } = await import("./redact-doc-QMKBSH77.js");
|
|
1058
1060
|
const r = await redactDocument(buffer, { rules, maskChar: mask_char, filePath: file_path, dryRun: dry_run });
|
|
1059
1061
|
const MAX_LINES = 50;
|
|
1060
1062
|
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 +1131,7 @@ function registerRenderTools(server2) {
|
|
|
1129
1131
|
const { buffer, resolved } = await readValidatedFile(file_path, MAX_FILE_SIZE, /* @__PURE__ */ new Set([".hwpx", ".hwp"]));
|
|
1130
1132
|
const isHwp5 = resolved.toLowerCase().endsWith(".hwp");
|
|
1131
1133
|
if (!isHwp5 && !pages && (format === "png" || format === "svg")) {
|
|
1132
|
-
const { renderHwpxToSvg } = await import("./render-
|
|
1134
|
+
const { renderHwpxToSvg } = await import("./render-YUUT36B3.js");
|
|
1133
1135
|
const result = await renderHwpxToSvg(buffer, { highlights, reflow: true, reflowMode: reflow_mode, password });
|
|
1134
1136
|
const summary2 = [
|
|
1135
1137
|
`\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 +1143,7 @@ function registerRenderTools(server2) {
|
|
|
1141
1143
|
summary2.push(`\uC800\uC7A5: ${outPath}`);
|
|
1142
1144
|
return { content: [{ type: "text", text: summary2.join("\n") }] };
|
|
1143
1145
|
}
|
|
1144
|
-
const { rasterizeSvg } = await import("./rasterize-
|
|
1146
|
+
const { rasterizeSvg } = await import("./rasterize-NE7ODEL3.js");
|
|
1145
1147
|
const raster = await rasterizeSvg(result.svg, result.width, result.height, max_width_px ? { maxWidthPx: max_width_px } : void 0);
|
|
1146
1148
|
if (outPath) {
|
|
1147
1149
|
await mkdir2(dirname3(outPath), { recursive: true });
|
|
@@ -1156,7 +1158,7 @@ function registerRenderTools(server2) {
|
|
|
1156
1158
|
]
|
|
1157
1159
|
};
|
|
1158
1160
|
}
|
|
1159
|
-
const { renderDocument } = await import("./render-
|
|
1161
|
+
const { renderDocument } = await import("./render-YUUT36B3.js");
|
|
1160
1162
|
const { scene, assets } = await renderDocument(buffer, { format, pages, highlights, reflow: true, reflowMode: reflow_mode, maxWidthPx: max_width_px, password });
|
|
1161
1163
|
const summary = [
|
|
1162
1164
|
`\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 +1208,7 @@ function registerRenderTools(server2) {
|
|
|
1206
1208
|
try {
|
|
1207
1209
|
const { buffer } = await readValidatedFile(file_path, MAX_FILE_SIZE, /* @__PURE__ */ new Set([".hwpx", ".hwp"]));
|
|
1208
1210
|
const dir = safeOutputPath(join2(output_dir, "regions.json"), /* @__PURE__ */ new Set([".json"])).replace(/[\\/]regions\.json$/, "");
|
|
1209
|
-
const { extractRenderedRegions } = await import("./render-
|
|
1211
|
+
const { extractRenderedRegions } = await import("./render-YUUT36B3.js");
|
|
1210
1212
|
const regions = await extractRenderedRegions(buffer, { types: target, format, pages, paddingPt: padding_pt, reflow: true });
|
|
1211
1213
|
await mkdir2(dir, { recursive: true });
|
|
1212
1214
|
const ext = format === "jpeg" ? "jpg" : "png";
|
|
@@ -1242,7 +1244,7 @@ function registerRenderTools(server2) {
|
|
|
1242
1244
|
}
|
|
1243
1245
|
const { buffer } = await readValidatedFile(file_path, MAX_FILE_SIZE, /* @__PURE__ */ new Set([".hwpx", ".hwp"]));
|
|
1244
1246
|
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-
|
|
1247
|
+
const { extractTables } = await import("./visual-TROK2J5W.js");
|
|
1246
1248
|
const tables = await extractTables(buffer, { policy: visual, format, paddingPt: padding_pt });
|
|
1247
1249
|
if (dir) await mkdir2(dir, { recursive: true });
|
|
1248
1250
|
const ext = format === "jpeg" ? "jpg" : "png";
|
|
@@ -1299,7 +1301,7 @@ function registerGenerateTools(server2) {
|
|
|
1299
1301
|
try {
|
|
1300
1302
|
const out = safeOutputPath(output_path, PROFILE_EXTENSIONS);
|
|
1301
1303
|
const { buffer } = await readValidatedFile(hwpx_path);
|
|
1302
|
-
const { hwpxToProfile } = await import("./-
|
|
1304
|
+
const { hwpxToProfile } = await import("./-U7FV47XK.js");
|
|
1303
1305
|
const profile = await hwpxToProfile(buffer);
|
|
1304
1306
|
await mkdir3(dirname4(out), { recursive: true });
|
|
1305
1307
|
await writeOutputFile(out, JSON.stringify(profile, null, 2));
|
|
@@ -1452,7 +1454,7 @@ ${g.blocking.map((f) => `- ${formatGateFinding(f)}`).join("\n")}` }],
|
|
|
1452
1454
|
}
|
|
1453
1455
|
let profile;
|
|
1454
1456
|
if (profile_path) {
|
|
1455
|
-
const { parseFormatProfileJson } = await import("./profile-io-
|
|
1457
|
+
const { parseFormatProfileJson } = await import("./profile-io-BRKSGV5H.js");
|
|
1456
1458
|
profile = parseFormatProfileJson(await readFile3(safePath(profile_path, PROFILE_EXTENSIONS), "utf-8"));
|
|
1457
1459
|
}
|
|
1458
1460
|
const out = safeOutputPath(output_path, /* @__PURE__ */ new Set([".hwpx"]));
|
|
@@ -1603,7 +1605,7 @@ function registerLintTools(server2) {
|
|
|
1603
1605
|
let irBlocks;
|
|
1604
1606
|
if (file_path !== void 0) {
|
|
1605
1607
|
const { buffer, resolved } = await readValidatedFile(file_path, MAX_FILE_SIZE, ALLOWED_EXTENSIONS);
|
|
1606
|
-
const { parse: parse2 } = await import("./-
|
|
1608
|
+
const { parse: parse2 } = await import("./-U7FV47XK.js");
|
|
1607
1609
|
const parsed = await parse2(buffer, { filePath: resolved });
|
|
1608
1610
|
if (!parsed.success) throw new KordocError(`\uBB38\uC11C\uB97C \uC77D\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4 \u2014 ${parsed.error}`);
|
|
1609
1611
|
body = parsed.markdown;
|
|
@@ -1662,7 +1664,7 @@ function registerConvertTools(server2) {
|
|
|
1662
1664
|
if (!output_path && await access(outPath).then(() => true, () => false)) {
|
|
1663
1665
|
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
1666
|
}
|
|
1665
|
-
const { convertToHwpx, validateHwpx } = await import("./-
|
|
1667
|
+
const { convertToHwpx, validateHwpx } = await import("./-U7FV47XK.js");
|
|
1666
1668
|
const result = await convertToHwpx(buffer, { password, engine });
|
|
1667
1669
|
const check = await validateHwpx(result.data);
|
|
1668
1670
|
await mkdir4(dirname5(outPath), { recursive: true });
|