vercel 50.26.0 → 50.27.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.
Files changed (55) hide show
  1. package/dist/chunks/{chunk-6PXAVV2L.js → chunk-3JC5TRIO.js} +1 -1
  2. package/dist/chunks/{chunk-JASYFCY2.js → chunk-3TJA3L7S.js} +1 -1
  3. package/dist/chunks/{chunk-7D2CONKL.js → chunk-5M5LB7H3.js} +2 -2
  4. package/dist/chunks/{chunk-KQRMUV2N.js → chunk-74FAEDOJ.js} +3 -3
  5. package/dist/chunks/{chunk-W3Z2NIJT.js → chunk-7HO2G45R.js} +5 -5
  6. package/dist/chunks/{chunk-XZTNWCFJ.js → chunk-BJGBBDSZ.js} +56 -12
  7. package/dist/chunks/{chunk-YRWIOAB2.js → chunk-BPNHA3JM.js} +1 -1
  8. package/dist/chunks/{chunk-3AVNF6AH.js → chunk-C35CP6ME.js} +2 -2
  9. package/dist/chunks/{chunk-AUOVKSJV.js → chunk-CG333N7V.js} +2 -2
  10. package/dist/chunks/{chunk-G4C4IE2L.js → chunk-CYAVL42U.js} +13 -10
  11. package/dist/chunks/{chunk-5F2QN5D6.js → chunk-E62U7NDJ.js} +1 -1
  12. package/dist/chunks/{chunk-DZ375AUF.js → chunk-EGAVOTVF.js} +2 -2
  13. package/dist/chunks/{chunk-JHA4NY23.js → chunk-EI4YJ4CI.js} +6 -6
  14. package/dist/chunks/{chunk-EFQYD7RX.js → chunk-GF4DUO5V.js} +1 -1
  15. package/dist/chunks/{chunk-FBOPIB73.js → chunk-I6EBQHTG.js} +5 -5
  16. package/dist/chunks/{chunk-BR67OKRE.js → chunk-IPGYCRLR.js} +2 -2
  17. package/dist/chunks/{chunk-GT2DPHE7.js → chunk-J6O3QMTY.js} +1 -1
  18. package/dist/chunks/{chunk-U2GERZJX.js → chunk-LKFCHXVW.js} +39 -8
  19. package/dist/chunks/{chunk-SX2UUXSH.js → chunk-LR5ZRFTN.js} +2 -2
  20. package/dist/chunks/{chunk-YTTWXN4B.js → chunk-LVTJTA3V.js} +1 -1
  21. package/dist/chunks/{chunk-RYFH6H4S.js → chunk-M2JP6QOR.js} +12 -8
  22. package/dist/chunks/{chunk-PCDFSIYF.js → chunk-MEO2W3VH.js} +1 -1
  23. package/dist/chunks/{chunk-DOMJ6XOD.js → chunk-R7SIMTCI.js} +2 -2
  24. package/dist/chunks/{chunk-FUPEDOCK.js → chunk-TB6A2EBK.js} +2 -2
  25. package/dist/chunks/{chunk-YEKC7YXH.js → chunk-TYFJRAMD.js} +7 -7
  26. package/dist/chunks/{chunk-GUECCUPR.js → chunk-UKQKPQ2O.js} +1 -1
  27. package/dist/chunks/{chunk-4IS2QZ7D.js → chunk-VAIKIQWX.js} +2 -2
  28. package/dist/chunks/{chunk-ZDA4Y7RR.js → chunk-WQFWX5AR.js} +1 -1
  29. package/dist/chunks/{chunk-SO7KYCRU.js → chunk-XUB7W2DJ.js} +4 -4
  30. package/dist/chunks/{chunk-HF7WQJKX.js → chunk-YVBFZQJC.js} +1 -1
  31. package/dist/chunks/{chunk-LZOFD677.js → chunk-ZSXNST6O.js} +2 -2
  32. package/dist/chunks/{compile-vercel-config-JY6JB354.js → compile-vercel-config-3EL3ZMH7.js} +3 -3
  33. package/dist/chunks/{delete-CPJQKQAW.js → delete-GFLDRTEM.js} +4 -4
  34. package/dist/chunks/{disable-CGIQEGNK.js → disable-5X6LTJOK.js} +4 -4
  35. package/dist/chunks/{discard-RZLODD7W.js → discard-TJTG7EYI.js} +4 -4
  36. package/dist/chunks/{edit-ARWATHWA.js → edit-3MQOZU6Q.js} +5 -5
  37. package/dist/chunks/{enable-TYAVMJQG.js → enable-NVYUKJRC.js} +4 -4
  38. package/dist/chunks/{export-2VYDW5CG.js → export-J4EWOHEG.js} +4 -4
  39. package/dist/chunks/{list-COERLRD2.js → list-MIURHUPX.js} +4 -4
  40. package/dist/chunks/{publish-3PZMTHHN.js → publish-PUJHLKSI.js} +4 -4
  41. package/dist/chunks/{query-76QCZH7B.js → query-Q6O3GPOO.js} +5 -5
  42. package/dist/chunks/{reorder-DNFCU7MK.js → reorder-TDZBLHM4.js} +4 -4
  43. package/dist/chunks/{restore-OTSLF6ZO.js → restore-I6JH56D3.js} +4 -4
  44. package/dist/chunks/{schema-ASGQV2JH.js → schema-OE4DVOSH.js} +4 -4
  45. package/dist/chunks/{types-ERNAF2TU.js → types-ZUE6VP4G.js} +3 -3
  46. package/dist/commands/build/index.js +46 -15
  47. package/dist/commands/deploy/index.js +25 -24
  48. package/dist/commands/dev/index.js +69 -42
  49. package/dist/commands/env/index.js +15 -15
  50. package/dist/commands/link/index.js +15 -15
  51. package/dist/commands/list/index.js +8 -8
  52. package/dist/commands-bulk.js +1164 -1009
  53. package/dist/index.js +37 -26
  54. package/dist/version.mjs +1 -1
  55. package/package.json +12 -12
