141 Commits
Author SHA1 Message Date
myhloli 6c6e0978a6 feat(webui): let external services schedule conversions by default 2026-11-20 11:31:43 +08:00
Xiaomeng Zhao d3e049f2ba Merge pull request #5781 from myhloli/dev
docs: reorganize bilingual MkDocs guides by workflow
2026-11-18 17:19:50 +08:00
myhloli 1f038d16f3 docs: reorganize bilingual MkDocs guides by workflow
Add runnable CLI, document library, and HTTP examples. Document WebUI exports and Router deployment, and preserve existing page and section links.
2026-11-18 16:54:32 +08:00
Xiaomeng Zhao 87298aad62 Merge pull request #5775 from myhloli/dev 2026-11-16 20:20:32 +08:00
myhloli 95583de870 feat(webui): recover managed workers after task execution timeouts
Route managed WebUI requests through a single inherited-device Router worker.
Supervise per-file execution deadlines, fail affected requests explicitly,
and recycle stalled process trees with bounded shutdown and restart attempts.

Expose configurable task timeouts (default 3600 seconds), separate SDK poll
budgets, preserve startup limits and authentication, and cover recovery with
real subprocess faults and bundled PDF parsing.
2026-11-16 18:28:38 +08:00
myhloli 72c322f220 refactor(read): limit file output to image reads
Reject Markdown file output before opening Doclib or creating paths, while preserving stdout, JSON, continuation and image output. Keep parse output on the complete export interface and mark historical read-output decisions as superseded.

Refs #5760
2026-11-13 16:20:36 +08:00
myhloli 7f97abc9b2 fix(kit): preserve batch output semantics and classify input failures
Determine batch mode from the original inputs, accept dotted output directories, and retain explicit single-file overwrite behavior. Validate actual document content, preserve structured local and remote errors, and distinguish skipped inputs, per-document failures, and systemic aborts.

Report accurate batch counts and exit status while preserving successful artifacts. Refs #5761, #5764
2026-11-13 16:20:17 +08:00
myhloli f19a1c2969 test(doclib): cover default-budget continuation and clarify cursor contract 2026-11-11 15:05:55 +08:00
crunz-ailab fa6dee7766 fix(doclib): preserve content across truncated locator reads
Resume page and document reads with the consumed cursor while preserving direct-block and bounded-range semantics. Cover continuation through service, HTTP, and CLI-marker paths and document the existing after field.
2026-11-10 23:04:00 +08:00
Xiaomeng Zhao 341d192aab Merge pull request #5743 from Ymmcc/fix/doclib-literal-fts-queries
fix(doclib): preserve punctuation in FTS queries
2026-11-10 19:14:46 +08:00
myhloli 75a3c1329b fix(doclib): keep operator words in literal search queries
Document punctuation-insensitive matching and cover searches with and without Jieba.

Refs #5743
2026-11-10 19:09:10 +08:00
myhloli 32bfd78919 fix(onnx): gate automatic discrete GPU selection on total memory
Require rounded total memory of at least 6 GB for ONNX auto discrete GPUs using DXGI or Vulkan. Fall back to CPU without calibration when memory is insufficient or unavailable; preserve configured devices and Torch behavior.

