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
5 changes: 5 additions & 0 deletions changes/studio-sample-wall.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
**Studio 的空间有了样片墙:照着工作台自己的片子开一支;对话列的下拉框不再截字,没登录的提示只说一次**
- Why: 刚装好打开 Studio,空间是空的,除了右边一列没东西可看,也不知道第一句该说什么。
- 样片墙:官网放的那四支片子(竖屏科普、数学讲解、手绘短片、发布短片),每张卡写类型、时长、竖屏还是横屏、风格(库里有的带上风格的 id)。按钮"照这个做一支"只把一句话写进开新片子的框里,不发送、不开始任何事:这句话和官网那张卡复制的一样,点名库里的风格(`styles/dark-math`、`watercolor-pastoral`、`product-keynote`)和取自发布短片的三张配方;有要填的空就选中它,框里原来写的 ⌘Z 拿得回来。框写不进去时不写:还没装 agent,就先留着这一句、在"装上"那里说一声,装好以后点一下"写进框里";空间里那段对话还在做或在等你批准,不把它换走,等它停下再写。还没有片子时样片墙展开着;有了自己的片子,或在窄屏上,它先收着,点开再看。画面是官网的封面图;用 `tools/fetch_media.sh` 下载过片子的,鼠标停在卡上放 4 秒。
- 官网那三句(数学讲解、手绘短片、发布短片)也带上了同样的风格和配方,两处一字不差;`tools/desk/test_wording.py` 对着官网查,句子里点名的风格和配方都要在仓库里。
- 对话列:选 agent 的下拉框把名字写全(以前在 1440×900 下是"Claude Code(没装");没登录时发一句,怎么登录在屏幕上正好说一次,不管 agent 先报"没登录"、先用自己的话说,还是先说这一句没做成,停下的那一句也算。
6 changes: 3 additions & 3 deletions docs/site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1140,7 +1140,7 @@ <h3><b>04</b><span lang="en">Check &amp; deliver</span><span lang="zh">查与交
</video>
<img class="sheet" data-src="../../showcase/03-math-fourier/media/sheet.png" alt="Contact sheet of the math explainer">
<i class="scan"></i><span class="sheet-tag"><span lang="en">contact sheet</span><span lang="zh">联系表</span></span><span class="pbtn" aria-hidden="true"></span>
<figcaption><b><span lang="en">Math explainer, 3Blue1Brown style</span><span lang="zh">数学讲解,3Blue1Brown 风格</span></b><q><span lang="en">Building a square wave from sine waves</span><span lang="zh">用正弦波搭出方波</span></q><small><span lang="en">Manim · 25 s · English narration</span><span lang="zh">Manim · 25 秒 · 英文旁白</span></small></figcaption><div class="say-mini"><span data-copy-text lang="en">Quick draft: a 25-second math explainer in the 3Blue1Brown style, on why the odd numbers from 1 always add up to a square.</span><span data-copy-text lang="zh">快速出一版 25 秒的数学讲解,3Blue1Brown 的风格:为什么从 1 开始的连续奇数加起来总是平方数。</span><button type="button" class="copy say-btn" data-toast data-aria-en="Copy a sentence to make one like this" data-aria-zh="复制一句话,照这个做一支"><span lang="en">Make one like this · copy</span><span lang="zh">照这个做一支 · 复制这句话</span></button></div>
<figcaption><b><span lang="en">Math explainer, 3Blue1Brown style</span><span lang="zh">数学讲解,3Blue1Brown 风格</span></b><q><span lang="en">Building a square wave from sine waves</span><span lang="zh">用正弦波搭出方波</span></q><small><span lang="en">Manim · 25 s · English narration</span><span lang="zh">Manim · 25 秒 · 英文旁白</span></small></figcaption><div class="say-mini"><span data-copy-text lang="en">Quick draft: a 25-second math explainer in the Dark Math style (styles/dark-math), on why the odd numbers from 1 always add up to a square.</span><span data-copy-text lang="zh">快速出一版 25 秒的数学讲解,用「暗底数学」风格(styles/dark-math):为什么从 1 开始的连续奇数加起来总是平方数。</span><button type="button" class="copy say-btn" data-toast data-aria-en="Copy a sentence to make one like this" data-aria-zh="复制一句话,照这个做一支"><span lang="en">Make one like this · copy</span><span lang="zh">照这个做一支 · 复制这句话</span></button></div>
</figure>
<figure class="film" data-title-en="Hand-drawn short" data-title-zh="手绘短片" data-r style="--sd:.24s">
<video playsinline muted preload="none" poster="img/01-clawd.jpg">
Expand All @@ -1149,7 +1149,7 @@ <h3><b>04</b><span lang="en">Check &amp; deliver</span><span lang="zh">查与交
</video>
<img class="sheet" data-src="../../showcase/01-handdrawn-clawd-leaf/media/sheet.png" alt="Contact sheet of the hand-drawn short">
<i class="scan"></i><span class="sheet-tag"><span lang="en">contact sheet</span><span lang="zh">联系表</span></span><span class="pbtn" aria-hidden="true"></span>
<figcaption><b><span lang="en">Hand-drawn short</span><span lang="zh">手绘短片</span></b><q><span lang="en">Clawd tries to film a falling autumn leaf</span><span lang="zh">Clawd 想拍下一片飘落的秋叶</span></q><small><span lang="en">p5.brush · 12 s · no words, score and foley</span><span lang="zh">p5.brush · 12 秒 · 无台词,配乐和拟音</span></small></figcaption><div class="say-mini"><span data-copy-text lang="en">Quick draft: a 12-second hand-drawn short of a cat chasing a paper plane the wind carries off.</span><span data-copy-text lang="zh">快速出一版 12 秒的手绘小短片:一只猫追着一架被风吹走的纸飞机。</span><button type="button" class="copy say-btn" data-toast data-aria-en="Copy a sentence to make one like this" data-aria-zh="复制一句话,照这个做一支"><span lang="en">Make one like this · copy</span><span lang="zh">照这个做一支 · 复制这句话</span></button></div>
<figcaption><b><span lang="en">Hand-drawn short</span><span lang="zh">手绘短片</span></b><q><span lang="en">Clawd tries to film a falling autumn leaf</span><span lang="zh">Clawd 想拍下一片飘落的秋叶</span></q><small><span lang="en">p5.brush · 12 s · no words, score and foley</span><span lang="zh">p5.brush · 12 秒 · 无台词,配乐和拟音</span></small></figcaption><div class="say-mini"><span data-copy-text lang="en">Quick draft: a 12-second hand-drawn short in the Watercolor Pastoral style (styles/watercolor-pastoral) of a cat chasing a paper plane the wind carries off.</span><span data-copy-text lang="zh">快速出一版 12 秒的手绘小短片,用「水彩田园」风格(styles/watercolor-pastoral):一只猫追着一架被风吹走的纸飞机。</span><button type="button" class="copy say-btn" data-toast data-aria-en="Copy a sentence to make one like this" data-aria-zh="复制一句话,照这个做一支"><span lang="en">Make one like this · copy</span><span lang="zh">照这个做一支 · 复制这句话</span></button></div>
</figure>
<figure class="film" data-title-en="Launch short" data-title-zh="发布短片" data-r style="--sd:.36s">
<video playsinline muted preload="none" poster="img/00-launch.jpg">
Expand All @@ -1158,7 +1158,7 @@ <h3><b>04</b><span lang="en">Check &amp; deliver</span><span lang="zh">查与交
</video>
<img class="sheet" data-src="../../showcase/00-promo-launch-film/media/sheet.png" alt="Contact sheet of the launch short">
<i class="scan"></i><span class="sheet-tag"><span lang="en">contact sheet</span><span lang="zh">联系表</span></span><span class="pbtn" aria-hidden="true"></span>
<figcaption><b><span lang="en">Launch short</span><span lang="zh">发布短片</span></b><q><span lang="en">A short launch film for OpenVideoHarness itself</span><span lang="zh">给 OpenVideoHarness 自己做的发布短片</span></q><small><span lang="en">HyperFrames · 20 s · a sound for every move</span><span lang="zh">HyperFrames · 20 秒 · 每个动作都有声音</span></small></figcaption><div class="say-mini"><span data-copy-text lang="en">Quick draft: a 20-second launch short for my open-source project, [paste its link here].</span><span data-copy-text lang="zh">快速出一版 20 秒的发布短片,介绍我的开源项目:[在这里贴上它的链接]。</span><button type="button" class="copy say-btn" data-toast data-aria-en="Copy a sentence to make one like this" data-aria-zh="复制一句话,照这个做一支"><span lang="en">Make one like this · copy</span><span lang="zh">照这个做一支 · 复制这句话</span></button></div>
<figcaption><b><span lang="en">Launch short</span><span lang="zh">发布短片</span></b><q><span lang="en">A short launch film for OpenVideoHarness itself</span><span lang="zh">给 OpenVideoHarness 自己做的发布短片</span></q><small><span lang="en">HyperFrames · 20 s · a sound for every move</span><span lang="zh">HyperFrames · 20 秒 · 每个动作都有声音</span></small></figcaption><div class="say-mini"><span data-copy-text lang="en">Quick draft: a 20-second launch short in the Product Keynote style (styles/product-keynote), with the recipes zoom-through, cut-the-curve and oversized-cursor, for my open-source project, [paste its link here].</span><span data-copy-text lang="zh">快速出一版 20 秒的发布短片,用「产品发布片」风格(styles/product-keynote),镜头参考配方 zoom-through、cut-the-curve、oversized-cursor,介绍我的开源项目:[在这里贴上它的链接]。</span><button type="button" class="copy say-btn" data-toast data-aria-en="Copy a sentence to make one like this" data-aria-zh="复制一句话,照这个做一支"><span lang="en">Make one like this · copy</span><span lang="zh">照这个做一支 · 复制这句话</span></button></div>
</figure>
<a class="film info" href="https://github.com/ZLHad/OpenVideoHarness/tree/main/showcase" target="_blank" rel="noopener" data-r>
<b><span lang="en">Every film ships with its paper trail</span><span lang="zh">每支片子都附带完整的制作记录</span></b>
Expand Down
8 changes: 4 additions & 4 deletions tools/ci-paths.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ tools/ci-paths.txt plumbing_checks
.github/**

# pages people read (a tool that names one of them puts its groups here)
README.zh-CN.md
README.zh-CN.md desk_checks
ACKNOWLEDGMENTS.md
CONTRIBUTING.md plumbing_checks studio_checks hdri_checks
CONTRIBUTING.md plumbing_checks desk_checks studio_checks hdri_checks
CODE_OF_CONDUCT.md
SECURITY.md
CITATION.cff plumbing_checks studio_checks
CITATION.cff plumbing_checks desk_checks studio_checks
LICENSE hf_checks
showcase/** smoke_checks timeline_checks decision_checks desk_checks console_checks web_checks model3d_checks
cases/** gate_checks desk_checks console_checks status_checks contract_checks cancel_checks history_checks know_checks artifacts_checks studio_checks
showcase/** smoke_checks timeline_checks decision_checks web_checks model3d_checks
install.sh plumbing_checks smoke_checks desk_checks studio_checks cancel_checks assets_checks scout_checks web_checks model3d_checks settings_page_checks
LOCAL.example.md plumbing_checks smoke_checks desk_checks studio_checks cancel_checks assets_checks scout_checks web_checks model3d_checks settings_page_checks
skills/** smoke_checks cancel_checks assets_checks scout_checks web_checks model3d_checks settings_page_checks studio_checks
Expand Down
21 changes: 20 additions & 1 deletion tools/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4123,6 +4123,25 @@ want(s == 200 and h.get("Content-Security-Policy", "").startswith("sandbox"), "a
for p in (f"/f/{K}/..%2fzh/BRIEF.md", f"/f/{K}/../zh/BRIEF.md", "/f/nope-x/BRIEF.md", "/api/p/nope-x/data", f"/api/p/{K}/gate/9", "/api/data", "/p/BRIEF.md"):
want(req("GET", p)[0] == 404, f"{p} answered")
want(req("GET", "/api/projects", host="evil.test")[0] == 403, "another Host answered")
# the space's sample wall: the four showcase posters always, each film only when it is in the clone, and nothing else of the clone
smp = json.loads(req("GET", "/api/projects")[2]).get("samples")
s, h, img = req("GET", "/samples/short.jpg")
want(isinstance(smp, list) and set(smp) <= {"short", "math", "handdrawn", "launch"} and s == 200 and h.get("Content-Type") == "image/jpeg" and img[:2] == b"\xff\xd8"
and all(req("GET", f"/samples/{x}.jpg")[0] == 200 for x in ("math", "handdrawn", "launch"))
and all(req("GET", f"/samples/{x}.mp4")[0] == (200 if x in smp else 404) for x in ("short", "math", "handdrawn", "launch")),
f"the sample wall's posters and films: {smp} {s} {h.get('Content-Type')}")
for p in ("/samples/nope.jpg", "/samples/short.png", "/samples/..%2fserver.py", "/samples/", "/samples/short.jpg/x"):
want(req("GET", p)[0] == 404, f"{p} answered")
film = "showcase/02-short-leo-doppler/media/final.mp4" # a film linked in from outside the clone: neither listed nor served
if not os.path.lexists(film) and os.path.isdir(os.path.dirname(film)):
outside = os.path.join(os.path.dirname(root), "outside.mp4")
open(outside, "wb").write(b"\x00" * 64)
os.symlink(outside, film)
try:
want("short" not in json.loads(req("GET", "/api/projects")[2]).get("samples", []) and req("GET", "/samples/short.mp4")[0] == 404,
"a film linked in from outside the clone is listed or served")
finally:
os.remove(film)
fb = lambda **k: json.dumps(dict({"round": "3", "lang": "zh", "decisions": {"draft": "OK"}, "defaulted": ["voice"], "general": "",
"items": [{"target": "least:S04", "status": "change", "label": "没把握:S04", "text": "再大一点"}], "pid": pid(root + "/demo")}, **k)).encode()
H = {"Content-Type": "application/json", "X-Desk-Token": token}
Expand Down Expand Up @@ -4391,7 +4410,7 @@ for f, text in (("ui.css", ui), ("studio.css", css), ("modules.css", mcss)):
for sel, rule in re.findall(r"([^{}]+)\{([^{}]*)\}", re.sub(r"/\*.*?\*/", "", text, flags=re.S)):
if re.search(r"text-transform:\s*(uppercase|var\(--label-case\))", rule):
caps += [f"{f}: {s.strip()}" for s in sel.split(",")]
allowed = {"modules.css: .mh2 .kick", "modules.css: .pn-h", "modules.css: .mat-h", "ui.css: .g-eyebrow", "ui.css: .g-h", "studio.css: .mh .kick", "studio.css: .sect>h2",
allowed = {"modules.css: .mh2 .kick", "modules.css: .pn-h", "modules.css: .mat-h", "ui.css: .g-eyebrow", "ui.css: .g-h", "studio.css: .mh .kick", "studio.css: .sect>h2", "studio.css: .smp-wall>summary>h2",
"studio.css: :root[data-theme=bridge] .col-head b", "studio.css: .col-body .blk-h", "studio.css: .lgroup", "studio.css: .tl .grp"}
want(set(caps) <= allowed and "code,kbd,samp,pre,.kbd,.cmd,.hint{text-transform:none" in ui.replace(" ", ""), f"capitals beyond the short labels, or no reset for code: {sorted(set(caps) - allowed)}")
want("flex-wrap:nowrap" in re.search(r"\.tl-bar\{[^}]*\}", css).group(0) and '<span class="zoom">' in st and ".tl-bar .zoom{" in css, "the timeline's bar wraps, or − and + can part")
Expand Down
Loading
Loading