@@ -9,7 +9,7 @@ import {
9
9
  limitOption,
10
10
  nextOption,
11
11
  packageName
12
- } from "./chunk-YRWIOAB2.js";
12
+ } from "./chunk-BPNHA3JM.js";
13
13
 
14
14
  // src/commands/activity/command.ts
15
15
  var typesSubcommand = {
@@ -13,7 +13,7 @@ import {
13
13
  InvalidDeploymentId,
14
14
  TooManyRequests,
15
15
  isAPIError
16
- } from "./chunk-YRWIOAB2.js";
16
+ } from "./chunk-BPNHA3JM.js";
17
17
 
18
18
  // src/util/to-host.ts
19
19
  function toHost(url) {
@@ -7,10 +7,10 @@ const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  getTeamById,
9
9
  getUser
10
- } from "./chunk-XZTNWCFJ.js";
10
+ } from "./chunk-BJGBBDSZ.js";
11
11
  import {
12
12
  TeamDeleted
13
- } from "./chunk-YRWIOAB2.js";
13
+ } from "./chunk-BPNHA3JM.js";
14
14
 
15
15
  // src/util/get-scope.ts
16
16
  async function getScope(client, opts = {}) {
@@ -6,18 +6,18 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  setupAndLink
9
- } from "./chunk-W3Z2NIJT.js";
9
+ } from "./chunk-7HO2G45R.js";
10
10
  import {
11
11
  buildCommandWithYes,
12
12
  getLinkedProject,
13
13
  outputActionRequired,
14
14
  param,
15
15
  resolveProjectCwd
16
- } from "./chunk-XZTNWCFJ.js";
16
+ } from "./chunk-BJGBBDSZ.js";
17
17
  import {
18
18
  getCommandName,
19
19
  getCommandNamePlain
20
- } from "./chunk-YRWIOAB2.js";
20
+ } from "./chunk-BPNHA3JM.js";
21
21
  import {
22
22
  output_manager_default
23
23
  } from "./chunk-I2CIWYG5.js";
