Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ progress, decisions and verifiable results so work can continue across sessions.

</div>

https://github.com/user-attachments/assets/6d459488-4834-40ef-90bc-d6649c4f0ef1

<p align="center"><sub><b>60-second overview</b> — one sentence sets a long-horizon goal across Codex, Claude Code, Gemini &amp; DeepSeek; LoopX keeps Todos, replanning, human sign-off, and 3% first-read session recovery verifiable across 200+ hour runs (community film by <a href="https://x.com/lemomo_ai">@lemomo_ai</a> · <a href="#see-loopx-in-action">more product recordings below</a>).</sub></p>

---

<a id="quick-start"></a>
Expand Down
4 changes: 4 additions & 0 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@

</div>

https://github.com/user-attachments/assets/eeb95ecd-6e5b-43d7-a8aa-b3d1b4449423

<p align="center"><sub><b>60 秒看懂 LoopX</b>:一句话设定长程目标,跨 Codex、Claude Code、Gemini 与 DeepSeek 分工协作、未过校验自动重规划、关键决策人类拍板、首读上下文压至 3% 跨会话续跑 200+ 小时(社区贡献者 <a href="https://x.com/lemomo_ai">@lemomo_ai</a> 制作 · <a href="#看看-loopx-如何工作">更多实录演示见下文</a>)。</sub></p>

---

<a id="快速开始"></a>
Expand Down
29 changes: 29 additions & 0 deletions tests/test_readme_presentation.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from __future__ import annotations

import re
from html.parser import HTMLParser
from pathlib import Path

Expand All @@ -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):
Expand Down Expand Up @@ -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", '<a id="quick-start"></a>'),
("README.zh-CN.md", '<a id="快速开始"></a>'),
],
)
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("</div>")
quick_start_start = text.index(quick_start_anchor)
opening_band = text[hero_end + len("</div>") : 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 <video> players only when placed "
"as a standalone paragraph outside the opening <div> container"
)
assert "<video" not in opening_band.lower()
assert not USER_ATTACHMENT_RE.search(text[:hero_end]), (
"Hero video attachment URL must not sit inside the HTML <div> block"
)
Loading