vercel 59.10.0 → 59.11.1

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 (87) hide show
  1. package/dist/chunks/{add-IJZ2Q46B.js → add-45S56CD4.js} +5 -5
  2. package/dist/chunks/{add-KYLIIWQV.js → add-FEGUIDWL.js} +2 -2
  3. package/dist/chunks/{add-SGSXZWCH.js → add-YSRSP7RB.js} +2 -2
  4. package/dist/chunks/{build-PKOCHFHL.js → build-CXXZZPDQ.js} +2 -2
  5. package/dist/chunks/{chunk-LCDVMLKI.js → chunk-2AXLPLJ6.js} +3 -3
  6. package/dist/chunks/{chunk-5JNGHAUT.js → chunk-7AHNUOOW.js} +1 -1
  7. package/dist/chunks/{chunk-5BZWQDNJ.js → chunk-APL2S57C.js} +1 -1
  8. package/dist/chunks/{chunk-VV5XULGR.js → chunk-B63TMVER.js} +1 -1
  9. package/dist/chunks/{chunk-GRINZMFI.js → chunk-CVLDOLQV.js} +1 -1
  10. package/dist/chunks/{chunk-FNYNYZAZ.js → chunk-DG7TDEHC.js} +2 -2
  11. package/dist/chunks/{chunk-53J6IECW.js → chunk-E5JOJB3R.js} +1 -1
  12. package/dist/chunks/{chunk-OBPBFJFP.js → chunk-ERBQURGI.js} +4 -4
  13. package/dist/chunks/{chunk-AXNMBJKD.js → chunk-GCCFVS6C.js} +1 -1
  14. package/dist/chunks/{chunk-KTCVGTRQ.js → chunk-HRT42YF3.js} +1 -1
  15. package/dist/chunks/{chunk-UTWU4DZF.js → chunk-JLTGKJRA.js} +1 -1
  16. package/dist/chunks/{chunk-O6VHU65V.js → chunk-JPZGNSWH.js} +1 -1
  17. package/dist/chunks/{chunk-MHO3EJAF.js → chunk-JRRKVHYI.js} +2 -2
  18. package/dist/chunks/{chunk-GGPE5377.js → chunk-O26N2UPI.js} +1 -1
  19. package/dist/chunks/{chunk-YLNIMGMQ.js → chunk-QEMZZQEB.js} +1 -1
  20. package/dist/chunks/{chunk-SRVP2UST.js → chunk-RXO6DUBD.js} +1 -1
  21. package/dist/chunks/{chunk-Z44PATWW.js → chunk-TDIBKSQA.js} +112 -11
  22. package/dist/chunks/{chunk-7TYA36S5.js → chunk-TVFLOPV2.js} +1 -1
  23. package/dist/chunks/{chunk-X6TBTUZZ.js → chunk-WD7A3UM2.js} +1 -1
  24. package/dist/chunks/{chunk-QQ77K4QW.js → chunk-YOIKPYK5.js} +1 -1
  25. package/dist/chunks/{chunk-WC3XNI4B.js → chunk-YVSXEJ7X.js} +2 -2
  26. package/dist/chunks/{chunk-Z2RKD7LL.js → chunk-YYTVEPI6.js} +1 -1
  27. package/dist/chunks/{clear-J6TY2J3M.js → clear-W53QIRRB.js} +2 -2
  28. package/dist/chunks/{compile-vercel-config-WVGNTJXO.js → compile-vercel-config-I2JHXWAM.js} +1 -1
  29. package/dist/chunks/{config-5T7XV4JE.js → config-QQVTPPQQ.js} +2 -2
  30. package/dist/chunks/{config-3JDOCLH7.js → config-WU7LDTIZ.js} +3 -3
  31. package/dist/chunks/config-validator.mjs +1 -1
  32. package/dist/chunks/{constants-YMCRE6IG.js → constants-WEQVJSYS.js} +1 -1
  33. package/dist/chunks/{delete-XQOAWEZV.js → delete-7M4JYMXL.js} +2 -2
  34. package/dist/chunks/{delete-EPPNTNEW.js → delete-JNPYKMO7.js} +2 -2
  35. package/dist/chunks/{disable-U5YAPWPA.js → disable-66TF7UBT.js} +2 -2
  36. package/dist/chunks/{discard-OCUCCXKO.js → discard-UHUFJLPS.js} +2 -2
  37. package/dist/chunks/{edit-CD7EXAO3.js → edit-CC73LNJ3.js} +2 -2
  38. package/dist/chunks/{edit-PNRGHNGQ.js → edit-SM26EQFD.js} +3 -3
  39. package/dist/chunks/{enable-25RH2LVW.js → enable-2LIV7MM5.js} +2 -2
  40. package/dist/chunks/{export-YSGEUXJW.js → export-R6D5B3PZ.js} +2 -2
  41. package/dist/chunks/{image-4ZKCR4HL.js → image-DPHMZFAG.js} +3 -3
  42. package/dist/chunks/{import-builders-FQ2LOIWC.js → import-builders-46VBNGV7.js} +2 -2
  43. package/dist/chunks/{inspect-3K2EDYL6.js → inspect-B4K3PNNM.js} +3 -3
  44. package/dist/chunks/{inspect-ZC4GRGTE.js → inspect-MRWXE5CL.js} +2 -2
  45. package/dist/chunks/{inspect-F5DJM5DL.js → inspect-NL4U65MZ.js} +2 -2
  46. package/dist/chunks/{inspect-WRBFJUSY.js → inspect-ODMZRBPC.js} +2 -2
  47. package/dist/chunks/{inspect-K2NJD2AI.js → inspect-VCWOGU2B.js} +2 -2
  48. package/dist/chunks/{list-PUFYWIOF.js → list-A5AQQ3EN.js} +3 -3
  49. package/dist/chunks/{list-B7C56Z7B.js → list-CUZWQSSR.js} +1 -1
  50. package/dist/chunks/{list-Z6VHQQBW.js → list-OPDSGPTX.js} +2 -2
  51. package/dist/chunks/{login-ZYUF7JZQ.js → login-PD2TFPJA.js} +2 -2
  52. package/dist/chunks/{ls-SQRTT5RH.js → ls-3SQUG5KN.js} +2 -2
  53. package/dist/chunks/{ls-FNOL7XTY.js → ls-55XN3UBH.js} +2 -2
  54. package/dist/chunks/{ls-TBBLZ766.js → ls-JF5RCVW6.js} +2 -2
  55. package/dist/chunks/{ls-2OUQUKPT.js → ls-RO4OUJOY.js} +2 -2
  56. package/dist/chunks/{ls-ALX26ARH.js → ls-XR26A3ET.js} +2 -2
  57. package/dist/chunks/{ls-PRY6OV4B.js → ls-ZPTLXJIQ.js} +3 -3
  58. package/dist/chunks/{open-673AJXYY.js → open-TSQKEZ5O.js} +2 -2
  59. package/dist/chunks/{permissions-B6SFNLN4.js → permissions-TMFSIKAT.js} +4 -4
  60. package/dist/chunks/{publish-TPJHZ2PJ.js → publish-4IZPLNKG.js} +2 -2
  61. package/dist/chunks/{push-3WD5IPXP.js → push-XJSV7QQJ.js} +2 -2
  62. package/dist/chunks/{query-ZXOJQZ7G.js → query-F5QEEGMC.js} +1 -1
  63. package/dist/chunks/{reorder-SUFOQGPC.js → reorder-BK5IRRXD.js} +2 -2
  64. package/dist/chunks/{reply-YOVUA6ZF.js → reply-CSCAQVT4.js} +2 -2
  65. package/dist/chunks/{resolve-OQ7P74JY.js → resolve-EK3B5HDP.js} +2 -2
  66. package/dist/chunks/{restore-BD5XJOE7.js → restore-2IQWO7DY.js} +2 -2
  67. package/dist/chunks/{rm-5TY3QJUZ.js → rm-6FGNLYDZ.js} +2 -2
  68. package/dist/chunks/{rm-XAMQUW3J.js → rm-7FBXGOLD.js} +2 -2
  69. package/dist/chunks/{rm-4KAI42EX.js → rm-ASPK3BB3.js} +2 -2
  70. package/dist/chunks/{rm-EKVIZG2N.js → rm-JZFEUYTE.js} +3 -3
  71. package/dist/chunks/{rm-4UIILZLP.js → rm-LCHTFNZC.js} +2 -2
  72. package/dist/chunks/{rule-inspect-XZZE54SW.js → rule-inspect-CA4FUFYX.js} +3 -3
  73. package/dist/chunks/{rules-SF5FBWFF.js → rules-7HUZVWOP.js} +6 -6
  74. package/dist/chunks/{schema-3HRYA6AT.js → schema-NTZEDUUB.js} +1 -1
  75. package/dist/chunks/{set-T4IYLXET.js → set-IQ3OIFQ6.js} +2 -2
  76. package/dist/chunks/{tags-EZKT46VN.js → tags-JTGAVCBE.js} +2 -2
  77. package/dist/chunks/{update-OE7Y2J5I.js → update-MGSJAKQB.js} +5 -5
  78. package/dist/commands/build/index.js +61 -11
  79. package/dist/commands/deploy/index.js +6 -6
  80. package/dist/commands/dev/index.js +6 -6
  81. package/dist/commands/env/index.js +5 -5
  82. package/dist/commands/link/index.js +1 -1
  83. package/dist/commands/list/index.js +2 -2
  84. package/dist/commands-bulk.js +54 -54
  85. package/dist/index.js +23 -9
  86. package/dist/version.mjs +1 -1
  87. package/package.json +48 -48