@@ -6,10 +6,10 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  getLocalPathConfig
9
- } from "./chunk-BR67OKRE.js";
9
+ } from "./chunk-IPGYCRLR.js";
10
10
  import {
11
11
  compileVercelConfig
12
- } from "./chunk-4IS2QZ7D.js";
12
+ } from "./chunk-VAIKIQWX.js";
13
13
  import {
14
14
  VERCEL_DIR_PROJECT,
15
15
  VERCEL_DIR_README,
@@ -31,16 +31,16 @@ import {
31
31
  selectAndParseRemoteUrl,
32
32
  selectOrg,
33
33
  tryDetectServices
34
- } from "./chunk-XZTNWCFJ.js";
34
+ } from "./chunk-BJGBBDSZ.js";
35
35
  import {
36
36
  table
37
- } from "./chunk-HF7WQJKX.js";
37
+ } from "./chunk-YVBFZQJC.js";
38
38
  import {
39
39
  CantParseJSONFile,
40
40
  ProjectNotFound,
41
41
  isAPIError,
42
42
  printError
43
- } from "./chunk-YRWIOAB2.js";
43
+ } from "./chunk-BPNHA3JM.js";
44
44
  import {
45
45
  output_manager_default
46
46
  } from "./chunk-I2CIWYG5.js";
