kordoc 4.5.0 → 4.6.0
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/LICENSE +21 -21
- package/NOTICE +176 -176
- package/README.md +958 -951
- package/THIRD_PARTY/apache-2.0.LICENSE +201 -201
- package/THIRD_PARTY/claw-hwp.LICENSE +21 -21
- package/THIRD_PARTY/hml-equation-parser.LICENSE +201 -201
- package/THIRD_PARTY/hml-equation-parser.txt +35 -35
- package/THIRD_PARTY/opendataloader-pdf.txt +32 -32
- package/THIRD_PARTY/pix2text.txt +17 -17
- package/THIRD_PARTY/rhwp-forms.txt +35 -35
- package/dist/{-CWYIC4ES.js → -DEVLQKIT.js} +12 -12
- package/dist/{chunk-M4I5F6GK.js → chunk-2CABQYTT.js} +9 -9
- package/dist/chunk-2CABQYTT.js.map +1 -0
- package/dist/{chunk-NBOVSNSR.js → chunk-2CENWSAW.js} +10 -10
- package/dist/chunk-2CENWSAW.js.map +1 -0
- package/dist/{chunk-3H5X63BQ.js → chunk-3FFPHTXD.js} +1 -1
- package/dist/chunk-3FFPHTXD.js.map +1 -0
- package/dist/{chunk-MOL7MDBG.js → chunk-3TBUDJDE.js} +1 -1
- package/dist/chunk-3TBUDJDE.js.map +1 -0
- package/dist/{chunk-5RPYBC2Q.js → chunk-6GBLFQMA.js} +1 -1
- package/dist/chunk-6GBLFQMA.js.map +1 -0
- package/dist/{chunk-GZDOWYJM.js → chunk-6XPXIG57.js} +2 -2
- package/dist/chunk-6XPXIG57.js.map +1 -0
- package/dist/{chunk-45EUJ2P6.js → chunk-7BTO44Q7.js} +37 -21
- package/dist/chunk-7BTO44Q7.js.map +1 -0
- package/dist/{chunk-GE43BE46.js → chunk-AIQ3ISQU.js} +1 -1
- package/dist/chunk-AIQ3ISQU.js.map +1 -0
- package/dist/{chunk-GLPLLT4Q.cjs → chunk-CARNWWGI.cjs} +4 -4
- package/dist/chunk-CARNWWGI.cjs.map +1 -0
- package/dist/chunk-GS7T56RP.cjs.map +1 -1
- package/dist/{chunk-TCPO6XAY.cjs → chunk-HPRGVU6A.cjs} +11 -11
- package/dist/chunk-HPRGVU6A.cjs.map +1 -0
- package/dist/{chunk-U3ZNF4SO.cjs → chunk-I42DND3B.cjs} +17 -17
- package/dist/chunk-I42DND3B.cjs.map +1 -0
- package/dist/{chunk-ZHNUH2IW.js → chunk-IBVMJIHR.js} +2 -2
- package/dist/chunk-IBVMJIHR.js.map +1 -0
- package/dist/{chunk-XYSTZIIL.js → chunk-IHK5LCYX.js} +2 -2
- package/dist/chunk-IHK5LCYX.js.map +1 -0
- package/dist/{chunk-TP4P7M4I.js → chunk-KC63W72C.js} +2 -2
- package/dist/chunk-KC63W72C.js.map +1 -0
- package/dist/{chunk-GCHH4WHT.js → chunk-KQOTL4WI.js} +2 -2
- package/dist/chunk-KQOTL4WI.js.map +1 -0
- package/dist/{chunk-ZV5OKQ3Z.cjs → chunk-MGGU3ZRK.cjs} +1 -1
- package/dist/chunk-MGGU3ZRK.cjs.map +1 -0
- package/dist/{chunk-FT2EXMMP.js → chunk-MSMSHU2F.js} +9 -9
- package/dist/chunk-MSMSHU2F.js.map +1 -0
- package/dist/{chunk-DZIXKL7E.js → chunk-O5EK52TG.js} +1 -1
- package/dist/chunk-O5EK52TG.js.map +1 -0
- package/dist/{chunk-CBUC73JM.js → chunk-OPL22SYF.js} +3 -3
- package/dist/chunk-OPL22SYF.js.map +1 -0
- package/dist/{chunk-2CF2WXBG.js → chunk-PQDNCWAZ.js} +11 -11
- package/dist/chunk-PQDNCWAZ.js.map +1 -0
- package/dist/{chunk-UEWW3DH2.js → chunk-PSAHY5XW.js} +1 -1
- package/dist/chunk-PSAHY5XW.js.map +1 -0
- package/dist/{chunk-EYLOFSA5.js → chunk-UGKXJA3W.js} +4 -3
- package/dist/chunk-UGKXJA3W.js.map +1 -0
- package/dist/{chunk-WDIPTY3Q.js → chunk-UQ4NSK66.js} +3 -3
- package/dist/chunk-UQ4NSK66.js.map +1 -0
- package/dist/{chunk-7ZQKECQT.js → chunk-VNEV6VKD.js} +2 -2
- package/dist/chunk-VNEV6VKD.js.map +1 -0
- package/dist/{chunk-7FCNOKOR.js → chunk-W34QSJFF.js} +1 -1
- package/dist/chunk-W34QSJFF.js.map +1 -0
- package/dist/{chunk-UQ6KDJWE.cjs → chunk-WX7WQTOT.cjs} +4 -3
- package/dist/chunk-WX7WQTOT.cjs.map +1 -0
- package/dist/{chunk-DCZVOIEO.cjs → chunk-X34YWRL5.cjs} +1 -1
- package/dist/chunk-X34YWRL5.cjs.map +1 -0
- package/dist/{chunk-UAFSPWU7.js → chunk-YNJDNP44.js} +1 -1
- package/dist/chunk-YNJDNP44.js.map +1 -0
- package/dist/{chunk-TTEHX4FN.js → chunk-ZYQ5X6PG.js} +4 -3
- package/dist/chunk-ZYQ5X6PG.js.map +1 -0
- package/dist/chunks-Y2VE2WCJ.js +10 -0
- package/dist/cli.js +54 -29
- package/dist/cli.js.map +1 -1
- package/dist/{formula-JLYS73QL.js → formula-ETB6MESN.js} +2 -2
- package/dist/formula-ETB6MESN.js.map +1 -0
- package/dist/{formula-LIVQSCMM.js → formula-KW4NI5IO.js} +2 -2
- package/dist/formula-KW4NI5IO.js.map +1 -0
- package/dist/{formula-CG4S7TWO.cjs → formula-WKGP3D3Y.cjs} +8 -8
- package/dist/formula-WKGP3D3Y.cjs.map +1 -0
- package/dist/{image-ocr-BWQIUUVC.js → image-ocr-C6U7YHRC.js} +6 -6
- package/dist/image-ocr-C6U7YHRC.js.map +1 -0
- package/dist/{image-ocr-EDZOUU6Q.js → image-ocr-YIBJCOUQ.js} +8 -8
- package/dist/image-ocr-YIBJCOUQ.js.map +1 -0
- package/dist/{image-ocr-KZ4MGVJ3.cjs → image-ocr-YID6TDN5.cjs} +11 -11
- package/dist/image-ocr-YID6TDN5.cjs.map +1 -0
- package/dist/index.cjs +209 -193
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -1
- package/dist/index.d.ts +13 -1
- package/dist/index.js +31 -15
- package/dist/index.js.map +1 -1
- package/dist/mcp.js +25 -23
- package/dist/mcp.js.map +1 -1
- package/dist/{models-6SIKLKRH.js → models-6VMAVZR6.js} +3 -3
- package/dist/page-range-CIRRJPXJ.js +7 -0
- package/dist/page-range-OF5I4PQY.js +8 -0
- package/dist/page-range-TPIRSA3J.cjs +8 -0
- package/dist/page-range-TPIRSA3J.cjs.map +1 -0
- package/dist/{parser-7G2QFIYZ.cjs → parser-EYCVDUJA.cjs} +33 -33
- package/dist/parser-EYCVDUJA.cjs.map +1 -0
- package/dist/{parser-JLEKXA2Z.js → parser-GFXZV2VJ.js} +11 -11
- package/dist/parser-GFXZV2VJ.js.map +1 -0
- package/dist/{parser-6OJOFJ64.js → parser-SHM3JEH6.js} +9 -9
- package/dist/parser-SHM3JEH6.js.map +1 -0
- package/dist/pdf-ocr-TMAWPOHC.cjs +13 -0
- package/dist/pdf-ocr-TMAWPOHC.cjs.map +1 -0
- package/dist/pdf-ocr-UKFYODLP.js +15 -0
- package/dist/pdf-ocr-ZG4UVUIT.js +12 -0
- package/dist/{profile-io-FMPT6VEZ.js → profile-io-FQZNNA3O.js} +3 -3
- package/dist/{rasterize-LARCX6CS.js → rasterize-QGKFNTXO.js} +2 -2
- package/dist/rasterize-QGKFNTXO.js.map +1 -0
- package/dist/{redact-7ILEAUTS.js → redact-W5K3ILQH.js} +2 -2
- package/dist/render-YFIWQYVB.js +10 -0
- package/dist/seal-GZ7NDWLR.js +10 -0
- package/dist/{setup-GUQT5ELJ.js → setup-I4I75QJU.js} +1 -1
- package/dist/setup-I4I75QJU.js.map +1 -0
- package/dist/{watch-Y2VKD2MN.js → watch-OIVXH2RN.js} +12 -12
- package/dist/watch-OIVXH2RN.js.map +1 -0
- package/package.json +103 -103
- package/templates//352/260/204/354/235/264/352/270/260/354/225/210/353/254/270_/354/230/210/354/213/234/352/260/222.json +9 -9
- package/templates//354/235/274/353/260/230/352/270/260/354/225/210/353/254/270_/354/230/210/354/213/234/352/260/222.json +24 -24
- package/dist/chunk-2CF2WXBG.js.map +0 -1
- package/dist/chunk-3H5X63BQ.js.map +0 -1
- package/dist/chunk-45EUJ2P6.js.map +0 -1
- package/dist/chunk-5RPYBC2Q.js.map +0 -1
- package/dist/chunk-7FCNOKOR.js.map +0 -1
- package/dist/chunk-7ZQKECQT.js.map +0 -1
- package/dist/chunk-CBUC73JM.js.map +0 -1
- package/dist/chunk-DCZVOIEO.cjs.map +0 -1
- package/dist/chunk-DZIXKL7E.js.map +0 -1
- package/dist/chunk-EYLOFSA5.js.map +0 -1
- package/dist/chunk-FT2EXMMP.js.map +0 -1
- package/dist/chunk-GCHH4WHT.js.map +0 -1
- package/dist/chunk-GE43BE46.js.map +0 -1
- package/dist/chunk-GLPLLT4Q.cjs.map +0 -1
- package/dist/chunk-GZDOWYJM.js.map +0 -1
- package/dist/chunk-M4I5F6GK.js.map +0 -1
- package/dist/chunk-MOL7MDBG.js.map +0 -1
- package/dist/chunk-NBOVSNSR.js.map +0 -1
- package/dist/chunk-TCPO6XAY.cjs.map +0 -1
- package/dist/chunk-TP4P7M4I.js.map +0 -1
- package/dist/chunk-TTEHX4FN.js.map +0 -1
- package/dist/chunk-U3ZNF4SO.cjs.map +0 -1
- package/dist/chunk-UAFSPWU7.js.map +0 -1
- package/dist/chunk-UEWW3DH2.js.map +0 -1
- package/dist/chunk-UQ6KDJWE.cjs.map +0 -1
- package/dist/chunk-WDIPTY3Q.js.map +0 -1
- package/dist/chunk-XYSTZIIL.js.map +0 -1
- package/dist/chunk-ZHNUH2IW.js.map +0 -1
- package/dist/chunk-ZV5OKQ3Z.cjs.map +0 -1
- package/dist/chunks-EYDY4Y6O.js +0 -10
- package/dist/formula-CG4S7TWO.cjs.map +0 -1
- package/dist/formula-JLYS73QL.js.map +0 -1
- package/dist/formula-LIVQSCMM.js.map +0 -1
- package/dist/image-ocr-BWQIUUVC.js.map +0 -1
- package/dist/image-ocr-EDZOUU6Q.js.map +0 -1
- package/dist/image-ocr-KZ4MGVJ3.cjs.map +0 -1
- package/dist/page-range-737B4EZW.js +0 -8
- package/dist/page-range-LNMXJU6W.js +0 -7
- package/dist/page-range-P7SDW6LR.cjs +0 -8
- package/dist/page-range-P7SDW6LR.cjs.map +0 -1
- package/dist/parser-6OJOFJ64.js.map +0 -1
- package/dist/parser-7G2QFIYZ.cjs.map +0 -1
- package/dist/parser-JLEKXA2Z.js.map +0 -1
- package/dist/pdf-ocr-364VNE6N.cjs +0 -13
- package/dist/pdf-ocr-364VNE6N.cjs.map +0 -1
- package/dist/pdf-ocr-OWUZLWQ3.js +0 -15
- package/dist/pdf-ocr-YQGMCT53.js +0 -12
- package/dist/rasterize-LARCX6CS.js.map +0 -1
- package/dist/render-4WHQ7JCX.js +0 -10
- package/dist/seal-BX6YA6PI.js +0 -10
- package/dist/setup-GUQT5ELJ.js.map +0 -1
- package/dist/watch-Y2VKD2MN.js.map +0 -1
- /package/dist/{-CWYIC4ES.js.map → -DEVLQKIT.js.map} +0 -0
- /package/dist/{chunks-EYDY4Y6O.js.map → chunks-Y2VE2WCJ.js.map} +0 -0
- /package/dist/{models-6SIKLKRH.js.map → models-6VMAVZR6.js.map} +0 -0
- /package/dist/{page-range-737B4EZW.js.map → page-range-CIRRJPXJ.js.map} +0 -0
- /package/dist/{page-range-LNMXJU6W.js.map → page-range-OF5I4PQY.js.map} +0 -0
- /package/dist/{pdf-ocr-OWUZLWQ3.js.map → pdf-ocr-UKFYODLP.js.map} +0 -0
- /package/dist/{pdf-ocr-YQGMCT53.js.map → pdf-ocr-ZG4UVUIT.js.map} +0 -0
- /package/dist/{profile-io-FMPT6VEZ.js.map → profile-io-FQZNNA3O.js.map} +0 -0
- /package/dist/{redact-7ILEAUTS.js.map → redact-W5K3ILQH.js.map} +0 -0
- /package/dist/{render-4WHQ7JCX.js.map → render-YFIWQYVB.js.map} +0 -0
- /package/dist/{seal-BX6YA6PI.js.map → seal-GZ7NDWLR.js.map} +0 -0
package/dist/mcp.js
CHANGED
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
SIZE_KEYS,
|
|
15
15
|
SIZE_PT_RANGE,
|
|
16
16
|
buildGongmunOptions
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-6GBLFQMA.js";
|
|
18
18
|
import {
|
|
19
19
|
BUILTIN_TEMPLATES,
|
|
20
20
|
PRESET_ALIAS,
|
|
@@ -37,25 +37,25 @@ import {
|
|
|
37
37
|
readBuiltinTemplate,
|
|
38
38
|
resolveBuiltinTemplate,
|
|
39
39
|
unknownFontWarnings
|
|
40
|
-
} from "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
40
|
+
} from "./chunk-7BTO44Q7.js";
|
|
41
|
+
import "./chunk-W34QSJFF.js";
|
|
42
|
+
import "./chunk-PSAHY5XW.js";
|
|
43
|
+
import "./chunk-3TBUDJDE.js";
|
|
44
|
+
import "./chunk-OPL22SYF.js";
|
|
45
|
+
import "./chunk-O5EK52TG.js";
|
|
46
|
+
import "./chunk-VNEV6VKD.js";
|
|
47
47
|
import {
|
|
48
48
|
blocksToMarkdown
|
|
49
|
-
} from "./chunk-
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
49
|
+
} from "./chunk-IBVMJIHR.js";
|
|
50
|
+
import "./chunk-UQ4NSK66.js";
|
|
51
|
+
import "./chunk-KC63W72C.js";
|
|
52
52
|
import {
|
|
53
53
|
KordocError,
|
|
54
54
|
VERSION,
|
|
55
55
|
classifyError,
|
|
56
56
|
sanitizeError,
|
|
57
57
|
toArrayBuffer
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-ZYQ5X6PG.js";
|
|
59
59
|
|
|
60
60
|
// src/mcp.ts
|
|
61
61
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
@@ -172,9 +172,10 @@ server.tool(
|
|
|
172
172
|
dedupe_running_headers: z.boolean().optional().describe("HWP5 \uB808\uC774\uC544\uC6C3 \uD45C \uD398\uC774\uC9C0 \uBC18\uBCF5 \uB7EC\uB2DD \uD5E4\uB354 \uC911\uBCF5 \uC81C\uAC70 (\uAE30\uBCF8 off \u2014 \uBD99\uC784\uBCC4 \uC7AC\uBC88\uD638 \uC624\uC0AD\uC81C \uC8FC\uC758, CLI --dedupe-headers \uB300\uC751)"),
|
|
173
173
|
keep_trailing_empty_cols: z.boolean().optional().describe("\uD45C \uC624\uB978\uCABD \uB05D \uBE48 \uC5F4(\uC11C\uC2DD \uC785\uB825\uB780) \uBCF4\uC874 (#47, \uAE30\uBCF8 off: \uD6C4\uD589 \uBE48 \uC5F4 \uD2B8\uB9BC, CLI --keep-empty-cols \uB300\uC751)"),
|
|
174
174
|
keep_empty_paragraphs: z.boolean().optional().describe("\uBE48 \uBB38\uB2E8 \uBCF4\uC874 \u2014 \uBCF8\uBB38\uC740 \uBE48 paragraph \uBE14\uB85D, \uD45C \uC140\uC740 \uBE48 \uC904 (#57, \uAE30\uBCF8 off, CLI --keep-empty-paragraphs \uB300\uC751)"),
|
|
175
|
-
password: z.string().optional().describe("\uC554\uD638\uB85C \uBCF4\uD638\uB41C \uBB38\uC11C\uC758 \uC5F4\uAE30 \uC554\uD638 (#59, HWPX\xB7HWP3\xB7HWP5 \uC9C0\uC6D0. \uD30C\uC2F1\uC774 ENCRYPTED\uB85C \uC2E4\uD328\uD558\uBA74 \uC774 \uC635\uC158\uC73C\uB85C \uC7AC\uC2DC\uB3C4\uD558\uC138\uC694. \uD55C\uCEF4 DRM \uBCF4\uD638 \uBB38\uC11C\uB294 \uD574\uB2F9 \uC5C6\uC74C)")
|
|
175
|
+
password: z.string().optional().describe("\uC554\uD638\uB85C \uBCF4\uD638\uB41C \uBB38\uC11C\uC758 \uC5F4\uAE30 \uC554\uD638 (#59, HWPX\xB7HWP3\xB7HWP5 \uC9C0\uC6D0. \uD30C\uC2F1\uC774 ENCRYPTED\uB85C \uC2E4\uD328\uD558\uBA74 \uC774 \uC635\uC158\uC73C\uB85C \uC7AC\uC2DC\uB3C4\uD558\uC138\uC694. \uD55C\uCEF4 DRM \uBCF4\uD638 \uBB38\uC11C\uB294 \uD574\uB2F9 \uC5C6\uC74C)"),
|
|
176
|
+
tables: z.boolean().optional().describe("PDF \uD45C \uAC10\uC9C0 (\uAE30\uBCF8 true \u2014 false\uB85C \uB044\uAE30, CLI --no-tables \uB300\uC751). \uD14C\uB450\uB9AC \uBC15\uC2A4\uB97C \uD45C\uB85C \uC624\uC778\uD574 \uC77D\uAE30 \uC21C\uC11C\uAC00 \uB4A4\uC9D1\uD788\uB294 \uBB38\uC11C(2\uB2E8 \uC2DC\uD5D8\uC9C0 \uB4F1)\uC5D0\uC11C \uC790\uC5F0 \uC77D\uAE30\uC21C \uD14D\uC2A4\uD2B8\uB9CC \uBF51\uC2B5\uB2C8\uB2E4 (#64)")
|
|
176
177
|
},
|
|
177
|
-
async ({ file_path, ocr, remove_header_footer, formula_ocr, dedupe_running_headers, keep_trailing_empty_cols, keep_empty_paragraphs, password }) => {
|
|
178
|
+
async ({ file_path, ocr, remove_header_footer, formula_ocr, dedupe_running_headers, keep_trailing_empty_cols, keep_empty_paragraphs, password, tables }) => {
|
|
178
179
|
try {
|
|
179
180
|
const { buffer, resolved } = await readValidatedFile(file_path, MAX_FILE_SIZE, PARSE_EXTENSIONS);
|
|
180
181
|
const format = detectFormat(buffer);
|
|
@@ -192,7 +193,8 @@ server.tool(
|
|
|
192
193
|
...dedupe_running_headers ? { dedupeRunningHeaders: true } : {},
|
|
193
194
|
...keep_trailing_empty_cols ? { keepTrailingEmptyCols: true } : {},
|
|
194
195
|
...keep_empty_paragraphs ? { keepEmptyParagraphs: true } : {},
|
|
195
|
-
...password ? { password } : {}
|
|
196
|
+
...password ? { password } : {},
|
|
197
|
+
...tables === false ? { tables: false } : {}
|
|
196
198
|
});
|
|
197
199
|
if (!result.success) {
|
|
198
200
|
return {
|
|
@@ -298,7 +300,7 @@ server.tool(
|
|
|
298
300
|
break;
|
|
299
301
|
case "pdf":
|
|
300
302
|
try {
|
|
301
|
-
const { extractPdfMetadataOnly } = await import("./parser-
|
|
303
|
+
const { extractPdfMetadataOnly } = await import("./parser-GFXZV2VJ.js");
|
|
302
304
|
metadata = await extractPdfMetadataOnly(buffer);
|
|
303
305
|
} catch {
|
|
304
306
|
metadata = void 0;
|
|
@@ -679,7 +681,7 @@ server.tool(
|
|
|
679
681
|
}
|
|
680
682
|
const image = new Uint8Array(await readFile(imgResolved));
|
|
681
683
|
const ext = extname(imgResolved).slice(1).toLowerCase();
|
|
682
|
-
const { placeSealHwpx } = await import("./seal-
|
|
684
|
+
const { placeSealHwpx } = await import("./seal-GZ7NDWLR.js");
|
|
683
685
|
const result = await placeSealHwpx(buffer, [{
|
|
684
686
|
anchor,
|
|
685
687
|
occurrence,
|
|
@@ -781,7 +783,7 @@ server.tool(
|
|
|
781
783
|
}
|
|
782
784
|
const outPath = output_path ? safeOutputPath(output_path, /* @__PURE__ */ new Set([format === "png" ? ".png" : ".svg"])) : void 0;
|
|
783
785
|
const { buffer } = await readValidatedFile(file_path, MAX_FILE_SIZE, /* @__PURE__ */ new Set([".hwpx"]));
|
|
784
|
-
const { renderHwpxToSvg } = await import("./render-
|
|
786
|
+
const { renderHwpxToSvg } = await import("./render-YFIWQYVB.js");
|
|
785
787
|
const result = await renderHwpxToSvg(buffer, { highlights, reflow: true, reflowMode: reflow_mode });
|
|
786
788
|
const summary = [
|
|
787
789
|
`\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})`,
|
|
@@ -793,7 +795,7 @@ server.tool(
|
|
|
793
795
|
summary.push(`\uC800\uC7A5: ${outPath}`);
|
|
794
796
|
return { content: [{ type: "text", text: summary.join("\n") }] };
|
|
795
797
|
}
|
|
796
|
-
const { rasterizeSvg } = await import("./rasterize-
|
|
798
|
+
const { rasterizeSvg } = await import("./rasterize-QGKFNTXO.js");
|
|
797
799
|
const raster = await rasterizeSvg(result.svg, result.width, result.height);
|
|
798
800
|
if (outPath) {
|
|
799
801
|
await mkdir(dirname(outPath), { recursive: true });
|
|
@@ -838,7 +840,7 @@ server.tool(
|
|
|
838
840
|
if (!parsed.success) {
|
|
839
841
|
return { content: [{ type: "text", text: `\uD30C\uC2F1 \uC2E4\uD328: ${parsed.error}` }], isError: true };
|
|
840
842
|
}
|
|
841
|
-
const { redactMarkdown } = await import("./redact-
|
|
843
|
+
const { redactMarkdown } = await import("./redact-W5K3ILQH.js");
|
|
842
844
|
const r = redactMarkdown(parsed.markdown, { rules, maskChar: mask_char });
|
|
843
845
|
const byRule = /* @__PURE__ */ new Map();
|
|
844
846
|
for (const h of r.hits) byRule.set(h.rule, (byRule.get(h.rule) ?? 0) + 1);
|
|
@@ -891,7 +893,7 @@ server.tool(
|
|
|
891
893
|
if (!parsed.success) {
|
|
892
894
|
return { content: [{ type: "text", text: `\uD30C\uC2F1 \uC2E4\uD328: ${parsed.error}` }], isError: true };
|
|
893
895
|
}
|
|
894
|
-
const { blocksToChunks } = await import("./chunks-
|
|
896
|
+
const { blocksToChunks } = await import("./chunks-Y2VE2WCJ.js");
|
|
895
897
|
const chunks = blocksToChunks(parsed.blocks, { granularity, includeTableCells: include_table_cells });
|
|
896
898
|
return { content: [{ type: "text", text: capResponseText(JSON.stringify(chunks, null, 2)) }] };
|
|
897
899
|
} catch (err) {
|
|
@@ -910,7 +912,7 @@ server.tool(
|
|
|
910
912
|
try {
|
|
911
913
|
const out = safeOutputPath(output_path, PROFILE_EXTENSIONS);
|
|
912
914
|
const { buffer } = await readValidatedFile(hwpx_path);
|
|
913
|
-
const { hwpxToProfile } = await import("./-
|
|
915
|
+
const { hwpxToProfile } = await import("./-DEVLQKIT.js");
|
|
914
916
|
const profile = await hwpxToProfile(buffer);
|
|
915
917
|
await mkdir(dirname(out), { recursive: true });
|
|
916
918
|
await writeFile(out, JSON.stringify(profile, null, 2));
|
|
@@ -999,7 +1001,7 @@ server.tool(
|
|
|
999
1001
|
}
|
|
1000
1002
|
let profile;
|
|
1001
1003
|
if (profile_path) {
|
|
1002
|
-
const { parseFormatProfileJson } = await import("./profile-io-
|
|
1004
|
+
const { parseFormatProfileJson } = await import("./profile-io-FQZNNA3O.js");
|
|
1003
1005
|
profile = parseFormatProfileJson(await readFile(safePath(profile_path, PROFILE_EXTENSIONS), "utf-8"));
|
|
1004
1006
|
}
|
|
1005
1007
|
const out = safeOutputPath(output_path, /* @__PURE__ */ new Set([".hwpx"]));
|