@@ -13,7 +13,7 @@ import {
13
13
  requireVcrRepository,
14
14
  resolveVcrScope,
15
15
  validateVcrJsonOutput
16
- } from "./chunk-UTWU4DZF.js";
16
+ } from "./chunk-JLTGKJRA.js";
17
17
  import "./chunk-WNAKOXGK.js";
18
18
  import "./chunk-3T7WSWZH.js";
19
19
  import "./chunk-KXDWXXJH.js";
@@ -24,7 +24,7 @@ import "./chunk-EZKW5YJ2.js";
24
24
  import "./chunk-NFU4XJIR.js";
25
25
  import "./chunk-3HZLXCVL.js";
26
26
  import "./chunk-5XECIWME.js";
27
- import "./chunk-Z44PATWW.js";
27
+ import "./chunk-TDIBKSQA.js";
28
28
  import "./chunk-FXD67VN5.js";
29
29
  import "./chunk-XNFHNTS2.js";
30
30
  import {
@@ -20,7 +20,7 @@ import {
20
20
  subcommandArguments,
21
21
  writeConfigJson,
22
22
  writeSamplingRules
23
- } from "./chunk-SRVP2UST.js";
23
+ } from "./chunk-RXO6DUBD.js";
24
24
  import "./chunk-5GGUB4EO.js";