@@ -35,7 +35,7 @@ import {
35
35
  require_string_width,
36
36
  require_strip_ansi,
37
37
  yesOption
38
- } from "./chunk-YRWIOAB2.js";
38
+ } from "./chunk-BPNHA3JM.js";
39
39
  import {
40
40
  emoji,
41
41
  eraseLines,
@@ -8351,10 +8351,10 @@ var require_frameworks = __commonJS({
8351
8351
  const nowRoutes = JSON.parse(content);
8352
8352
  try {
8353
8353
  await unlink(nowRoutesPath);
8354
- } catch (err) {
8354
+ } catch (_err) {
8355
8355
  }
8356
8356
  return nowRoutes;
8357
- } catch (err) {
8357
+ } catch (_err) {
8358
8358
  return [
8359
8359
  {
8360
8360
  src: "^/static/(.*)$",
@@ -13953,7 +13953,7 @@ var require_superstatic = __commonJS({
13953
13953
  route.missing = r.missing;
13954
13954
  }
13955
13955
  return route;
13956
- } catch (e) {
13956
+ } catch (_e) {
13957
13957
  throw new Error(`Failed to parse redirect: ${JSON.stringify(r)}`);
13958
13958
  }
13959
13959
  });
@@ -13986,7 +13986,7 @@ var require_superstatic = __commonJS({
13986
13986
  route.status = r.statusCode;
13987
13987
  }
13988
13988
  return route;
13989
- } catch (e) {
13989
+ } catch (_e) {
13990
13990
  throw new Error(`Failed to parse rewrite: ${JSON.stringify(r)}`);
13991
13991
  }
13992
13992
  });
@@ -14197,7 +14197,7 @@ var require_superstatic = __commonJS({
14197
14197
  if (attemptDirectCompile) {
14198
14198
  try {
14199
14199
  return (0, import_path_to_regexp.compile)(value, { validate: false })(indexes);
14200
- } catch (e) {
14200
+ } catch (_e) {
14201
14201
  }
14202
14202
  }
14203
14203
  for (const key of Object.keys(indexes)) {
@@ -15393,7 +15393,7 @@ var require_dist5 = __commonJS({
15393
15393
  function checkRegexSyntax(type, index, src) {
15394
15394
  try {
15395
15395
  new RegExp(src);
15396
- } catch (err) {
15396
+ } catch (_err) {
15397
15397
  const prop = type === "Route" ? "src`/`source" : "source";
15398
15398
  return `${type} at index ${index} has invalid \`${prop}\` regular expression "${src}".`;
15399
15399
  }
@@ -15408,7 +15408,7 @@ var require_dist5 = __commonJS({
15408
15408
  const destinationSegments = /* @__PURE__ */ new Set();
15409
15409
  try {
15410
15410
  sourceSegments = new Set((0, import_superstatic.sourceToRegex)(source).segments);
15411
- } catch (err) {
15411
+ } catch (_err) {
15412
15412
  return {
15413
15413
  message: `${type} at index ${index} has invalid \`source\` pattern "${source}".`,
15414
15414
  link: "https://vercel.link/invalid-route-source-pattern"
@@ -15429,7 +15429,7 @@ var require_dist5 = __commonJS({
15429
15429
  (name) => destinationSegments.add(name)
15430
15430
  );
15431
15431
  }
15432
- } catch (err) {
15432
+ } catch (_err) {
15433
15433
  }
15434
15434
  const hasSegments = (0, import_superstatic.collectHasSegments)(has);
15435
15435
  for (const segment of destinationSegments) {
@@ -16906,7 +16906,10 @@ var require_utils3 = __commonJS({
16906
16906
  INTERNAL_SERVICE_PREFIX: () => INTERNAL_SERVICE_PREFIX2,
16907
16907
  filterFrameworksByRuntime: () => filterFrameworksByRuntime,
16908
16908
  getBuilderForRuntime: () => getBuilderForRuntime,
16909
+ getInternalServiceCronPathPrefix: () => getInternalServiceCronPathPrefix2,
16909
16910
  getInternalServiceFunctionPath: () => getInternalServiceFunctionPath2,
16911
+ getInternalServiceWorkerPath: () => getInternalServiceWorkerPath2,
16912
+ getInternalServiceWorkerPathPrefix: () => getInternalServiceWorkerPathPrefix2,
16910
16913
  hasFile: () => hasFile,
16911
16914
  inferRuntimeFromFramework: () => inferRuntimeFromFramework,
16912
16915
  inferServiceRuntime: () => inferServiceRuntime,
@@ -16928,6 +16931,20 @@ var require_utils3 = __commonJS({
16928
16931
  function getInternalServiceFunctionPath2(serviceName) {
16929
16932
  return `${INTERNAL_SERVICE_PREFIX2}/${serviceName}/index`;
16930
16933
  }
16934
+ function normalizeInternalServiceEntrypoint(entrypoint) {
16935
+ const normalized = entrypoint.replace(/\\/g, "/").replace(/^\/+/, "").replace(/\.[^/.]+$/, "");
16936
+ return normalized || "index";
16937
+ }
16938
+ function getInternalServiceWorkerPathPrefix2(serviceName) {
16939
+ return `${INTERNAL_SERVICE_PREFIX2}/${serviceName}/workers`;
16940
+ }
16941
+ function getInternalServiceCronPathPrefix2(serviceName) {
16942
+ return `${INTERNAL_SERVICE_PREFIX2}/${serviceName}/crons`;
16943
+ }
16944
+ function getInternalServiceWorkerPath2(serviceName, entrypoint, handler = "worker") {
16945
+ const normalizedEntrypoint = normalizeInternalServiceEntrypoint(entrypoint);
16946
+ return `${getInternalServiceWorkerPathPrefix2(serviceName)}/${normalizedEntrypoint}/${handler}`;
16947
+ }
16931
16948
  function getBuilderForRuntime(runtime) {
16932
16949
  const builder = import_types.RUNTIME_BUILDERS[runtime];
16933
16950
  if (!builder) {
@@ -17871,6 +17888,9 @@ var require_auto_detect = __commonJS({
17871
17888
  if (backendResult.error) {
17872
17889
  return { services: null, errors: [backendResult.error] };
17873
17890
  }
17891
+ if (Object.keys(backendResult.services).length === 0) {
17892
+ return { services: null, errors: [] };
17893
+ }
17874
17894
  Object.assign(services, backendResult.services);
17875
17895
  return { services, errors: [] };
17876
17896
  }
@@ -18141,8 +18161,25 @@ var require_detect_services = __commonJS({
18141
18161
  continue;
18142
18162
  }
18143
18163
  }
18164
+ const workerServices = services.filter((s) => s.type === "worker");
18165
+ for (const service of workerServices) {
18166
+ const workerEntrypoint = service.entrypoint || service.builder.src || "index";
18167
+ const workerPath = (0, import_utils4.getInternalServiceWorkerPath)(
18168
+ service.name,
18169
+ workerEntrypoint
18170
+ );
18171
+ const functionPath = (0, import_utils4.getInternalServiceFunctionPath)(service.name);
18172
+ workers.push({
18173
+ src: `^${escapeRegex(workerPath)}$`,
18174
+ dest: functionPath,
18175
+ check: true
18176
+ });
18177
+ }
18144
18178
  return { rewrites, defaults, crons, workers };
18145
18179
  }
18180
+ function escapeRegex(str) {
18181
+ return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
18182
+ }
18146
18183
  function getWebRoutePrefixes(services) {
18147
18184
  const unique = /* @__PURE__ */ new Set();
18148
18185
  for (const service of services) {
@@ -18442,7 +18479,11 @@ var require_get_services_builders = __commonJS({
18442
18479
  warnings: warningResponses,
18443
18480
  defaultRoutes: result.routes.defaults.length > 0 ? result.routes.defaults : null,
18444
18481
  redirectRoutes: [],
18445
- rewriteRoutes: result.routes.rewrites.length > 0 ? result.routes.rewrites : null,
18482
+ rewriteRoutes: result.routes.rewrites.length > 0 || result.routes.workers.length > 0 || result.routes.crons.length > 0 ? [
18483
+ ...result.routes.rewrites,
18484
+ ...result.routes.workers,
18485
+ ...result.routes.crons
18486
+ ] : null,
18446
18487
  errorRoutes: [],
18447
18488
  services: result.services
18448
18489
  };
@@ -26708,7 +26749,10 @@ var require_dist6 = __commonJS({
26708
26749
  detectOutputDirectory: () => import_detect_builders.detectOutputDirectory,
26709
26750
  detectServices: () => import_detect_services2.detectServices,
26710
26751
  generateServicesRoutes: () => import_detect_services2.generateServicesRoutes,
26752
+ getInternalServiceCronPathPrefix: () => import_utils4.getInternalServiceCronPathPrefix,
26711
26753
  getInternalServiceFunctionPath: () => import_utils4.getInternalServiceFunctionPath,
26754
+ getInternalServiceWorkerPath: () => import_utils4.getInternalServiceWorkerPath,
26755
+ getInternalServiceWorkerPathPrefix: () => import_utils4.getInternalServiceWorkerPathPrefix,
26712
26756
  getProjectPaths: () => import_get_project_paths.getProjectPaths,
26713
26757
  getServicesBuilders: () => import_get_services_builders.getServicesBuilders,
26714
26758
  getWorkspacePackagePaths: () => import_get_workspace_package_paths.getWorkspacePackagePaths,
@@ -36925,7 +36969,7 @@ async function addToGitIgnore(path2, ignore = VERCEL_DIR) {
36925
36969
  await (0, import_fs_extra2.writeFile)(gitIgnorePath, gitIgnore);
36926
36970
  isGitIgnoreUpdated = true;
36927
36971
  }
36928
- } catch (error) {
36972
+ } catch (_error) {
36929
36973
  }
36930
36974
  return isGitIgnoreUpdated;
36931
36975
  }
@@ -37889,7 +37933,7 @@ async function linkFolderToProject(client, path2, projectLink, projectName, orgS
37889
37933
  "Failed to pull environment variables. You can run `vc env pull` manually."
37890
37934
  );
37891
37935
  }
37892
- } catch (error) {
37936
+ } catch (_error) {
37893
37937
  output_manager_default.error(
37894
37938
  "Failed to pull environment variables. You can run `vc env pull` manually."
37895
37939
  );
@@ -1363,7 +1363,7 @@ async function responseError(res, fallbackMessage = null, parsedBody = {}) {
1363
1363
  let body;
1364
1364
  try {
1365
1365
  body = await res.json();
1366
- } catch (err2) {
1366
+ } catch (_err) {
1367
1367
  body = parsedBody;
1368
1368
  }
1369
1369
  bodyError = body.error || body.err || {};
@@ -6,10 +6,10 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  require_end_of_stream
9
- } from "./chunk-YTTWXN4B.js";
9
+ } from "./chunk-LVTJTA3V.js";
10
10
  import {
11
11
  require_once
12
- } from "./chunk-XZTNWCFJ.js";
12
+ } from "./chunk-BJGBBDSZ.js";
13
13
  import {
14
14
  require_signal_exit
15
15
  } from "./chunk-I2CIWYG5.js";
@@ -6,13 +6,13 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  getLinkedProject
9
- } from "./chunk-XZTNWCFJ.js";
9
+ } from "./chunk-BJGBBDSZ.js";
10
10
  import {
11
11
  getCommandName,
12
12
  getFlagsSpecification,
13
13
  parseArguments,
14
14
  printError
15
- } from "./chunk-YRWIOAB2.js";
15
+ } from "./chunk-BPNHA3JM.js";
16
16
  import {
17
17
  output_manager_default
18
18
  } from "./chunk-I2CIWYG5.js";
@@ -10,30 +10,30 @@ import {
10
10
  require_dist as require_dist2,
11
11
  sleep,
12
12
  ua_default
13
- } from "./chunk-YEKC7YXH.js";
13
+ } from "./chunk-TYFJRAMD.js";
14
14
  import {
15
15
  suggestNextCommands
16
16
  } from "./chunk-5NK7EITB.js";
17
17
  import {
18
18
  getDeployment,
19
19
  mapCertError
20
- } from "./chunk-JASYFCY2.js";
20
+ } from "./chunk-3TJA3L7S.js";
21
21
  import {
22
22
  getScope
23
- } from "./chunk-7D2CONKL.js";
23
+ } from "./chunk-5M5LB7H3.js";
24
24
  import {
25
25
  CommandTimeout
26
- } from "./chunk-U2GERZJX.js";
26
+ } from "./chunk-LKFCHXVW.js";
27
27
  import {
28
28
  require_dist as require_dist3
29
- } from "./chunk-SO7KYCRU.js";
29
+ } from "./chunk-XUB7W2DJ.js";
30
30
  import {
31
31
  require_lib
32
32
  } from "./chunk-QXRJ52T4.js";
33
33
  import {
34
34
  getProjectByNameOrId,
35
35
  param
36
- } from "./chunk-XZTNWCFJ.js";
36
+ } from "./chunk-BJGBBDSZ.js";
37
37
  import {
38
38
  require_ms,
39
39
  stamp_default
@@ -60,7 +60,7 @@ import {
60
60
  require_bytes,
61
61
  require_strip_ansi,
62
62
  responseError
63
- } from "./chunk-YRWIOAB2.js";
63
+ } from "./chunk-BPNHA3JM.js";
64
64
  import {
65
65
  emoji,
66
66
  eraseLines,
@@ -4270,6 +4270,7 @@ async function processDeployment({
4270
4270
  withFullLogs,
4271
4271
  agent,
4272
4272
  manual,
4273
+ jsonOutput,
4273
4274
  ...args
4274
4275
  }) {
4275
4276
  const {
@@ -4383,7 +4384,7 @@ async function processDeployment({
4383
4384
  ) + `
4384
4385
  `
4385
4386
  );
4386
- if (quiet || process.env.FORCE_TTY === "1") {
4387
+ if (!jsonOutput && (quiet || process.env.FORCE_TTY === "1")) {
4387
4388
  process.stdout.write(`https://${event.payload.url}`);
4388
4389
  }
4389
4390
  if (noWait) {
@@ -4582,7 +4583,8 @@ var Now = class {
4582
4583
  withFullLogs,
4583
4584
  autoAssignCustomDomains,
4584
4585
  agentName,
4585
- manual
4586
+ manual,
4587
+ jsonOutput = false
4586
4588
  }, org, isSettingUpProject, archive) {
4587
4589
  const hashes = {};
4588
4590
  const uploadStamp = stamp_default();
@@ -4625,7 +4627,8 @@ var Now = class {
4625
4627
  noWait,
4626
4628
  withFullLogs,
4627
4629
  bulkRedirectsPath: nowConfig.bulkRedirectsPath,
4628
- manual
4630
+ manual,
4631
+ jsonOutput
4629
4632
  });
4630
4633
  if (deployment && deployment.warnings) {
4631
4634
  let sizeExceeded = 0;
@@ -7,7 +7,7 @@ const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  formatOption,
9
9
  packageName
10
- } from "./chunk-YRWIOAB2.js";
10
+ } from "./chunk-BPNHA3JM.js";
11
11
 
12
12
  // src/commands/metrics/command.ts
13
13
  var schemaSubcommand = {
@@ -6,11 +6,11 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  getEnvTargetPlaceholder
9
- } from "./chunk-XZTNWCFJ.js";
9
+ } from "./chunk-BJGBBDSZ.js";
10
10
  import {
11
11
  packageName,
12
12
  yesOption
13
- } from "./chunk-YRWIOAB2.js";
13
+ } from "./chunk-BPNHA3JM.js";
14
14
 
15
15
  // src/commands/build/command.ts
16
16
  var buildCommand = {
@@ -6,23 +6,23 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  writeProjectSettings
9
- } from "./chunk-EFQYD7RX.js";
9
+ } from "./chunk-GF4DUO5V.js";
10
10
  import {
11
11
  ensureLink
12
- } from "./chunk-KQRMUV2N.js";
12
+ } from "./chunk-74FAEDOJ.js";
13
13
  import {
14
14
  pullCommand
15
- } from "./chunk-DZ375AUF.js";
15
+ } from "./chunk-EGAVOTVF.js";
16
16
  import {
17
17
  help
18
- } from "./chunk-LZOFD677.js";
18
+ } from "./chunk-ZSXNST6O.js";
19
19
  import {
20
20
  VERCEL_DIR,
21
21
  VERCEL_DIR_PROJECT,
22
22
  envPullCommandLogic,
23
23
  humanizePath,
24
24
  parseTarget
25
- } from "./chunk-XZTNWCFJ.js";
25
+ } from "./chunk-BJGBBDSZ.js";
26
26
  import {
27
27
  TelemetryClient
28
28
  } from "./chunk-OYLVZVKK.js";
@@ -33,7 +33,7 @@ import {
33
33
  getFlagsSpecification,
34
34
  parseArguments,
35
35
  printError
36
- } from "./chunk-YRWIOAB2.js";
36
+ } from "./chunk-BPNHA3JM.js";
37
37
  import {
38
38
  emoji,
39
39
  output_manager_default,
@@ -8,7 +8,7 @@ import {
8
8
  VERCEL_DIR,
9
9
  VERCEL_DIR_PROJECT,
10
10
  require_lib
11
- } from "./chunk-XZTNWCFJ.js";
11
+ } from "./chunk-BJGBBDSZ.js";
12
12
  import {
13
13
  require_dist
14
14
  } from "./chunk-I2CIWYG5.js";
@@ -6,16 +6,16 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  getUpdateCommand
9
- } from "./chunk-DOMJ6XOD.js";
9
+ } from "./chunk-R7SIMTCI.js";
10
10
  import {
11
11
  login
12
- } from "./chunk-YEKC7YXH.js";
12
+ } from "./chunk-TYFJRAMD.js";
13
13
  import {
14
14
  loginCommand
15
- } from "./chunk-U2GERZJX.js";
15
+ } from "./chunk-LKFCHXVW.js";
16
16
  import {
17
17
  help
18
- } from "./chunk-LZOFD677.js";
18
+ } from "./chunk-ZSXNST6O.js";
19
19
  import {
20
20
  TelemetryClient
21
21
  } from "./chunk-OYLVZVKK.js";
