bird CLI (@steipete/bird) is deprecated and no longer maintained. xreach CLI (xreach-cli on npm) is our maintained fork with: - Fixed SearchTimeline (POST + updated query ID) - Built-in proxy rotation support - Additional features (DMs, notifications, lists) Changes across 11 files: - channels/twitter.py: detect xreach instead of bird/birdx - cli.py: install/doctor/uninstall all reference xreach-cli - SKILL.md: updated command examples (bird read → xreach tweet) - guides/setup-twitter.md: rewritten for xreach - docs/troubleshooting.md: updated proxy guidance - README.md + README_en.md: all references updated - config.py: twitter_bird → twitter_xreach - core.py, mcp_server.py: comment updates npm package: https://www.npmjs.com/package/xreach-cli Source: https://github.com/Panniantong/xfetch
42 lines
1.2 KiB
Python
42 lines
1.2 KiB
Python
# -*- coding: utf-8 -*-
|
|
"""
|
|
AgentReach — installer, doctor, and configuration tool.
|
|
|
|
Agent Reach helps AI agents install and configure upstream platform tools
|
|
(xreach CLI, yt-dlp, mcporter, gh CLI, etc.). After installation, agents
|
|
call the upstream tools directly — no wrapper layer needed.
|
|
|
|
Usage:
|
|
from agent_reach.doctor import check_all, format_report
|
|
from agent_reach.config import Config
|
|
|
|
config = Config()
|
|
results = check_all(config)
|
|
print(format_report(results))
|
|
"""
|
|
|
|
from typing import Dict, Optional
|
|
|
|
from agent_reach.config import Config
|
|
|
|
|
|
class AgentReach:
|
|
"""Give your AI Agent eyes to see the entire internet.
|
|
|
|
This class provides health-check functionality.
|
|
For reading/searching, use the upstream tools directly
|
|
(see SKILL.md for commands).
|
|
"""
|
|
|
|
def __init__(self, config: Optional[Config] = None):
|
|
self.config = config or Config()
|
|
|
|
def doctor(self) -> Dict[str, dict]:
|
|
"""Check all channel availability."""
|
|
from agent_reach.doctor import check_all
|
|
return check_all(self.config)
|
|
|
|
def doctor_report(self) -> str:
|
|
"""Get formatted health report."""
|
|
from agent_reach.doctor import check_all, format_report
|
|
return format_report(check_all(self.config))
|