@superblocksteam/cli 2.0.106-next.6 → 2.0.106

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 (107) hide show
  1. package/README.md +1 -1
  2. package/bin/run.js +1 -3
  3. package/dist/{acorn-DLQFRBXF.js → acorn-OPZCSTYG.js} +3 -3
  4. package/dist/{angular-257B4H73.js → angular-JLP3RKZK.js} +3 -3
  5. package/dist/{api-62QDWMDY.js → api-JLDXTUFL.js} +4 -4
  6. package/dist/{babel-PMCSRRB5.js → babel-FVAYSPTK.js} +3 -3
  7. package/dist/{chunk-E7TUZRVS.js → chunk-2WWKACJ2.js} +6 -6
  8. package/dist/{chunk-3IO5MMN2.js → chunk-5ZMFXRHW.js} +3 -3
  9. package/dist/{chunk-LGF2ZRZO.js → chunk-AUV3WDOS.js} +4 -4
  10. package/dist/{chunk-T7O7RAVJ.js → chunk-BWBZYXU5.js} +3 -3
  11. package/dist/{chunk-Q2ME5YL7.js → chunk-BYANSVAG.js} +3 -3
  12. package/dist/{chunk-ZNPWAPGH.js → chunk-DSGY5JAH.js} +3 -3
  13. package/dist/{chunk-PRG7626Y.js → chunk-FHJT33HP.js} +4 -4
  14. package/dist/{chunk-UOTVFPGD.js → chunk-HZD7ZWC6.js} +4 -4
  15. package/dist/{chunk-3XBE4HQX.js → chunk-KGR5DCN5.js} +3 -3
  16. package/dist/{chunk-HA7Z255S.js → chunk-OBG4ZO73.js} +6 -6
  17. package/dist/{chunk-SD2QEDIP.js → chunk-PXI2BMYM.js} +92 -134
  18. package/dist/{chunk-SD2QEDIP.js.map → chunk-PXI2BMYM.js.map} +1 -1
  19. package/dist/{chunk-IU7CNKMW.js → chunk-PY3OWIDM.js} +3 -3
  20. package/dist/{chunk-ECMRKKYJ.js → chunk-Q56KYNGS.js} +3 -3
  21. package/dist/{chunk-VPH7JVPT.js → chunk-T22YBSOZ.js} +3 -3
  22. package/dist/{chunk-GNC55EKI.js → chunk-UAG22FZS.js} +2 -2
  23. package/dist/{chunk-JZAZSCU2.js → chunk-VTXO4JDR.js} +4 -4
  24. package/dist/{chunk-E37WBJKK.js → chunk-Y3GXLERD.js} +3 -3
  25. package/dist/{cli-truncate-TAIDSF5E.js → cli-truncate-OGHPFNU6.js} +5 -5
  26. package/dist/commands/dev-parent.js +2 -2
  27. package/dist/{dd-trace-CFZAUMSH.js → dd-trace-YXIIRXVV.js} +7 -7
  28. package/dist/{dist-AJUIPMMD.js → dist-2YCVM3HN.js} +13 -13
  29. package/dist/{embedded-playwright-mcp-server-R7C7YB3X.js → embedded-playwright-mcp-server-5DISRHEH.js} +3 -3
  30. package/dist/{enquirer-52MVNF3X.js → enquirer-QINGXDWL.js} +4 -4
  31. package/dist/{estree-QQPEU4JQ.js → estree-M6BQF6KG.js} +3 -3
  32. package/dist/{flow-KWCSMD2P.js → flow-JLCLR675.js} +3 -3
  33. package/dist/{getMachineId-bsd-KFRZKD2G.js → getMachineId-bsd-JVP7SDPZ.js} +5 -5
  34. package/dist/{getMachineId-darwin-WJ2ZNMOY.js → getMachineId-darwin-6MAOIEBB.js} +5 -5
  35. package/dist/{getMachineId-linux-NO54TPOZ.js → getMachineId-linux-FBW4JREJ.js} +4 -4
  36. package/dist/{getMachineId-unsupported-E2Q5CC6A.js → getMachineId-unsupported-A3UAAG7R.js} +4 -4
  37. package/dist/{getMachineId-win-HW67UEIP.js → getMachineId-win-2QZJGUKI.js} +5 -5
  38. package/dist/{glimmer-XEXDAJMB.js → glimmer-226AW5SK.js} +3 -3
  39. package/dist/{graphql-MLEYXD2U.js → graphql-2XEFI5SS.js} +3 -3
  40. package/dist/{html-75HX2GNJ.js → html-CSEIJNCQ.js} +3 -3
  41. package/dist/{http-56SZQ5QL.js → http-B7ZPTSQF.js} +12 -12
  42. package/dist/index.js +25 -181
  43. package/dist/index.js.map +1 -1
  44. package/dist/{jiti-VLGZW4S7.js → jiti-YQX2EMDI.js} +3 -3
  45. package/dist/{log-update-3HEVG6SP.js → log-update-G3PGSVWS.js} +6 -6
  46. package/dist/{markdown-BUX4EYMI.js → markdown-2OWCHQBX.js} +3 -3
  47. package/dist/{meriyah-CHRINPTI.js → meriyah-UYOZJRBS.js} +3 -3
  48. package/dist/{postcss-U7DRUDAB.js → postcss-LTJAJ5HX.js} +3 -3
  49. package/dist/{read-pkg-HJMCSB5I.js → read-pkg-G5MAO2UG.js} +5 -5
  50. package/dist/{spans-VFUX4INY.js → spans-M7K5PCTJ.js} +4 -4
  51. package/dist/{src-E6BNFARD.js → src-HIWNQ2ZK.js} +3 -3
  52. package/dist/{token-72MUORNS.js → token-2OMWY57H.js} +5 -5
  53. package/dist/{token-util-AIYESGTJ.js → token-util-JN27DL5B.js} +5 -5
  54. package/dist/{typescript-GCBSCXSC.js → typescript-AOTBQ4RS.js} +3 -3
  55. package/dist/{wrap-ansi-FMXEXTGM.js → wrap-ansi-N7NR2MFH.js} +5 -5
  56. package/dist/{yaml-7UZATJ5H.js → yaml-7T4RBYWN.js} +3 -3
  57. package/oclif.manifest.json +1 -8
  58. package/package.json +5 -5
  59. /package/dist/{acorn-DLQFRBXF.js.map → acorn-OPZCSTYG.js.map} +0 -0
  60. /package/dist/{angular-257B4H73.js.map → angular-JLP3RKZK.js.map} +0 -0
  61. /package/dist/{api-62QDWMDY.js.map → api-JLDXTUFL.js.map} +0 -0
  62. /package/dist/{babel-PMCSRRB5.js.map → babel-FVAYSPTK.js.map} +0 -0
  63. /package/dist/{chunk-E7TUZRVS.js.map → chunk-2WWKACJ2.js.map} +0 -0
  64. /package/dist/{chunk-3IO5MMN2.js.map → chunk-5ZMFXRHW.js.map} +0 -0
  65. /package/dist/{chunk-LGF2ZRZO.js.map → chunk-AUV3WDOS.js.map} +0 -0
  66. /package/dist/{chunk-T7O7RAVJ.js.map → chunk-BWBZYXU5.js.map} +0 -0
  67. /package/dist/{chunk-Q2ME5YL7.js.map → chunk-BYANSVAG.js.map} +0 -0
  68. /package/dist/{chunk-ZNPWAPGH.js.map → chunk-DSGY5JAH.js.map} +0 -0
  69. /package/dist/{chunk-PRG7626Y.js.map → chunk-FHJT33HP.js.map} +0 -0
  70. /package/dist/{chunk-UOTVFPGD.js.map → chunk-HZD7ZWC6.js.map} +0 -0
  71. /package/dist/{chunk-3XBE4HQX.js.map → chunk-KGR5DCN5.js.map} +0 -0
  72. /package/dist/{chunk-HA7Z255S.js.map → chunk-OBG4ZO73.js.map} +0 -0
  73. /package/dist/{chunk-IU7CNKMW.js.map → chunk-PY3OWIDM.js.map} +0 -0
  74. /package/dist/{chunk-ECMRKKYJ.js.map → chunk-Q56KYNGS.js.map} +0 -0
  75. /package/dist/{chunk-VPH7JVPT.js.map → chunk-T22YBSOZ.js.map} +0 -0
  76. /package/dist/{chunk-GNC55EKI.js.map → chunk-UAG22FZS.js.map} +0 -0
  77. /package/dist/{chunk-JZAZSCU2.js.map → chunk-VTXO4JDR.js.map} +0 -0
  78. /package/dist/{chunk-E37WBJKK.js.map → chunk-Y3GXLERD.js.map} +0 -0
  79. /package/dist/{cli-truncate-TAIDSF5E.js.map → cli-truncate-OGHPFNU6.js.map} +0 -0
  80. /package/dist/{dd-trace-CFZAUMSH.js.map → dd-trace-YXIIRXVV.js.map} +0 -0
  81. /package/dist/{dist-AJUIPMMD.js.map → dist-2YCVM3HN.js.map} +0 -0
  82. /package/dist/{embedded-playwright-mcp-server-R7C7YB3X.js.map → embedded-playwright-mcp-server-5DISRHEH.js.map} +0 -0
  83. /package/dist/{enquirer-52MVNF3X.js.map → enquirer-QINGXDWL.js.map} +0 -0
  84. /package/dist/{estree-QQPEU4JQ.js.map → estree-M6BQF6KG.js.map} +0 -0
  85. /package/dist/{flow-KWCSMD2P.js.map → flow-JLCLR675.js.map} +0 -0
  86. /package/dist/{getMachineId-bsd-KFRZKD2G.js.map → getMachineId-bsd-JVP7SDPZ.js.map} +0 -0
  87. /package/dist/{getMachineId-darwin-WJ2ZNMOY.js.map → getMachineId-darwin-6MAOIEBB.js.map} +0 -0
  88. /package/dist/{getMachineId-linux-NO54TPOZ.js.map → getMachineId-linux-FBW4JREJ.js.map} +0 -0
  89. /package/dist/{getMachineId-unsupported-E2Q5CC6A.js.map → getMachineId-unsupported-A3UAAG7R.js.map} +0 -0
  90. /package/dist/{getMachineId-win-HW67UEIP.js.map → getMachineId-win-2QZJGUKI.js.map} +0 -0
  91. /package/dist/{glimmer-XEXDAJMB.js.map → glimmer-226AW5SK.js.map} +0 -0
  92. /package/dist/{graphql-MLEYXD2U.js.map → graphql-2XEFI5SS.js.map} +0 -0
  93. /package/dist/{html-75HX2GNJ.js.map → html-CSEIJNCQ.js.map} +0 -0
  94. /package/dist/{http-56SZQ5QL.js.map → http-B7ZPTSQF.js.map} +0 -0
  95. /package/dist/{jiti-VLGZW4S7.js.map → jiti-YQX2EMDI.js.map} +0 -0
  96. /package/dist/{log-update-3HEVG6SP.js.map → log-update-G3PGSVWS.js.map} +0 -0
  97. /package/dist/{markdown-BUX4EYMI.js.map → markdown-2OWCHQBX.js.map} +0 -0
  98. /package/dist/{meriyah-CHRINPTI.js.map → meriyah-UYOZJRBS.js.map} +0 -0
  99. /package/dist/{postcss-U7DRUDAB.js.map → postcss-LTJAJ5HX.js.map} +0 -0
  100. /package/dist/{read-pkg-HJMCSB5I.js.map → read-pkg-G5MAO2UG.js.map} +0 -0
  101. /package/dist/{spans-VFUX4INY.js.map → spans-M7K5PCTJ.js.map} +0 -0
  102. /package/dist/{src-E6BNFARD.js.map → src-HIWNQ2ZK.js.map} +0 -0
  103. /package/dist/{token-72MUORNS.js.map → token-2OMWY57H.js.map} +0 -0
  104. /package/dist/{token-util-AIYESGTJ.js.map → token-util-JN27DL5B.js.map} +0 -0
  105. /package/dist/{typescript-GCBSCXSC.js.map → typescript-AOTBQ4RS.js.map} +0 -0
  106. /package/dist/{wrap-ansi-FMXEXTGM.js.map → wrap-ansi-N7NR2MFH.js.map} +0 -0
  107. /package/dist/{yaml-7UZATJ5H.js.map → yaml-7T4RBYWN.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 = 'aba534ea9cdadb3160083f4a1461f19fb0106c18';
4
+ process.env.DD_GIT_COMMIT_SHA = '4e1c623f75f21674a09b339b795dfed9454cd72d';
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-VPH7JVPT.js";
27
+ } from "./chunk-T22YBSOZ.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-3XBE4HQX.js";
44
+ } from "./chunk-KGR5DCN5.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-E7TUZRVS.js";
53
+ } from "./chunk-2WWKACJ2.js";
54
54
  import {
55
55
  require_commonjs
56
- } from "./chunk-3IO5MMN2.js";
56
+ } from "./chunk-5ZMFXRHW.js";
57
57
  import {
58
58
  require_dc_polyfill
59
- } from "./chunk-E37WBJKK.js";
59
+ } from "./chunk-Y3GXLERD.js";
60
60
  import {
61
61
  require_token_error
62
- } from "./chunk-Q2ME5YL7.js";
62
+ } from "./chunk-BYANSVAG.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-IU7CNKMW.js";
71
+ } from "./chunk-PY3OWIDM.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-GNC55EKI.js";
80
+ } from "./chunk-UAG22FZS.js";
81
81
 