@@ -24,7 +24,7 @@ import {
24
24
  parseArguments,
25
25
  printError,
26
26
  require_strip_ansi
27
- } from "./chunk-YRWIOAB2.js";
27
+ } from "./chunk-BPNHA3JM.js";
28
28
  import {
29
29
  output_manager_default
30
30
  } from "./chunk-I2CIWYG5.js";
@@ -6,12 +6,12 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  VERCEL_DIR
9
- } from "./chunk-XZTNWCFJ.js";
9
+ } from "./chunk-BJGBBDSZ.js";
10
10
  import {
11
11
  ConflictingConfigFiles,
12
12
  InvalidLocalConfig,
13
13
  getArgs
14
- } from "./chunk-YRWIOAB2.js";
14
+ } from "./chunk-BPNHA3JM.js";
15
15
 
16
16
  // src/util/config/local-path.ts
17
17
  import path from "path";
@@ -7,7 +7,7 @@ const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  packageName,
9
9
  yesOption
10
- } from "./chunk-YRWIOAB2.js";
10
+ } from "./chunk-BPNHA3JM.js";
11
11
 
12
12
  // src/commands/routes/command.ts
13
13
  var listSubcommand = {
@@ -6,26 +6,26 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  routesCommand
9
- } from "./chunk-GT2DPHE7.js";
9
+ } from "./chunk-J6O3QMTY.js";
10
10
  import {
11
11
  devCommand
12
- } from "./chunk-ZDA4Y7RR.js";
12
+ } from "./chunk-WQFWX5AR.js";
13
13
  import {
14
14
  activityCommand
15
- } from "./chunk-6PXAVV2L.js";
15
+ } from "./chunk-3JC5TRIO.js";
16
16
  import {
17
17
  metricsCommand
18
- } from "./chunk-5F2QN5D6.js";
18
+ } from "./chunk-E62U7NDJ.js";
19
19
  import {
20
20
  listCommand
21
- } from "./chunk-PCDFSIYF.js";
21
+ } from "./chunk-MEO2W3VH.js";
22
22
  import {
23
23
  buildCommand,
24
24
  pullCommand
25
- } from "./chunk-DZ375AUF.js";
25
+ } from "./chunk-EGAVOTVF.js";
26
26
  import {
27
27
  envCommand
28
- } from "./chunk-XZTNWCFJ.js";
28
+ } from "./chunk-BJGBBDSZ.js";
29
29
  import {
30
30
  confirmOption,
31
31
  forceOption,
@@ -35,7 +35,7 @@ import {
35
35
  nextOption,
36
36
  packageName,
37
37
  yesOption
38
- } from "./chunk-YRWIOAB2.js";
38
+ } from "./chunk-BPNHA3JM.js";
39
39
  import {
40
40
  output_manager_default
41
41
  } from "./chunk-I2CIWYG5.js";
