cleanup: remove clawd/openclaw references, fix permissions, add architecture docs
- Replace all ~/clawd and ~/.clawdbot paths with ~/echo-core equivalents in tools (git_commit, ralph_prd_generator, backup_config, lead-gen) - Update personality files: TOOLS.md repo/paths, AGENTS.md security audit cmd - Migrate HANDOFF.md architectural decisions to docs/architecture.md - Tighten credentials/ dir to 700, add to .gitignore - Add .claude/ and *.pid to .gitignore - Various adapter, router, and session improvements from prior work Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -26,12 +26,11 @@ OUTPUT_DIR = Path(__file__).parent / "output"
|
||||
OUTPUT_DIR.mkdir(exist_ok=True)
|
||||
|
||||
def get_brave_api_key():
|
||||
"""Get Brave API key from clawdbot config."""
|
||||
config_path = Path.home() / ".clawdbot" / "clawdbot.json"
|
||||
"""Get Brave API key from echo-core config."""
|
||||
config_path = Path.home() / "echo-core" / "config.json"
|
||||
if config_path.exists():
|
||||
with open(config_path) as f:
|
||||
config = json.load(f)
|
||||
# Try tools.web.search.apiKey (clawdbot format)
|
||||
api_key = config.get("tools", {}).get("web", {}).get("search", {}).get("apiKey", "")
|
||||
if api_key:
|
||||
return api_key
|
||||
|
||||
Reference in New Issue
Block a user