kordoc 4.19.2 → 4.20.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/NOTICE +25 -0
- package/README.md +2 -1
- package/THIRD_PARTY/hwp-auto-docfit.LICENSE +23 -0
- package/dist/{-3JIHF2AL.js → -TTRGLREH.js} +11 -11
- package/dist/{chunk-I2TBI7PN.js → chunk-2U475PJF.js} +2 -2
- package/dist/{chunk-R2JM2HOJ.js → chunk-4DIMX2KU.js} +4 -4
- package/dist/{chunk-GNUGD4RO.js → chunk-4WOG2SLT.js} +2 -2
- package/dist/{chunk-QZ63HXEG.js → chunk-527NBMUE.js} +6 -6
- package/dist/{chunk-PWQ2BVAT.js → chunk-7H5GT7HM.js} +22 -3
- package/dist/{chunk-PWQ2BVAT.js.map → chunk-7H5GT7HM.js.map} +1 -1
- package/dist/{chunk-T2DZTOGG.cjs → chunk-AXQDWE42.cjs} +12 -12
- package/dist/{chunk-T2DZTOGG.cjs.map → chunk-AXQDWE42.cjs.map} +1 -1
- package/dist/{chunk-ORGWGR4K.cjs → chunk-CJFIHH2N.cjs} +6 -6
- package/dist/{chunk-ORGWGR4K.cjs.map → chunk-CJFIHH2N.cjs.map} +1 -1
- package/dist/{chunk-XPM7WC54.js → chunk-CKFKC22O.js} +4 -4
- package/dist/{chunk-JK7N4R4K.js → chunk-CPZ2LLZA.js} +2 -2
- package/dist/{chunk-6ZBORHFB.js → chunk-CS2VWXDS.js} +2 -2
- package/dist/{chunk-EUCBMW6C.js → chunk-DPD2L5UK.js} +3 -3
- package/dist/{chunk-AOVMOCTK.js → chunk-GHAJHXYA.js} +2 -2
- package/dist/{chunk-4CS7XE2Q.js → chunk-JYV3XQYW.js} +2 -2
- package/dist/{chunk-MZ6XNFZL.cjs → chunk-K5GCIB2I.cjs} +2 -2
- package/dist/{chunk-MZ6XNFZL.cjs.map → chunk-K5GCIB2I.cjs.map} +1 -1
- package/dist/{chunk-5PGOZBEQ.cjs → chunk-KDCPBF4X.cjs} +22 -22
- package/dist/{chunk-5PGOZBEQ.cjs.map → chunk-KDCPBF4X.cjs.map} +1 -1
- package/dist/{chunk-NV46IWKF.js → chunk-LQ4IDHET.js} +234 -24
- package/dist/chunk-LQ4IDHET.js.map +1 -0
- package/dist/{chunk-U6AJU2VD.js → chunk-MNPPMJBN.js} +2 -2
- package/dist/{chunk-J75TVRJB.js → chunk-MXADBQ7E.js} +2 -2
- package/dist/{chunk-B4R443MV.js → chunk-NVBX2NKZ.js} +2 -2
- package/dist/{chunk-TM4T4NYJ.js → chunk-OX5FA2MU.js} +2 -2
- package/dist/{chunk-WQAGDJIP.cjs → chunk-RMDFN5ZF.cjs} +3 -3
- package/dist/{chunk-WQAGDJIP.cjs.map → chunk-RMDFN5ZF.cjs.map} +1 -1
- package/dist/{chunk-QYJPU4FZ.js → chunk-TM7IOP4P.js} +2 -2
- package/dist/{chunk-OKHKEYTL.js → chunk-URQM5TBD.js} +2 -2
- package/dist/{chunk-VO22VAR3.js → chunk-VVKMBLG2.js} +2 -2
- package/dist/{chunk-JXJDXDOU.js → chunk-WLNEQGQC.js} +3 -3
- package/dist/{chunk-56ZWAREM.js → chunk-WLWWODBQ.js} +2 -2
- package/dist/{chunk-RVBQT2PD.cjs → chunk-WWOU6ZQ3.cjs} +3 -3
- package/dist/{chunk-RVBQT2PD.cjs.map → chunk-WWOU6ZQ3.cjs.map} +1 -1
- package/dist/{chunk-AKSCTGKG.js → chunk-X5YHJHWB.js} +2 -2
- package/dist/chunks-3NIFJFRQ.js +10 -0
- package/dist/cli.js +366 -44
- package/dist/cli.js.map +1 -1
- package/dist/{formula-STIFIS57.js → formula-D6GGALWI.js} +3 -3
- package/dist/{formula-RNATQ3FQ.cjs → formula-FE6LEZTT.cjs} +9 -9
- package/dist/{formula-RNATQ3FQ.cjs.map → formula-FE6LEZTT.cjs.map} +1 -1
- package/dist/{formula-RSTTP626.js → formula-KWOAYEOG.js} +4 -4
- package/dist/{image-ocr-XKSAEEXP.js → image-ocr-XDODV43Y.js} +9 -9
- package/dist/{image-ocr-7L5TBBPA.cjs → image-ocr-XGGIYCZ2.cjs} +15 -15
- package/dist/{image-ocr-7L5TBBPA.cjs.map → image-ocr-XGGIYCZ2.cjs.map} +1 -1
- package/dist/{image-ocr-R6ZDFBAN.js → image-ocr-YYTFOUSY.js} +6 -6
- package/dist/index.cjs +682 -459
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +242 -19
- package/dist/index.js.map +1 -1
- package/dist/mcp.js +22 -22
- package/dist/{model-bundle-NGTKULP7.js → model-bundle-WPFLIKYM.js} +5 -5
- package/dist/{models-QOSU5SYL.js → models-WJ5QYELV.js} +5 -5
- package/dist/{parser-AIQBU7FS.cjs → parser-6P5ZRWXG.cjs} +132 -132
- package/dist/{parser-AIQBU7FS.cjs.map → parser-6P5ZRWXG.cjs.map} +1 -1
- package/dist/{parser-5GUEP6EK.js → parser-LY67CB7A.js} +8 -8
- package/dist/{parser-3G4G6SST.js → parser-QKLUIMHG.js} +11 -11
- package/dist/pdf-ocr-6L4EDRVO.js +20 -0
- package/dist/pdf-ocr-J7DHJJ3I.js +16 -0
- package/dist/pdf-ocr-MODN6GBT.cjs +17 -0
- package/dist/{pdf-ocr-7OAFUDM4.cjs.map → pdf-ocr-MODN6GBT.cjs.map} +1 -1
- package/dist/{profile-io-ZVNMDLLS.js → profile-io-I4ORJOE4.js} +3 -3
- package/dist/{rasterize-Y2RLMVCL.js → rasterize-MZU5LIA5.js} +3 -3
- package/dist/{redact-doc-PNRDDBI3.js → redact-doc-NEUEBXFH.js} +11 -11
- package/dist/{render-S3ALARVO.js → render-IL2DYXDP.js} +7 -7
- package/dist/seal-O5DKZGTR.js +10 -0
- package/dist/{setup-JH66VSFZ.js → setup-PGOCB7YG.js} +3 -3
- package/dist/visual-PYV4ZMLH.js +20 -0
- package/dist/{watch-KMB2FTOD.js → watch-2F5AMHCW.js} +12 -12
- package/package.json +1 -1
- package/dist/chunk-NV46IWKF.js.map +0 -1
- package/dist/chunks-2EC2R7PY.js +0 -10
- package/dist/pdf-ocr-7OAFUDM4.cjs +0 -17
- package/dist/pdf-ocr-DAXS5RX4.js +0 -16
- package/dist/pdf-ocr-R3VGX6F2.js +0 -20
- package/dist/seal-EJWPS5VK.js +0 -10
- package/dist/visual-GDXMKDVY.js +0 -20
- /package/dist/{-3JIHF2AL.js.map → -TTRGLREH.js.map} +0 -0
- /package/dist/{chunk-I2TBI7PN.js.map → chunk-2U475PJF.js.map} +0 -0
- /package/dist/{chunk-R2JM2HOJ.js.map → chunk-4DIMX2KU.js.map} +0 -0
- /package/dist/{chunk-GNUGD4RO.js.map → chunk-4WOG2SLT.js.map} +0 -0
- /package/dist/{chunk-QZ63HXEG.js.map → chunk-527NBMUE.js.map} +0 -0
- /package/dist/{chunk-XPM7WC54.js.map → chunk-CKFKC22O.js.map} +0 -0
- /package/dist/{chunk-JK7N4R4K.js.map → chunk-CPZ2LLZA.js.map} +0 -0
- /package/dist/{chunk-6ZBORHFB.js.map → chunk-CS2VWXDS.js.map} +0 -0
- /package/dist/{chunk-EUCBMW6C.js.map → chunk-DPD2L5UK.js.map} +0 -0
- /package/dist/{chunk-AOVMOCTK.js.map → chunk-GHAJHXYA.js.map} +0 -0
- /package/dist/{chunk-4CS7XE2Q.js.map → chunk-JYV3XQYW.js.map} +0 -0
- /package/dist/{chunk-U6AJU2VD.js.map → chunk-MNPPMJBN.js.map} +0 -0
- /package/dist/{chunk-J75TVRJB.js.map → chunk-MXADBQ7E.js.map} +0 -0
- /package/dist/{chunk-B4R443MV.js.map → chunk-NVBX2NKZ.js.map} +0 -0
- /package/dist/{chunk-TM4T4NYJ.js.map → chunk-OX5FA2MU.js.map} +0 -0
- /package/dist/{chunk-QYJPU4FZ.js.map → chunk-TM7IOP4P.js.map} +0 -0
- /package/dist/{chunk-OKHKEYTL.js.map → chunk-URQM5TBD.js.map} +0 -0
- /package/dist/{chunk-VO22VAR3.js.map → chunk-VVKMBLG2.js.map} +0 -0
- /package/dist/{chunk-JXJDXDOU.js.map → chunk-WLNEQGQC.js.map} +0 -0
- /package/dist/{chunk-56ZWAREM.js.map → chunk-WLWWODBQ.js.map} +0 -0
- /package/dist/{chunk-AKSCTGKG.js.map → chunk-X5YHJHWB.js.map} +0 -0
- /package/dist/{chunks-2EC2R7PY.js.map → chunks-3NIFJFRQ.js.map} +0 -0
- /package/dist/{formula-STIFIS57.js.map → formula-D6GGALWI.js.map} +0 -0
- /package/dist/{formula-RSTTP626.js.map → formula-KWOAYEOG.js.map} +0 -0
- /package/dist/{image-ocr-XKSAEEXP.js.map → image-ocr-XDODV43Y.js.map} +0 -0
- /package/dist/{image-ocr-R6ZDFBAN.js.map → image-ocr-YYTFOUSY.js.map} +0 -0
- /package/dist/{model-bundle-NGTKULP7.js.map → model-bundle-WPFLIKYM.js.map} +0 -0
- /package/dist/{models-QOSU5SYL.js.map → models-WJ5QYELV.js.map} +0 -0
- /package/dist/{parser-5GUEP6EK.js.map → parser-LY67CB7A.js.map} +0 -0
- /package/dist/{parser-3G4G6SST.js.map → parser-QKLUIMHG.js.map} +0 -0
- /package/dist/{pdf-ocr-DAXS5RX4.js.map → pdf-ocr-6L4EDRVO.js.map} +0 -0
- /package/dist/{pdf-ocr-R3VGX6F2.js.map → pdf-ocr-J7DHJJ3I.js.map} +0 -0
- /package/dist/{profile-io-ZVNMDLLS.js.map → profile-io-I4ORJOE4.js.map} +0 -0
- /package/dist/{rasterize-Y2RLMVCL.js.map → rasterize-MZU5LIA5.js.map} +0 -0
- /package/dist/{redact-doc-PNRDDBI3.js.map → redact-doc-NEUEBXFH.js.map} +0 -0
- /package/dist/{render-S3ALARVO.js.map → render-IL2DYXDP.js.map} +0 -0
- /package/dist/{seal-EJWPS5VK.js.map → seal-O5DKZGTR.js.map} +0 -0
- /package/dist/{setup-JH66VSFZ.js.map → setup-PGOCB7YG.js.map} +0 -0
- /package/dist/{visual-GDXMKDVY.js.map → visual-PYV4ZMLH.js.map} +0 -0
- /package/dist/{watch-KMB2FTOD.js.map → watch-2F5AMHCW.js.map} +0 -0
package/dist/mcp.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
assertWithinRoot,
|
|
4
4
|
getAccessRoot,
|
|
5
5
|
isOfflineMode
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2U475PJF.js";
|
|
7
7
|
import {
|
|
8
8
|
APPROVAL_MAX,
|
|
9
9
|
BODY_FONTS,
|
|
@@ -43,25 +43,25 @@ import {
|
|
|
43
43
|
resolveBuiltinTemplate,
|
|
44
44
|
unknownFontWarnings,
|
|
45
45
|
usesGaejosikMunche
|
|
46
|
-
} from "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
46
|
+
} from "./chunk-LQ4IDHET.js";
|
|
47
|
+
import "./chunk-VVKMBLG2.js";
|
|
48
|
+
import "./chunk-7H5GT7HM.js";
|
|
49
49
|
import "./chunk-3WSNLH4B.js";
|
|
50
|
-
import "./chunk-
|
|
50
|
+
import "./chunk-OX5FA2MU.js";
|
|
51
51
|
import {
|
|
52
52
|
detectFormat,
|
|
53
53
|
detectOle2Format,
|
|
54
54
|
detectZipFormat,
|
|
55
55
|
extractHwp5MetadataOnly
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-527NBMUE.js";
|
|
57
57
|
import "./chunk-7FCNOKOR.js";
|
|
58
|
-
import "./chunk-
|
|
58
|
+
import "./chunk-GHAJHXYA.js";
|
|
59
59
|
import "./chunk-VQFA55IC.js";
|
|
60
|
-
import "./chunk-
|
|
60
|
+
import "./chunk-TM7IOP4P.js";
|
|
61
61
|
import {
|
|
62
62
|
blocksToMarkdown
|
|
63
|
-
} from "./chunk-
|
|
64
|
-
import "./chunk-
|
|
63
|
+
} from "./chunk-NVBX2NKZ.js";
|
|
64
|
+
import "./chunk-CS2VWXDS.js";
|
|
65
65
|
import {
|
|
66
66
|
KordocError,
|
|
67
67
|
VERSION,
|
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
routeConsoleToStderr,
|
|
70
70
|
sanitizeError,
|
|
71
71
|
toArrayBuffer
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-URQM5TBD.js";
|
|
73
73
|
|
|
74
74
|
// src/mcp.ts
|
|
75
75
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
@@ -355,7 +355,7 @@ ${markdown}`);
|
|
|
355
355
|
break;
|
|
356
356
|
case "pdf":
|
|
357
357
|
try {
|
|
358
|
-
const { extractPdfMetadataOnly } = await import("./parser-
|
|
358
|
+
const { extractPdfMetadataOnly } = await import("./parser-QKLUIMHG.js");
|
|
359
359
|
metadata = await extractPdfMetadataOnly(buffer);
|
|
360
360
|
} catch {
|
|
361
361
|
metadata = void 0;
|
|
@@ -532,7 +532,7 @@ ${tableMarkdown}` }]
|
|
|
532
532
|
if (!parsed.success) {
|
|
533
533
|
return { content: [{ type: "text", text: `\uD30C\uC2F1 \uC2E4\uD328: ${parsed.error}` }], isError: true };
|
|
534
534
|
}
|
|
535
|
-
const { blocksToChunks } = await import("./chunks-
|
|
535
|
+
const { blocksToChunks } = await import("./chunks-3NIFJFRQ.js");
|
|
536
536
|
const chunks = blocksToChunks(parsed.blocks, { granularity, includeTableCells: include_table_cells });
|
|
537
537
|
return { content: [{ type: "text", text: capResponseText(JSON.stringify(chunks, null, 2)) }] };
|
|
538
538
|
} catch (err) {
|
|
@@ -777,7 +777,7 @@ ${previewMd}` }]
|
|
|
777
777
|
}
|
|
778
778
|
const image = new Uint8Array(await readFile2(imgResolved));
|
|
779
779
|
const ext = extname2(imgResolved).slice(1).toLowerCase();
|
|
780
|
-
const { placeSealHwpx } = await import("./seal-
|
|
780
|
+
const { placeSealHwpx } = await import("./seal-O5DKZGTR.js");
|
|
781
781
|
const result = await placeSealHwpx(buffer, [{
|
|
782
782
|
anchor,
|
|
783
783
|
occurrence,
|
|
@@ -894,7 +894,7 @@ ${previewMd}` }]
|
|
|
894
894
|
if (outPath && await isSameFile(outPath, resolved)) {
|
|
895
895
|
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 };
|
|
896
896
|
}
|
|
897
|
-
const { redactDocument } = await import("./redact-doc-
|
|
897
|
+
const { redactDocument } = await import("./redact-doc-NEUEBXFH.js");
|
|
898
898
|
const r = await redactDocument(buffer, { rules, maskChar: mask_char, filePath: file_path, dryRun: dry_run });
|
|
899
899
|
const MAX_LINES = 50;
|
|
900
900
|
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}`);
|
|
@@ -968,7 +968,7 @@ function registerRenderTools(server2) {
|
|
|
968
968
|
const { buffer, resolved } = await readValidatedFile(file_path, MAX_FILE_SIZE, /* @__PURE__ */ new Set([".hwpx", ".hwp"]));
|
|
969
969
|
const isHwp5 = resolved.toLowerCase().endsWith(".hwp");
|
|
970
970
|
if (!isHwp5 && !pages && (format === "png" || format === "svg")) {
|
|
971
|
-
const { renderHwpxToSvg } = await import("./render-
|
|
971
|
+
const { renderHwpxToSvg } = await import("./render-IL2DYXDP.js");
|
|
972
972
|
const result = await renderHwpxToSvg(buffer, { highlights, reflow: true, reflowMode: reflow_mode });
|
|
973
973
|
const summary2 = [
|
|
974
974
|
`\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})`,
|
|
@@ -980,7 +980,7 @@ function registerRenderTools(server2) {
|
|
|
980
980
|
summary2.push(`\uC800\uC7A5: ${outPath}`);
|
|
981
981
|
return { content: [{ type: "text", text: summary2.join("\n") }] };
|
|
982
982
|
}
|
|
983
|
-
const { rasterizeSvg } = await import("./rasterize-
|
|
983
|
+
const { rasterizeSvg } = await import("./rasterize-MZU5LIA5.js");
|
|
984
984
|
const raster = await rasterizeSvg(result.svg, result.width, result.height, max_width_px ? { maxWidthPx: max_width_px } : void 0);
|
|
985
985
|
if (outPath) {
|
|
986
986
|
await mkdir2(dirname3(outPath), { recursive: true });
|
|
@@ -995,7 +995,7 @@ function registerRenderTools(server2) {
|
|
|
995
995
|
]
|
|
996
996
|
};
|
|
997
997
|
}
|
|
998
|
-
const { renderDocument } = await import("./render-
|
|
998
|
+
const { renderDocument } = await import("./render-IL2DYXDP.js");
|
|
999
999
|
const { scene, assets } = await renderDocument(buffer, { format, pages, highlights, reflow: true, reflowMode: reflow_mode, maxWidthPx: max_width_px });
|
|
1000
1000
|
const summary = [
|
|
1001
1001
|
`\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})`,
|
|
@@ -1045,7 +1045,7 @@ function registerRenderTools(server2) {
|
|
|
1045
1045
|
try {
|
|
1046
1046
|
const { buffer } = await readValidatedFile(file_path, MAX_FILE_SIZE, /* @__PURE__ */ new Set([".hwpx", ".hwp"]));
|
|
1047
1047
|
const dir = safeOutputPath(join2(output_dir, "regions.json"), /* @__PURE__ */ new Set([".json"])).replace(/[\\/]regions\.json$/, "");
|
|
1048
|
-
const { extractRenderedRegions } = await import("./render-
|
|
1048
|
+
const { extractRenderedRegions } = await import("./render-IL2DYXDP.js");
|
|
1049
1049
|
const regions = await extractRenderedRegions(buffer, { types: target, format, pages, paddingPt: padding_pt, reflow: true });
|
|
1050
1050
|
await mkdir2(dir, { recursive: true });
|
|
1051
1051
|
const ext = format === "jpeg" ? "jpg" : "png";
|
|
@@ -1081,7 +1081,7 @@ function registerRenderTools(server2) {
|
|
|
1081
1081
|
}
|
|
1082
1082
|
const { buffer } = await readValidatedFile(file_path, MAX_FILE_SIZE, /* @__PURE__ */ new Set([".hwpx", ".hwp"]));
|
|
1083
1083
|
const dir = output_dir ? safeOutputPath(join2(output_dir, "tables.json"), /* @__PURE__ */ new Set([".json"])).replace(/[\\/]tables\.json$/, "") : void 0;
|
|
1084
|
-
const { extractTables } = await import("./visual-
|
|
1084
|
+
const { extractTables } = await import("./visual-PYV4ZMLH.js");
|
|
1085
1085
|
const tables = await extractTables(buffer, { policy: visual, format, paddingPt: padding_pt });
|
|
1086
1086
|
if (dir) await mkdir2(dir, { recursive: true });
|
|
1087
1087
|
const ext = format === "jpeg" ? "jpg" : "png";
|
|
@@ -1138,7 +1138,7 @@ function registerGenerateTools(server2) {
|
|
|
1138
1138
|
try {
|
|
1139
1139
|
const out = safeOutputPath(output_path, PROFILE_EXTENSIONS);
|
|
1140
1140
|
const { buffer } = await readValidatedFile(hwpx_path);
|
|
1141
|
-
const { hwpxToProfile } = await import("./-
|
|
1141
|
+
const { hwpxToProfile } = await import("./-TTRGLREH.js");
|
|
1142
1142
|
const profile = await hwpxToProfile(buffer);
|
|
1143
1143
|
await mkdir3(dirname4(out), { recursive: true });
|
|
1144
1144
|
await writeOutputFile(out, JSON.stringify(profile, null, 2));
|
|
@@ -1245,7 +1245,7 @@ function registerGenerateTools(server2) {
|
|
|
1245
1245
|
}
|
|
1246
1246
|
let profile;
|
|
1247
1247
|
if (profile_path) {
|
|
1248
|
-
const { parseFormatProfileJson } = await import("./profile-io-
|
|
1248
|
+
const { parseFormatProfileJson } = await import("./profile-io-I4ORJOE4.js");
|
|
1249
1249
|
profile = parseFormatProfileJson(await readFile3(safePath(profile_path, PROFILE_EXTENSIONS), "utf-8"));
|
|
1250
1250
|
}
|
|
1251
1251
|
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-WLWWODBQ.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-CPZ2LLZA.js";
|
|
10
|
+
import "./chunk-2U475PJF.js";
|
|
11
|
+
import "./chunk-URQM5TBD.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-WPFLIKYM.js.map
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
ocrModelPath,
|
|
11
11
|
ocrModelsCached,
|
|
12
12
|
parseCharacterDict
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-WLWWODBQ.js";
|
|
14
|
+
import "./chunk-CPZ2LLZA.js";
|
|
15
|
+
import "./chunk-2U475PJF.js";
|
|
16
|
+
import "./chunk-URQM5TBD.js";
|
|
17
17
|
export {
|
|
18
18
|
ALL_OCR_MODELS,
|
|
19
19
|
OCR_DET_MODEL,
|
|
@@ -26,4 +26,4 @@ export {
|
|
|
26
26
|
ocrModelsCached,
|
|
27
27
|
parseCharacterDict
|
|
28
28
|
};
|
|
29
|
-
//# sourceMappingURL=models-
|
|
29
|
+
//# sourceMappingURL=models-WJ5QYELV.js.map
|