feat(imageright): finalize two-pass audit engine and task-audit UI polish

Uncommitted work-in-progress from 2026-07-08, carried forward:
- audit-engine: refine two-pass metadata + content-inspection audit model
- audit-matching, content-inspector, shape-audit-spec: supporting matching
  and spec updates for the two-pass model
- task-audit route/panel: UI and API polish
- add @napi-rs/canvas dependency, Dockerfile/next.config adjustments for it
- test updates and additions (audit-engine, audit-decision-logic,
  run-task-audit)
- add loose dev notes (clone runbook, issues implementation, overdue filter
  bug report, shared count helper plan)
This commit is contained in:
lorentz 2026-07-16 22:52:41 +00:00
parent 6dd7e3e836
commit 01ecfacd04
17 changed files with 1278 additions and 112 deletions

View file

@ -42,6 +42,10 @@ COPY --from=builder /app/.next/standalone ./
COPY --from=builder /app/.next/static ./.next/static
COPY --from=builder /app/prisma ./prisma
COPY --from=builder /app/node_modules/.prisma ./node_modules/.prisma
# Next's standalone output file-tracer doesn't follow @napi-rs/canvas's platform-specific
# optional dependency (resolved dynamically at require() time) — copy it in full, same as
# .prisma above. Needed by pdf-parse (see src/lib/imageright/content-inspector.ts).
COPY --from=builder /app/node_modules/@napi-rs ./node_modules/@napi-rs
# Set correct permissions
RUN chown -R nextjs:nodejs /app