kordoc 4.22.13 → 4.22.14
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 +6 -5
- package/dist/{-WQIGIQTE.js → -AF5OVQ2B.js} +11 -11
- package/dist/{chunk-T4JZ7DGA.js → chunk-2HLWRP2W.js} +2 -2
- package/dist/{chunk-LKHXRJX2.js → chunk-5IWMX3MX.js} +2 -2
- package/dist/{chunk-47NQ362T.js → chunk-634XJS2B.js} +2 -2
- package/dist/{chunk-EQNLV4YH.js → chunk-6LKB7UWJ.js} +2 -2
- package/dist/{chunk-M3YLZLHF.js → chunk-AA7VSDW7.js} +3 -3
- package/dist/{chunk-DUTPIML6.js → chunk-DERMNCUV.js} +2 -2
- package/dist/{chunk-DO3TPBBJ.js → chunk-DWP5CLVR.js} +2 -2
- package/dist/{chunk-W5B45M7Z.js → chunk-EAUI4MGW.js} +4 -4
- package/dist/{chunk-T2BVIFDL.js → chunk-EMC23F72.js} +4 -4
- package/dist/{chunk-ZEVEVTRG.cjs → chunk-F4IXPKBU.cjs} +6 -6
- package/dist/{chunk-ZEVEVTRG.cjs.map → chunk-F4IXPKBU.cjs.map} +1 -1
- package/dist/{chunk-AEDBCPFA.js → chunk-FJ5RGHZW.js} +12 -12
- package/dist/chunk-FJ5RGHZW.js.map +1 -0
- package/dist/{chunk-3FXLQRWO.js → chunk-FN462MNZ.js} +4 -4
- package/dist/{chunk-MKRVPDDJ.js → chunk-FNF3IGCT.js} +2 -2
- package/dist/{chunk-Q7BAXRRK.js → chunk-H2J3WNB3.js} +3 -3
- package/dist/{chunk-FKMKZ3CV.js → chunk-IE6LE6W3.js} +2 -2
- package/dist/{chunk-FVHGH6DG.js → chunk-JKSHF4LV.js} +3 -3
- package/dist/{chunk-JOHVSCHT.cjs → chunk-KNG6HPBO.cjs} +2 -2
- package/dist/{chunk-JOHVSCHT.cjs.map → chunk-KNG6HPBO.cjs.map} +1 -1
- package/dist/{chunk-PE3PGTLM.js → chunk-LVKASU3G.js} +2 -2
- package/dist/{chunk-GZEVDQ7S.cjs → chunk-M6LVRVKB.cjs} +3 -3
- package/dist/{chunk-GZEVDQ7S.cjs.map → chunk-M6LVRVKB.cjs.map} +1 -1
- package/dist/{chunk-GBJNTGVV.js → chunk-NMA5P7SJ.js} +2 -2
- package/dist/{chunk-YD4TF6JI.js → chunk-PFVDY2EK.js} +2 -2
- package/dist/{chunk-RQII7NRF.js → chunk-PHULZF6L.js} +2 -2
- package/dist/{chunk-GDLEO7SO.cjs → chunk-SHJPQ3QB.cjs} +23 -23
- package/dist/{chunk-GDLEO7SO.cjs.map → chunk-SHJPQ3QB.cjs.map} +1 -1
- package/dist/{chunk-6VNSISFI.js → chunk-SXSBYB4M.js} +34 -12
- package/dist/chunk-SXSBYB4M.js.map +1 -0
- package/dist/{chunk-EMEEVTP2.js → chunk-THAL2XH4.js} +2 -2
- package/dist/{chunk-KMYZ2SBN.cjs → chunk-TMJJKLNC.cjs} +24 -24
- package/dist/{chunk-KMYZ2SBN.cjs.map → chunk-TMJJKLNC.cjs.map} +1 -1
- package/dist/{chunk-AXKG24PC.cjs → chunk-WHNF67YI.cjs} +3 -3
- package/dist/{chunk-AXKG24PC.cjs.map → chunk-WHNF67YI.cjs.map} +1 -1
- package/dist/{chunk-YLCNGVXU.js → chunk-WQWOCG53.js} +2 -2
- package/dist/{chunk-KGO5RHY2.js → chunk-YDKJZF5L.js} +2 -2
- package/dist/chunks-75SH4S3P.js +10 -0
- package/dist/cli.js +30 -30
- package/dist/{formula-DZA6DTBT.cjs → formula-4AJAVAWT.cjs} +9 -9
- package/dist/{formula-DZA6DTBT.cjs.map → formula-4AJAVAWT.cjs.map} +1 -1
- package/dist/{formula-GAW4HYPK.js → formula-HUREVQCI.js} +4 -4
- package/dist/{formula-Q5O27Q3L.js → formula-UBZCYRF4.js} +3 -3
- package/dist/{image-ocr-SKLXAVIR.js → image-ocr-3R2YM67Q.js} +9 -9
- package/dist/{image-ocr-YUVG57VO.cjs → image-ocr-DTZWQOQL.cjs} +17 -17
- package/dist/{image-ocr-YUVG57VO.cjs.map → image-ocr-DTZWQOQL.cjs.map} +1 -1
- package/dist/{image-ocr-WHMF24OA.js → image-ocr-PJT3Z4YE.js} +6 -6
- package/dist/index.cjs +353 -331
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +35 -13
- package/dist/index.js.map +1 -1
- package/dist/mcp.js +22 -22
- package/dist/{model-bundle-PHYAMJXE.js → model-bundle-37BM65SF.js} +5 -5
- package/dist/{models-B7DEVMPD.js → models-SINSBMMS.js} +5 -5
- package/dist/{parse-worker-v2-C7VA7D6M.js → parse-worker-v2-XZE6G3YZ.js} +12 -12
- package/dist/{parser-IBWL5DO6.cjs → parser-7NEY6KUC.cjs} +157 -157
- package/dist/{parser-IBWL5DO6.cjs.map → parser-7NEY6KUC.cjs.map} +1 -1
- package/dist/{parser-SCRC6YOP.js → parser-BN6SMWKJ.js} +12 -12
- package/dist/{parser-4L4HI6KN.js → parser-PYLI2HSC.js} +9 -9
- package/dist/{pdf-ocr-Z62E4OGV.js → pdf-ocr-2O7FQ6JB.js} +6 -6
- package/dist/{pdf-ocr-7JVAWHAF.js → pdf-ocr-472YHMNQ.js} +9 -9
- package/dist/pdf-ocr-W5UAELPX.cjs +31 -0
- package/dist/{pdf-ocr-BEXABEIP.cjs.map → pdf-ocr-W5UAELPX.cjs.map} +1 -1
- package/dist/{profile-io-T4O5ZOSF.js → profile-io-KENW2S4U.js} +3 -3
- package/dist/{rasterize-2WOVCKGY.js → rasterize-CDGVIXWB.js} +3 -3
- package/dist/{redact-doc-BS5KXZJU.js → redact-doc-LGIC27QL.js} +11 -11
- package/dist/{render-EWFXTGYC.js → render-4WB6VKAI.js} +7 -7
- package/dist/seal-V6YQIAUC.js +10 -0
- package/dist/{setup-LRMO3ZKM.js → setup-RNR35MKP.js} +3 -3
- package/dist/visual-ZZZ65FH6.js +21 -0
- package/dist/{watch-SOK25KLD.js → watch-VLHG2G5B.js} +12 -12
- package/package.json +1 -1
- package/dist/chunk-6VNSISFI.js.map +0 -1
- package/dist/chunk-AEDBCPFA.js.map +0 -1
- package/dist/chunks-FBC25VC6.js +0 -10
- package/dist/pdf-ocr-BEXABEIP.cjs +0 -31
- package/dist/seal-B2FGIQ5C.js +0 -10
- package/dist/visual-UZQZUJIA.js +0 -21
- /package/dist/{-WQIGIQTE.js.map → -AF5OVQ2B.js.map} +0 -0
- /package/dist/{chunk-T4JZ7DGA.js.map → chunk-2HLWRP2W.js.map} +0 -0
- /package/dist/{chunk-LKHXRJX2.js.map → chunk-5IWMX3MX.js.map} +0 -0
- /package/dist/{chunk-47NQ362T.js.map → chunk-634XJS2B.js.map} +0 -0
- /package/dist/{chunk-EQNLV4YH.js.map → chunk-6LKB7UWJ.js.map} +0 -0
- /package/dist/{chunk-M3YLZLHF.js.map → chunk-AA7VSDW7.js.map} +0 -0
- /package/dist/{chunk-DUTPIML6.js.map → chunk-DERMNCUV.js.map} +0 -0
- /package/dist/{chunk-DO3TPBBJ.js.map → chunk-DWP5CLVR.js.map} +0 -0
- /package/dist/{chunk-W5B45M7Z.js.map → chunk-EAUI4MGW.js.map} +0 -0
- /package/dist/{chunk-T2BVIFDL.js.map → chunk-EMC23F72.js.map} +0 -0
- /package/dist/{chunk-3FXLQRWO.js.map → chunk-FN462MNZ.js.map} +0 -0
- /package/dist/{chunk-MKRVPDDJ.js.map → chunk-FNF3IGCT.js.map} +0 -0
- /package/dist/{chunk-Q7BAXRRK.js.map → chunk-H2J3WNB3.js.map} +0 -0
- /package/dist/{chunk-FKMKZ3CV.js.map → chunk-IE6LE6W3.js.map} +0 -0
- /package/dist/{chunk-FVHGH6DG.js.map → chunk-JKSHF4LV.js.map} +0 -0
- /package/dist/{chunk-PE3PGTLM.js.map → chunk-LVKASU3G.js.map} +0 -0
- /package/dist/{chunk-GBJNTGVV.js.map → chunk-NMA5P7SJ.js.map} +0 -0
- /package/dist/{chunk-YD4TF6JI.js.map → chunk-PFVDY2EK.js.map} +0 -0
- /package/dist/{chunk-RQII7NRF.js.map → chunk-PHULZF6L.js.map} +0 -0
- /package/dist/{chunk-EMEEVTP2.js.map → chunk-THAL2XH4.js.map} +0 -0
- /package/dist/{chunk-YLCNGVXU.js.map → chunk-WQWOCG53.js.map} +0 -0
- /package/dist/{chunk-KGO5RHY2.js.map → chunk-YDKJZF5L.js.map} +0 -0
- /package/dist/{chunks-FBC25VC6.js.map → chunks-75SH4S3P.js.map} +0 -0
- /package/dist/{formula-GAW4HYPK.js.map → formula-HUREVQCI.js.map} +0 -0
- /package/dist/{formula-Q5O27Q3L.js.map → formula-UBZCYRF4.js.map} +0 -0
- /package/dist/{image-ocr-SKLXAVIR.js.map → image-ocr-3R2YM67Q.js.map} +0 -0
- /package/dist/{image-ocr-WHMF24OA.js.map → image-ocr-PJT3Z4YE.js.map} +0 -0
- /package/dist/{model-bundle-PHYAMJXE.js.map → model-bundle-37BM65SF.js.map} +0 -0
- /package/dist/{models-B7DEVMPD.js.map → models-SINSBMMS.js.map} +0 -0
- /package/dist/{parse-worker-v2-C7VA7D6M.js.map → parse-worker-v2-XZE6G3YZ.js.map} +0 -0
- /package/dist/{parser-SCRC6YOP.js.map → parser-BN6SMWKJ.js.map} +0 -0
- /package/dist/{parser-4L4HI6KN.js.map → parser-PYLI2HSC.js.map} +0 -0
- /package/dist/{pdf-ocr-7JVAWHAF.js.map → pdf-ocr-2O7FQ6JB.js.map} +0 -0
- /package/dist/{pdf-ocr-Z62E4OGV.js.map → pdf-ocr-472YHMNQ.js.map} +0 -0
- /package/dist/{profile-io-T4O5ZOSF.js.map → profile-io-KENW2S4U.js.map} +0 -0
- /package/dist/{rasterize-2WOVCKGY.js.map → rasterize-CDGVIXWB.js.map} +0 -0
- /package/dist/{redact-doc-BS5KXZJU.js.map → redact-doc-LGIC27QL.js.map} +0 -0
- /package/dist/{render-EWFXTGYC.js.map → render-4WB6VKAI.js.map} +0 -0
- /package/dist/{seal-B2FGIQ5C.js.map → seal-V6YQIAUC.js.map} +0 -0
- /package/dist/{setup-LRMO3ZKM.js.map → setup-RNR35MKP.js.map} +0 -0
- /package/dist/{visual-UZQZUJIA.js.map → visual-ZZZ65FH6.js.map} +0 -0
- /package/dist/{watch-SOK25KLD.js.map → watch-VLHG2G5B.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-FJ5RGHZW.js";
|
|
42
|
+
import "./chunk-LVKASU3G.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-SXSBYB4M.js";
|
|
49
|
+
import "./chunk-PFVDY2EK.js";
|
|
50
|
+
import "./chunk-WQWOCG53.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-FNF3IGCT.js";
|
|
55
55
|
import {
|
|
56
56
|
blocksToMarkdown
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-DERMNCUV.js";
|
|
58
58
|
import {
|
|
59
59
|
assertWithinRoot,
|
|
60
60
|
getAccessRoot,
|
|
61
61
|
isOfflineMode
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-5IWMX3MX.js";
|
|
63
63
|
import {
|
|
64
64
|
extractFormFields,
|
|
65
65
|
fillWithUniqueGuard
|
|
66
|
-
} from "./chunk-
|
|
67
|
-
import "./chunk-
|
|
66
|
+
} from "./chunk-JKSHF4LV.js";
|
|
67
|
+
import "./chunk-IE6LE6W3.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-PHULZF6L.js";
|
|
76
76
|
import "./chunk-3WSNLH4B.js";
|
|
77
77
|
|
|
78
78
|
// src/mcp.ts
|
|
@@ -378,7 +378,7 @@ ${markdown}`);
|
|
|
378
378
|
break;
|
|
379
379
|
case "pdf":
|
|
380
380
|
try {
|
|
381
|
-
const { extractPdfMetadataOnly } = await import("./parser-
|
|
381
|
+
const { extractPdfMetadataOnly } = await import("./parser-BN6SMWKJ.js");
|
|
382
382
|
metadata = await extractPdfMetadataOnly(buffer);
|
|
383
383
|
} catch {
|
|
384
384
|
metadata = void 0;
|
|
@@ -555,7 +555,7 @@ ${tableMarkdown}` }]
|
|
|
555
555
|
if (!parsed.success) {
|
|
556
556
|
return { content: [{ type: "text", text: `\uD30C\uC2F1 \uC2E4\uD328: ${parsed.error}` }], isError: true };
|
|
557
557
|
}
|
|
558
|
-
const { blocksToChunks } = await import("./chunks-
|
|
558
|
+
const { blocksToChunks } = await import("./chunks-75SH4S3P.js");
|
|
559
559
|
const chunks = blocksToChunks(parsed.blocks, { granularity, includeTableCells: include_table_cells });
|
|
560
560
|
return { content: [{ type: "text", text: capResponseText(JSON.stringify(chunks, null, 2)) }] };
|
|
561
561
|
} catch (err) {
|
|
@@ -825,7 +825,7 @@ ${previewMd}` }]
|
|
|
825
825
|
}
|
|
826
826
|
const image = new Uint8Array(await readFile2(imgResolved));
|
|
827
827
|
const ext = extname2(imgResolved).slice(1).toLowerCase();
|
|
828
|
-
const { placeSealHwpx } = await import("./seal-
|
|
828
|
+
const { placeSealHwpx } = await import("./seal-V6YQIAUC.js");
|
|
829
829
|
const result = await placeSealHwpx(buffer, [{
|
|
830
830
|
anchor,
|
|
831
831
|
occurrence,
|
|
@@ -942,7 +942,7 @@ ${previewMd}` }]
|
|
|
942
942
|
if (outPath && await isSameFile(outPath, resolved)) {
|
|
943
943
|
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 };
|
|
944
944
|
}
|
|
945
|
-
const { redactDocument } = await import("./redact-doc-
|
|
945
|
+
const { redactDocument } = await import("./redact-doc-LGIC27QL.js");
|
|
946
946
|
const r = await redactDocument(buffer, { rules, maskChar: mask_char, filePath: file_path, dryRun: dry_run });
|
|
947
947
|
const MAX_LINES = 50;
|
|
948
948
|
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}`);
|
|
@@ -1016,7 +1016,7 @@ function registerRenderTools(server2) {
|
|
|
1016
1016
|
const { buffer, resolved } = await readValidatedFile(file_path, MAX_FILE_SIZE, /* @__PURE__ */ new Set([".hwpx", ".hwp"]));
|
|
1017
1017
|
const isHwp5 = resolved.toLowerCase().endsWith(".hwp");
|
|
1018
1018
|
if (!isHwp5 && !pages && (format === "png" || format === "svg")) {
|
|
1019
|
-
const { renderHwpxToSvg } = await import("./render-
|
|
1019
|
+
const { renderHwpxToSvg } = await import("./render-4WB6VKAI.js");
|
|
1020
1020
|
const result = await renderHwpxToSvg(buffer, { highlights, reflow: true, reflowMode: reflow_mode });
|
|
1021
1021
|
const summary2 = [
|
|
1022
1022
|
`\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})`,
|
|
@@ -1028,7 +1028,7 @@ function registerRenderTools(server2) {
|
|
|
1028
1028
|
summary2.push(`\uC800\uC7A5: ${outPath}`);
|
|
1029
1029
|
return { content: [{ type: "text", text: summary2.join("\n") }] };
|
|
1030
1030
|
}
|
|
1031
|
-
const { rasterizeSvg } = await import("./rasterize-
|
|
1031
|
+
const { rasterizeSvg } = await import("./rasterize-CDGVIXWB.js");
|
|
1032
1032
|
const raster = await rasterizeSvg(result.svg, result.width, result.height, max_width_px ? { maxWidthPx: max_width_px } : void 0);
|
|
1033
1033
|
if (outPath) {
|
|
1034
1034
|
await mkdir2(dirname3(outPath), { recursive: true });
|
|
@@ -1043,7 +1043,7 @@ function registerRenderTools(server2) {
|
|
|
1043
1043
|
]
|
|
1044
1044
|
};
|
|
1045
1045
|
}
|
|
1046
|
-
const { renderDocument } = await import("./render-
|
|
1046
|
+
const { renderDocument } = await import("./render-4WB6VKAI.js");
|
|
1047
1047
|
const { scene, assets } = await renderDocument(buffer, { format, pages, highlights, reflow: true, reflowMode: reflow_mode, maxWidthPx: max_width_px });
|
|
1048
1048
|
const summary = [
|
|
1049
1049
|
`\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})`,
|
|
@@ -1093,7 +1093,7 @@ function registerRenderTools(server2) {
|
|
|
1093
1093
|
try {
|
|
1094
1094
|
const { buffer } = await readValidatedFile(file_path, MAX_FILE_SIZE, /* @__PURE__ */ new Set([".hwpx", ".hwp"]));
|
|
1095
1095
|
const dir = safeOutputPath(join2(output_dir, "regions.json"), /* @__PURE__ */ new Set([".json"])).replace(/[\\/]regions\.json$/, "");
|
|
1096
|
-
const { extractRenderedRegions } = await import("./render-
|
|
1096
|
+
const { extractRenderedRegions } = await import("./render-4WB6VKAI.js");
|
|
1097
1097
|
const regions = await extractRenderedRegions(buffer, { types: target, format, pages, paddingPt: padding_pt, reflow: true });
|
|
1098
1098
|
await mkdir2(dir, { recursive: true });
|
|
1099
1099
|
const ext = format === "jpeg" ? "jpg" : "png";
|
|
@@ -1129,7 +1129,7 @@ function registerRenderTools(server2) {
|
|
|
1129
1129
|
}
|
|
1130
1130
|
const { buffer } = await readValidatedFile(file_path, MAX_FILE_SIZE, /* @__PURE__ */ new Set([".hwpx", ".hwp"]));
|
|
1131
1131
|
const dir = output_dir ? safeOutputPath(join2(output_dir, "tables.json"), /* @__PURE__ */ new Set([".json"])).replace(/[\\/]tables\.json$/, "") : void 0;
|
|
1132
|
-
const { extractTables } = await import("./visual-
|
|
1132
|
+
const { extractTables } = await import("./visual-ZZZ65FH6.js");
|
|
1133
1133
|
const tables = await extractTables(buffer, { policy: visual, format, paddingPt: padding_pt });
|
|
1134
1134
|
if (dir) await mkdir2(dir, { recursive: true });
|
|
1135
1135
|
const ext = format === "jpeg" ? "jpg" : "png";
|
|
@@ -1186,7 +1186,7 @@ function registerGenerateTools(server2) {
|
|
|
1186
1186
|
try {
|
|
1187
1187
|
const out = safeOutputPath(output_path, PROFILE_EXTENSIONS);
|
|
1188
1188
|
const { buffer } = await readValidatedFile(hwpx_path);
|
|
1189
|
-
const { hwpxToProfile } = await import("./-
|
|
1189
|
+
const { hwpxToProfile } = await import("./-AF5OVQ2B.js");
|
|
1190
1190
|
const profile = await hwpxToProfile(buffer);
|
|
1191
1191
|
await mkdir3(dirname4(out), { recursive: true });
|
|
1192
1192
|
await writeOutputFile(out, JSON.stringify(profile, null, 2));
|
|
@@ -1299,7 +1299,7 @@ function registerGenerateTools(server2) {
|
|
|
1299
1299
|
}
|
|
1300
1300
|
let profile;
|
|
1301
1301
|
if (profile_path) {
|
|
1302
|
-
const { parseFormatProfileJson } = await import("./profile-io-
|
|
1302
|
+
const { parseFormatProfileJson } = await import("./profile-io-KENW2S4U.js");
|
|
1303
1303
|
profile = parseFormatProfileJson(await readFile3(safePath(profile_path, PROFILE_EXTENSIONS), "utf-8"));
|
|
1304
1304
|
}
|
|
1305
1305
|
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-2HLWRP2W.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-NMA5P7SJ.js";
|
|
10
|
+
import "./chunk-5IWMX3MX.js";
|
|
11
|
+
import "./chunk-PHULZF6L.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-37BM65SF.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-2HLWRP2W.js";
|
|
21
|
+
import "./chunk-NMA5P7SJ.js";
|
|
22
|
+
import "./chunk-5IWMX3MX.js";
|
|
23
|
+
import "./chunk-PHULZF6L.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-SINSBMMS.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-H2J3WNB3.js";
|
|
5
|
+
import "./chunk-FJ5RGHZW.js";
|
|
6
|
+
import "./chunk-LVKASU3G.js";
|
|
7
|
+
import "./chunk-SXSBYB4M.js";
|
|
8
|
+
import "./chunk-PFVDY2EK.js";
|
|
9
|
+
import "./chunk-WQWOCG53.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-FNF3IGCT.js";
|
|
16
|
+
import "./chunk-DERMNCUV.js";
|
|
17
|
+
import "./chunk-JKSHF4LV.js";
|
|
18
|
+
import "./chunk-IE6LE6W3.js";
|
|
19
19
|
import {
|
|
20
20
|
VERSION,
|
|
21
21
|
sanitizeError
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-PHULZF6L.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-XZE6G3YZ.js.map
|