82
82
  // ../../../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/constants.js
83
83
  var require_constants3 = __commonJS({
@@ -96566,15 +96566,15 @@ var require_api_files = __commonJS({
96566
96566
  exports2.readAppApiYamlFile = readAppApiYamlFile4;
96567
96567
  exports2.resolveLanguageSpecificStepContentFromBlocks = resolveLanguageSpecificStepContentFromBlocks2;
96568
96568
  async function writeApiFiles3(...args) {
96569
- const esmFunction = await import("./api-62QDWMDY.js");
96569
+ const esmFunction = await import("./api-JLDXTUFL.js");
96570
96570
  return esmFunction.writeApiFiles(...args);
96571
96571
  }
96572
96572
  async function readAppApiYamlFile4(...args) {
96573
- const esmFunction = await import("./api-62QDWMDY.js");
96573
+ const esmFunction = await import("./api-JLDXTUFL.js");
96574
96574
  return esmFunction.readAppApiYamlFile(...args);
96575
96575
  }
96576
96576
  async function resolveLanguageSpecificStepContentFromBlocks2(...args) {
96577
- const esmFunction = await import("./api-62QDWMDY.js");
96577
+ const esmFunction = await import("./api-JLDXTUFL.js");
96578
96578
  return esmFunction.resolveLanguageSpecificStepContentFromBlocks(...args);
96579
96579
  }
96580
96580
  }
@@ -109366,19 +109366,19 @@ var require_getMachineId = __commonJS({
109366
109366
  if (!getMachineIdImpl) {
109367
109367
  switch (process5.platform) {
109368
109368
  case "darwin":
109369
- getMachineIdImpl = (await import("./getMachineId-darwin-WJ2ZNMOY.js")).getMachineId;
109369
+ getMachineIdImpl = (await import("./getMachineId-darwin-6MAOIEBB.js")).getMachineId;
109370
109370
  break;
109371
109371
  case "linux":
109372
- getMachineIdImpl = (await import("./getMachineId-linux-NO54TPOZ.js")).getMachineId;
109372
+ getMachineIdImpl = (await import("./getMachineId-linux-FBW4JREJ.js")).getMachineId;
109373
109373
  break;
109374
109374
  case "freebsd":
109375
- getMachineIdImpl = (await import("./getMachineId-bsd-KFRZKD2G.js")).getMachineId;
109375
+ getMachineIdImpl = (await import("./getMachineId-bsd-JVP7SDPZ.js")).getMachineId;
109376
109376
  break;
109377
109377
  case "win32":
109378
- getMachineIdImpl = (await import("./getMachineId-win-HW67UEIP.js")).getMachineId;
109378
+ getMachineIdImpl = (await import("./getMachineId-win-2QZJGUKI.js")).getMachineId;
109379
109379
  break;
109380
109380
  default:
109381
- getMachineIdImpl = (await import("./getMachineId-unsupported-E2Q5CC6A.js")).getMachineId;
109381
+ getMachineIdImpl = (await import("./getMachineId-unsupported-A3UAAG7R.js")).getMachineId;
109382
109382
  break;
109383
109383
  }
109384
109384
  }
@@ -185241,8 +185241,8 @@ var require_get_vercel_oidc_token = __commonJS({
185241
185241
  }
185242
185242
  try {
185243
185243
  const [{ getTokenPayload, isExpired }, { refreshToken }] = await Promise.all([
185244
- await import("./token-util-AIYESGTJ.js"),
185245
- await import("./token-72MUORNS.js")
185244
+ await import("./token-util-JN27DL5B.js"),
185245
+ await import("./token-2OMWY57H.js")
185246
185246
  ]);
185247
185247
  if (!token2 || isExpired(getTokenPayload(token2))) {
185248
185248
  await refreshToken();
@@ -367442,7 +367442,7 @@ var require_config_loader = __commonJS({
367442
367442
  * @returns {Promise<{createJiti: Function|undefined, version: string;}>} A promise that fulfills with an object containing the jiti module's createJiti function and version.
367443
367443
  */
367444
367444
  static async loadJiti() {
367445
- const { createJiti } = await import("./jiti-VLGZW4S7.js");
367445
+ const { createJiti } = await import("./jiti-YQX2EMDI.js");
367446
367446
  const version5 = require_package6().version;
367447
367447
  return { createJiti, version: version5 };
367448
367448
  }
@@ -367771,7 +367771,7 @@ var require_eslint_helpers = __commonJS({
367771
367771
  }
367772
367772
  async function globMatch({ basePath, pattern }) {
367773
367773
  let found = false;
367774
- const { hfs } = await import("./src-E6BNFARD.js");
367774
+ const { hfs } = await import("./src-HIWNQ2ZK.js");
367775
367775
  const patternToUse = normalizeToPosix(path77.relative(basePath, pattern));
367776
367776
  const matcher = new Minimatch2(patternToUse, MINIMATCH_OPTIONS);
367777
367777
  const walkSettings = {
@@ -367811,7 +367811,7 @@ var require_eslint_helpers = __commonJS({
367811
367811
  return new Minimatch2(patternToUse, MINIMATCH_OPTIONS);
367812
367812
  });
367813
367813
  const unmatchedPatterns = /* @__PURE__ */ new Set([...relativeToPatterns.keys()]);
367814
- const { hfs } = await import("./src-E6BNFARD.js");
367814
+ const { hfs } = await import("./src-HIWNQ2ZK.js");
367815
367815
  const walk2 = hfs.walk(basePath, {
367816
367816
  async directoryFilter(entry) {
367817
367817
  if (!matchers.some((matcher) => matcher.match(entry.path, true))) {
@@ -368834,7 +368834,7 @@ var require_eslint = __commonJS({
368834
368834
  "../../../../node_modules/.pnpm/eslint@9.39.2_jiti@2.6.1/node_modules/eslint/lib/eslint/eslint.js"(exports2, module2) {
368835
368835
  "use strict";
368836
368836
  init_cjs_shims();
368837
- var { existsSync: existsSync6 } = __require("node:fs");
368837
+ var { existsSync: existsSync5 } = __require("node:fs");
368838
368838
  var fs44 = __require("node:fs/promises");
368839
368839
  var os8 = __require("node:os");
368840
368840
  var path77 = __require("node:path");
@@ -369242,7 +369242,7 @@ var require_eslint = __commonJS({
369242
369242
  configLoader: this.#configLoader,
369243
369243
  warningService
369244
369244
  });
369245
- if (existsSync6(path77.resolve(processedOptions.cwd, ".eslintignore"))) {
369245
+ if (existsSync5(path77.resolve(processedOptions.cwd, ".eslintignore"))) {
369246
369246
  warningService.emitESLintIgnoreWarning();
369247
369247
  }
369248
369248
  }
@@ -369410,11 +369410,11 @@ var require_eslint = __commonJS({
369410
369410
  if (!lintResultCache && cacheFilePath) {
369411
369411
  debug3(`Deleting cache file at ${cacheFilePath}`);
369412
369412
  try {
369413
- if (existsSync6(cacheFilePath)) {
369413
+ if (existsSync5(cacheFilePath)) {
369414
369414
  await fs44.unlink(cacheFilePath);
369415
369415
  }
369416
369416
  } catch (error40) {
369417
- if (existsSync6(cacheFilePath)) {
369417
+ if (existsSync5(cacheFilePath)) {
369418
369418
  throw error40;
369419
369419
  }
369420
369420
  }
@@ -520466,7 +520466,7 @@ init_cjs_shims();
520466
520466
  // ../sdk/package.json
520467
520467
  var package_default = {
520468
520468
  name: "@superblocksteam/sdk",
520469
- version: "2.0.106-next.6",
520469
+ version: "2.0.106",
520470
520470
  description: "Superblocks JS SDK",
520471
520471
  homepage: "https://www.superblocks.com",
520472
520472
  license: "Superblocks Community Software License",
@@ -520820,7 +520820,7 @@ var config = void 0;
520820
520820
  var configured = false;
520821
520821
  var ddTracePromise = void 0;
520822
520822
  async function getDdTrace() {
520823
- ddTracePromise ??= import("./dd-trace-CFZAUMSH.js").then((module2) => module2.default);
520823
+ ddTracePromise ??= import("./dd-trace-YXIIRXVV.js").then((module2) => module2.default);
520824
520824
  return await ddTracePromise;
520825
520825
  }
520826
520826
  var deploymentType = (() => {
@@ -529911,7 +529911,7 @@ var MAX_ATTRIBUTE_LENGTH = 64e3;
529911
529911
  var LLMObsSpanWriter = null;
529912
529912
  async function loadLLMObsSpanWriter() {
529913
529913
  if (!LLMObsSpanWriter) {
529914
- const module2 = await import("./spans-VFUX4INY.js");
529914
+ const module2 = await import("./spans-M7K5PCTJ.js");
529915
529915
  LLMObsSpanWriter = module2.default;
529916
529916
  }
529917
529917
  return LLMObsSpanWriter;
@@ -597783,7 +597783,7 @@ var PlaywrightMcpServerManager = class {
597783
597783
  this.logger.info(`Starting embedded Playwright MCP server: browser=${options8?.browser || "chromium"}, headless=${options8?.headless !== false}`);
597784
597784
  }
597785
597785
  try {
597786
- const { startEmbeddedPlaywrightMcpServer } = await import("./embedded-playwright-mcp-server-R7C7YB3X.js");
597786
+ const { startEmbeddedPlaywrightMcpServer } = await import("./embedded-playwright-mcp-server-5DISRHEH.js");
597787
597787
  this.server = await startEmbeddedPlaywrightMcpServer({
597788
597788
  storageStatePath: options8?.storageStatePath,
597789
597789
  jwt: options8?.jwt,
@@ -639655,11 +639655,11 @@ var SocketManager = class extends import_shared57.TracedEventEmitter {
639655
639655
  ws.close(1008, "No peerId found");
639656
639656
  return;
639657
639657
  }
639658
- if (syncService?.applicationId && url4.searchParams.get("applicationId") !== syncService.applicationId) {
639658
+ if (url4.searchParams.get("applicationId") !== syncService?.applicationId) {
639659
639659
  getLogger3().error("Application ID mismatch", {
639660
639660
  error: {
639661
639661
  kind: "ValidationError",
639662
- message: `Expected application ID ${syncService.applicationId}, received ${url4.searchParams.get("applicationId")}`
639662
+ message: `Expected application ID ${syncService?.applicationId}, received ${url4.searchParams.get("applicationId")}`
639663
639663
  }
639664
639664
  });
639665
639665
  ws.close(1008, "Application ID mismatch");
@@ -661943,7 +661943,7 @@ var parseYaml3;
661943
661943
  async function loadYaml(file2) {
661944
661944
  const content9 = await read_file_default(file2);
661945
661945
  if (!parseYaml3) {
661946
- ({ __parsePrettierYamlConfig: parseYaml3 } = await import("./yaml-7UZATJ5H.js"));
661946
+ ({ __parsePrettierYamlConfig: parseYaml3 } = await import("./yaml-7T4RBYWN.js"));
661947
661947
  }
661948
661948
  try {
661949
661949
  return parseYaml3(content9);
@@ -667337,7 +667337,7 @@ function createParsersAndPrinters(modules) {
667337
667337
  }
667338
667338
  var estreePlugin = createParsersAndPrinters([
667339
667339
  {
667340
- importPlugin: () => import("./estree-QQPEU4JQ.js"),
667340
+ importPlugin: () => import("./estree-M6BQF6KG.js"),
667341
667341
  printers: ["estree", "estree-json"]
667342
667342
  }
667343
667343
  ]);
@@ -667361,11 +667361,11 @@ var languages = [
667361
667361
  ];
667362
667362
  var { parsers: parsers12, printers } = createParsersAndPrinters([
667363
667363
  {
667364
- importPlugin: () => import("./acorn-DLQFRBXF.js"),
667364
+ importPlugin: () => import("./acorn-OPZCSTYG.js"),
667365
667365
  parsers: ["acorn", "espree"]
667366
667366
  },
667367
667367
  {
667368
- importPlugin: () => import("./angular-257B4H73.js"),
667368
+ importPlugin: () => import("./angular-JLP3RKZK.js"),
667369
667369
  parsers: [
667370
667370
  "__ng_action",
667371
667371
  "__ng_binding",
@@ -667374,7 +667374,7 @@ var { parsers: parsers12, printers } = createParsersAndPrinters([
667374
667374
  ]
667375
667375
  },
667376
667376
  {
667377
- importPlugin: () => import("./babel-PMCSRRB5.js"),
667377
+ importPlugin: () => import("./babel-FVAYSPTK.js"),
667378
667378
  parsers: [
667379
667379
  "babel",
667380
667380
  "babel-flow",
@@ -667393,44 +667393,44 @@ var { parsers: parsers12, printers } = createParsersAndPrinters([
667393
667393
  ]
667394
667394
  },
667395
667395
  {
667396
- importPlugin: () => import("./flow-KWCSMD2P.js"),
667396
+ importPlugin: () => import("./flow-JLCLR675.js"),
667397
667397
  parsers: ["flow"]
667398
667398
  },
667399
667399
  {
667400
- importPlugin: () => import("./glimmer-XEXDAJMB.js"),
667400
+ importPlugin: () => import("./glimmer-226AW5SK.js"),
667401
667401
  parsers: ["glimmer"],
667402
667402
  printers: ["glimmer"]
667403
667403
  },
667404
667404
  {
667405
- importPlugin: () => import("./graphql-MLEYXD2U.js"),
667405
+ importPlugin: () => import("./graphql-2XEFI5SS.js"),
667406
667406
  parsers: ["graphql"],
667407
667407
  printers: ["graphql"]
667408
667408
  },
667409
667409
  {
667410
- importPlugin: () => import("./html-75HX2GNJ.js"),
667410
+ importPlugin: () => import("./html-CSEIJNCQ.js"),
667411
667411
  parsers: ["html", "angular", "vue", "lwc", "mjml"],
667412
667412
  printers: ["html"]
667413
667413
  },
667414
667414
  {
667415
- importPlugin: () => import("./markdown-BUX4EYMI.js"),
667415
+ importPlugin: () => import("./markdown-2OWCHQBX.js"),
667416
667416
  parsers: ["markdown", "mdx", "remark"],
667417
667417
  printers: ["mdast"]
667418
667418
  },
667419
667419
  {
667420
- importPlugin: () => import("./meriyah-CHRINPTI.js"),
667420
+ importPlugin: () => import("./meriyah-UYOZJRBS.js"),
667421
667421
  parsers: ["meriyah"]
667422
667422
  },
667423
667423
  {
667424
- importPlugin: () => import("./postcss-U7DRUDAB.js"),
667424
+ importPlugin: () => import("./postcss-LTJAJ5HX.js"),
667425
667425
  parsers: ["css", "less", "scss"],
667426
667426
  printers: ["postcss"]
667427
667427
  },
667428
667428
  {
667429
- importPlugin: () => import("./typescript-GCBSCXSC.js"),
667429
+ importPlugin: () => import("./typescript-AOTBQ4RS.js"),
667430
667430
  parsers: ["typescript"]
667431
667431
  },
667432
667432
  {
667433
- importPlugin: () => import("./yaml-7UZATJ5H.js"),
667433
+ importPlugin: () => import("./yaml-7T4RBYWN.js"),
667434
667434
  parsers: ["yaml"],
667435
667435
  printers: ["yaml"]
667436
667436
  }
@@ -679260,7 +679260,6 @@ async function checkVersionsAndWritePackageJson(lockService, config4, forceUpgra
679260
679260
  init_cjs_shims();
679261
679261
  var import_cors = __toESM(require_lib51(), 1);
679262
679262
  var import_express = __toESM(require_express2(), 1);
679263
- import { existsSync as existsSync4 } from "node:fs";
679264
679263
  import net from "node:net";
679265
679264
  import os6 from "node:os";
679266
679265
  import path73 from "node:path";
@@ -679329,7 +679328,7 @@ function getJwksUriWithBaseUrl(superblocksBaseUrl) {
679329
679328
  return jwksUri;
679330
679329
  }
679331
679330
  var httpServer;
679332
- async function createDevServer({ root: root3, mode, fsOperationQueue, syncService, lockService, aiService, gitService, activateGitService, snapshotManager, logger: loggerOverride, port, sdk, superblocksBaseUrl: explicitBaseUrl, existingServer }) {
679331
+ async function createDevServer({ root: root3, mode, fsOperationQueue, syncService, lockService, aiService, gitService, activateGitService, snapshotManager, logger: loggerOverride, port, sdk, superblocksBaseUrl: explicitBaseUrl }) {
679333
679332
  const logger15 = getLogger2(loggerOverride);
679334
679333
  if (httpServer) {
679335
679334
  logger15.debug("Dev server already running");
@@ -679502,14 +679501,43 @@ async function createDevServer({ root: root3, mode, fsOperationQueue, syncServic
679502
679501
  return;
679503
679502
  }
679504
679503
  }
679505
- logger15.info("Received connect request, waiting for vite server...");
679506
- try {
679507
- await vitePromise;
679504
+ logger15.info("Initializing dev server...");
679505
+ if (isViteServerInitialized) {
679506
+ logger15.info("Dev server already initialized");
679508
679507
  res.send(JSON.stringify(healthResponse));
679509
- } catch (e) {
679510
- logger15.error("Vite server failed to initialize", getErrorMeta(e));
679511
- res.status(500).send(JSON.stringify({ error: "Dev server failed to initialize" }));
679508
+ return;
679512
679509
  }
679510
+ logger15.info("Starting dev server");
679511
+ isViteServerInitialized = true;
679512
+ const featureFlags = await sdk?.getFeatureFlagsForCurrentUser();
679513
+ startVite({
679514
+ port,
679515
+ app,
679516
+ root: root3,
679517
+ mode,
679518
+ fsOperationQueue,
679519
+ syncService,
679520
+ lockService,
679521
+ aiService,
679522
+ gitService,
679523
+ activateGitService,
679524
+ snapshotManager,
679525
+ checkAuthorization,
679526
+ logger: loggerOverride,
679527
+ httpServer,
679528
+ superblocksBaseUrl: explicitBaseUrl || localToken?.superblocksBaseUrl,
679529
+ features: {
679530
+ enableSessionRecording: featureFlags?.enableSessionRecording() ?? false
679531
+ }
679532
+ }).then((result) => {
679533
+ logger15.info("Dev server initialized");
679534
+ viteResolve();
679535
+ viteCreationResults = result;
679536
+ res.send(JSON.stringify(healthResponse));
679537
+ }, (e) => {
679538
+ logger15.error("Error initializing dev server", getErrorMeta(e));
679539
+ viteReject(e);
679540
+ });
679513
679541
  });
679514
679542
  app.post("/_sb_disconnect", authHandler, async (req, res) => {
679515
679543
  logger15.info("Disconnecting dev server...");
@@ -679572,11 +679600,8 @@ async function createDevServer({ root: root3, mode, fsOperationQueue, syncServic
679572
679600
  timeSinceLastActivityMs: lockService.timeSinceLastActivity
679573
679601
  });
679574
679602
  } else {
679575
- res.send({
679576
- isUserActive: false,
679577
- connectedUsers: [],
679578
- timeSinceLastActivityMs: 0
679579
- });
679603
+ logger15.error("Lock service not found, rejecting request");
679604
+ viteReject(new Error("Lock service not found, rejecting request"));
679580
679605
  }
679581
679606
  });
679582
679607
  process.on("SIGINT", async () => {
@@ -679598,48 +679623,9 @@ async function createDevServer({ root: root3, mode, fsOperationQueue, syncServic
679598
679623
  process.exit(1);
679599
679624
  });
679600
679625
  });
679601
- if (existingServer) {
679602
- existingServer.removeAllListeners("request");
679603
- existingServer.on("request", app);
679604
- httpServer = existingServer;
679605
- logger15.info(`Attached full dev server to existing HTTP server on port ${port}`);
679606
- } else {
679607
- logger15.info(`Starting HTTP server on port ${port}`);
679608
- httpServer = await app.listen(port);
679609
- logger15.info(`HTTP server started successfully on port ${port}`);
679610
- }
679611
- if (!isViteServerInitialized) {
679612
- isViteServerInitialized = true;
679613
- logger15.info("Eagerly starting vite server...");
679614
- const featureFlags = await sdk?.getFeatureFlagsForCurrentUser().catch(() => void 0);
679615
- startVite({
679616
- port,
679617
- app,
679618
- root: root3,
679619
- mode,
679620
- fsOperationQueue,
679621
- syncService,
679622
- lockService,
679623
- aiService,
679624
- gitService,
679625
- activateGitService,
679626
- snapshotManager,
679627
- checkAuthorization,
679628
- logger: loggerOverride,
679629
- httpServer,
679630
- superblocksBaseUrl: explicitBaseUrl || localToken?.superblocksBaseUrl,
679631
- features: {
679632
- enableSessionRecording: featureFlags?.enableSessionRecording() ?? false
679633
- }
679634
- }).then((result) => {
679635
- logger15.info("Vite server initialized eagerly");
679636
- viteResolve();
679637
- viteCreationResults = result;
679638
- }, (e) => {
679639
- logger15.error("Error initializing vite server", getErrorMeta(e));
679640
- viteReject(e);
679641
- });
679642
- }
679626
+ logger15.info(`Starting HTTP server on port ${port}`);
679627
+ httpServer = await app.listen(port);
679628
+ logger15.info(`HTTP server started successfully on port ${port}`);
679643
679629
  return httpServer;
679644
679630
  }
679645
679631
  async function startVite({ app, httpServer: httpServer2, root: root3, mode, port, fsOperationQueue, syncService, lockService, aiService, gitService, activateGitService, snapshotManager, checkAuthorization, logger: loggerOverride, superblocksBaseUrl, features }) {
@@ -679788,32 +679774,6 @@ async function startVite({ app, httpServer: httpServer2, root: root3, mode, port
679788
679774
  }
679789
679775
  });
679790
679776
  }
679791
- async function preWarmViteCache(root3) {
679792
- const start = Date.now();
679793
- console.log("[warm] Pre-warming Vite dependency cache...");
679794
- try {
679795
- const server = await createServer({
679796
- root: root3,
679797
- mode: "development",
679798
- server: { middlewareMode: true, hmr: false },
679799
- plugins: [src_default()],
679800
- logLevel: "warn",
679801
- optimizeDeps: { noDiscovery: true }
679802
- });
679803
- const depsDir = path73.join(root3, "node_modules", ".vite", "deps");
679804
- const maxWaitMs = 5e3;
679805
- const pollMs = 50;
679806
- const deadline = Date.now() + maxWaitMs;
679807
- while (!existsSync4(depsDir) && Date.now() < deadline) {
679808
- await new Promise((r2) => setTimeout(r2, pollMs));
679809
- }
679810
- await server.close();
679811
- const cached2 = existsSync4(depsDir);
679812
- console.log(`[warm] Vite cache ${cached2 ? "warmed" : "not committed (timed out)"} in ${Date.now() - start}ms`);
679813
- } catch (error40) {
679814
- console.warn(`[warm] Vite cache pre-warm failed (non-fatal, ${Date.now() - start}ms):`, error40);
679815
- }
679816
- }
679817
679777
  var DEFAULT_HMR_PORT = 24678;
679818
679778
  function getFreePort() {
679819
679779
  return new Promise((resolve9) => {
@@ -679953,7 +679913,7 @@ async function fetchAndWriteApplication({ resourceId, viewMode, featureFlags, pr
679953
679913
 
679954
679914
  // ../sdk/dist/cli-replacement/socket-utils.mjs
679955
679915
  init_cjs_shims();
679956
- import { existsSync as existsSync5 } from "node:fs";
679916
+ import { existsSync as existsSync4 } from "node:fs";
679957
679917
  import * as fs41 from "node:fs/promises";
679958
679918
  import * as net2 from "node:net";
679959
679919
  import * as os7 from "node:os";
@@ -680001,7 +679961,7 @@ async function getAllSocketFiles() {
680001
679961
  }
680002
679962
  async function getSocketFileForPid(pid) {
680003
679963
  const socketPath = path74.join(getSocketDirectory(), `superblocks-auth-${pid}.sock`);
680004
- return existsSync5(socketPath) ? socketPath : null;
679964
+ return existsSync4(socketPath) ? socketPath : null;
680005
679965
  }
680006
679966
  async function cleanupSocketFile(socketPath) {
680007
679967
  try {
@@ -680330,7 +680290,7 @@ async function handleLockConflict(error40, lockSvc, span, logger15) {
680330
680290
  }
680331
680291
  async function readPkgJson(cwd) {
680332
680292
  try {
680333
- const { readPackage } = await import("./read-pkg-HJMCSB5I.js");
680293
+ const { readPackage } = await import("./read-pkg-G5MAO2UG.js");
680334
680294
  return await readPackage({ cwd });
680335
680295
  } catch {
680336
680296
  return null;
@@ -680772,8 +680732,7 @@ async function dev(options8) {
680772
680732
  snapshotManager,
680773
680733
  logger: options8.logger,
680774
680734
  sdk,
680775
- superblocksBaseUrl: tokenConfig.superblocksBaseUrl,
680776
- existingServer: options8.existingServer
680735
+ superblocksBaseUrl: tokenConfig.superblocksBaseUrl
680777
680736
  };
680778
680737
  const result = await createDevServer(createDevServerOptions);
680779
680738
  span.end();
@@ -681120,7 +681079,6 @@ export {
681120
681079
  SuperblocksSdk,
681121
681080
  AUTO_UPGRADE_EXIT_CODE,
681122
681081
  RESTART_EXIT_CODE,
681123
- preWarmViteCache,
681124
681082
  TokenManager,
681125
681083
  tryDecodeJwtToken,
681126
681084
  fetchAndWriteApplication,
@@ -681672,4 +681630,4 @@ serve-static/index.js:
681672
681630
  chokidar/esm/index.js:
681673
681631
  (*! chokidar - MIT License (c) 2012 Paul Miller (paulmillr.com) *)
681674
681632
  */
681675
- //# sourceMappingURL=chunk-SD2QEDIP.js.map
681633
+ //# sourceMappingURL=chunk-PXI2BMYM.js.map