kordoc 4.22.7 → 4.22.9
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 +7 -5
- package/dist/{-O7EP5UQ2.js → -KJW567ZH.js} +11 -11
- package/dist/{chunk-CRMEBMMW.js → chunk-3MTKUEA7.js} +4 -4
- package/dist/{chunk-DLAPQKGK.js → chunk-55XTFFLH.js} +11 -4
- package/dist/chunk-55XTFFLH.js.map +1 -0
- package/dist/{chunk-DXJRDFCT.js → chunk-6LM4CAOF.js} +2 -2
- package/dist/chunk-6LM4CAOF.js.map +1 -0
- package/dist/{chunk-BHSATDA7.js → chunk-7PBVL7NL.js} +2 -2
- package/dist/{chunk-CVKSBUIO.js → chunk-7RVYIPLH.js} +2 -2
- package/dist/{chunk-PILIRK7O.js → chunk-AX3XT5Y7.js} +10 -3
- package/dist/chunk-AX3XT5Y7.js.map +1 -0
- package/dist/{chunk-DFBGN2TG.js → chunk-AZUWSGMI.js} +2 -2
- package/dist/{chunk-R3T4RTQL.cjs → chunk-BTLQOIES.cjs} +30 -23
- package/dist/chunk-BTLQOIES.cjs.map +1 -0
- package/dist/{chunk-BIF35Q4D.js → chunk-CKWCSQGW.js} +11 -11
- package/dist/{chunk-ZNSWN4JM.js → chunk-D44JWJPI.js} +2 -2
- package/dist/{chunk-CEOOL37E.js → chunk-DF6NB52F.js} +4 -4
- package/dist/{chunk-FJ45NNLA.cjs → chunk-EREKI4DD.cjs} +2 -2
- package/dist/{chunk-FJ45NNLA.cjs.map → chunk-EREKI4DD.cjs.map} +1 -1
- package/dist/{chunk-V2SJJHJH.js → chunk-F6C4UO55.js} +5 -3
- package/dist/{chunk-V2SJJHJH.js.map → chunk-F6C4UO55.js.map} +1 -1
- package/dist/{chunk-BFAYABLC.js → chunk-MLTGRR6C.js} +5 -3
- package/dist/{chunk-BFAYABLC.js.map → chunk-MLTGRR6C.js.map} +1 -1
- package/dist/{chunk-D4YBFNWK.js → chunk-NT54LN6C.js} +123 -15
- package/dist/chunk-NT54LN6C.js.map +1 -0
- package/dist/{chunk-QYFBXJGK.js → chunk-OREE2GWG.js} +2 -2
- package/dist/{chunk-CIDWITQN.cjs → chunk-Q3GZMZTK.cjs} +24 -24
- package/dist/{chunk-CIDWITQN.cjs.map → chunk-Q3GZMZTK.cjs.map} +1 -1
- package/dist/{chunk-VYH2ATWU.js → chunk-R5TMMRVG.js} +2 -2
- package/dist/{chunk-S34OVRKD.cjs → chunk-SO4ZYWYE.cjs} +9 -7
- package/dist/chunk-SO4ZYWYE.cjs.map +1 -0
- package/dist/{chunk-F537QK7M.cjs → chunk-SU6ABNIX.cjs} +3 -3
- package/dist/{chunk-F537QK7M.cjs.map → chunk-SU6ABNIX.cjs.map} +1 -1
- package/dist/{chunk-WBR62IXV.js → chunk-UNFXTOU3.js} +3 -3
- package/dist/{chunk-ZW3RY4YT.js → chunk-UPZISYRP.js} +2 -2
- package/dist/{chunk-5S4UCIGP.js → chunk-VH2QBIUA.js} +2 -2
- package/dist/{chunk-6U2O5LAV.js → chunk-VQ5DOQZO.js} +3 -3
- package/dist/{chunk-TN4SSNES.cjs → chunk-VSH7EV3W.cjs} +3 -3
- package/dist/{chunk-TN4SSNES.cjs.map → chunk-VSH7EV3W.cjs.map} +1 -1
- package/dist/{chunk-OTCH63U3.js → chunk-XSRXVLOL.js} +2 -2
- package/dist/{chunk-RHHRVPLL.js → chunk-Z4SUS7JW.js} +2 -2
- package/dist/{chunk-YVRARYLN.js → chunk-ZBUOPXGD.js} +2 -2
- package/dist/{chunk-5VCZDP2K.js → chunk-ZP6SRHAD.js} +2 -2
- package/dist/chunks-YCPWFWFT.js +10 -0
- package/dist/cli.js +30 -30
- package/dist/{formula-EQ2KQA5T.js → formula-47QIFQ7V.js} +4 -4
- package/dist/{formula-RH55FUJF.js → formula-GZEMCXLD.js} +3 -3
- package/dist/{formula-3M6U2J7S.cjs → formula-JCG77RAE.cjs} +9 -9
- package/dist/{formula-3M6U2J7S.cjs.map → formula-JCG77RAE.cjs.map} +1 -1
- package/dist/{image-ocr-KIKAO43E.js → image-ocr-FAHJNFDG.js} +9 -9
- package/dist/{image-ocr-LO2GZKA5.js → image-ocr-HEKAORHV.js} +6 -6
- package/dist/{image-ocr-DP4YTLGN.cjs → image-ocr-RTS5BZRM.cjs} +17 -17
- package/dist/{image-ocr-DP4YTLGN.cjs.map → image-ocr-RTS5BZRM.cjs.map} +1 -1
- package/dist/index.cjs +543 -435
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +123 -15
- package/dist/index.js.map +1 -1
- package/dist/mcp.js +22 -22
- package/dist/{model-bundle-EAQ6LWS5.js → model-bundle-IN3RQ52S.js} +5 -5
- package/dist/{models-ZN6JAI4Q.js → models-FHSKU7WB.js} +5 -5
- package/dist/{parse-worker-v2-UKFFINUH.js → parse-worker-v2-I3A77UZB.js} +12 -12
- package/dist/{parser-CGKXEB3U.cjs → parser-A4SIJK2I.cjs} +157 -157
- package/dist/{parser-CGKXEB3U.cjs.map → parser-A4SIJK2I.cjs.map} +1 -1
- package/dist/{parser-DFV3VDWX.js → parser-JDLV2EI4.js} +12 -12
- package/dist/{parser-TJFS44BI.js → parser-ZLZRQLZU.js} +9 -9
- package/dist/pdf-ocr-MKSW5GJ7.cjs +31 -0
- package/dist/{pdf-ocr-U5MFMNCW.cjs.map → pdf-ocr-MKSW5GJ7.cjs.map} +1 -1
- package/dist/{pdf-ocr-CATVQJ2I.js → pdf-ocr-SJKJ7JT7.js} +6 -6
- package/dist/{pdf-ocr-EQXJAKHB.js → pdf-ocr-VIEII6TD.js} +9 -9
- package/dist/{profile-io-5IG6SSMK.js → profile-io-ZPCTNRBM.js} +3 -3
- package/dist/{rasterize-W4TJFQBT.js → rasterize-QT7IPC27.js} +3 -3
- package/dist/{redact-doc-LZ3PY2LX.js → redact-doc-64PLXN3U.js} +11 -11
- package/dist/{render-N2QA335I.js → render-43RSFAGY.js} +7 -7
- package/dist/seal-RQZTBH54.js +10 -0
- package/dist/{setup-5Y2UAWZG.js → setup-46VYX5XM.js} +3 -3
- package/dist/visual-JFUP46UP.js +21 -0
- package/dist/{watch-2MLCRQZQ.js → watch-ZBBQKEKD.js} +12 -12
- package/package.json +1 -1
- package/dist/chunk-D4YBFNWK.js.map +0 -1
- package/dist/chunk-DLAPQKGK.js.map +0 -1
- package/dist/chunk-DXJRDFCT.js.map +0 -1
- package/dist/chunk-PILIRK7O.js.map +0 -1
- package/dist/chunk-R3T4RTQL.cjs.map +0 -1
- package/dist/chunk-S34OVRKD.cjs.map +0 -1
- package/dist/chunks-MPPNEL5A.js +0 -10
- package/dist/pdf-ocr-U5MFMNCW.cjs +0 -31
- package/dist/seal-FYJZMW4G.js +0 -10
- package/dist/visual-VQGE67RU.js +0 -21
- /package/dist/{-O7EP5UQ2.js.map → -KJW567ZH.js.map} +0 -0
- /package/dist/{chunk-CRMEBMMW.js.map → chunk-3MTKUEA7.js.map} +0 -0
- /package/dist/{chunk-BHSATDA7.js.map → chunk-7PBVL7NL.js.map} +0 -0
- /package/dist/{chunk-CVKSBUIO.js.map → chunk-7RVYIPLH.js.map} +0 -0
- /package/dist/{chunk-DFBGN2TG.js.map → chunk-AZUWSGMI.js.map} +0 -0
- /package/dist/{chunk-BIF35Q4D.js.map → chunk-CKWCSQGW.js.map} +0 -0
- /package/dist/{chunk-ZNSWN4JM.js.map → chunk-D44JWJPI.js.map} +0 -0
- /package/dist/{chunk-CEOOL37E.js.map → chunk-DF6NB52F.js.map} +0 -0
- /package/dist/{chunk-QYFBXJGK.js.map → chunk-OREE2GWG.js.map} +0 -0
- /package/dist/{chunk-VYH2ATWU.js.map → chunk-R5TMMRVG.js.map} +0 -0
- /package/dist/{chunk-WBR62IXV.js.map → chunk-UNFXTOU3.js.map} +0 -0
- /package/dist/{chunk-ZW3RY4YT.js.map → chunk-UPZISYRP.js.map} +0 -0
- /package/dist/{chunk-5S4UCIGP.js.map → chunk-VH2QBIUA.js.map} +0 -0
- /package/dist/{chunk-6U2O5LAV.js.map → chunk-VQ5DOQZO.js.map} +0 -0
- /package/dist/{chunk-OTCH63U3.js.map → chunk-XSRXVLOL.js.map} +0 -0
- /package/dist/{chunk-RHHRVPLL.js.map → chunk-Z4SUS7JW.js.map} +0 -0
- /package/dist/{chunk-YVRARYLN.js.map → chunk-ZBUOPXGD.js.map} +0 -0
- /package/dist/{chunk-5VCZDP2K.js.map → chunk-ZP6SRHAD.js.map} +0 -0
- /package/dist/{chunks-MPPNEL5A.js.map → chunks-YCPWFWFT.js.map} +0 -0
- /package/dist/{formula-EQ2KQA5T.js.map → formula-47QIFQ7V.js.map} +0 -0
- /package/dist/{formula-RH55FUJF.js.map → formula-GZEMCXLD.js.map} +0 -0
- /package/dist/{image-ocr-KIKAO43E.js.map → image-ocr-FAHJNFDG.js.map} +0 -0
- /package/dist/{image-ocr-LO2GZKA5.js.map → image-ocr-HEKAORHV.js.map} +0 -0
- /package/dist/{model-bundle-EAQ6LWS5.js.map → model-bundle-IN3RQ52S.js.map} +0 -0
- /package/dist/{models-ZN6JAI4Q.js.map → models-FHSKU7WB.js.map} +0 -0
- /package/dist/{parse-worker-v2-UKFFINUH.js.map → parse-worker-v2-I3A77UZB.js.map} +0 -0
- /package/dist/{parser-DFV3VDWX.js.map → parser-JDLV2EI4.js.map} +0 -0
- /package/dist/{parser-TJFS44BI.js.map → parser-ZLZRQLZU.js.map} +0 -0
- /package/dist/{pdf-ocr-CATVQJ2I.js.map → pdf-ocr-SJKJ7JT7.js.map} +0 -0
- /package/dist/{pdf-ocr-EQXJAKHB.js.map → pdf-ocr-VIEII6TD.js.map} +0 -0
- /package/dist/{profile-io-5IG6SSMK.js.map → profile-io-ZPCTNRBM.js.map} +0 -0
- /package/dist/{rasterize-W4TJFQBT.js.map → rasterize-QT7IPC27.js.map} +0 -0
- /package/dist/{redact-doc-LZ3PY2LX.js.map → redact-doc-64PLXN3U.js.map} +0 -0
- /package/dist/{render-N2QA335I.js.map → render-43RSFAGY.js.map} +0 -0
- /package/dist/{seal-FYJZMW4G.js.map → seal-RQZTBH54.js.map} +0 -0
- /package/dist/{setup-5Y2UAWZG.js.map → setup-46VYX5XM.js.map} +0 -0
- /package/dist/{visual-VQGE67RU.js.map → visual-JFUP46UP.js.map} +0 -0
- /package/dist/{watch-2MLCRQZQ.js.map → watch-ZBBQKEKD.js.map} +0 -0
package/dist/mcp.js
CHANGED
|
@@ -38,33 +38,33 @@ import {
|
|
|
38
38
|
resolveBuiltinTemplate,
|
|
39
39
|
unknownFontWarnings,
|
|
40
40
|
usesGaejosikMunche
|
|
41
|
-
} from "./chunk-
|
|
42
|
-
import "./chunk-
|
|
41
|
+
} from "./chunk-CKWCSQGW.js";
|
|
42
|
+
import "./chunk-UPZISYRP.js";
|
|
43
43
|
import {
|
|
44
44
|
detectFormat,
|
|
45
45
|
detectOle2Format,
|
|
46
46
|
detectZipFormat,
|
|
47
47
|
extractHwp5MetadataOnly
|
|
48
|
-
} from "./chunk-
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
48
|
+
} from "./chunk-NT54LN6C.js";
|
|
49
|
+
import "./chunk-VH2QBIUA.js";
|
|
50
|
+
import "./chunk-XSRXVLOL.js";
|
|
51
51
|
import "./chunk-VKVDMH7X.js";
|
|
52
52
|
import "./chunk-VQFA55IC.js";
|
|
53
53
|
import "./chunk-BYMPPVT3.js";
|
|
54
|
-
import "./chunk-
|
|
54
|
+
import "./chunk-6LM4CAOF.js";
|
|
55
55
|
import {
|
|
56
56
|
blocksToMarkdown
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-F6C4UO55.js";
|
|
58
58
|
import {
|
|
59
59
|
assertWithinRoot,
|
|
60
60
|
getAccessRoot,
|
|
61
61
|
isOfflineMode
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-ZP6SRHAD.js";
|
|
63
63
|
import {
|
|
64
64
|
extractFormFields,
|
|
65
65
|
fillWithUniqueGuard
|
|
66
|
-
} from "./chunk-
|
|
67
|
-
import "./chunk-
|
|
66
|
+
} from "./chunk-UNFXTOU3.js";
|
|
67
|
+
import "./chunk-7RVYIPLH.js";
|
|
68
68
|
import {
|
|
69
69
|
KordocError,
|
|
70
70
|
VERSION,
|
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
routeConsoleToStderr,
|
|
73
73
|
sanitizeError,
|
|
74
74
|
toArrayBuffer
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-AZUWSGMI.js";
|
|
76
76
|
import "./chunk-3WSNLH4B.js";
|
|
77
77
|
|
|
78
78
|
// src/mcp.ts
|
|
@@ -371,7 +371,7 @@ ${markdown}`);
|
|
|
371
371
|
break;
|
|
372
372
|
case "pdf":
|
|
373
373
|
try {
|
|
374
|
-
const { extractPdfMetadataOnly } = await import("./parser-
|
|
374
|
+
const { extractPdfMetadataOnly } = await import("./parser-JDLV2EI4.js");
|
|
375
375
|
metadata = await extractPdfMetadataOnly(buffer);
|
|
376
376
|
} catch {
|
|
377
377
|
metadata = void 0;
|
|
@@ -548,7 +548,7 @@ ${tableMarkdown}` }]
|
|
|
548
548
|
if (!parsed.success) {
|
|
549
549
|
return { content: [{ type: "text", text: `\uD30C\uC2F1 \uC2E4\uD328: ${parsed.error}` }], isError: true };
|
|
550
550
|
}
|
|
551
|
-
const { blocksToChunks } = await import("./chunks-
|
|
551
|
+
const { blocksToChunks } = await import("./chunks-YCPWFWFT.js");
|
|
552
552
|
const chunks = blocksToChunks(parsed.blocks, { granularity, includeTableCells: include_table_cells });
|
|
553
553
|
return { content: [{ type: "text", text: capResponseText(JSON.stringify(chunks, null, 2)) }] };
|
|
554
554
|
} catch (err) {
|
|
@@ -818,7 +818,7 @@ ${previewMd}` }]
|
|
|
818
818
|
}
|
|
819
819
|
const image = new Uint8Array(await readFile2(imgResolved));
|
|
820
820
|
const ext = extname2(imgResolved).slice(1).toLowerCase();
|
|
821
|
-
const { placeSealHwpx } = await import("./seal-
|
|
821
|
+
const { placeSealHwpx } = await import("./seal-RQZTBH54.js");
|
|
822
822
|
const result = await placeSealHwpx(buffer, [{
|
|
823
823
|
anchor,
|
|
824
824
|
occurrence,
|
|
@@ -935,7 +935,7 @@ ${previewMd}` }]
|
|
|
935
935
|
if (outPath && await isSameFile(outPath, resolved)) {
|
|
936
936
|
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 };
|
|
937
937
|
}
|
|
938
|
-
const { redactDocument } = await import("./redact-doc-
|
|
938
|
+
const { redactDocument } = await import("./redact-doc-64PLXN3U.js");
|
|
939
939
|
const r = await redactDocument(buffer, { rules, maskChar: mask_char, filePath: file_path, dryRun: dry_run });
|
|
940
940
|
const MAX_LINES = 50;
|
|
941
941
|
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}`);
|
|
@@ -1009,7 +1009,7 @@ function registerRenderTools(server2) {
|
|
|
1009
1009
|
const { buffer, resolved } = await readValidatedFile(file_path, MAX_FILE_SIZE, /* @__PURE__ */ new Set([".hwpx", ".hwp"]));
|
|
1010
1010
|
const isHwp5 = resolved.toLowerCase().endsWith(".hwp");
|
|
1011
1011
|
if (!isHwp5 && !pages && (format === "png" || format === "svg")) {
|
|
1012
|
-
const { renderHwpxToSvg } = await import("./render-
|
|
1012
|
+
const { renderHwpxToSvg } = await import("./render-43RSFAGY.js");
|
|
1013
1013
|
const result = await renderHwpxToSvg(buffer, { highlights, reflow: true, reflowMode: reflow_mode });
|
|
1014
1014
|
const summary2 = [
|
|
1015
1015
|
`\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})`,
|
|
@@ -1021,7 +1021,7 @@ function registerRenderTools(server2) {
|
|
|
1021
1021
|
summary2.push(`\uC800\uC7A5: ${outPath}`);
|
|
1022
1022
|
return { content: [{ type: "text", text: summary2.join("\n") }] };
|
|
1023
1023
|
}
|
|
1024
|
-
const { rasterizeSvg } = await import("./rasterize-
|
|
1024
|
+
const { rasterizeSvg } = await import("./rasterize-QT7IPC27.js");
|
|
1025
1025
|
const raster = await rasterizeSvg(result.svg, result.width, result.height, max_width_px ? { maxWidthPx: max_width_px } : void 0);
|
|
1026
1026
|
if (outPath) {
|
|
1027
1027
|
await mkdir2(dirname3(outPath), { recursive: true });
|
|
@@ -1036,7 +1036,7 @@ function registerRenderTools(server2) {
|
|
|
1036
1036
|
]
|
|
1037
1037
|
};
|
|
1038
1038
|
}
|
|
1039
|
-
const { renderDocument } = await import("./render-
|
|
1039
|
+
const { renderDocument } = await import("./render-43RSFAGY.js");
|
|
1040
1040
|
const { scene, assets } = await renderDocument(buffer, { format, pages, highlights, reflow: true, reflowMode: reflow_mode, maxWidthPx: max_width_px });
|
|
1041
1041
|
const summary = [
|
|
1042
1042
|
`\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})`,
|
|
@@ -1086,7 +1086,7 @@ function registerRenderTools(server2) {
|
|
|
1086
1086
|
try {
|
|
1087
1087
|
const { buffer } = await readValidatedFile(file_path, MAX_FILE_SIZE, /* @__PURE__ */ new Set([".hwpx", ".hwp"]));
|
|
1088
1088
|
const dir = safeOutputPath(join2(output_dir, "regions.json"), /* @__PURE__ */ new Set([".json"])).replace(/[\\/]regions\.json$/, "");
|
|
1089
|
-
const { extractRenderedRegions } = await import("./render-
|
|
1089
|
+
const { extractRenderedRegions } = await import("./render-43RSFAGY.js");
|
|
1090
1090
|
const regions = await extractRenderedRegions(buffer, { types: target, format, pages, paddingPt: padding_pt, reflow: true });
|
|
1091
1091
|
await mkdir2(dir, { recursive: true });
|
|
1092
1092
|
const ext = format === "jpeg" ? "jpg" : "png";
|
|
@@ -1122,7 +1122,7 @@ function registerRenderTools(server2) {
|
|
|
1122
1122
|
}
|
|
1123
1123
|
const { buffer } = await readValidatedFile(file_path, MAX_FILE_SIZE, /* @__PURE__ */ new Set([".hwpx", ".hwp"]));
|
|
1124
1124
|
const dir = output_dir ? safeOutputPath(join2(output_dir, "tables.json"), /* @__PURE__ */ new Set([".json"])).replace(/[\\/]tables\.json$/, "") : void 0;
|
|
1125
|
-
const { extractTables } = await import("./visual-
|
|
1125
|
+
const { extractTables } = await import("./visual-JFUP46UP.js");
|
|
1126
1126
|
const tables = await extractTables(buffer, { policy: visual, format, paddingPt: padding_pt });
|
|
1127
1127
|
if (dir) await mkdir2(dir, { recursive: true });
|
|
1128
1128
|
const ext = format === "jpeg" ? "jpg" : "png";
|
|
@@ -1179,7 +1179,7 @@ function registerGenerateTools(server2) {
|
|
|
1179
1179
|
try {
|
|
1180
1180
|
const out = safeOutputPath(output_path, PROFILE_EXTENSIONS);
|
|
1181
1181
|
const { buffer } = await readValidatedFile(hwpx_path);
|
|
1182
|
-
const { hwpxToProfile } = await import("./-
|
|
1182
|
+
const { hwpxToProfile } = await import("./-KJW567ZH.js");
|
|
1183
1183
|
const profile = await hwpxToProfile(buffer);
|
|
1184
1184
|
await mkdir3(dirname4(out), { recursive: true });
|
|
1185
1185
|
await writeOutputFile(out, JSON.stringify(profile, null, 2));
|
|
@@ -1292,7 +1292,7 @@ function registerGenerateTools(server2) {
|
|
|
1292
1292
|
}
|
|
1293
1293
|
let profile;
|
|
1294
1294
|
if (profile_path) {
|
|
1295
|
-
const { parseFormatProfileJson } = await import("./profile-io-
|
|
1295
|
+
const { parseFormatProfileJson } = await import("./profile-io-ZPCTNRBM.js");
|
|
1296
1296
|
profile = parseFormatProfileJson(await readFile3(safePath(profile_path, PROFILE_EXTENSIONS), "utf-8"));
|
|
1297
1297
|
}
|
|
1298
1298
|
const out = safeOutputPath(output_path, /* @__PURE__ */ new Set([".hwpx"]));
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
ALL_OCR_MODELS
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7PBVL7NL.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-ZBUOPXGD.js";
|
|
10
|
+
import "./chunk-ZP6SRHAD.js";
|
|
11
|
+
import "./chunk-AZUWSGMI.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-IN3RQ52S.js.map
|
|
@@ -17,10 +17,10 @@ import {
|
|
|
17
17
|
ocrSourcePath,
|
|
18
18
|
parseCharacterDict,
|
|
19
19
|
resolveOcrModels
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-7PBVL7NL.js";
|
|
21
|
+
import "./chunk-ZBUOPXGD.js";
|
|
22
|
+
import "./chunk-ZP6SRHAD.js";
|
|
23
|
+
import "./chunk-AZUWSGMI.js";
|
|
24
24
|
export {
|
|
25
25
|
ALL_OCR_MODELS,
|
|
26
26
|
DEFAULT_OCR_MODELS,
|
|
@@ -40,4 +40,4 @@ export {
|
|
|
40
40
|
parseCharacterDict,
|
|
41
41
|
resolveOcrModels
|
|
42
42
|
};
|
|
43
|
-
//# sourceMappingURL=models-
|
|
43
|
+
//# sourceMappingURL=models-FHSKU7WB.js.map
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
parseWorkerFile
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-VQ5DOQZO.js";
|
|
5
|
+
import "./chunk-CKWCSQGW.js";
|
|
6
|
+
import "./chunk-UPZISYRP.js";
|
|
7
|
+
import "./chunk-NT54LN6C.js";
|
|
8
|
+
import "./chunk-VH2QBIUA.js";
|
|
9
|
+
import "./chunk-XSRXVLOL.js";
|
|
10
10
|
import "./chunk-VKVDMH7X.js";
|
|
11
11
|
import "./chunk-VQFA55IC.js";
|
|
12
12
|
import {
|
|
13
13
|
validateOcrOptions
|
|
14
14
|
} from "./chunk-BYMPPVT3.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-6LM4CAOF.js";
|
|
16
|
+
import "./chunk-F6C4UO55.js";
|
|
17
|
+
import "./chunk-UNFXTOU3.js";
|
|
18
|
+
import "./chunk-7RVYIPLH.js";
|
|
19
19
|
import {
|
|
20
20
|
VERSION,
|
|
21
21
|
sanitizeError
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-AZUWSGMI.js";
|
|
23
23
|
import "./chunk-3WSNLH4B.js";
|
|
24
24
|
|
|
25
25
|
// src/cli/parse-worker-v2.ts
|
|
@@ -311,4 +311,4 @@ export {
|
|
|
311
311
|
runParseWorkerV2,
|
|
312
312
|
toParseOptions
|
|
313
313
|
};
|
|
314
|
-
//# sourceMappingURL=parse-worker-v2-
|
|
314
|
+
//# sourceMappingURL=parse-worker-v2-I3A77UZB.js.map
|