chore: use a global func instead of the core-tools devDependency #521
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.47) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.47 · 338 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.349
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #521"
general
weight: 0.35
mattmck
Why
azure-functions-core-toolswas a devDependency ofpackages/functions. Its postinstall downloads about 1.5 GB of Functions host binaries intonode_modules/azure-functions-core-tools/bin, which is about half of every checkout and every agent worktree (3.2 GB ofnode_moduleseach). None of it ships: CI installs with--ignore-scripts, and the deploy package installs with--omit=dev.What changed
packages/functions/package.json: removed the devDependency.start(func start) andpack(func pack) now use thefuncon PATH.scripts/dev-preflight.mjs: new--funccheck, used bynpm run devandnpm run dev:functions. It fails with install steps whenfuncis missing or older than 4.16 (the minimum the old devDependency required).funcglobally (brew tap azure/functions && brew install azure-functions-core-tools@4, ornpm i -g azure-functions-core-tools@4on other platforms). Thedeploy.ymlcomments no longer mention the removed package.package-lock.json: core-tools and its 29 transitive packages are gone. The lockfile also picks up the exacteslint-config-next: 16.4.3spec thatapps/web/package.jsonalready pins.Verification
npm cigives 1.6 GB ofnode_modules, down from 3.2 GB.--func: fails with nofuncon PATH, fails with 4.12.0 ("too old"), passes with 4.17.0. Without the flag the result is unchanged.func4.17.0 (func start --port 7099frompackages/functions). All 93 HTTP routes registered, andGET /api/config/flagsreturned 200.After merge
Each developer needs a global
funcof version 4.16 or later. Existing checkouts lose the 1.5 GB folder on the nextnpm ci/npm run setup.🤖 Generated with Claude Code
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
Documentation
Updated setup instructions to require Azure Functions Core Tools v4.16 or later, with installation guidance for macOS and other platforms.
Clarified that Core Tools must be installed separately from npm dependencies.
Bug Fixes
* Development commands now check that Core Tools is installed and meets the minimum version requirement, and provide installation guidance if it is missing or outdated.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->