feat(cli): web-analytics --auto-install @vercel/analytics + agent integration hints#15836
feat(cli): web-analytics --auto-install @vercel/analytics + agent integration hints#15836brookemosby wants to merge 5 commits into
Conversation
- Install @vercel/analytics via detected package manager (npm/yarn/pnpm/bun) - JSON output adds packageInstall and integrate (docs + Next.js example) for agents - Pipe install stdio when non-interactive Made-with: Cursor
🦋 Changeset detectedLatest commit: f1cece2 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Low Risk — CLI feature addition with new flag, utility functions, and comprehensive unit tests.
Assessed at f1cece2. |
📦 CLI Tarball ReadyThe Vercel CLI tarball for this PR is now available! Quick TestYou can test this PR's CLI directly by running: npx https://vercel-6nr0mdij9.vercel.sh/tarballs/vercel.tgz --helpUse in vercel.jsonTo use this CLI version in your project builds, add to your {
"build": {
"env": {
"VERCEL_CLI_VERSION": "vercel@https://vercel-6nr0mdij9.vercel.sh/tarballs/vercel.tgz"
}
}
}Python Runtime WheelA Python Workers WheelA |
🧪 Unit Test StrategyComparing: Strategy: Affected packages only ✅ Only testing packages that have been modified or depend on modified packages. Affected packages - 1 (3%)
Unaffected packages - 39 (98%)
Results
This comment is automatically generated based on the affected testing strategy |
… flow - Resolve scope via getScope and deep-link to project Analytics (vercel.com/d?to=...) - Interactive: open browser after local install; non-interactive: log URL - JSON: add agentInstallation (dashboardUrl, summary, requirementsNote) - On local install failure, still surface agentInstallation for PR path Made-with: Cursor
Summary
Adds an opt-in
--auto-installflag tovercel project web-analytics:@vercel/analytics(npm install / yarn add / pnpm add / bun add), using the samescanParentDirsdetection as builds.--format json, responses includepackageInstall(ran/success/command/error) andintegrate(summary, docs URL, Next.js App Router layout example) so agents and CI can mirror the dashboard quickstart without guessing commands.--non-interactive(orclient.nonInteractive) so automation does not require a TTY.Usage
Tests
pipeStdiofor non-interactive.Includes a changeset for the
vercelpackage.Made with Cursor