From 70759aca93f203cfe44eb230cb2e8ee18f7db364 Mon Sep 17 00:00:00 2001 From: Standard Nguyen Date: Tue, 14 Apr 2026 20:12:46 +0000 Subject: [PATCH] Exclude models-snapshot.js from telemetry verification scripts The build generates models-snapshot.js (not .ts) containing provider metadata with models.dev URLs. The exclude list only had .ts, so verify-clean and check-source would fail after a local build. Fixes #23 Co-Authored-By: Claude Opus 4.6 (1M context) --- scripts/verify-clean.sh | 2 +- tests/static/check-source.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/verify-clean.sh b/scripts/verify-clean.sh index da059dfb8a..d8ec990464 100755 --- a/scripts/verify-clean.sh +++ b/scripts/verify-clean.sh @@ -60,7 +60,7 @@ for ext in ts tsx js jsx go json yaml yml toml; do done # Directories and files to exclude -EXCLUDE_ARGS="--exclude-dir=node_modules --exclude-dir=.git --exclude-dir=vendor --exclude-dir=dist --exclude-dir=build --exclude-dir=tests --exclude=models-snapshot.ts --exclude=models-api.json" +EXCLUDE_ARGS="--exclude-dir=node_modules --exclude-dir=.git --exclude-dir=vendor --exclude-dir=dist --exclude-dir=build --exclude-dir=tests --exclude=models-snapshot.ts --exclude=models-snapshot.js --exclude=models-api.json" # --- 1. Domain checks --- echo "--- 1. Domain checks (${#DOMAINS[@]} domains) ---" diff --git a/tests/static/check-source.sh b/tests/static/check-source.sh index 8d47d70772..63e7e5d5b1 100755 --- a/tests/static/check-source.sh +++ b/tests/static/check-source.sh @@ -46,7 +46,7 @@ for ext in ts tsx js jsx go json yaml yml toml; do done # Exclude non-source directories and build artifacts -EXCLUDE_ARGS="--exclude-dir=node_modules --exclude-dir=.git --exclude-dir=vendor --exclude-dir=dist --exclude-dir=build --exclude-dir=tests --exclude=models-snapshot.ts --exclude=models-api.json" +EXCLUDE_ARGS="--exclude-dir=node_modules --exclude-dir=.git --exclude-dir=vendor --exclude-dir=dist --exclude-dir=build --exclude-dir=tests --exclude=models-snapshot.ts --exclude=models-snapshot.js --exclude=models-api.json" echo "=== Static Analysis ===" echo ""