feat(workers): sync.source_doc with sha256 diff

Fetches upstream URL via safe_fetch, sha256-diffs against the prior
body_sha stored in metadata, updates body_text + last_synced only when
content changed. Unchanged syncs just touch last_synced.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
root
2026-06-01 10:13:27 +10:00
parent cd1d69c689
commit 8fa7f71694
3 changed files with 104 additions and 1 deletions

View File

@@ -1,8 +1,9 @@
from . import echo, pdf, image, video
from . import echo, pdf, image, video, sourcedoc
REGISTRY = {
echo.NAME: echo.handle,
pdf.NAME: pdf.handle,
image.NAME: image.handle,
video.NAME: video.handle,
sourcedoc.NAME: sourcedoc.handle,
}