Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/Panniantong/Agent-Reach
/ functions
Functions
379 in github.com/Panniantong/Agent-Reach
⨍
Functions
379
◇
Types & classes
58
↓ 163 callers
Method
get
Get a config value. Also checks environment variables (uppercase).
agent_reach/config.py:69
↓ 41 callers
Method
set
Set a config value and save.
agent_reach/config.py:80
↓ 18 callers
Function
probe_command
Actually execute `cmd *args` and classify the result. Intended for SIDE-EFFECT-FREE health probes only (version/status commands): retries re-
agent_reach/probe.py:47
↓ 15 callers
Method
get
(self, _key)
tests/test_xiaoyuzhou_install.py:9
↓ 11 callers
Function
format_xhs_result
Clean XHS API response, keeping only useful fields. Handles both single note objects and lists of notes (search results). Drastically reduces
agent_reach/channels/xiaohongshu.py:40
↓ 10 callers
Method
check
Probe candidates in order; first fully-usable backend wins. 与其他多后端渠道同一套两段式:先收集全部候选状态,第一个 ok 获胜; 没有 ok 才轮到第一个 warn——否则「装了但未登录」的 twitte
agent_reach/channels/twitter.py:19
↓ 9 callers
Method
_isolate
隔离 OpenCLI / mcp 候选,让测试聚焦目标后端。 opencli: None 表示未安装;否则传入 (status, message) 二元组。
tests/test_channels.py:785
↓ 9 callers
Method
check
Probe candidates in order; first fully-usable backend wins. If none is fully usable, the first fixable candidate (warn) is reported,
agent_reach/channels/xiaohongshu.py:160
↓ 8 callers
Function
get_all_channels
Get all registered channels.
agent_reach/channels/__init__.py:50
↓ 8 callers
Method
ordered_backends
Candidate backends in probe order, honoring the user override. The config key `<channel>_backend` (env `<CHANNEL>_BACKEND`) moves the
agent_reach/channels/base.py:45
↓ 7 callers
Method
_isolate
隔离 OpenCLI 候选(None = 未安装),聚焦 rdt-cli 路径。
tests/test_channels.py:653
↓ 7 callers
Function
_status_with
Run opencli_status with probe_command and disk check patched.
tests/test_opencli_backend.py:10
↓ 7 callers
Method
check
(self, config=None)
tests/test_doctor.py:21
↓ 7 callers
Method
is_configured
Check if a feature has all required config.
agent_reach/config.py:90
↓ 7 callers
Function
opencli_status
Probe OpenCLI install + daemon/extension state without side effects.
agent_reach/backends/opencli.py:80
↓ 6 callers
Function
_cp
(stdout="", stderr="", returncode=0)
tests/test_twitter_channel.py:8
↓ 6 callers
Function
_get_json
Fetch *url* and return parsed JSON. Raises on HTTP/network errors.
agent_reach/channels/v2ex.py:13
↓ 6 callers
Function
_install_skill
Install Agent Reach as an agent skill (OpenClaw / Claude Code / .agents).
agent_reach/cli.py:343
↓ 6 callers
Method
_isolate
(monkeypatch, opencli=None, api_ok=False)
tests/test_channels.py:952
↓ 6 callers
Method
check
Probe candidates in order; first fully-usable backend wins.
agent_reach/channels/bilibili.py:46
↓ 6 callers
Method
check
Probe candidates in order; first fully-usable backend wins.
agent_reach/channels/reddit.py:47
↓ 6 callers
Function
main
()
agent_reach/cli.py:50
↓ 6 callers
Method
read
通过 Jina Reader 读取网页,返回 Markdown 全文。
agent_reach/channels/web.py:24
↓ 5 callers
Function
_get_json
Fetch *url* with Xueqiu session cookies and return parsed JSON.
agent_reach/channels/xueqiu.py:128
↓ 5 callers
Function
_make_executable
(path, content)
tests/test_probe.py:13
↓ 5 callers
Method
can_handle
(self, url: str)
agent_reach/channels/xueqiu.py:156
↓ 5 callers
Function
check_all
Check all channels and return status dict. A single misbehaving channel must never take the whole report down, so per-channel exceptions degr
agent_reach/doctor.py:12
↓ 5 callers
Function
opencli_summary
One-line state description for channel messages / install output.
agent_reach/backends/opencli.py:124
↓ 5 callers
Method
transcribe
Download a YouTube video's audio and return its transcript. Delegates to :func:`agent_reach.transcribe.transcribe`. Imported lazily s
agent_reach/channels/youtube.py:81
↓ 4 callers
Method
can_handle
(self, url: str)
agent_reach/channels/v2ex.py:30
↓ 4 callers
Method
can_handle
(self, url: str)
agent_reach/channels/reddit.py:41
↓ 4 callers
Method
check
(self, config=None)
agent_reach/channels/youtube.py:35
↓ 4 callers
Method
json
(self)
tests/test_cli.py:146
↓ 4 callers
Function
reinstall_hint
Prescription for a broken (stale-venv) CLI install.
agent_reach/probe.py:38
↓ 3 callers
Function
_classify_github_response_error
Classify non-200 GitHub responses that merit special handling.
agent_reach/cli.py:1595
↓ 3 callers
Function
_clean_note
Extract useful fields from a single XHS note/feed item.
agent_reach/channels/xiaohongshu.py:62
↓ 3 callers
Function
_detect_environment
Auto-detect if running on local computer or server.
agent_reach/cli.py:955
↓ 3 callers
Function
_github_get_with_retry
GET GitHub API with retry/backoff and basic error classification.
agent_reach/cli.py:1616
↓ 3 callers
Function
_name_msg
Render one channel line; show the active backend when there is a choice.
agent_reach/doctor.py:38
↓ 3 callers
Function
_provider_key
(provider: str, config: Config)
agent_reach/transcribe.py:157
↓ 3 callers
Function
_require
(binary: str)
agent_reach/transcribe.py:56
↓ 3 callers
Function
_run
Run a subprocess, raising TranscribeError on nonzero exit or timeout. cmd carries user-supplied URLs/paths into yt-dlp/ffmpeg — a stalled net
agent_reach/transcribe.py:61
↓ 3 callers
Method
check
(self, config=None)
agent_reach/channels/github.py:19
↓ 3 callers
Method
check
(self, config=None)
agent_reach/channels/linkedin.py:22
↓ 3 callers
Function
configure_from_browser
Extract cookies and configure all found platforms. Returns list of (platform_name, success, message) tuples.
agent_reach/cookie_extract.py:225
↓ 3 callers
Function
format_report
Format results as a readable text report (with Rich markup).
agent_reach/doctor.py:47
↓ 3 callers
Method
get_hot_topics
获取热门帖子列表。 Returns a list of dicts with keys: title, url, replies, node_name, node_title, content
agent_reach/channels/v2ex.py:54
↓ 3 callers
Method
read
(self)
tests/test_channels.py:615
↓ 3 callers
Function
utf8_subprocess_env
Return an environment that forces Python child processes into UTF-8 mode.
agent_reach/utils/process.py:14
↓ 2 callers
Function
_copy_skill_dir
Copy entire skill directory (locale-specific SKILL.md + references/).
agent_reach/cli.py:371
↓ 2 callers
Method
_ensure_dir
Create config directory if it doesn't exist.
agent_reach/config.py:37
↓ 2 callers
Function
_install_opencli_deps
Install OpenCLI — cross-platform backend riding the user's Chrome session. Desktop-only. The npm package installs automatically; the Chrome e
agent_reach/cli.py:729
↓ 2 callers
Function
_is_newer_version
True if remote is strictly newer than local (semantic compare). A plain != would tell users "update available" when their local build is AHEA
agent_reach/cli.py:1658
↓ 2 callers
Function
_open_owner_only
Open *path* for writing, atomically creating it with mode 0o600. Mirrors the pattern used by Config.save() in config.py: O_WRONLY|O_CREAT| O_
agent_reach/cookie_extract.py:151
↓ 2 callers
Function
_owner_only
(path: str)
tests/test_cookie_extract_perms.py:23
↓ 2 callers
Function
_read_skill_markdown
(skill_pkg)
agent_reach/cli.py:364
↓ 2 callers
Function
_sync_bird_env
Write Twitter credentials to ~/.config/bird/credentials.env for bird CLI. bird reads AUTH_TOKEN and CT0 from environment variables. This writes a
agent_reach/cookie_extract.py:198
↓ 2 callers
Function
_sync_xfetch_session
Sync Twitter credentials to ~/.config/xfetch/session.json (legacy xreach compat).
agent_reach/cookie_extract.py:173
↓ 2 callers
Function
_uninstall_skill
Remove SKILL.md from all known agent skill directories.
agent_reach/cli.py:444
↓ 2 callers
Function
_update_error_text
Map internal error kinds to user-facing text.
agent_reach/cli.py:1581
↓ 2 callers
Method
check
(self, config=None)
agent_reach/channels/exa_search.py:21
↓ 2 callers
Method
check
(self, config=None)
agent_reach/channels/xiaoyuzhou.py:21
↓ 2 callers
Method
doctor_report
Get formatted health report.
agent_reach/core.py:39
↓ 2 callers
Function
get_channel
Get a channel by name.
agent_reach/channels/__init__.py:42
↓ 2 callers
Method
get_hot_posts
获取雪球热门帖子。 Uses the v4 public timeline endpoint which returns posts in a `list` array. Each item carries a JSON-encoded `data` field
agent_reach/channels/xueqiu.py:244
↓ 2 callers
Method
get_topic
获取单个帖子详情和回复列表。 Args: topic_id: 帖子 ID(从 URL https://www.v2ex.com/t/<id> 中获取) Returns a dict with keys: id, titl
agent_reach/channels/v2ex.py:112
↓ 2 callers
Function
get_ytdlp_config_path
Return the yt-dlp user config file path for this OS.
agent_reach/utils/paths.py:23
↓ 2 callers
Method
load
Load config from YAML file.
agent_reach/config.py:41
↓ 2 callers
Function
parse
(v)
agent_reach/cli.py:1665
↓ 2 callers
Method
save
Save config to YAML file.
agent_reach/config.py:49
↓ 1 callers
Method
_check_bili_cli
bili-cli candidate. None = not installed.
agent_reach/channels/bilibili.py:82
↓ 1 callers
Method
_check_bird
探测 bird/birdx(legacy 回退)。返回 None 表示均未安装,否则返回 (status, message)。
agent_reach/channels/twitter.py:110
↓ 1 callers
Method
_check_mcp
xiaohongshu-mcp candidate. None = service not running.
agent_reach/channels/xiaohongshu.py:213
↓ 1 callers
Method
_check_opencli
OpenCLI candidate. None = not installed.
agent_reach/channels/xiaohongshu.py:197
↓ 1 callers
Method
_check_opencli
OpenCLI candidate. None = not installed.
agent_reach/channels/bilibili.py:96
↓ 1 callers
Method
_check_opencli
OpenCLI candidate. None = not installed.
agent_reach/channels/twitter.py:94
↓ 1 callers
Method
_check_opencli
OpenCLI candidate. None = not installed.
agent_reach/channels/reddit.py:80
↓ 1 callers
Method
_check_rdt
rdt-cli candidate. None = not installed.
agent_reach/channels/reddit.py:96
↓ 1 callers
Method
_check_search_api
Zero-dependency search API fallback. None = unreachable.
agent_reach/channels/bilibili.py:112
↓ 1 callers
Method
_check_twitter_cli
探测 twitter-cli。返回 None 表示未安装,否则返回 (status, message)。 `twitter status` 才是健康信号:已登录时输出 "ok: true", 未登录时以非零退出码输出 "not_authenticated"——工具本
agent_reach/channels/twitter.py:59
↓ 1 callers
Method
_check_xhs_cli
Legacy xhs-cli candidate. None = not installed.
agent_reach/channels/xiaohongshu.py:231
↓ 1 callers
Function
_classify_update_error
Classify update-check errors for user-friendly diagnostics.
agent_reach/cli.py:1557
↓ 1 callers
Function
_clean_comment
Extract useful fields from a comment.
agent_reach/channels/xiaohongshu.py:133
↓ 1 callers
Function
_cmd_check_update
Check for newer versions on GitHub.
agent_reach/cli.py:1677
↓ 1 callers
Function
_cmd_configure
Set a config value and test it, or auto-extract from browser.
agent_reach/cli.py:997
↓ 1 callers
Function
_cmd_doctor
(args=None)
agent_reach/cli.py:1447
↓ 1 callers
Function
_cmd_format
Clean and format platform API output from stdin.
agent_reach/cli.py:488
↓ 1 callers
Function
_cmd_install
One-shot deterministic installer.
agent_reach/cli.py:171
↓ 1 callers
Function
_cmd_setup
()
agent_reach/cli.py:1467
↓ 1 callers
Function
_cmd_skill
Manage agent skill registration.
agent_reach/cli.py:480
↓ 1 callers
Function
_cmd_transcribe
Transcribe a URL or local audio file via Whisper (Groq → OpenAI fallback).
agent_reach/cli.py:1113
↓ 1 callers
Function
_cmd_uninstall
Remove all Agent Reach config, tokens, and skill files.
agent_reach/cli.py:1346
↓ 1 callers
Function
_cmd_watch
Quick health check + update check, designed for scheduled tasks. Only outputs problems. If everything is fine, outputs a single line.
agent_reach/cli.py:1739
↓ 1 callers
Function
_configure_logging
Suppress loguru output unless --verbose is set.
agent_reach/cli.py:42
↓ 1 callers
Function
_configure_xhs_cookies
Import cookies into xiaohongshu-mcp Docker container. Accepts two formats: 1. Cookie-Editor JSON export (array of cookie objects) 2. Head
agent_reach/cli.py:1153
↓ 1 callers
Function
_ensure_cookies
Populate session cookies using the best available source. Priority order: 1. Saved cookie string in ~/.agent-reach/config.yaml (set by confi
agent_reach/channels/xueqiu.py:102
↓ 1 callers
Function
_ensure_utf8_console
Best-effort Windows console UTF-8 setup for CLI runtime only.
agent_reach/cli.py:24
↓ 1 callers
Function
_extension_installed_on_disk
True if the OpenCLI extension exists in any Chrome profile. Store-installed extensions always live under <profile>/Extensions/<extension id>/
agent_reach/backends/opencli.py:40
↓ 1 callers
Function
_has_js_runtime_config
Return whether yt-dlp config explicitly enables a JS runtime.
agent_reach/channels/youtube.py:13
↓ 1 callers
Function
_inject_cookie_string
Parse a 'name=value; name2=value2' string and inject into the cookie jar.
agent_reach/channels/xueqiu.py:31
next →
1–100 of 379, ranked by callers