- Replace xreach CLI with bird (@steipete/bird) as Twitter/X backend - bird uses AUTH_TOKEN/CT0 env vars (simpler than xreach's session.json) - Accept both 'bird' and 'birdx' binary names - Remove version detection logic (bird v0.8.0 is the baseline) - Write credentials.env to ~/.config/bird/ for easy sourcing - Keep xfetch session.json sync for backward compatibility - Update SKILL.md commands: bird search/read/user-tweets/thread - Update install/uninstall to use npm @steipete/bird - All 52 tests pass
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
|
|
(bird 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))
|