netlify-cli 27.7.0 → 27.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,12 @@ import { getDrivingAgent } from './agent-detection.js';
2
2
  // By contract these two hold only a non-sensitive agent name[@version]. Every other marker's value is a flag,
3
3
  // a session or run id, or a path, none of which may reach a URL.
4
4
  const SOURCES_WITH_ANNOUNCED_VALUE = new Set(['NETLIFY_AGENT', 'AI_AGENT']);
5
+ const LOGIN_SOURCES = new Set(['mcp']);
5
6
  const sanitizeUtmTerm = (raw) => raw.replace(/[^A-Za-z0-9_.:@-]/g, '').slice(0, 64);
7
+ const getUtmSource = (env) => {
8
+ const source = env.NETLIFY_LOGIN_SOURCE;
9
+ return source !== undefined && LOGIN_SOURCES.has(source) ? source : 'cli';
10
+ };
6
11
  const getUtmTerm = (source, env) => {
7
12
  const value = SOURCES_WITH_ANNOUNCED_VALUE.has(source) ? env[source] : undefined;
8
13
  return sanitizeUtmTerm(value ? `${source}:${value}` : source);
@@ -12,7 +17,7 @@ export const buildAuthorizeUrl = (ticketId, env = process.env) => {
12
17
  const params = new URLSearchParams({
13
18
  response_type: 'ticket',
14
19
  ticket: ticketId,
15
- utm_source: 'cli',
20
+ utm_source: getUtmSource(env),
16
21
  utm_campaign: 'integrations',
17
22
  });
18
23
  const agent = getDrivingAgent(env);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "netlify-cli",
3
- "version": "27.7.0",
3
+ "version": "27.8.0",
4
4
  "description": "Netlify command line tool",
5
5
  "keywords": [
6
6
  "api",
@@ -55,11 +55,11 @@
55
55
  "@fastify/static": "^10.0.0",
56
56
  "@netlify/ai": "^1.0.1",
57
57
  "@netlify/api": "^15.1.2",
58
- "@netlify/blobs": "^11.0.3",
59
- "@netlify/build": "^36.4.8",
58
+ "@netlify/blobs": "^11.1.0",
59
+ "@netlify/build": "^37.0.0",
60
60
  "@netlify/build-info": "^11.3.0",
61
61
  "@netlify/config": "^25.2.5",
62
- "@netlify/dev": "^5.1.0",
62
+ "@netlify/dev": "^5.1.2",
63
63
  "@netlify/dev-utils": "^6.0.1",
64
64
  "@netlify/edge-bundler": "^16.0.4",
65
65
  "@netlify/edge-functions": "^4.0.0",
@@ -69,9 +69,9 @@
69
69
  "@netlify/local-functions-proxy": "^2.0.3",
70
70
  "@netlify/redirect-parser": "^16.1.1",
71
71
  "@netlify/server-dev": "^0.1.1",
72
- "@netlify/zip-it-and-ship-it": "^15.5.1",
72
+ "@netlify/zip-it-and-ship-it": "^16.0.0",
73
73
  "@octokit/rest": "^22.0.0",
74
- "@opentelemetry/api": "^1.8.0",
74
+ "@opentelemetry/api": "~1.9.0",
75
75
  "@pnpm/tabtab": "^0.5.4",
76
76
  "ansi-escapes": "^7.3.0",
77
77
  "ansi-to-html": "^0.7.2",