@superblocksteam/cli 2.0.110-next.9 → 2.0.111-next.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 (106) hide show
  1. package/README.md +1 -1
  2. package/dist/{acorn-3D2W2AKY.js → acorn-SLEBXOPM.js} +3 -3
  3. package/dist/{angular-HVKP5P5N.js → angular-6RC4UUQO.js} +3 -3
  4. package/dist/{api-LSOISICD.js → api-SNLSSH3U.js} +4 -4
  5. package/dist/{babel-B4WD7GLJ.js → babel-ASTIWI3P.js} +3 -3
  6. package/dist/{chunk-3NONMYU6.js → chunk-2X5VDGUL.js} +6 -6
  7. package/dist/{chunk-A5WCVW6M.js → chunk-5QM3EEXH.js} +4 -4
  8. package/dist/{chunk-OPB2WVVU.js → chunk-634XQVTI.js} +4 -4
  9. package/dist/{chunk-QBHC6RCO.js → chunk-6XMCVOST.js} +3 -3
  10. package/dist/{chunk-Y3IEKQVS.js → chunk-AYW7EDEX.js} +3 -3
  11. package/dist/{chunk-RC53XP2N.js → chunk-E4SP3S63.js} +4 -4
  12. package/dist/{chunk-DGVDV434.js → chunk-E7KUQ4FE.js} +4 -4
  13. package/dist/{chunk-OSJNQX7U.js → chunk-HOSXK2Y6.js} +171 -88
  14. package/dist/{chunk-OSJNQX7U.js.map → chunk-HOSXK2Y6.js.map} +1 -1
  15. package/dist/{chunk-XHY4LTJJ.js → chunk-HY7UBGMX.js} +3 -3
  16. package/dist/{chunk-RYM4EYRS.js → chunk-MNJJSKHZ.js} +2 -2
  17. package/dist/{chunk-XUS66SQZ.js → chunk-SKMNWLPY.js} +3 -3
  18. package/dist/{chunk-ZGOYHQFO.js → chunk-UTXPKA2C.js} +6 -6
  19. package/dist/{chunk-OMQRNPK6.js → chunk-VL5WAV6F.js} +3 -3
  20. package/dist/{chunk-CMGIU3NN.js → chunk-WL7QOS6J.js} +3 -3
  21. package/dist/{chunk-YCNCRJYV.js → chunk-ZCWTYMYZ.js} +3 -3
  22. package/dist/{chunk-KC2IY4X2.js → chunk-ZLXTKRU5.js} +3 -3
  23. package/dist/{chunk-PFPXZXBI.js → chunk-ZMBAL5QJ.js} +3 -3
  24. package/dist/{cli-truncate-O7Q4EDNQ.js → cli-truncate-7VBORESD.js} +5 -5
  25. package/dist/commands/dev-parent.js +2 -2
  26. package/dist/{dd-trace-YVZHQMJL.js → dd-trace-5BYOFB5K.js} +7 -7
  27. package/dist/{dist-PJIZIVLX.js → dist-QIUPLZAF.js} +13 -13
  28. package/dist/{embedded-playwright-mcp-server-DC37K3RU.js → embedded-playwright-mcp-server-WWPWW4DO.js} +3 -3
  29. package/dist/{enquirer-AR4JKNOT.js → enquirer-APO5ZWFR.js} +4 -4
  30. package/dist/{estree-H3LDYHUV.js → estree-AMTSACNT.js} +3 -3
  31. package/dist/{flow-2N5KLUPY.js → flow-AEXGDJ6G.js} +3 -3
  32. package/dist/{getMachineId-bsd-GDC3W6DD.js → getMachineId-bsd-JKUN5SSP.js} +5 -5
  33. package/dist/{getMachineId-darwin-UJ6EODVH.js → getMachineId-darwin-HAXIZ4SF.js} +5 -5
  34. package/dist/{getMachineId-linux-QR6X6UV6.js → getMachineId-linux-QJ34RVXE.js} +4 -4
  35. package/dist/{getMachineId-unsupported-BY2Z7V36.js → getMachineId-unsupported-RNQUGZ5J.js} +4 -4
  36. package/dist/{getMachineId-win-KHF7HTSM.js → getMachineId-win-VVNK5ZBD.js} +5 -5
  37. package/dist/{glimmer-OQNDPJZ4.js → glimmer-RDX5SMUW.js} +3 -3
  38. package/dist/{graphql-E3S5HTFF.js → graphql-BZRHZUYU.js} +3 -3
  39. package/dist/{html-AXQOAYF5.js → html-BYTKDYRN.js} +3 -3
  40. package/dist/{http-35CBB22T.js → http-WAR6VDDW.js} +12 -12
  41. package/dist/index.js +29 -20
  42. package/dist/index.js.map +1 -1
  43. package/dist/{jiti-X5L3PEDX.js → jiti-X73LQAEX.js} +3 -3
  44. package/dist/{log-update-I6QEMHVE.js → log-update-NHJG4C4W.js} +6 -6
  45. package/dist/{markdown-T33IEMG4.js → markdown-EMBWCYGU.js} +3 -3
  46. package/dist/{meriyah-A7KG5ICX.js → meriyah-JGF6IOPU.js} +3 -3
  47. package/dist/{postcss-INIOIHP7.js → postcss-AWH3AW63.js} +3 -3
  48. package/dist/{read-pkg-PQUM5NTS.js → read-pkg-N6NFQVTC.js} +5 -5
  49. package/dist/{spans-375ZPRUO.js → spans-OCSVIZ33.js} +4 -4
  50. package/dist/{src-YS3I4SQA.js → src-67P7IHOU.js} +3 -3
  51. package/dist/{token-MAXTTCE2.js → token-HO5IGIIO.js} +5 -5
  52. package/dist/{token-util-7T4GL63H.js → token-util-SLK3VTG6.js} +5 -5
  53. package/dist/{typescript-IBSIENKR.js → typescript-6MCB7LTV.js} +3 -3
  54. package/dist/{wrap-ansi-UZG4BL7K.js → wrap-ansi-L4S3BRNZ.js} +5 -5
  55. package/dist/{yaml-EONXBPHY.js → yaml-WJS33RAV.js} +3 -3
  56. package/oclif.manifest.json +1 -1
  57. package/package.json +5 -5
  58. /package/dist/{acorn-3D2W2AKY.js.map → acorn-SLEBXOPM.js.map} +0 -0
  59. /package/dist/{angular-HVKP5P5N.js.map → angular-6RC4UUQO.js.map} +0 -0
  60. /package/dist/{api-LSOISICD.js.map → api-SNLSSH3U.js.map} +0 -0
  61. /package/dist/{babel-B4WD7GLJ.js.map → babel-ASTIWI3P.js.map} +0 -0
  62. /package/dist/{chunk-3NONMYU6.js.map → chunk-2X5VDGUL.js.map} +0 -0
  63. /package/dist/{chunk-A5WCVW6M.js.map → chunk-5QM3EEXH.js.map} +0 -0
  64. /package/dist/{chunk-OPB2WVVU.js.map → chunk-634XQVTI.js.map} +0 -0
  65. /package/dist/{chunk-QBHC6RCO.js.map → chunk-6XMCVOST.js.map} +0 -0
  66. /package/dist/{chunk-Y3IEKQVS.js.map → chunk-AYW7EDEX.js.map} +0 -0
  67. /package/dist/{chunk-RC53XP2N.js.map → chunk-E4SP3S63.js.map} +0 -0
  68. /package/dist/{chunk-DGVDV434.js.map → chunk-E7KUQ4FE.js.map} +0 -0
  69. /package/dist/{chunk-XHY4LTJJ.js.map → chunk-HY7UBGMX.js.map} +0 -0
  70. /package/dist/{chunk-RYM4EYRS.js.map → chunk-MNJJSKHZ.js.map} +0 -0
  71. /package/dist/{chunk-XUS66SQZ.js.map → chunk-SKMNWLPY.js.map} +0 -0
  72. /package/dist/{chunk-ZGOYHQFO.js.map → chunk-UTXPKA2C.js.map} +0 -0
  73. /package/dist/{chunk-OMQRNPK6.js.map → chunk-VL5WAV6F.js.map} +0 -0
  74. /package/dist/{chunk-CMGIU3NN.js.map → chunk-WL7QOS6J.js.map} +0 -0
  75. /package/dist/{chunk-YCNCRJYV.js.map → chunk-ZCWTYMYZ.js.map} +0 -0
  76. /package/dist/{chunk-KC2IY4X2.js.map → chunk-ZLXTKRU5.js.map} +0 -0
  77. /package/dist/{chunk-PFPXZXBI.js.map → chunk-ZMBAL5QJ.js.map} +0 -0
  78. /package/dist/{cli-truncate-O7Q4EDNQ.js.map → cli-truncate-7VBORESD.js.map} +0 -0
  79. /package/dist/{dd-trace-YVZHQMJL.js.map → dd-trace-5BYOFB5K.js.map} +0 -0
  80. /package/dist/{dist-PJIZIVLX.js.map → dist-QIUPLZAF.js.map} +0 -0
  81. /package/dist/{embedded-playwright-mcp-server-DC37K3RU.js.map → embedded-playwright-mcp-server-WWPWW4DO.js.map} +0 -0
  82. /package/dist/{enquirer-AR4JKNOT.js.map → enquirer-APO5ZWFR.js.map} +0 -0
  83. /package/dist/{estree-H3LDYHUV.js.map → estree-AMTSACNT.js.map} +0 -0
  84. /package/dist/{flow-2N5KLUPY.js.map → flow-AEXGDJ6G.js.map} +0 -0
  85. /package/dist/{getMachineId-bsd-GDC3W6DD.js.map → getMachineId-bsd-JKUN5SSP.js.map} +0 -0
  86. /package/dist/{getMachineId-darwin-UJ6EODVH.js.map → getMachineId-darwin-HAXIZ4SF.js.map} +0 -0
  87. /package/dist/{getMachineId-linux-QR6X6UV6.js.map → getMachineId-linux-QJ34RVXE.js.map} +0 -0
  88. /package/dist/{getMachineId-unsupported-BY2Z7V36.js.map → getMachineId-unsupported-RNQUGZ5J.js.map} +0 -0
  89. /package/dist/{getMachineId-win-KHF7HTSM.js.map → getMachineId-win-VVNK5ZBD.js.map} +0 -0
  90. /package/dist/{glimmer-OQNDPJZ4.js.map → glimmer-RDX5SMUW.js.map} +0 -0
  91. /package/dist/{graphql-E3S5HTFF.js.map → graphql-BZRHZUYU.js.map} +0 -0
  92. /package/dist/{html-AXQOAYF5.js.map → html-BYTKDYRN.js.map} +0 -0
  93. /package/dist/{http-35CBB22T.js.map → http-WAR6VDDW.js.map} +0 -0
  94. /package/dist/{jiti-X5L3PEDX.js.map → jiti-X73LQAEX.js.map} +0 -0
  95. /package/dist/{log-update-I6QEMHVE.js.map → log-update-NHJG4C4W.js.map} +0 -0
  96. /package/dist/{markdown-T33IEMG4.js.map → markdown-EMBWCYGU.js.map} +0 -0
  97. /package/dist/{meriyah-A7KG5ICX.js.map → meriyah-JGF6IOPU.js.map} +0 -0
  98. /package/dist/{postcss-INIOIHP7.js.map → postcss-AWH3AW63.js.map} +0 -0
  99. /package/dist/{read-pkg-PQUM5NTS.js.map → read-pkg-N6NFQVTC.js.map} +0 -0
  100. /package/dist/{spans-375ZPRUO.js.map → spans-OCSVIZ33.js.map} +0 -0
  101. /package/dist/{src-YS3I4SQA.js.map → src-67P7IHOU.js.map} +0 -0
  102. /package/dist/{token-MAXTTCE2.js.map → token-HO5IGIIO.js.map} +0 -0
  103. /package/dist/{token-util-7T4GL63H.js.map → token-util-SLK3VTG6.js.map} +0 -0
  104. /package/dist/{typescript-IBSIENKR.js.map → typescript-6MCB7LTV.js.map} +0 -0
  105. /package/dist/{wrap-ansi-UZG4BL7K.js.map → wrap-ansi-L4S3BRNZ.js.map} +0 -0
  106. /package/dist/{yaml-EONXBPHY.js.map → yaml-WJS33RAV.js.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  if (typeof process === 'object' && process !== null &&
2
2
  process.env !== null && typeof process.env === 'object') {
3
3
  process.env.DD_GIT_REPOSITORY_URL = 'https://token@github.com/superblocksteam/superblocks.git';
4
- process.env.DD_GIT_COMMIT_SHA = '97ab495c33a98d12cf652f35668ad7db62ee3db0';
4
+ process.env.DD_GIT_COMMIT_SHA = '8c829e0a3a1ea9ec89ca751d0ae49a4b1db165e2';
5
5
  }
6
6
  import { createRequire as $dd_createRequire } from 'module';
7
7
  import { fileURLToPath as $dd_fileURLToPath } from 'url';
@@ -24,7 +24,7 @@ import {
24
24
  require_re,
25
25
  require_semver,
26
26
  require_valid
27
- } from "./chunk-XHY4LTJJ.js";
27
+ } from "./chunk-HY7UBGMX.js";
28
28
  import {
29
29
  debounce_default,
30
30
  get_default,
@@ -41,7 +41,7 @@ import {
41
41
  require_lib,
42
42
  require_slugify,
43
43
  throttle_default
44
- } from "./chunk-YCNCRJYV.js";
44
+ } from "./chunk-ZCWTYMYZ.js";
45
45
  import {
46
46
  require_dd_trace,
47
47
  require_import_in_the_middle,
@@ -50,16 +50,16 @@ import {
50
50
  require_p_limit,
51
51
  require_path_to_regexp,
52
52
  require_src
53
- } from "./chunk-3NONMYU6.js";
53
+ } from "./chunk-2X5VDGUL.js";
54
54
  import {
55
55
  require_commonjs
56
- } from "./chunk-QBHC6RCO.js";
56
+ } from "./chunk-6XMCVOST.js";
57
57
  import {
58
58
  require_dc_polyfill
59
- } from "./chunk-Y3IEKQVS.js";
59
+ } from "./chunk-AYW7EDEX.js";
60
60
  import {
61
61
  require_token_error
62
- } from "./chunk-CMGIU3NN.js";
62
+ } from "./chunk-WL7QOS6J.js";
63
63
  import {
64
64
  SpanKind,
65
65
  SpanStatusCode,
@@ -68,7 +68,7 @@ import {
68
68
  init_esm,
69
69
  metrics,
70
70
  trace
71
- } from "./chunk-KC2IY4X2.js";
71
+ } from "./chunk-ZLXTKRU5.js";
72
72
  import {
73
73
  __commonJS,
74
74
  __esm,
@@ -77,7 +77,7 @@ import {
77
77
  __toCommonJS,
78
78
  __toESM,
79
79
  init_cjs_shims
80
- } from "./chunk-RYM4EYRS.js";
80
+ } from "./chunk-MNJJSKHZ.js";
81
81
 
