diff --git a/README.md b/README.md index 7bfbe888b1..bcf0f3ad6c 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/6d459488-4834-40ef-90bc-d6649c4f0ef1 + +

60-second overview — one sentence sets a long-horizon goal across Codex, Claude Code, Gemini & DeepSeek; LoopX keeps Todos, replanning, human sign-off, and 3% first-read session recovery verifiable across 200+ hour runs (community film by @lemomo_ai · more product recordings below).

+ --- diff --git a/README.zh-CN.md b/README.zh-CN.md index 2681d8c233..ee67ed5cb2 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -18,6 +18,10 @@ +https://github.com/user-attachments/assets/eeb95ecd-6e5b-43d7-a8aa-b3d1b4449423 + +

60 秒看懂 LoopX:一句话设定长程目标,跨 Codex、Claude Code、Gemini 与 DeepSeek 分工协作、未过校验自动重规划、关键决策人类拍板、首读上下文压至 3% 跨会话续跑 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