Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
chore: add type-check to pre-commit (#28005)
lyzno1edc7ccc79534
diff --git a/web/.husky/pre-commit b/web/.husky/pre-commitindex 1db4b6dd676..26e9bf69d4a 100644--- a/web/.husky/pre-commit+++ b/web/.husky/pre-commit@@ -44,9 +44,32 @@ fiif $web_modified; thenecho "Running ESLint on web module"++ if git diff --cached --quiet -- 'web/**/*.ts' 'web/**/*.tsx'; then+ web_ts_modified=false+ else+ ts_diff_status=$?+ if [ $ts_diff_status -eq 1 ]; then+ web_ts_modified=true+ else+ echo "Unable to determine staged TypeScript changes (git exit code: $ts_diff_status)."+ exit $ts_diff_status+ fi+ fi+cd ./web || exit 1lint-staged+ if $web_ts_modified; then+ echo "Running TypeScript type-check"+ if ! pnpm run type-check; then+ echo "Type check failed. Please run 'pnpm run type-check' to fix the errors."+ exit 1+ fi+ else+ echo "No staged TypeScript changes detected, skipping type-check"+ fi+echo "Running unit tests check"modified_files=$(git diff --cached --name-only -- utils | grep -v '\.spec\.ts$' || true)