feat: replaced custom mupdf wasm pipeline with native function

- Replaced the custom MuPDF-WASM PDF extraction and rendering pipeline with the new `pdfToMarkdown` native function from `@oh-my-pi/pi-natives`.
- Removed legacy MuPDF extraction modules, WASM embedding scripts, and PDF image extraction tools.
- Added OCR warnings and browser/text redirection for unsupported PDF image reads.
- Updated native package definitions, documentation, and test suites for the new PDF inspection capability.
This commit is contained in:
can1357
2026-08-14 14:08:28 +02:00
parent 1e1ee2c330
commit 04fab5ecb4
42 changed files with 1153 additions and 3620 deletions
-4
View File
@@ -158,24 +158,20 @@ async function generateBundle(): Promise<void> {
if (isDryRun) {
console.log("DRY RUN bun run gen:stats");
console.log("DRY RUN bun --cwd=packages/collab-web run gen:tool-views");
console.log("DRY RUN bun run gen:mupdf");
return;
}
await runCommand(["bun", "run", "gen:stats"], repoRoot);
await runCommand(["bun", "--cwd=packages/collab-web", "run", "gen:tool-views"], repoRoot);
await runCommand(["bun", "run", "gen:mupdf"], repoRoot);
}
async function resetArtifacts(): Promise<void> {
if (isDryRun) {
console.log("DRY RUN bun run gen:native:reset");
console.log("DRY RUN bun run gen:stats:reset");
console.log("DRY RUN bun run gen:mupdf:reset");
return;
}
await runCommand(["bun", "run", "gen:native:reset"], repoRoot);
await runCommand(["bun", "run", "gen:stats:reset"], repoRoot);
await runCommand(["bun", "run", "gen:mupdf:reset"], repoRoot);
}
async function main(): Promise<void> {