25
25
  import {
26
26
  validateJsonOutput
@@ -34,7 +34,7 @@ import {
34
34
  import {
35
35
  help
36
36
  } from "./chunk-I526H4AS.js";
37
- import "./chunk-Z44PATWW.js";
37
+ import "./chunk-TDIBKSQA.js";
38
38
  import "./chunk-FXD67VN5.js";
39
39
  import {
40
40
  TelemetryClient
@@ -13,7 +13,7 @@ import {
13
13
  requireVcrRepositoryAndImageId,
14
14
  resolveVcrScope,
15
15
  validateVcrJsonOutput
16
- } from "./chunk-UTWU4DZF.js";
16
+ } from "./chunk-JLTGKJRA.js";
17
17
  import "./chunk-WNAKOXGK.js";
18
18
  import "./chunk-3T7WSWZH.js";
19
19
  import "./chunk-KXDWXXJH.js";
@@ -21,7 +21,7 @@ import {
21
21
  imageRmSubcommand
22
22
  } from "./chunk-3HZLXCVL.js";
23
23
  import "./chunk-5XECIWME.js";
24
- import "./chunk-Z44PATWW.js";
24
+ import "./chunk-TDIBKSQA.js";
25
25
  import "./chunk-FXD67VN5.js";
26
26
  import "./chunk-XNFHNTS2.js";
27
27
  import {
@@ -9,8 +9,8 @@ import {
9
9
  handleRulesApiError,
10
10
  parseRulesFlagsAndScope,
11
11
  rulesItemPath
12
- } from "./chunk-GRINZMFI.js";
13
- import "./chunk-X6TBTUZZ.js";
12
+ } from "./chunk-CVLDOLQV.js";
13
+ import "./chunk-WD7A3UM2.js";
14
14
  import "./chunk-3T7WSWZH.js";
15
15
  import {
16
16
  validateJsonOutput
@@ -18,7 +18,7 @@ import {
18
18
  import {
19
19
  rulesRmSubcommand
20
20
  } from "./chunk-XM3LOQIX.js";
21
- import "./chunk-Z44PATWW.js";
21
+ import "./chunk-TDIBKSQA.js";
22
22
  import "./chunk-FXD67VN5.js";
23
23
  import "./chunk-XNFHNTS2.js";
24
24
  import {
@@ -17,7 +17,7 @@ import {
17
17
  emitVcrArgParseError,
18
18
  resolveVcrScope,
19
19
  validateVcrJsonOutput
20
- } from "./chunk-UTWU4DZF.js";
20
+ } from "./chunk-JLTGKJRA.js";
21
21
  import "./chunk-WNAKOXGK.js";
22
22
  import {
23
23
  outputError
@@ -27,7 +27,7 @@ import {
27
27
  permissionsRmSubcommand
28
28
  } from "./chunk-EZKW5YJ2.js";
29
29
  import "./chunk-5XECIWME.js";
30
- import "./chunk-Z44PATWW.js";
30
+ import "./chunk-TDIBKSQA.js";
31
31
  import "./chunk-FXD67VN5.js";
32
32
  import "./chunk-XNFHNTS2.js";
33
33
  import {
@@ -9,7 +9,7 @@ import {
9
9
  handleRulesApiError,
10
10
  parseRulesFlagsAndScope,
11
11
  rulesItemPath
12
- } from "./chunk-GRINZMFI.js";
12
+ } from "./chunk-CVLDOLQV.js";
13
13
  import {
14
14
  formatCustomAlertMetric,
15
15
  formatCustomAlertTrigger,
@@ -19,7 +19,7 @@ import {
19
19
  parseCustomAlertQuery,
20
20
  renderAlertTable
21
21
  } from "./chunk-26XDDLXM.js";
22
- import "./chunk-X6TBTUZZ.js";
22
+ import "./chunk-WD7A3UM2.js";
23
23
  import {
24
24
  formatDate
25
25
  } from "./chunk-GZLPFESR.js";
@@ -39,7 +39,7 @@ import {
39
39
  import {
40
40
  rulesInspectSubcommand
41
41
  } from "./chunk-XM3LOQIX.js";
42
- import "./chunk-Z44PATWW.js";
42
+ import "./chunk-TDIBKSQA.js";
43
43
  import "./chunk-FXD67VN5.js";
44
44
  import "./chunk-XNFHNTS2.js";
45
45
  import {
@@ -32,7 +32,7 @@ var RULES_CONFIG = {
32
32
  };
33
33
  async function rules(client, argv) {
34
34
  if (argv.length === 0 || argv[0]?.startsWith("-")) {
35
- const lsFn = (await import("./ls-PRY6OV4B.js")).default;
35
+ const lsFn = (await import("./ls-ZPTLXJIQ.js")).default;
36
36
  return lsFn(client, argv);
37
37
  }
38
38
  const { subcommand, args, subcommandOriginal } = getSubcommand(
@@ -65,17 +65,17 @@ async function rules(client, argv) {
65
65
  }
66
66
  switch (subcommand) {
67
67
  case "ls":
68
- return (await import("./ls-PRY6OV4B.js")).default(client, args);
68
+ return (await import("./ls-ZPTLXJIQ.js")).default(client, args);
69
69
  case "schema":
70
70
  return (await import("./schema-45SJNY5L.js")).default(client, args);
71
71
  case "add":
72
- return (await import("./add-IJZ2Q46B.js")).default(client, args);
72
+ return (await import("./add-45S56CD4.js")).default(client, args);
73
73
  case "inspect":
74
- return (await import("./rule-inspect-XZZE54SW.js")).default(client, args);
74
+ return (await import("./rule-inspect-CA4FUFYX.js")).default(client, args);
75
75
  case "rm":
76
- return (await import("./rm-EKVIZG2N.js")).default(client, args);
76
+ return (await import("./rm-JZFEUYTE.js")).default(client, args);
77
77
  case "update":
78
- return (await import("./update-OE7Y2J5I.js")).default(client, args);
78
+ return (await import("./update-MGSJAKQB.js")).default(client, args);
79
79
  default:
80
80
  output_manager_default.error(`Unhandled rules subcommand: ${String(subcommandOriginal)}`);
81
81
  return 1;
@@ -29,7 +29,7 @@ import {
29
29
  import {
30
30
  getScope,
31
31
  require_pluralize
32
- } from "./chunk-Z44PATWW.js";
32
+ } from "./chunk-TDIBKSQA.js";
33
33
  import "./chunk-FXD67VN5.js";
34
34
  import "./chunk-XNFHNTS2.js";
35
35
  import "./chunk-NGGLYKNU.js";
@@ -23,7 +23,7 @@ import {
23
23
  toRule,
24
24
  writeConfigJson,
25
25
  writeSamplingRules
26
- } from "./chunk-SRVP2UST.js";
26
+ } from "./chunk-RXO6DUBD.js";
27
27
  import "./chunk-5GGUB4EO.js";
28
28
  import {
29
29
  validateJsonOutput
@@ -37,7 +37,7 @@ import {
37
37
  import {
38
38
  help
39
39
  } from "./chunk-I526H4AS.js";
40
- import "./chunk-Z44PATWW.js";
40
+ import "./chunk-TDIBKSQA.js";
41
41
  import "./chunk-FXD67VN5.js";
42
42
  import {
43
43
  TelemetryClient
@@ -53,9 +53,9 @@ async function tags(client, argv, telemetry) {
53
53
  }
54
54
  switch (subcommand) {
55
55
  case "ls":
56
- return (await import("./ls-2OUQUKPT.js")).default(client, args, telemetry);
56
+ return (await import("./ls-RO4OUJOY.js")).default(client, args, telemetry);
57
57
  case "inspect":
58
- return (await import("./inspect-F5DJM5DL.js")).default(client, args, telemetry);
58
+ return (await import("./inspect-NL4U65MZ.js")).default(client, args, telemetry);
59
59
  default:
60
60
  output_manager_default.error(`Unhandled tags subcommand: ${subcommand}`);
61
61
  return 1;
@@ -8,16 +8,16 @@ import {
8
8
  parseCustomAlertQueryBody,
9
9
  resolveCustomAlertProjectName,
10
10
  setMissingCustomAlertProjectScope
11
- } from "./chunk-WC3XNI4B.js";
11
+ } from "./chunk-YVSXEJ7X.js";
12
12
  import {
13
13
  emitRulesArgParseError,
14
14
  handleRulesApiError,
15
15
  parseRulesFlagsAndScope,
16
16
  rulesItemPath
17
- } from "./chunk-GRINZMFI.js";
18
- import "./chunk-X6TBTUZZ.js";
17
+ } from "./chunk-CVLDOLQV.js";
18
+ import "./chunk-WD7A3UM2.js";
19
19
  import "./chunk-3T7WSWZH.js";
20
- import "./chunk-QQ77K4QW.js";
20
+ import "./chunk-YOIKPYK5.js";
21
21
  import "./chunk-AINIBIP4.js";
22
22
  import {
23
23
  validateJsonOutput
@@ -25,7 +25,7 @@ import {
25
25
  import {
26
26
  rulesUpdateSubcommand
27
27
  } from "./chunk-XM3LOQIX.js";
28
- import "./chunk-Z44PATWW.js";
28
+ import "./chunk-TDIBKSQA.js";
29
29
  import "./chunk-FXD67VN5.js";
30
30
  import "./chunk-XNFHNTS2.js";
31
31
  import {
@@ -11,21 +11,21 @@ import {
11
11
  require_service_schedules,
12
12
  require_write_build_result,
13
13
  writeBuildResult
14
- } from "../../chunks/chunk-VV5XULGR.js";
14
+ } from "../../chunks/chunk-B63TMVER.js";
15
15
  import {
16
16
  importBuilders,
17
17
  import_import_builders
18
- } from "../../chunks/chunk-O6VHU65V.js";
18
+ } from "../../chunks/chunk-JPZGNSWH.js";
19
19
  import {
20
20
  js_yaml_default,
21
21
  pullCommandLogic
22
- } from "../../chunks/chunk-FNYNYZAZ.js";
22
+ } from "../../chunks/chunk-DG7TDEHC.js";
23
23
  import {
24
24
  require_semver
25
25
  } from "../../chunks/chunk-IB5L4LKZ.js";
26
26
  import {
27
27
  readProjectSettings
28
- } from "../../chunks/chunk-7TYA36S5.js";
28
+ } from "../../chunks/chunk-TVFLOPV2.js";
29
29
  import "../../chunks/chunk-7AEEQOD4.js";
30
30
  import "../../chunks/chunk-5XECIWME.js";
31
31
  import {
@@ -64,7 +64,7 @@ import {
64
64
  resolveProjectCwd,
65
65
  ua_default,
66
66
  validateConfig
67
- } from "../../chunks/chunk-Z44PATWW.js";
67
+ } from "../../chunks/chunk-TDIBKSQA.js";
68
68
  import "../../chunks/chunk-FXD67VN5.js";
69
69
  import {
70
70
  TelemetryClient
@@ -2323,6 +2323,7 @@ var require_do_build = __commonJS({
2323
2323
  cwd: buildWorkPath,
2324
2324
  expectsPreDeploy: Boolean(preDeployCmd),
2325
2325
  builderSpan,
2326
+ serviceName: service?.name,
2326
2327
  env: perBuildEnv
2327
2328
  };
2328
2329
  const runner = createBuildRunner2?.({
@@ -3034,6 +3035,9 @@ var require_do_build = __commonJS({
3034
3035
  overrides: mergedOverrides,
3035
3036
  framework,
3036
3037
  crons: mergedCrons,
3038
+ ...localConfig.schedules && localConfig.schedules.length > 0 && {
3039
+ schedules: localConfig.schedules
3040
+ },
3037
3041
  ...detectedExperimentalServicesV1Config && Object.keys(detectedExperimentalServicesV1Config).length > 0 && {
3038
3042
  experimentalServices: detectedExperimentalServicesV1Config
3039
3043
  },
@@ -3639,19 +3643,48 @@ function rehydrateResult(result, outputVersion) {
3639
3643
  }
3640
3644
  }
3641
3645
  }
3646
+ function createServiceLinePrefixer(serviceName, dest) {
3647
+ const tag = `[vc:service:${serviceName}] `;
3648
+ let pending = "";
3649
+ return {
3650
+ onData(chunk) {
3651
+ pending += chunk;
3652
+ const newlineIndex = pending.lastIndexOf("\n");
3653
+ if (newlineIndex === -1)
3654
+ return;
3655
+ const complete = pending.slice(0, newlineIndex + 1);
3656
+ pending = pending.slice(newlineIndex + 1);
3657
+ const tagged = complete.split("\n").slice(0, -1).map((line) => `${tag}${line}`).join("\n");
3658
+ dest.write(`${tagged}
3659
+ `);
3660
+ },
3661
+ flush() {
3662
+ if (pending.length > 0) {
3663
+ dest.write(`${tag}${pending}`);
3664
+ pending = "";
3665
+ }
3666
+ }
3667
+ };
3668
+ }
3642
3669
  var SubprocessBuildRunner = class extends import_build_runner.BuildRunner {
3643
3670
  /**
3644
3671
  * Fork a worker, run one build, and return the deserialized result. `buildOptions.span` is
3645
3672
  * dropped (a class instance that can't be serialized); the caller keeps its own tracing.
3646
3673
  *
3647
- * The child inherits stdout/stderr so its build output reaches the terminal directly, matching
3648
- * the previous in-process behavior. When the build registers a pre-deploy command, the worker
3649
- * is kept alive: its `registerPreDeploy` callback runs the command in the worker later, when the
3650
- * command invokes the deferred callback. Teardown is owned by the caller (via `teardown()`), so
3651
- * a kept-alive worker is released even if that deferred callback is never reached.
3674
+ * When `ctx.serviceName` is set, the child's stdout/stderr are piped so each line can be
3675
+ * prefixed with the service tag before forwarding to the terminal (covering the builder's own
3676
+ * output and any subprocess it spawns). Otherwise the child inherits stdout/stderr and writes
3677
+ * directly, matching the previous in-process behavior.
3678
+ *
3679
+ * When the build registers a pre-deploy
3680
+ * command, the worker is kept alive: its `registerPreDeploy` callback runs the command in the
3681
+ * worker later, when the command invokes the deferred callback. Teardown is owned by the caller
3682
+ * (via `teardown()`), so a kept-alive worker is released even if that deferred callback is never
3683
+ * reached.
3652
3684
  */
3653
3685
  async build() {
3654
3686
  const workerPath = join(__dirname, "builder-worker.cjs");
3687
+ const { serviceName } = this.ctx;
3655
3688
  const child = fork(workerPath, [], {
3656
3689
  cwd: this.ctx.cwd,
3657
3690
  execArgv: [],
@@ -3659,9 +3692,26 @@ var SubprocessBuildRunner = class extends import_build_runner.BuildRunner {
3659
3692
  // V8 structured clone (not the default JSON) so the build result rides across with its
3660
3693
  // Buffers, cycles (e.g. `@vercel/next`'s `childProcesses`), and shared object identity
3661
3694
  // (one Lambda referenced by many outputs stays one instance) intact.
3662
- serialization: "advanced"
3695
+ serialization: "advanced",
3696
+ // Pipe stdout/stderr (keeping stdin inherited and the IPC channel) only when we need to
3697
+ // tag lines; otherwise inherit so output goes straight to the terminal.
3698
+ stdio: serviceName ? ["inherit", "pipe", "pipe", "ipc"] : ["inherit", "inherit", "inherit", "ipc"]
3663
3699
  });
3664
3700
  this.child = child;
3701
+ this.stdoutPrefixer = serviceName ? createServiceLinePrefixer(serviceName, process.stdout) : void 0;
3702
+ this.stderrPrefixer = serviceName ? createServiceLinePrefixer(serviceName, process.stderr) : void 0;
3703
+ if (this.stdoutPrefixer && child.stdout) {
3704
+ const prefixer = this.stdoutPrefixer;
3705
+ child.stdout.setEncoding("utf8");
3706
+ child.stdout.on("data", (chunk) => prefixer.onData(chunk));
3707
+ child.stdout.on("end", () => prefixer.flush());
3708
+ }
3709
+ if (this.stderrPrefixer && child.stderr) {
3710
+ const prefixer = this.stderrPrefixer;
3711
+ child.stderr.setEncoding("utf8");
3712
+ child.stderr.on("data", (chunk) => prefixer.onData(chunk));
3713
+ child.stderr.on("end", () => prefixer.flush());
3714
+ }
3665
3715
  await new Promise((resolve2, reject) => {
3666
3716
  function onMessage(data) {
3667
3717
  cleanup();
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  promptMissingCredentials
9
- } from "../../chunks/chunk-MHO3EJAF.js";
9
+ } from "../../chunks/chunk-JRRKVHYI.js";
10
10
  import {
11
11
  Now,
12
12
  UploadErrorMissingArchive,
@@ -16,15 +16,15 @@ import {
16
16
  purchaseDomainIfAvailable,
17
17
  require_cjs,
18
18
  setupDomain
19
- } from "../../chunks/chunk-LCDVMLKI.js";
19
+ } from "../../chunks/chunk-2AXLPLJ6.js";
20
20
  import "../../chunks/chunk-PRWJUY5U.js";
21
21
  import {
22
22
  login,
23
23
  require_ci_info
24
- } from "../../chunks/chunk-YLNIMGMQ.js";
24
+ } from "../../chunks/chunk-QEMZZQEB.js";
25
25
  import {
26
26
  readLocalConfig
27
- } from "../../chunks/chunk-QQ77K4QW.js";
27
+ } from "../../chunks/chunk-YOIKPYK5.js";
28
28
  import {
29
29
  highlight
30
30
  } from "../../chunks/chunk-AINIBIP4.js";
@@ -63,7 +63,7 @@ import "../../chunks/chunk-XDGOOW3K.js";
63
63
  import "../../chunks/chunk-VP5Y3SZG.js";
64
64
  import {
65
65
  pickOverrides
66
- } from "../../chunks/chunk-7TYA36S5.js";
66
+ } from "../../chunks/chunk-TVFLOPV2.js";
67
67
  import {
68
68
  stamp_default
69
69
  } from "../../chunks/chunk-64IF634X.js";
@@ -100,7 +100,7 @@ import {
100
100
  require_lib,
101
101
  validatePaths,
102
102
  validateRootDirectory
103
- } from "../../chunks/chunk-Z44PATWW.js";
103
+ } from "../../chunks/chunk-TDIBKSQA.js";
104
104
  import "../../chunks/chunk-FXD67VN5.js";
105
105
  import {
106
106
  TelemetryClient
@@ -9,7 +9,7 @@ import {
9
9
  } from "../../chunks/chunk-2HSQ7YUK.js";
10
10
  import {
11
11
  getUpdateCommand
12
- } from "../../chunks/chunk-53J6IECW.js";
12
+ } from "../../chunks/chunk-E5JOJB3R.js";
13
13
  import {
14
14
  getGlobalPathConfig,
15
15
  highlight
@@ -26,15 +26,15 @@ import {
26
26
  require_get_files,
27
27
  require_mime_types,
28
28
  require_service_schedules
29
- } from "../../chunks/chunk-VV5XULGR.js";
29
+ } from "../../chunks/chunk-B63TMVER.js";
30
30
  import {
31
31
  importBuilders,
32
32
  require_npa
33
- } from "../../chunks/chunk-O6VHU65V.js";
33
+ } from "../../chunks/chunk-JPZGNSWH.js";
34
34
  import "../../chunks/chunk-IB5L4LKZ.js";
35
35
  import {
36
36
  pickOverrides
37
- } from "../../chunks/chunk-7TYA36S5.js";
37
+ } from "../../chunks/chunk-TVFLOPV2.js";
38
38
  import "../../chunks/chunk-5XECIWME.js";
39
39
  import {
40
40
  help
@@ -69,7 +69,7 @@ import {
69
69
  setupAndLink,
70
70
  tryDetectServices,
71
71
  validateConfig
72
- } from "../../chunks/chunk-Z44PATWW.js";
72
+ } from "../../chunks/chunk-TDIBKSQA.js";
73
73
  import "../../chunks/chunk-FXD67VN5.js";
74
74
  import {
75
75
  TelemetryClient
@@ -21895,7 +21895,7 @@ Please ensure that ${cmd(err.path)} is properly installed`;
21895
21895
  return void 0;
21896
21896
  }
21897
21897
  async _getVercelConfig() {
21898
- const { compileVercelConfig } = await import("../../chunks/compile-vercel-config-WVGNTJXO.js");
21898
+ const { compileVercelConfig } = await import("../../chunks/compile-vercel-config-I2JHXWAM.js");
21899
21899
  await compileVercelConfig(this.cwd);
21900
21900
  const configPath = getLocalPathConfig(this.cwd);
21901
21901
  const [
@@ -26,7 +26,7 @@ import {
26
26
  } from "../../chunks/chunk-7ST552E3.js";
27
27
  import {
28
28
  formatEnvironment
29
- } from "../../chunks/chunk-AXNMBJKD.js";
29
+ } from "../../chunks/chunk-GCCFVS6C.js";
30
30
  import {
31
31
  validateLsArgs
32
32
  } from "../../chunks/chunk-O75LSD3C.js";
@@ -81,7 +81,7 @@ import {
81
81
  getLocalSvelteKitPublicPrefixes,
82
82
  getPublicPrefix,
83
83
  getPublicPrefixSecretVisibilityError,
84
- getTeamById,
84
+ getTeamByIdOrSlug,
85
85
  getUnavailableSecretValuesMessage,
86
86
  isFlagsSecretNeedingSplit,
87
87
  isSecretEnvVar,
@@ -99,7 +99,7 @@ import {
99
99
  resolveProjectContext,
100
100
  shouldConfirmRotationBeforeDelete,
101
101
  validateEnvValue
102
- } from "../../chunks/chunk-Z44PATWW.js";
102
+ } from "../../chunks/chunk-TDIBKSQA.js";
103
103
  import {
104
104
  addSubcommand,
105
105
  envCommand,
@@ -1112,7 +1112,7 @@ async function add(client, argv) {
1112
1112
  let disjunctiveProductionSecretPolicyOn = false;
1113
1113
  if (link.org.type === "team") {
1114
1114
  try {
1115
- const team = await getTeamById(client, link.org.id);
1115
+ const team = await getTeamByIdOrSlug(client, link.org.id);
1116
1116
  teamSensitivePolicyOn = team?.sensitiveEnvironmentVariablePolicy === "on";
1117
1117
  disjunctiveProductionSecretPolicyOn = team?.disjunctiveProductionSecretPolicy === "on";
1118
1118
  } catch {
@@ -2963,7 +2963,7 @@ async function update(client, argv) {
2963
2963
  let disjunctiveProductionSecretPolicyOn = false;
2964
2964
  if (link.org.type === "team") {
2965
2965
  try {
2966
- const team = await getTeamById(client, link.org.id);
2966
+ const team = await getTeamByIdOrSlug(client, link.org.id);
2967
2967
  teamSensitivePolicyOn = team?.sensitiveEnvironmentVariablePolicy === "on";
2968
2968
  disjunctiveProductionSecretPolicyOn = team?.disjunctiveProductionSecretPolicy === "on";
2969
2969
  } catch {
@@ -39,7 +39,7 @@ import {
39
39
  isPromptCanceledError,
40
40
  pull,
41
41
  resolveProjectCwd
42
- } from "../../chunks/chunk-Z44PATWW.js";
42
+ } from "../../chunks/chunk-TDIBKSQA.js";
43
43
  import "../../chunks/chunk-FXD67VN5.js";
44
44
  import {
45
45
  TelemetryClient
@@ -16,7 +16,7 @@ import {
16
16
  } from "../../chunks/chunk-EKPSCRJZ.js";
17
17
  import {
18
18
  formatEnvironment
19
- } from "../../chunks/chunk-AXNMBJKD.js";
19
+ } from "../../chunks/chunk-GCCFVS6C.js";
20
20
  import {
21
21
  validateLsArgs
22
22
  } from "../../chunks/chunk-O75LSD3C.js";
@@ -40,7 +40,7 @@ import {
40
40
  getScope,
41
41
  parseTarget,
42
42
  toHost
43
- } from "../../chunks/chunk-Z44PATWW.js";
43
+ } from "../../chunks/chunk-TDIBKSQA.js";
44
44
  import "../../chunks/chunk-FXD67VN5.js";
45
45
  import {
46
46
  TelemetryClient