* feat(image): configurable image pipelines, rebuilt on current main
Rebuilds the image-pipeline work on top of the current main, carrying
only the pipeline and request-side changes:
- The hard-coded image flow becomes registry-driven pipelines (default /
smartocr), selectable per knowledge base, with a frontend panel and
per-action thinking switches addressed as action-level keys
(caption.thinking / ocr.thinking) declared once and carried into every
pipeline.
- Request-side support: VLM.PredictWithOptions carries a per-call
thinking switch through every implementation and decorator, including
the background concurrency wrapper.
- OCR failure handling follows main's #4132 semantics: invalid output is
rejected and recorded (ocr_status / ocr_error_code / .ocr subspan)
without retrying the whole image; caption/observation failures get
symmetric subspans instead of leaving the image span green.
- Permanent VLM failures skip the asynq retry budget; a run that
produced nothing fails honestly instead of passing as skipped.
- UI and locale fixes travel with the panel.
Concurrency, rate limiting and circuit breaking are NOT part of this
branch: they stay with the existing system limiter.
* fix(image): address pipeline configuration and execution regressions
* fix(image): align pipeline overrides and validation semantics
* style(image): keep the new pipeline code inside the lll and gofumpt gates
---------
Co-authored-by: tayadwx <tayadwx@users.noreply.github.com>
Co-authored-by: wizardchen <wizardchen@tencent.com>