From 087408d8fcfeac2af63517fdfe5a860b71e36127 Mon Sep 17 00:00:00 2001 From: LoopX Agent <337587101+loopx-agent@users.noreply.github.com> Date: Sat, 21 Nov 2026 21:13:27 +0800 Subject: [PATCH 1/2] docs(readme): embed compressed hero overview videos in EN and ZH READMEs Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com> --- README.md | 4 ++++ README.zh-CN.md | 4 ++++ tests/test_readme_presentation.py | 29 +++++++++++++++++++++++++++++ 3 files changed, 37 insertions(+) diff --git a/README.md b/README.md index 7bfbe888b1..d808485187 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,10 @@ progress, decisions and verifiable results so work can continue across sessions. +https://github.com/user-attachments/assets/9b36c5ba-a4e6-4e94-aa96-9c1fb6c91f91 + +
77-second 3D overview — durable Goals, Todos, verifiable evidence, human approval gates, and crash-safe recovery across 200+ hour runs (community film by @lemomo_ai; English-captioned v2 cut coming soon · more product recordings below).
+ --- diff --git a/README.zh-CN.md b/README.zh-CN.md index 2681d8c233..993f265a28 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -18,6 +18,10 @@ +https://github.com/user-attachments/assets/f42a9f7a-cf73-47f1-931b-2c7c8666c682 + +60 秒看懂 LoopX:从一句话长程目标、跨 Agent 分工、验证未过重规划、关键决策拍板,到中断读回状态持续推进 200+ 小时(社区贡献者 @lemomo_ai 制作 · 更多实录演示见下文)。
+ --- diff --git a/tests/test_readme_presentation.py b/tests/test_readme_presentation.py index bb2df59f4d..69b73e4d3d 100644 --- a/tests/test_readme_presentation.py +++ b/tests/test_readme_presentation.py @@ -1,5 +1,6 @@ from __future__ import annotations +import re from html.parser import HTMLParser from pathlib import Path @@ -9,6 +10,7 @@ REPO_ROOT = Path(__file__).resolve().parents[1] TRENDING_BADGE = "https://trendshift.io/api/badge/repositories/102379" TRENDING_SOURCE = "https://trendshift.io/repositories/102379" +USER_ATTACHMENT_RE = re.compile(r"^https://github\.com/user-attachments/assets/[0-9a-f-]+$") class LinkedImages(HTMLParser): @@ -45,3 +47,30 @@ def test_trending_achievement_is_linked_once_in_readme_hero(readme: str) -> None assert link == TRENDING_SOURCE, "The badge must link to this repository's ranking evidence" alt = attributes.get("alt") or "" assert "#1" in alt and "GitHub Trending" in alt, "Keep the achievement readable without the image" + + +@pytest.mark.parametrize( + ("readme", "quick_start_anchor"), + [ + ("README.md", ''), + ("README.zh-CN.md", ''), + ], +) +def test_readme_hero_embeds_standalone_user_attachment_video_outside_html_div( + readme: str, + quick_start_anchor: str, +) -> None: + text = (REPO_ROOT / readme).read_text(encoding="utf-8") + hero_end = text.index("") + quick_start_start = text.index(quick_start_anchor) + opening_band = text[hero_end + len("") : quick_start_start] + paragraphs = [p.strip() for p in opening_band.split("\n\n") if p.strip()] + attachment_paragraphs = [p for p in paragraphs if USER_ATTACHMENT_RE.match(p)] + assert len(attachment_paragraphs) == 1, ( + "GitHub renders bare user-attachment URLs into inline