mirror of
https://github.com/jackwener/OpenCLI.git
synced 2026-09-14 18:25:42 +08:00
af7b94152f
Mirrors PR #1464 (list-tweets) and the timeline/search/tweets/likes/thread family: spread `...extractMedia(legacy)` into the row and surface `has_media` + `media_urls` columns. Pure parity, no behavior change for existing callers — media keys do not collide with the original columns. - bookmarks.js: import `extractMedia` from ./shared.js, spread into extractBookmarkTweet row, append columns, export __test__. - bookmark-folder.js: same change on extractFolderTweet, export extractFolderTweet via __test__. - bookmarks.test.js (new): baseline + photo + video + entities-only fallback + dedup + envelope + empty-envelope (8 tests). - bookmark-folder.test.js: update existing baseline expectation with has_media/media_urls, add 3 new media tests (photo / mp4 / no-media). - cli-manifest.json: regenerated; only the two `columns` entries change. Reverse-validated: tests fail when extractMedia spread is removed. Audits unchanged: typed-error-lint 189/189, silent-column-drop 102/103 (pre-existing main resolution noted but not consumed here).