feat(attachments): importer dispatch — archive extract + non-media capture

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-19 11:13:36 -04:00
parent df76fd75d8
commit f97551e2f6
4 changed files with 298 additions and 12 deletions
+3 -2
View File
@@ -117,13 +117,14 @@ def test_transparent_filter(importer, import_layout):
def test_unsupported_extension(importer, import_layout):
# FC-2d-iii: non-media is no longer skipped — it's captured as a
# PostAttachment so nothing a post contained is lost.
import_root, _ = import_layout
src = import_root / "Alice" / "notes.txt"
src.parent.mkdir(parents=True, exist_ok=True)
src.write_text("hello")
result = importer.import_one(src)
assert result.status == "skipped"
assert result.skip_reason == SkipReason.invalid_image
assert result.status == "attached"
def test_root_level_file_has_no_artist(importer, import_layout):