@@ -423,6 +423,35 @@ var linkCommand = {
423
423
  ]
424
424
  };
425
425
 
426
+ // src/commands/agent/command.ts
427
+ var agentCommand = {
428
+ name: "agent",
429
+ aliases: [],
430
+ description: "Generate an AGENTS.md file with Vercel deployment best practices",
431
+ arguments: [
432
+ {
433
+ name: "init",
434
+ required: false
435
+ }
436
+ ],
437
+ options: [
438
+ {
439
+ ...yesOption,
440
+ description: "Skip confirmation prompt"
441
+ }
442
+ ],
443
+ examples: [
444
+ {
445
+ name: "Generate AGENTS.md with Vercel best practices",
446
+ value: `${packageName} agent init`
447
+ },
448
+ {
449
+ name: "Skip confirmation prompt (useful for CI)",
450
+ value: `${packageName} agent init --yes`
451
+ }
452
+ ]
453
+ };
454
+
426
455
  // src/commands/alias/command.ts
427
456
  var setSubcommand = {
428
457
  name: "set",
@@ -4619,6 +4648,7 @@ var webhooksCommand = {
4619
4648
 
4620
4649
  // src/commands/index.ts
4621
4650
  var commandsStructs = [
4651
+ agentCommand,
4622
4652
  aliasCommand,
4623
4653
  activityCommand,
4624
4654
  apiCommand,
@@ -4696,6 +4726,7 @@ output_manager_default.debug(
4696
4726
  var commandNames = Array.from(commands.keys());
4697
4727
 
4698
4728
  export {
4729
+ agentCommand,
4699
4730
  setSubcommand,
4700
4731
  listSubcommand,
4701
4732
  removeSubcommand,
@@ -6,10 +6,10 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  table
9
- } from "./chunk-HF7WQJKX.js";
9
+ } from "./chunk-YVBFZQJC.js";
10
10
  import {
11
11
  require_strip_ansi
12
- } from "./chunk-YRWIOAB2.js";
12
+ } from "./chunk-BPNHA3JM.js";
13
13
  import {
14
14
  require_source
15
15
  } from "./chunk-S7KYDPEM.js";
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  require_once
9
- } from "./chunk-XZTNWCFJ.js";
9
+ } from "./chunk-BJGBBDSZ.js";
10
10
  import {
11
11
  __commonJS
12
12
  } from "./chunk-TZ2YI2VH.js";