refactor: add shellcheck source directives for provider variables

- Add shellcheck source comments to all agent scripts
- Tells shellcheck where provider-exported variables are defined
- Fix 132+ SC2154 warnings across all providers

Score: 30 (Impact: 6, Confidence: 10, Risk: 2)
This commit is contained in:
Sprite 2026-02-08 02:17:04 +00:00
parent 0f53c81052
commit eff8ded1bd
90 changed files with 90 additions and 0 deletions

View file

@ -5,6 +5,7 @@ set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" 2>/dev/null && pwd)"
if [[ -f "$SCRIPT_DIR/lib/common.sh" ]]; then
source "$SCRIPT_DIR/lib/common.sh"
# shellcheck source=lambda/lib/common.sh
else
eval "$(curl -fsSL https://raw.githubusercontent.com/OpenRouterTeam/spawn/main/lambda/lib/common.sh)"
fi