From 781496540b4f81b0ab3f37c5ed3d32385018ba9a Mon Sep 17 00:00:00 2001 From: Pnant <73925474+Panniantong@users.noreply.github.com> Date: Wed, 10 Jun 2026 14:16:25 +0800 Subject: [PATCH] fix: correct stale twitter flag, MP3 case match, reddit tier, bird residue (#344) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Four small correctness fixes found while live-testing community PRs: - SKILL.md taught agents 'twitter search --limit 10' but twitter-cli v0.8.5 has no --limit (real flag is -n/--max) — every agent following the skill got a usage error - transcribe_xiaoyuzhou.sh audio regex only matched lowercase .m4a/.mp3; current episodes serve uppercase .MP3 (verified on a live episode) — add /i flag - reddit.py declared tier=0 (zero-config) while its own docstring says Reddit requires login since 2024 — set tier=1 to match reality (tier is doctor display metadata only) - docs/README_en.md referenced the retired 'bird' CLI name once Co-authored-by: Claude Opus 4.8 (1M context) --- agent_reach/channels/reddit.py | 2 +- agent_reach/scripts/transcribe_xiaoyuzhou.sh | 2 +- agent_reach/skill/SKILL.md | 2 +- docs/README_en.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/agent_reach/channels/reddit.py b/agent_reach/channels/reddit.py index 50bcad6..371a77a 100644 --- a/agent_reach/channels/reddit.py +++ b/agent_reach/channels/reddit.py @@ -19,7 +19,7 @@ class RedditChannel(Channel): name = "reddit" description = "Reddit 帖子和评论" backends = ["rdt-cli"] - tier = 0 + tier = 1 # Reddit requires login since 2024 (rdt login) — not zero-config def can_handle(self, url: str) -> bool: from urllib.parse import urlparse diff --git a/agent_reach/scripts/transcribe_xiaoyuzhou.sh b/agent_reach/scripts/transcribe_xiaoyuzhou.sh index 15b2ab9..19a8f42 100755 --- a/agent_reach/scripts/transcribe_xiaoyuzhou.sh +++ b/agent_reach/scripts/transcribe_xiaoyuzhou.sh @@ -35,7 +35,7 @@ echo "====================" # Step 1: 提取音频 URL 和标题 echo "🔍 正在解析页面..." PAGE=$(curl -s "$URL") -AUDIO_URL=$(echo "$PAGE" | perl -ne 'while (/(https:\/\/media\.xyzcdn\.net\/[^"]*\.(?:m4a|mp3))/g) { print "$1\n" }' | head -1) +AUDIO_URL=$(echo "$PAGE" | perl -ne 'while (/(https:\/\/media\.xyzcdn\.net\/[^"]*\.(?:m4a|mp3))/gi) { print "$1\n" }' | head -1) TITLE=$(echo "$PAGE" | perl -ne 'if (/"title":"([^"]*)"/) { print "$1\n"; last }' | head -1) if [ -z "$AUDIO_URL" ]; then diff --git a/agent_reach/skill/SKILL.md b/agent_reach/skill/SKILL.md index 4c9545f..270182f 100644 --- a/agent_reach/skill/SKILL.md +++ b/agent_reach/skill/SKILL.md @@ -58,7 +58,7 @@ curl -s "https://r.jina.ai/URL" gh search repos "query" --sort stars --limit 10 # Twitter 搜索 -twitter search "query" --limit 10 +twitter search "query" -n 10 # YouTube/B站字幕 yt-dlp --write-sub --skip-download -o "/tmp/%(id)s" "URL" diff --git a/docs/README_en.md b/docs/README_en.md index bb8f5db..e3ed48e 100644 --- a/docs/README_en.md +++ b/docs/README_en.md @@ -86,7 +86,7 @@ Update Agent Reach: https://raw.githubusercontent.com/Panniantong/agent-reach/ma > ⚠️ **OpenClaw users: enable `exec` permission first** > -> Agent Reach relies on the Agent running shell commands (`pip install`, `mcporter`, `bird`, etc.). If your OpenClaw uses the default `messaging` tool profile, the Agent won't be able to run them. **Enable `exec` before installing:** +> Agent Reach relies on the Agent running shell commands (`pip install`, `mcporter`, `twitter`, etc.). If your OpenClaw uses the default `messaging` tool profile, the Agent won't be able to run them. **Enable `exec` before installing:** > > ```bash > openclaw config set tools.profile "coding"