openreader/compute/core/src
Richard R fe59685454 feat(worker): add granular PDF progress reporting and abort error handling
Introduce per-page progress events for PDF parsing by adding onPageStarted
hooks throughout the compute worker and core PDF pipeline. Add
compute/worker/src/pdf-progress.ts to encapsulate progress event builders.
Update server logic to emit page start and page parsed events, improving
client feedback during long-running PDF jobs.

Add src/lib/server/compute/abort-like-error.ts and integrate isAbortLikeError
to robustly detect and suppress expected aborts in API event streaming.
Update API route to ignore abort-like errors on worker proxy crash.

Add unit tests for abort-like error detection and PDF progress event
generation. Refactor PDF parse logic to allow empty merged regions without
throwing, ensuring downstream flows remain resilient to edge cases.

These changes improve observability, error handling, and reliability for
document parsing and event streaming.
2026-05-29 20:13:59 -06:00
..
api-contracts feat(worker-events): stream op events via jetstream and proxy in app 2026-05-25 21:37:27 -06:00
config feat(pdf,config): implement stale parse-state healing and unify op stale window config 2026-05-22 01:21:18 -06:00
control-plane cleanup compute core/server dead paths 2026-05-26 18:43:05 -06:00
pdf feat(worker): add granular PDF progress reporting and abort error handling 2026-05-29 20:13:59 -06:00
platform cleanup compute core/server dead paths 2026-05-26 18:43:05 -06:00
types refactor(core,server): migrate contracts to api-contracts and modularize job handlers 2026-05-24 11:39:25 -06:00
whisper refactor(whisper): migrate default ONNX model references to q4 variant 2026-05-26 19:22:07 -06:00
index.ts feat(control-plane): add shared orchestrator and in-memory adapters 2026-05-26 11:09:43 -06:00
local-runtime.ts feat(worker): add granular PDF progress reporting and abort error handling 2026-05-29 20:13:59 -06:00