12 lines
398 B
Bash
Executable File
12 lines
398 B
Bash
Executable File
#!/bin/bash
|
|
# Tavily Extract wrapper with auto-loaded key
|
|
|
|
# Load API key from config if not set
|
|
if [ -z "$TAVILY_API_KEY" ]; then
|
|
if [ -f "$HOME/.openclaw/workspace/.env.tavily" ]; then
|
|
export TAVILY_API_KEY=$(grep "TAVILY_API_KEY" "$HOME/.openclaw/workspace/.env.tavily" | cut -d'=' -f2)
|
|
fi
|
|
fi
|
|
|
|
# Run the Tavily extract
|
|
node /Users/mattbruce/.agents/skills/tavily/scripts/extract.mjs "$@" |