82
82
  // ../../../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/constants.js
83
83
  var require_constants3 = __commonJS({
@@ -43881,6 +43881,7 @@ var require_git_url = __commonJS({
43881
43881
  exports2.detectGitProvider = detectGitProvider;
43882
43882
  exports2.isGitCommitHash = isGitCommitHash;
43883
43883
  exports2.getCommitUrlForHash = getCommitUrlForHash2;
43884
+ exports2.sshGitUrlToHttps = sshGitUrlToHttps;
43884
43885
  exports2.isCommitUrlForHash = isCommitUrlForHash;
43885
43886
  var HTTPS_GIT_URL_RE = /^https?:\/\/[^\s/$.?#]+(?:\.[^\s/$.?#]+)+\/[^\s/$.?#]+(\/[^\s/$.?#]+)+(\.git)?\/?$/i;
43886
43887
  var SSH_GIT_URL_RE = /^[\w-]+@[\w.-]+:[\w./-]+(\.git)?$/;
@@ -44007,6 +44008,47 @@ var require_git_url = __commonJS({
44007
44008
  provider
44008
44009
  })}`;
44009
44010
  }
44011
+ function sshGitUrlToHttps(url4) {
44012
+ const trimmed2 = url4.trim();
44013
+ try {
44014
+ const parsed = new URL(trimmed2);
44015
+ if (parsed.protocol === "https:" || parsed.protocol === "http:") {
44016
+ if (parsed.hostname === "dev.azure.com" && parsed.pathname.includes("/_git/")) {
44017
+ return trimmed2.replace(/\/+$/, "");
44018
+ }
44019
+ return ensureGitSuffix(trimmed2);
44020
+ }
44021
+ if (parsed.protocol === "ssh:") {
44022
+ const host = parsed.hostname;
44023
+ const path77 = parsed.pathname;
44024
+ if (host === "ssh.dev.azure.com") {
44025
+ const azureMatch = path77.match(/^\/v3\/([^/]+)\/([^/]+)\/(.+?)(?:\.git)?\/?$/);
44026
+ if (azureMatch) {
44027
+ return `https://dev.azure.com/${azureMatch[1]}/${azureMatch[2]}/_git/${azureMatch[3]}`;
44028
+ }
44029
+ }
44030
+ return ensureGitSuffix(`https://${host}${path77}`);
44031
+ }
44032
+ } catch {
44033
+ }
44034
+ const sshMatch = trimmed2.match(/^[\w-]+@([\w.-]+):(.+?)(?:\.git)?\s*$/);
44035
+ if (sshMatch?.[1] && sshMatch[2]) {
44036
+ const host = sshMatch[1];
44037
+ const path77 = sshMatch[2];
44038
+ if (host === "ssh.dev.azure.com") {
44039
+ const azureMatch = path77.match(/^v3\/([^/]+)\/([^/]+)\/(.+)$/);
44040
+ if (azureMatch) {
44041
+ return `https://dev.azure.com/${azureMatch[1]}/${azureMatch[2]}/_git/${azureMatch[3]}`;
44042
+ }
44043
+ }
44044
+ return `https://${host}/${path77}.git`;
44045
+ }
44046
+ return null;
44047
+ }
44048
+ function ensureGitSuffix(url4) {
44049
+ const cleaned = url4.replace(/\/+$/, "");
44050
+ return cleaned.endsWith(".git") ? cleaned : `${cleaned}.git`;
44051
+ }
44010
44052
  function isCommitUrlForHash(params) {
44011
44053
  const { hash: hash2, url: url4 } = params;
44012
44054
  const trimmedHash = hash2.trim();
@@ -96679,15 +96721,15 @@ var require_api_files = __commonJS({
96679
96721
  exports2.readAppApiYamlFile = readAppApiYamlFile4;
96680
96722
  exports2.resolveLanguageSpecificStepContentFromBlocks = resolveLanguageSpecificStepContentFromBlocks2;
96681
96723
  async function writeApiFiles3(...args) {
96682
- const esmFunction = await import("./api-LSOISICD.js");
96724
+ const esmFunction = await import("./api-SNLSSH3U.js");
96683
96725
  return esmFunction.writeApiFiles(...args);
96684
96726
  }
96685
96727
  async function readAppApiYamlFile4(...args) {
96686
- const esmFunction = await import("./api-LSOISICD.js");
96728
+ const esmFunction = await import("./api-SNLSSH3U.js");
96687
96729
  return esmFunction.readAppApiYamlFile(...args);
96688
96730
  }
96689
96731
  async function resolveLanguageSpecificStepContentFromBlocks2(...args) {
96690
- const esmFunction = await import("./api-LSOISICD.js");
96732
+ const esmFunction = await import("./api-SNLSSH3U.js");
96691
96733
  return esmFunction.resolveLanguageSpecificStepContentFromBlocks(...args);
96692
96734
  }
96693
96735
  }
@@ -109479,19 +109521,19 @@ var require_getMachineId = __commonJS({
109479
109521
  if (!getMachineIdImpl) {
109480
109522
  switch (process5.platform) {
109481
109523
  case "darwin":
109482
- getMachineIdImpl = (await import("./getMachineId-darwin-UJ6EODVH.js")).getMachineId;
109524
+ getMachineIdImpl = (await import("./getMachineId-darwin-HAXIZ4SF.js")).getMachineId;
109483
109525
  break;
109484
109526
  case "linux":
109485
- getMachineIdImpl = (await import("./getMachineId-linux-QR6X6UV6.js")).getMachineId;
109527
+ getMachineIdImpl = (await import("./getMachineId-linux-QJ34RVXE.js")).getMachineId;
109486
109528
  break;
109487
109529
  case "freebsd":
109488
- getMachineIdImpl = (await import("./getMachineId-bsd-GDC3W6DD.js")).getMachineId;
109530
+ getMachineIdImpl = (await import("./getMachineId-bsd-JKUN5SSP.js")).getMachineId;
109489
109531
  break;
109490
109532
  case "win32":
109491
- getMachineIdImpl = (await import("./getMachineId-win-KHF7HTSM.js")).getMachineId;
109533
+ getMachineIdImpl = (await import("./getMachineId-win-VVNK5ZBD.js")).getMachineId;
109492
109534
  break;
109493
109535
  default:
109494
- getMachineIdImpl = (await import("./getMachineId-unsupported-BY2Z7V36.js")).getMachineId;
109536
+ getMachineIdImpl = (await import("./getMachineId-unsupported-RNQUGZ5J.js")).getMachineId;
109495
109537
  break;
109496
109538
  }
109497
109539
  }
@@ -185354,8 +185396,8 @@ var require_get_vercel_oidc_token = __commonJS({
185354
185396
  }
185355
185397
  try {
185356
185398
  const [{ getTokenPayload, isExpired }, { refreshToken }] = await Promise.all([
185357
- await import("./token-util-7T4GL63H.js"),
185358
- await import("./token-MAXTTCE2.js")
185399
+ await import("./token-util-SLK3VTG6.js"),
185400
+ await import("./token-HO5IGIIO.js")
185359
185401
  ]);
185360
185402
  if (!token2 || isExpired(getTokenPayload(token2))) {
185361
185403
  await refreshToken();
@@ -381237,7 +381279,7 @@ var require_config_loader = __commonJS({
381237
381279
  * @returns {Promise<{createJiti: Function|undefined, version: string;}>} A promise that fulfills with an object containing the jiti module's createJiti function and version.
381238
381280
  */
381239
381281
  static async loadJiti() {
381240
- const { createJiti } = await import("./jiti-X5L3PEDX.js");
381282
+ const { createJiti } = await import("./jiti-X73LQAEX.js");
381241
381283
  const version5 = require_package6().version;
381242
381284
  return { createJiti, version: version5 };
381243
381285
  }
@@ -381566,7 +381608,7 @@ var require_eslint_helpers = __commonJS({
381566
381608
  }
381567
381609
  async function globMatch({ basePath, pattern }) {
381568
381610
  let found = false;
381569
- const { hfs } = await import("./src-YS3I4SQA.js");
381611
+ const { hfs } = await import("./src-67P7IHOU.js");
381570
381612
  const patternToUse = normalizeToPosix(path77.relative(basePath, pattern));
381571
381613
  const matcher = new Minimatch2(patternToUse, MINIMATCH_OPTIONS);
381572
381614
  const walkSettings = {
@@ -381606,7 +381648,7 @@ var require_eslint_helpers = __commonJS({
381606
381648
  return new Minimatch2(patternToUse, MINIMATCH_OPTIONS);
381607
381649
  });
381608
381650
  const unmatchedPatterns = /* @__PURE__ */ new Set([...relativeToPatterns.keys()]);
381609
- const { hfs } = await import("./src-YS3I4SQA.js");
381651
+ const { hfs } = await import("./src-67P7IHOU.js");
381610
381652
  const walk2 = hfs.walk(basePath, {
381611
381653
  async directoryFilter(entry) {
381612
381654
  if (!matchers.some((matcher) => matcher.match(entry.path, true))) {
@@ -520579,7 +520621,7 @@ init_cjs_shims();
520579
520621
  // ../sdk/package.json
520580
520622
  var package_default = {
520581
520623
  name: "@superblocksteam/sdk",
520582
- version: "2.0.110-next.9",
520624
+ version: "2.0.111-next.0",
520583
520625
  description: "Superblocks JS SDK",
520584
520626
  homepage: "https://www.superblocks.com",
520585
520627
  license: "Superblocks Community Software License",
@@ -520933,7 +520975,7 @@ var config = void 0;
520933
520975
  var configured = false;
520934
520976
  var ddTracePromise = void 0;
520935
520977
  async function getDdTrace() {
520936
- ddTracePromise ??= import("./dd-trace-YVZHQMJL.js").then((module2) => module2.default);
520978
+ ddTracePromise ??= import("./dd-trace-5BYOFB5K.js").then((module2) => module2.default);
520937
520979
  return await ddTracePromise;
520938
520980
  }
520939
520981
  var deploymentType = (() => {
@@ -530209,7 +530251,7 @@ var MAX_ATTRIBUTE_LENGTH = 64e3;
530209
530251
  var LLMObsSpanWriter = null;
530210
530252
  async function loadLLMObsSpanWriter() {
530211
530253
  if (!LLMObsSpanWriter) {
530212
- const module2 = await import("./spans-375ZPRUO.js");
530254
+ const module2 = await import("./spans-OCSVIZ33.js");
530213
530255
  LLMObsSpanWriter = module2.default;
530214
530256
  }
530215
530257
  return LLMObsSpanWriter;
@@ -598814,7 +598856,7 @@ var PlaywrightMcpServerManager = class {
598814
598856
  this.logger.info(`Starting embedded Playwright MCP server: browser=${options8?.browser || "chromium"}, headless=${options8?.headless !== false}`);
598815
598857
  }
598816
598858
  try {
598817
- const { startEmbeddedPlaywrightMcpServer } = await import("./embedded-playwright-mcp-server-DC37K3RU.js");
598859
+ const { startEmbeddedPlaywrightMcpServer } = await import("./embedded-playwright-mcp-server-WWPWW4DO.js");
598818
598860
  this.server = await startEmbeddedPlaywrightMcpServer({
598819
598861
  storageStatePath: options8?.storageStatePath,
598820
598862
  jwt: options8?.jwt,
@@ -607133,7 +607175,7 @@ var NextStepSchema = external_exports.object({
607133
607175
  icon: external_exports.enum([...NEXT_STEPS_ICON_NAMES]).optional().describe(`Lucide icon name in kebab-case from: ${ICON_LIST}`)
607134
607176
  });
607135
607177
  var NextStepsSchema = external_exports.object({
607136
- nextSteps: external_exports.array(NextStepSchema).min(1).max(MAX_NEXT_STEPS).describe("3 follow-up next steps for what the user should build next")
607178
+ nextSteps: external_exports.array(NextStepSchema).describe("3 follow-up next steps for what the user should build next")
607137
607179
  });
607138
607180
  async function getNextSteps({ model, chatSessionStore, logger: logger15, abortSignal }) {
607139
607181
  const summary = await chatSessionStore.getLatestSummary();
@@ -640636,6 +640678,21 @@ async function ensureLiveBranchCheckedOut(gitService) {
640636
640678
  currentBranch: currentBranch || "(detached)",
640637
640679
  targetBranch: import_shared57.SUPERBLOCKS_LIVE_GIT_BRANCH
640638
640680
  });
640681
+ try {
640682
+ await gitService.fetch("origin", import_shared57.SUPERBLOCKS_LIVE_GIT_BRANCH);
640683
+ } catch (fetchErr) {
640684
+ const classified = classifyGitError(fetchErr);
640685
+ if (classified instanceof GitAuthError || classified instanceof GitPermissionError) {
640686
+ throw classified;
640687
+ }
640688
+ logger15.warn("[git] live branch fetch failed, proceeding with local ref", {
640689
+ gitCategory: "branch",
640690
+ gitOperation: "checkout-live-branch",
640691
+ gitOutcome: "fetch_failed",
640692
+ branch: import_shared57.SUPERBLOCKS_LIVE_GIT_BRANCH,
640693
+ ...getErrorMeta2(fetchErr)
640694
+ });
640695
+ }
640639
640696
  try {
640640
640697
  await gitService.revparse(`origin/${import_shared57.SUPERBLOCKS_LIVE_GIT_BRANCH}`);
640641
640698
  await gitService.checkoutOrCreate(import_shared57.SUPERBLOCKS_LIVE_GIT_BRANCH, `origin/${import_shared57.SUPERBLOCKS_LIVE_GIT_BRANCH}`);
@@ -640995,6 +641052,7 @@ var SocketManager = class extends import_shared58.TracedEventEmitter {
640995
641052
  aiCancel: [
640996
641053
  async () => {
640997
641054
  await aiService?.handleUserCanceled();
641055
+ await syncService?.reportDraftStateToServer(false);
640998
641056
  }
640999
641057
  ],
641000
641058
  aiNotifyIntegrationSetupClosed: [
@@ -663153,7 +663211,7 @@ var parseYaml3;
663153
663211
  async function loadYaml(file2) {
663154
663212
  const content9 = await read_file_default(file2);
663155
663213
  if (!parseYaml3) {
663156
- ({ __parsePrettierYamlConfig: parseYaml3 } = await import("./yaml-EONXBPHY.js"));
663214
+ ({ __parsePrettierYamlConfig: parseYaml3 } = await import("./yaml-WJS33RAV.js"));
663157
663215
  }
663158
663216
  try {
663159
663217
  return parseYaml3(content9);
@@ -668547,7 +668605,7 @@ function createParsersAndPrinters(modules) {
668547
668605
  }
668548
668606
  var estreePlugin = createParsersAndPrinters([
668549
668607
  {
668550
- importPlugin: () => import("./estree-H3LDYHUV.js"),
668608
+ importPlugin: () => import("./estree-AMTSACNT.js"),
668551
668609
  printers: ["estree", "estree-json"]
668552
668610
  }
668553
668611
  ]);
@@ -668571,11 +668629,11 @@ var languages = [
668571
668629
  ];
668572
668630
  var { parsers: parsers12, printers } = createParsersAndPrinters([
668573
668631
  {
668574
- importPlugin: () => import("./acorn-3D2W2AKY.js"),
668632
+ importPlugin: () => import("./acorn-SLEBXOPM.js"),
668575
668633
  parsers: ["acorn", "espree"]
668576
668634
  },
668577
668635
  {
668578
- importPlugin: () => import("./angular-HVKP5P5N.js"),
668636
+ importPlugin: () => import("./angular-6RC4UUQO.js"),
668579
668637
  parsers: [
668580
668638
  "__ng_action",
668581
668639
  "__ng_binding",
@@ -668584,7 +668642,7 @@ var { parsers: parsers12, printers } = createParsersAndPrinters([
668584
668642
  ]
668585
668643
  },
668586
668644
  {
668587
- importPlugin: () => import("./babel-B4WD7GLJ.js"),
668645
+ importPlugin: () => import("./babel-ASTIWI3P.js"),
668588
668646
  parsers: [
668589
668647
  "babel",
668590
668648
  "babel-flow",
@@ -668603,44 +668661,44 @@ var { parsers: parsers12, printers } = createParsersAndPrinters([
668603
668661
  ]
668604
668662
  },
668605
668663
  {
668606
- importPlugin: () => import("./flow-2N5KLUPY.js"),
668664
+ importPlugin: () => import("./flow-AEXGDJ6G.js"),
668607
668665
  parsers: ["flow"]
668608
668666
  },
668609
668667
  {
668610
- importPlugin: () => import("./glimmer-OQNDPJZ4.js"),
668668
+ importPlugin: () => import("./glimmer-RDX5SMUW.js"),
668611
668669
  parsers: ["glimmer"],
668612
668670
  printers: ["glimmer"]
668613
668671
  },
668614
668672
  {
668615
- importPlugin: () => import("./graphql-E3S5HTFF.js"),
668673
+ importPlugin: () => import("./graphql-BZRHZUYU.js"),
668616
668674
  parsers: ["graphql"],
668617
668675
  printers: ["graphql"]
668618
668676
  },
668619
668677
  {
668620
- importPlugin: () => import("./html-AXQOAYF5.js"),
668678
+ importPlugin: () => import("./html-BYTKDYRN.js"),
668621
668679
  parsers: ["html", "angular", "vue", "lwc", "mjml"],
668622
668680
  printers: ["html"]
668623
668681
  },
668624
668682
  {
668625
- importPlugin: () => import("./markdown-T33IEMG4.js"),
668683
+ importPlugin: () => import("./markdown-EMBWCYGU.js"),
668626
668684
  parsers: ["markdown", "mdx", "remark"],
668627
668685
  printers: ["mdast"]
668628
668686
  },
668629
668687
  {
668630
- importPlugin: () => import("./meriyah-A7KG5ICX.js"),
668688
+ importPlugin: () => import("./meriyah-JGF6IOPU.js"),
668631
668689
  parsers: ["meriyah"]
668632
668690
  },
668633
668691
  {
668634
- importPlugin: () => import("./postcss-INIOIHP7.js"),
668692
+ importPlugin: () => import("./postcss-AWH3AW63.js"),
668635
668693
  parsers: ["css", "less", "scss"],
668636
668694
  printers: ["postcss"]
668637
668695
  },
668638
668696
  {
668639
- importPlugin: () => import("./typescript-IBSIENKR.js"),
668697
+ importPlugin: () => import("./typescript-6MCB7LTV.js"),
668640
668698
  parsers: ["typescript"]
668641
668699
  },
668642
668700
  {
668643
- importPlugin: () => import("./yaml-EONXBPHY.js"),
668701
+ importPlugin: () => import("./yaml-WJS33RAV.js"),
668644
668702
  parsers: ["yaml"],
668645
668703
  printers: ["yaml"]
668646
668704
  }
@@ -671471,6 +671529,7 @@ var resolvedVirtualRegisteredComponentsId = `\0${virtualRegisteredComponentsId}`
671471
671529
  init_cjs_shims();
671472
671530
  import { readFileSync as readFileSync2, readdirSync as readdirSync2, writeFileSync as writeFileSync3 } from "node:fs";
671473
671531
  import path60 from "node:path";
671532
+ var YAML_TYPES_PLUGIN_NAME = "sb-yaml-api-types";
671474
671533
  var SUPERBLOCKS_TYPE_FILE_NAME = "superblocks.d.ts";
671475
671534
  var SUPERBLOCKS_REGISTRY_ENTRY_REGEX = /^\s*"([^"]+)":\s*\{\s*input:\s*([^;]+);\s*output:\s*(.+?)\s*\};\s*$/gm;
671476
671535
  function loadApiTypes(rootDir, apiName) {
@@ -671609,7 +671668,7 @@ var yamlApiTypesPlugin = (syncService, aiService) => {
671609
671668
  }
671610
671669
  };
671611
671670
  return {
671612
- name: "sb-yaml-api-types",
671671
+ name: YAML_TYPES_PLUGIN_NAME,
671613
671672
  enforce: "pre",
671614
671673
  configResolved(resolvedConfig) {
671615
671674
  config4 = resolvedConfig;
@@ -671638,7 +671697,18 @@ var isInitialized = false;
671638
671697
  var config3;
671639
671698
  var pendingFileTransformError = null;
671640
671699
  var loggedViteErrors = [];
671641
- var fileSyncVitePlugin = (pluginParams, options8) => {
671700
+ var PLUGIN_NAME = "sb-file-sync";
671701
+ function fileSyncVitePlugin(pluginParams, options8) {
671702
+ if (!pluginParams) {
671703
+ return {
671704
+ plugin: [
671705
+ { name: PLUGIN_NAME, apply: "serve", enforce: "pre" },
671706
+ { name: YAML_TYPES_PLUGIN_NAME, enforce: "pre" }
671707
+ ],
671708
+ dispose: () => {
671709
+ }
671710
+ };
671711
+ }
671642
671712
  const logger15 = pluginParams.logger;
671643
671713
  setDefaultLogger(logger15);
671644
671714
  setOptions(options8 ?? {
@@ -671695,7 +671765,7 @@ var fileSyncVitePlugin = (pluginParams, options8) => {
671695
671765
  pendingFileTransformError = { filePath, error: error40 };
671696
671766
  };
671697
671767
  const plugin = {
671698
- name: "sb-file-sync",
671768
+ name: PLUGIN_NAME,
671699
671769
  apply: "serve",
671700
671770
  enforce: "pre",
671701
671771
  config() {
@@ -672702,7 +672772,7 @@ ${fileContents}`,
672702
672772
  disposeSocketManager();
672703
672773
  }
672704
672774
  };
672705
- };
672775
+ }
672706
672776
  async function getAppScope(fileSyncManager) {
672707
672777
  const pageContents = await getAllPages({
672708
672778
  rootDir: config3.root
@@ -680631,6 +680701,42 @@ var buildManifestStubPlugin = () => {
680631
680701
 
680632
680702
  // ../sdk/dist/dev-utils/dev-server.mjs
680633
680703
  var tracer3 = getTracer();
680704
+ function reactPlugin() {
680705
+ return react3({
680706
+ babel: {
680707
+ plugins: [
680708
+ [
680709
+ import.meta.resolve("@babel/plugin-proposal-decorators"),
680710
+ { version: "2023-11" }
680711
+ ]
680712
+ ]
680713
+ }
680714
+ });
680715
+ }
680716
+ var OPTIMIZE_DEPS_CONFIG = {
680717
+ esbuildOptions: {
680718
+ supported: {
680719
+ destructuring: true
680720
+ }
680721
+ }
680722
+ };
680723
+ function vitePlugins(root3, opts) {
680724
+ return [
680725
+ src_default(),
680726
+ sdkApiEntryPointPlugin(root3),
680727
+ customComponentsPlugin(),
680728
+ opts.fileSync,
680729
+ buildManifestStubPlugin(),
680730
+ reactPlugin(),
680731
+ vite_plugin_optimize_lucide_imports_default(),
680732
+ ddRumPlugin(opts.ddRum ?? {
680733
+ clientToken: "",
680734
+ applicationId: "",
680735
+ env: "",
680736
+ version: ""
680737
+ })
680738
+ ];
680739
+ }
680634
680740
  var RESTART_EXIT_CODE = 98;
680635
680741
  function getJwksUriWithBaseUrl(superblocksBaseUrl) {
680636
680742
  if (process.env.SUPERBLOCKS_JWKS_URI) {
@@ -681133,13 +681239,7 @@ async function startVite({ app, httpServer: httpServer2, root: root3, mode, port
681133
681239
  mode,
681134
681240
  clearScreen: process.env.SUPERBLOCKS_CLI_ENV !== "local",
681135
681241
  customLogger: viteLogger,
681136
- optimizeDeps: {
681137
- esbuildOptions: {
681138
- supported: {
681139
- destructuring: true
681140
- }
681141
- }
681142
- },
681242
+ optimizeDeps: OPTIMIZE_DEPS_CONFIG,
681143
681243
  server: {
681144
681244
  middlewareMode: true,
681145
681245
  watch: {
@@ -681160,29 +681260,9 @@ async function startVite({ app, httpServer: httpServer2, root: root3, mode, port
681160
681260
  // this replaces a string in @superblocksteam/shared
681161
681261
  "process.env.SUPERBLOCKS_PUBLIC_INTEGRATIONS_CDN_URL": process.env.SUPERBLOCKS_PUBLIC_INTEGRATIONS_CDN_URL ? JSON.stringify(process.env.SUPERBLOCKS_PUBLIC_INTEGRATIONS_CDN_URL) : "undefined"
681162
681262
  },
681163
- plugins: [
681164
- src_default(),
681165
- sdkApiEntryPointPlugin(root3),
681166
- customComponentsPlugin(),
681167
- fileSyncPluginCreator.plugin,
681168
- // Add a virtual "stub" module for the build manifest
681169
- buildManifestStubPlugin(),
681170
- react3({
681171
- babel: {
681172
- plugins: [
681173
- // We will bring this back later
681174
- // "babel-plugin-react-compiler",
681175
- [
681176
- import.meta.resolve("@babel/plugin-proposal-decorators"),
681177
- {
681178
- version: "2023-11"
681179
- }
681180
- ]
681181
- ]
681182
- }
681183
- }),
681184
- vite_plugin_optimize_lucide_imports_default(),
681185
- ddRumPlugin({
681263
+ plugins: vitePlugins(root3, {
681264
+ fileSync: fileSyncPluginCreator.plugin,
681265
+ ddRum: {
681186
681266
  clientToken: env2.SUPERBLOCKS_LIBRARY_DD_CLIENT_TOKEN ?? "",
681187
681267
  applicationId: env2.SUPERBLOCKS_LIBRARY_DD_APPLICATION_ID ?? "",
681188
681268
  env: env2.SUPERBLOCKS_LIBRARY_ENV ?? "prod",
@@ -681190,8 +681270,8 @@ async function startVite({ app, httpServer: httpServer2, root: root3, mode, port
681190
681270
  // CLI auto-upgrade still works - the caching changes in this PR only affect detection speed.
681191
681271
  // Replace with dynamic library version injection once available.
681192
681272
  version: "1.0.0"
681193
- })
681194
- ]
681273
+ }
681274
+ })
681195
681275
  });
681196
681276
  return server;
681197
681277
  } finally {
@@ -681213,6 +681293,7 @@ async function startVite({ app, httpServer: httpServer2, root: root3, mode, port
681213
681293
  }
681214
681294
  });
681215
681295
  }
681296
+ var PRE_WARM_TIMEOUT_MS = 6e4;
681216
681297
  async function preWarmViteCache(root3) {
681217
681298
  const start = Date.now();
681218
681299
  console.log("[warm] Pre-warming Vite dependency cache...");
@@ -681221,22 +681302,24 @@ async function preWarmViteCache(root3) {
681221
681302
  root: root3,
681222
681303
  mode: "development",
681223
681304
  server: { middlewareMode: true, hmr: false },
681224
- plugins: [src_default()],
681305
+ plugins: vitePlugins(root3, { fileSync: fileSyncVitePlugin().plugin }),
681225
681306
  logLevel: "warn",
681226
- optimizeDeps: { noDiscovery: true }
681307
+ optimizeDeps: OPTIMIZE_DEPS_CONFIG
681227
681308
  });
681228
681309
  const depsDir = path73.join(root3, "node_modules", ".vite", "deps");
681229
- const maxWaitMs = 5e3;
681230
- const pollMs = 50;
681231
- const deadline = Date.now() + maxWaitMs;
681232
- while (!existsSync4(depsDir) && Date.now() < deadline) {
681310
+ const pollMs = 100;
681311
+ const deadline = Date.now() + PRE_WARM_TIMEOUT_MS;
681312
+ while (!existsSync4(depsDir)) {
681313
+ if (Date.now() > deadline) {
681314
+ throw new Error(`Vite dep cache not created after ${PRE_WARM_TIMEOUT_MS}ms; optimizer likely hung`);
681315
+ }
681233
681316
  await new Promise((r2) => setTimeout(r2, pollMs));
681234
681317
  }
681235
681318
  await server.close();
681236
- const cached2 = existsSync4(depsDir);
681237
- console.log(`[warm] Vite cache ${cached2 ? "warmed" : "not committed (timed out)"} in ${Date.now() - start}ms`);
681319
+ console.log(`[warm] Vite cache warmed in ${Date.now() - start}ms`);
681238
681320
  } catch (error40) {
681239
- console.warn(`[warm] Vite cache pre-warm failed (non-fatal, ${Date.now() - start}ms):`, error40);
681321
+ console.error(`[warm] Vite cache pre-warm failed (${Date.now() - start}ms) \u2014 exiting for fast pod recycle:`, error40);
681322
+ process.exit(1);
681240
681323
  }
681241
681324
  }
681242
681325
  var DEFAULT_HMR_PORT = 24678;
@@ -681755,7 +681838,7 @@ async function handleLockConflict(error40, lockSvc, span, logger15) {
681755
681838
  }
681756
681839
  async function readPkgJson(cwd) {
681757
681840
  try {
681758
- const { readPackage } = await import("./read-pkg-PQUM5NTS.js");
681841
+ const { readPackage } = await import("./read-pkg-N6NFQVTC.js");
681759
681842
  return await readPackage({ cwd });
681760
681843
  } catch {
681761
681844
  return null;
@@ -683103,4 +683186,4 @@ serve-static/index.js:
683103
683186
  chokidar/esm/index.js:
683104
683187
  (*! chokidar - MIT License (c) 2012 Paul Miller (paulmillr.com) *)
683105
683188
  */
683106
- //# sourceMappingURL=chunk-OSJNQX7U.js.map
683189
+ //# sourceMappingURL=chunk-HOSXK2Y6.js.map