Refs #5740
2026-11-10 03:22:55 +08:00
myhloli ad18c1d6b3 build: lower ModelScope minimum to 1.39.1 2026-11-09 22:20:21 +08:00
myhloli 74dd405a7f fix(model): persist file manifests and pin ModelScope snapshots 2026-11-09 20:58:51 +08:00
myhloli b9f257cb74 fix(model): validate cached payloads and migrate legacy completion markers 2026-11-09 16:25:59 +08:00
myhloli c3e1c478c7 feat(runtime): unify process device decisions and expose health device 2026-11-09 10:53:40 +08:00
myhloli 82a66de5c9 refactor(webui): reuse prepared inputs and persistent PDF previews
Preview local PDFs directly while uploading and prepare image PDFs once for both preview and parsing. Keep PDF.js mounted across conversions, update overlays using original page indices, and remove WebUI PDF recropping. Add source lifecycle isolation, strict material consumption, bilingual upload hints, host contracts, documentation, and regression coverage.
2026-11-08 02:31:19 +08:00
myhloli 2dfd42b8e5 perf(webui): remove redundant layout PDF generation 2026-11-07 04:02:22 +08:00
myhloli 3a82fdf783 feat(webui): add bidirectional PDF and image source tracing 2026-11-06 22:10:09 +08:00
myhloli d020a55350 fix(api): block SSRF in URL source downloads 2026-11-06 18:37:27 +08:00
myhloli d77b5f34fa fix(ci): repair doclib links and credential file headers 2026-11-04 20:08:09 +08:00
myhloli 4302bdd074 feat(doclib): require persistent local bearer authentication 2026-11-04 15:06:46 +08:00
myhloli e83f46ea70 fix(hardware): display info report in English 2026-11-03 10:50:23 +08:00
myhloli 31bea79b7d feat(router): add dynamic upstream management
Add authenticated runtime upstream registration and draining while preserving active tasks, streams, and result leases. Support cascaded routers and validate upstream tiers and encoded resource prefixes. Include bilingual documentation and regression coverage.
2026-10-30 15:21:56 +08:00
myhloli a81c0224e9 docs: update documentation references and improve clarity in various files 2026-10-30 04:13:30 +08:00
myhloli 8718ab949c feat(hardware): improve runtime probe summaries and device reporting 2026-10-30 00:47:03 +08:00
myhloli c9cec90c68 feat(hardware): enhance hardware info collection with parallel probes and structured output 2026-10-30 00:22:28 +08:00
myhloli b832b8235d fix(tiers): update CPU core requirements for tier recommendations 2026-10-29 22:42:39 +08:00
myhloli d0440c1698 refactor(runtime): simplify automatic tier recommendations 2026-10-29 13:58:18 +08:00
myhloli 250212946d fix(runtime): match Windows GPU memory by physical PCI identity 2026-10-29 13:34:38 +08:00
Xiaomeng Zhao 169cf60f7e refactor(runtime): reuse small-model device decisions for llama.cpp 2026-10-29 20:17:20 +08:00
myhloli bab3dc92aa feat: update engine options to include llama-cpp and adjust documentation 2026-10-29 16:59:00 +08:00
myhloli 955be0a1c0 feat(gradio): unify automatic startup and default tier selection 2026-10-29 12:14:11 +08:00
Xiaomeng Zhao 57c8e4d882 fix(runtime): use selected GPU memory for automatic tiers 2026-10-28 21:09:12 +08:00
myhloli 40841e03b9 feat(runtime): gate automatic tiers on GPU memory capacity 2026-10-28 20:25:29 +08:00
myhloli 129d945207 feat(gpu): enhance GPU classification and identity matching for improved hardware detection 2026-10-28 15:05:46 +08:00
myhloli 3535fcdab5 feat(hardware): add hardware detection and info commands for diagnostics 2026-10-27 21:02:05 +08:00
myhloli 4c9f9df910 refactor(api): unify tier handling for native documents and update CLI options 2026-10-27 18:43:25 +08:00
myhloli a243103fae refactor(api): update tier handling to support multiple tiers in API calls 2026-10-27 17:14:21 +08:00
myhloli c50c61908c feat(gradio): inject host document operations
Expose GradioDocumentIO for per-app page metadata, page-range checks and result persistence. Preserve cancellation drain and test public/browser callbacks, app isolation and host failures.

Validation: 555 Gradio/SDK tests passed with 3 skips in .venv4; combined MinerU/HF Demo regression passed 578 tests with 3 skips on Python 3.12 and Gradio 6.28.0. Ruff and diff checks passed.
2026-10-26 00:38:31 +08:00
myhloli ec6c23cff9 feat(gradio): cancel remote tasks when conversions are invalidated 2026-10-25 01:49:04 +08:00
myhloli 619765f4d8 refactor(api): unify task file states and response contracts 2026-10-23 19:19:30 +08:00
myhloli 1399b683b4 refactor(api): simplify task protocol and internalize model output 2026-10-23 16:21:59 +08:00
myhloli 412d2c9b86 refactor(gradio): require 6.21 and simplify event chains 2026-10-23 01:11:35 +08:00
myhloli 7f250e2331 feat(api)!: make Tasks the only asynchronous parsing API
Converge the SDK, Gradio, remote CLI, Doclib and Router on Tasks with hash-based uploads, per-file result URLs, task listing and optional model output. Preserve Files and the synchronous file_parse wrapper while removing standalone Uploads/Jobs and local-path HTTP inputs.

Migrate contract, lifecycle, transport and real-document regression coverage; update documentation and HTTP examples. Validation: 1452 passed, 3 conditional skips, plus targeted final PDF checks.

BREAKING CHANGE: clients and workers must use Tasks; standalone Uploads/Jobs endpoints and local-source/inline HTTP options have been removed.
2026-10-22 21:39:42 +08:00
myhloli f59acf1ffa feat(api): add recoverable synchronous file parsing service 2026-10-22 18:42:54 +08:00
myhloli 57485941fb feat(api): process JSON tasks and deliver per-file outputs 2026-10-22 18:41:58 +08:00
myhloli c666e08dc7 feat(api): unify task uploads and result download links
Accept form manifests and per-file uploads with resumable task state and optional source hashes. Publish result URLs only after final ZIP artifacts are ready, and align Router handling with the same protocol.

Remove synchronous parsing and task result routes, drop fixed local upload limits, and update the HTTP client, documentation, and regression coverage.
2026-10-20 10:48:28 +08:00
myhloli aca9b06da3 feat(doclib): add paginated filename search and unified page selectors
Apply filename prefix matching to the final query token and paginate the
complete filtered candidate set with stable ordering and accurate totals.
Reuse input page-range syntax in read locators, including rN and all, and
preserve selected-page boundaries during block and character continuation.
Update CLI/SDK/HTTP contracts, bilingual help, documentation, and regressions.

Validation: 667 Doclib/CLI tests passed; Ruff and formatting checks passed.
Refs #5366, #5337, #5365.
2026-10-11 11:22:21 +08:00
myhloli 5b477601a0 Document PR triage outcomes and service retention and recovery settings 2026-10-10 01:17:33 +08:00