@superblocksteam/cli 2.0.100-next.1 → 2.0.100-next.2

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 (96) hide show
  1. package/README.md +1 -1
  2. package/dist/{acorn-PNEGFCQT.js → acorn-3PVDUZQI.js} +3 -3
  3. package/dist/{angular-H72LJKLB.js → angular-G25U54XR.js} +3 -3
  4. package/dist/{api-KZEWFKEN.js → api-JGOVG2EU.js} +4 -4
  5. package/dist/{babel-HYKDU55F.js → babel-BIZEN6QE.js} +3 -3
  6. package/dist/{chunk-AGIUPXMF.js → chunk-4CDIXNG4.js} +3 -3
  7. package/dist/{chunk-2QKZ5UW3.js → chunk-AYIXENLH.js} +3 -3
  8. package/dist/{chunk-QSCNL3ES.js → chunk-CLZEXRFW.js} +4 -4
  9. package/dist/{chunk-37C46TM7.js → chunk-E273HZ2J.js} +3 -3
  10. package/dist/{chunk-64EJ6JCR.js → chunk-ECWH2EAG.js} +3 -3
  11. package/dist/{chunk-ZYARSOED.js → chunk-J5ZYYEJT.js} +3 -3
  12. package/dist/{chunk-YLNAPGQS.js → chunk-JQRYQZHU.js} +3 -3
  13. package/dist/{chunk-T4HP2UKK.js → chunk-K5RFDSVF.js} +6 -6
  14. package/dist/{chunk-FEI5V2EO.js → chunk-KJYT3QVW.js} +3 -3
  15. package/dist/{chunk-QEBHWLQM.js → chunk-KOGKKME2.js} +3 -3
  16. package/dist/{chunk-SGUYU5LA.js → chunk-OQTURUF5.js} +3 -3
  17. package/dist/{chunk-4BMEFXU2.js → chunk-RAZASBBF.js} +4 -4
  18. package/dist/{chunk-XOMSIERU.js → chunk-WNVFTM7D.js} +2 -2
  19. package/dist/{chunk-CSJEDAIZ.js → chunk-XYEINSYR.js} +4 -4
  20. package/dist/{cli-truncate-KPSAKQXQ.js → cli-truncate-5AEGTCV4.js} +5 -5
  21. package/dist/commands/dev-parent.js +2 -2
  22. package/dist/{dd-trace-EWI43B6X.js → dd-trace-NTAMVOZP.js} +7 -7
  23. package/dist/{embedded-playwright-mcp-server-FQDPCN5R.js → embedded-playwright-mcp-server-4QEXQTI7.js} +3 -3
  24. package/dist/{enquirer-DEUK24GD.js → enquirer-MD4ILGGR.js} +4 -4
  25. package/dist/{estree-GTPAQNNR.js → estree-6JFRN447.js} +3 -3
  26. package/dist/{flow-3DCRTQII.js → flow-CE2BIN75.js} +3 -3
  27. package/dist/{getMachineId-bsd-BAT6JFS4.js → getMachineId-bsd-7J4A6E2Y.js} +5 -5
  28. package/dist/{getMachineId-darwin-URVSH2WR.js → getMachineId-darwin-S7INYEJH.js} +5 -5
  29. package/dist/{getMachineId-linux-FEKR7EE7.js → getMachineId-linux-S2F5IIKU.js} +4 -4
  30. package/dist/{getMachineId-unsupported-XEDQQVTS.js → getMachineId-unsupported-2JSJ6AYT.js} +4 -4
  31. package/dist/{getMachineId-win-FISKXHK7.js → getMachineId-win-4OPMBF3E.js} +5 -5
  32. package/dist/{glimmer-GQATNI66.js → glimmer-U6LHQ6WT.js} +3 -3
  33. package/dist/{graphql-XTOLKF2K.js → graphql-BR4APEAZ.js} +3 -3
  34. package/dist/{html-2IWEHGSR.js → html-6FQCV33C.js} +3 -3
  35. package/dist/index.js +208 -88
  36. package/dist/index.js.map +1 -1
  37. package/dist/{jiti-H2QBQXJS.js → jiti-KGPB6B5H.js} +3 -3
  38. package/dist/{log-update-I2TVJWFF.js → log-update-IPZBTHHB.js} +6 -6
  39. package/dist/{markdown-TZSJXYIQ.js → markdown-VDPENZHO.js} +3 -3
  40. package/dist/{meriyah-JFNLUK7E.js → meriyah-XROZPDRC.js} +3 -3
  41. package/dist/{postcss-FF43TEAV.js → postcss-LJDERGX3.js} +3 -3
  42. package/dist/{read-pkg-OF3O7K4J.js → read-pkg-DT5VH6EB.js} +5 -5
  43. package/dist/{spans-Q2SPMIG5.js → spans-TRK7PRT7.js} +4 -4
  44. package/dist/{src-CRDGCAJL.js → src-MZLIUYEK.js} +3 -3
  45. package/dist/{token-XSN5DAEF.js → token-YEAFSAI7.js} +5 -5
  46. package/dist/{token-util-CL3QEOM2.js → token-util-6LUKVTZZ.js} +5 -5
  47. package/dist/{typescript-5OSGRWQD.js → typescript-KOSB7NY5.js} +3 -3
  48. package/dist/{wrap-ansi-KAC5DSQS.js → wrap-ansi-UDL4BSKP.js} +5 -5
  49. package/dist/{yaml-KYKYW3AG.js → yaml-6Z3PUEGD.js} +3 -3
  50. package/oclif.manifest.json +1 -1
  51. package/package.json +4 -4
  52. /package/dist/{acorn-PNEGFCQT.js.map → acorn-3PVDUZQI.js.map} +0 -0
  53. /package/dist/{angular-H72LJKLB.js.map → angular-G25U54XR.js.map} +0 -0
  54. /package/dist/{api-KZEWFKEN.js.map → api-JGOVG2EU.js.map} +0 -0
  55. /package/dist/{babel-HYKDU55F.js.map → babel-BIZEN6QE.js.map} +0 -0
  56. /package/dist/{chunk-AGIUPXMF.js.map → chunk-4CDIXNG4.js.map} +0 -0
  57. /package/dist/{chunk-2QKZ5UW3.js.map → chunk-AYIXENLH.js.map} +0 -0
  58. /package/dist/{chunk-QSCNL3ES.js.map → chunk-CLZEXRFW.js.map} +0 -0
  59. /package/dist/{chunk-37C46TM7.js.map → chunk-E273HZ2J.js.map} +0 -0
  60. /package/dist/{chunk-64EJ6JCR.js.map → chunk-ECWH2EAG.js.map} +0 -0
  61. /package/dist/{chunk-ZYARSOED.js.map → chunk-J5ZYYEJT.js.map} +0 -0
  62. /package/dist/{chunk-YLNAPGQS.js.map → chunk-JQRYQZHU.js.map} +0 -0
  63. /package/dist/{chunk-T4HP2UKK.js.map → chunk-K5RFDSVF.js.map} +0 -0
  64. /package/dist/{chunk-FEI5V2EO.js.map → chunk-KJYT3QVW.js.map} +0 -0
  65. /package/dist/{chunk-QEBHWLQM.js.map → chunk-KOGKKME2.js.map} +0 -0
  66. /package/dist/{chunk-SGUYU5LA.js.map → chunk-OQTURUF5.js.map} +0 -0
  67. /package/dist/{chunk-4BMEFXU2.js.map → chunk-RAZASBBF.js.map} +0 -0
  68. /package/dist/{chunk-XOMSIERU.js.map → chunk-WNVFTM7D.js.map} +0 -0
  69. /package/dist/{chunk-CSJEDAIZ.js.map → chunk-XYEINSYR.js.map} +0 -0
  70. /package/dist/{cli-truncate-KPSAKQXQ.js.map → cli-truncate-5AEGTCV4.js.map} +0 -0
  71. /package/dist/{dd-trace-EWI43B6X.js.map → dd-trace-NTAMVOZP.js.map} +0 -0
  72. /package/dist/{embedded-playwright-mcp-server-FQDPCN5R.js.map → embedded-playwright-mcp-server-4QEXQTI7.js.map} +0 -0
  73. /package/dist/{enquirer-DEUK24GD.js.map → enquirer-MD4ILGGR.js.map} +0 -0
  74. /package/dist/{estree-GTPAQNNR.js.map → estree-6JFRN447.js.map} +0 -0
  75. /package/dist/{flow-3DCRTQII.js.map → flow-CE2BIN75.js.map} +0 -0
  76. /package/dist/{getMachineId-bsd-BAT6JFS4.js.map → getMachineId-bsd-7J4A6E2Y.js.map} +0 -0
  77. /package/dist/{getMachineId-darwin-URVSH2WR.js.map → getMachineId-darwin-S7INYEJH.js.map} +0 -0
  78. /package/dist/{getMachineId-linux-FEKR7EE7.js.map → getMachineId-linux-S2F5IIKU.js.map} +0 -0
  79. /package/dist/{getMachineId-unsupported-XEDQQVTS.js.map → getMachineId-unsupported-2JSJ6AYT.js.map} +0 -0
  80. /package/dist/{getMachineId-win-FISKXHK7.js.map → getMachineId-win-4OPMBF3E.js.map} +0 -0
  81. /package/dist/{glimmer-GQATNI66.js.map → glimmer-U6LHQ6WT.js.map} +0 -0
  82. /package/dist/{graphql-XTOLKF2K.js.map → graphql-BR4APEAZ.js.map} +0 -0
  83. /package/dist/{html-2IWEHGSR.js.map → html-6FQCV33C.js.map} +0 -0
  84. /package/dist/{jiti-H2QBQXJS.js.map → jiti-KGPB6B5H.js.map} +0 -0
  85. /package/dist/{log-update-I2TVJWFF.js.map → log-update-IPZBTHHB.js.map} +0 -0
  86. /package/dist/{markdown-TZSJXYIQ.js.map → markdown-VDPENZHO.js.map} +0 -0
  87. /package/dist/{meriyah-JFNLUK7E.js.map → meriyah-XROZPDRC.js.map} +0 -0
  88. /package/dist/{postcss-FF43TEAV.js.map → postcss-LJDERGX3.js.map} +0 -0
  89. /package/dist/{read-pkg-OF3O7K4J.js.map → read-pkg-DT5VH6EB.js.map} +0 -0
  90. /package/dist/{spans-Q2SPMIG5.js.map → spans-TRK7PRT7.js.map} +0 -0
  91. /package/dist/{src-CRDGCAJL.js.map → src-MZLIUYEK.js.map} +0 -0
  92. /package/dist/{token-XSN5DAEF.js.map → token-YEAFSAI7.js.map} +0 -0
  93. /package/dist/{token-util-CL3QEOM2.js.map → token-util-6LUKVTZZ.js.map} +0 -0
  94. /package/dist/{typescript-5OSGRWQD.js.map → typescript-KOSB7NY5.js.map} +0 -0
  95. /package/dist/{wrap-ansi-KAC5DSQS.js.map → wrap-ansi-UDL4BSKP.js.map} +0 -0
  96. /package/dist/{yaml-KYKYW3AG.js.map → yaml-6Z3PUEGD.js.map} +0 -0
package/dist/index.js CHANGED
@@ -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 = '96a3c58aa46ae889aeef6f3e934b87bc3b3c5292';
4
+ process.env.DD_GIT_COMMIT_SHA = '9d0d582fdaba593a8b0288349bb61b3bd7f87f96';
5
5
  }
6
6
  import { createRequire as $dd_createRequire } from 'module';
7
7
  import { fileURLToPath as $dd_fileURLToPath } from 'url';
@@ -24,10 +24,10 @@ import {
24
24
  require_re,
25
25
  require_semver,
26
26
  require_valid
27
- } from "./chunk-YLNAPGQS.js";
27
+ } from "./chunk-JQRYQZHU.js";
28
28
  import {
29
29
  require_enquirer
30
- } from "./chunk-64EJ6JCR.js";
30
+ } from "./chunk-ECWH2EAG.js";
31
31
  import {
32
32
  debounce_default,
33
33
  get_default,
@@ -44,7 +44,7 @@ import {
44
44
  require_lib,
45
45
  require_slugify,
46
46
  throttle_default
47
- } from "./chunk-AGIUPXMF.js";
47
+ } from "./chunk-4CDIXNG4.js";
48
48
  import {
49
49
  require_aspromise,
50
50
  require_dd_trace,
@@ -63,16 +63,16 @@ import {
63
63
  require_rpc,
64
64
  require_src,
65
65
  require_writer
66
- } from "./chunk-T4HP2UKK.js";
66
+ } from "./chunk-K5RFDSVF.js";
67
67
  import {
68
68
  require_commonjs
69
- } from "./chunk-37C46TM7.js";
69
+ } from "./chunk-E273HZ2J.js";
70
70
  import {
71
71
  require_dc_polyfill
72
- } from "./chunk-QEBHWLQM.js";
72
+ } from "./chunk-KOGKKME2.js";
73
73
  import {
74
74
  require_token_error
75
- } from "./chunk-SGUYU5LA.js";
75
+ } from "./chunk-OQTURUF5.js";
76
76
  import {
77
77
  SpanKind,
78
78
  SpanStatusCode,
@@ -81,7 +81,7 @@ import {
81
81
  init_esm,
82
82
  metrics,
83
83
  trace
84
- } from "./chunk-ZYARSOED.js";
84
+ } from "./chunk-J5ZYYEJT.js";
85
85
  import {
86
86
  __commonJS,
87
87
  __esm,
@@ -90,7 +90,7 @@ import {
90
90
  __toCommonJS,
91
91
  __toESM,
92
92
  init_cjs_shims
93
- } from "./chunk-XOMSIERU.js";
93
+ } from "./chunk-WNVFTM7D.js";
94
94
 
95
95
  // ../../../../node_modules/.pnpm/common-tags@1.8.2/node_modules/common-tags/lib/TemplateTag/TemplateTag.js
96
96
  var require_TemplateTag = __commonJS({
@@ -22007,8 +22007,8 @@ var require_get_vercel_oidc_token = __commonJS({
22007
22007
  }
22008
22008
  try {
22009
22009
  const [{ getTokenPayload, isExpired }, { refreshToken }] = await Promise.all([
22010
- await import("./token-util-CL3QEOM2.js"),
22011
- await import("./token-XSN5DAEF.js")
22010
+ await import("./token-util-6LUKVTZZ.js"),
22011
+ await import("./token-YEAFSAI7.js")
22012
22012
  ]);
22013
22013
  if (!token2 || isExpired(getTokenPayload(token2))) {
22014
22014
  await refreshToken();
@@ -128489,7 +128489,7 @@ var require_github_workflow = __commonJS({
128489
128489
  exports.isGitHubRemoteUrl = isGitHubRemoteUrl3;
128490
128490
  exports.buildGithubSuperblocksSyncWorkflow = buildGithubSuperblocksSyncWorkflow2;
128491
128491
  exports.getSuperblocksDomainFromBaseUrl = getSuperblocksDomainFromBaseUrl;
128492
- exports.buildGithubSuperblocksSyncWorkflowFromBaseUrl = buildGithubSuperblocksSyncWorkflowFromBaseUrl2;
128492
+ exports.buildGithubSuperblocksSyncWorkflowFromBaseUrl = buildGithubSuperblocksSyncWorkflowFromBaseUrl3;
128493
128493
  exports.DEFAULT_SUPERBLOCKS_DOMAIN = "app.superblocks.com";
128494
128494
  function isGitHubRemoteUrl3(remoteUrl) {
128495
128495
  return /(^git@github\.com:)|(^https?:\/\/github\.com\/)|(^ssh:\/\/git@github\.com\/)/.test(remoteUrl.trim());
@@ -128550,7 +128550,7 @@ jobs:
128550
128550
  return exports.DEFAULT_SUPERBLOCKS_DOMAIN;
128551
128551
  }
128552
128552
  }
128553
- function buildGithubSuperblocksSyncWorkflowFromBaseUrl2(superblocksBaseUrl) {
128553
+ function buildGithubSuperblocksSyncWorkflowFromBaseUrl3(superblocksBaseUrl) {
128554
128554
  return buildGithubSuperblocksSyncWorkflow2(getSuperblocksDomainFromBaseUrl(superblocksBaseUrl));
128555
128555
  }
128556
128556
  }
@@ -141826,19 +141826,19 @@ var require_getMachineId = __commonJS({
141826
141826
  if (!getMachineIdImpl) {
141827
141827
  switch (process5.platform) {
141828
141828
  case "darwin":
141829
- getMachineIdImpl = (await import("./getMachineId-darwin-URVSH2WR.js")).getMachineId;
141829
+ getMachineIdImpl = (await import("./getMachineId-darwin-S7INYEJH.js")).getMachineId;
141830
141830
  break;
141831
141831
  case "linux":
141832
- getMachineIdImpl = (await import("./getMachineId-linux-FEKR7EE7.js")).getMachineId;
141832
+ getMachineIdImpl = (await import("./getMachineId-linux-S2F5IIKU.js")).getMachineId;
141833
141833
  break;
141834
141834
  case "freebsd":
141835
- getMachineIdImpl = (await import("./getMachineId-bsd-BAT6JFS4.js")).getMachineId;
141835
+ getMachineIdImpl = (await import("./getMachineId-bsd-7J4A6E2Y.js")).getMachineId;
141836
141836
  break;
141837
141837
  case "win32":
141838
- getMachineIdImpl = (await import("./getMachineId-win-FISKXHK7.js")).getMachineId;
141838
+ getMachineIdImpl = (await import("./getMachineId-win-4OPMBF3E.js")).getMachineId;
141839
141839
  break;
141840
141840
  default:
141841
- getMachineIdImpl = (await import("./getMachineId-unsupported-XEDQQVTS.js")).getMachineId;
141841
+ getMachineIdImpl = (await import("./getMachineId-unsupported-2JSJ6AYT.js")).getMachineId;
141842
141842
  break;
141843
141843
  }
141844
141844
  }
@@ -202475,6 +202475,7 @@ var require_login = __commonJS({
202475
202475
  };
202476
202476
  })();
202477
202477
  Object.defineProperty(exports, "__esModule", { value: true });
202478
+ exports.resolveAuthFilePath = resolveAuthFilePath;
202478
202479
  exports.saveApiToken = saveApiToken3;
202479
202480
  exports.getLocalTokenWithUrlIfExists = getLocalTokenWithUrlIfExists6;
202480
202481
  exports.getLocalTokenWithUrl = getLocalTokenWithUrl7;
@@ -202482,20 +202483,24 @@ var require_login = __commonJS({
202482
202483
  var node_path_1 = __require("node:path");
202483
202484
  var fs55 = __importStar(require_lib());
202484
202485
  var constants_js_1 = require_constants15();
202486
+ function resolveAuthFilePath() {
202487
+ return process.env.SUPERBLOCKS_AUTH_FILE || (0, node_path_1.join)((0, node_os_1.homedir)(), constants_js_1.TOKEN_CONFIG_PATH);
202488
+ }
202485
202489
  async function saveApiToken3(superblocksBaseUrl, token2) {
202486
202490
  try {
202487
- await fs55.ensureDir((0, node_path_1.join)((0, node_os_1.homedir)(), ".superblocks"));
202491
+ const authFile = resolveAuthFilePath();
202492
+ await fs55.ensureDir((0, node_path_1.dirname)(authFile));
202488
202493
  if (token2) {
202489
202494
  const tokenConfig = {
202490
202495
  superblocksBaseUrl,
202491
202496
  token: token2
202492
202497
  };
202493
- await fs55.writeJSON((0, node_path_1.join)((0, node_os_1.homedir)(), constants_js_1.TOKEN_CONFIG_PATH), tokenConfig);
202498
+ await fs55.writeJSON(authFile, tokenConfig);
202494
202499
  } else {
202495
202500
  const tokenConfig = {
202496
202501
  superblocksBaseUrl
202497
202502
  };
202498
- await fs55.writeJSON((0, node_path_1.join)((0, node_os_1.homedir)(), constants_js_1.TOKEN_CONFIG_PATH), tokenConfig);
202503
+ await fs55.writeJSON(authFile, tokenConfig);
202499
202504
  }
202500
202505
  } catch {
202501
202506
  throw new constants_js_1.FileAccessError("Could not save token");
@@ -202510,7 +202515,7 @@ var require_login = __commonJS({
202510
202515
  }
202511
202516
  async function getLocalTokenWithUrl7() {
202512
202517
  try {
202513
- const tokenConfig = await fs55.readJSON(process.env.SUPERBLOCKS_AUTH_FILE || (0, node_path_1.join)((0, node_os_1.homedir)(), constants_js_1.TOKEN_CONFIG_PATH));
202518
+ const tokenConfig = await fs55.readJSON(resolveAuthFilePath());
202514
202519
  const superblocksBaseUrl = process.env.SUPERBLOCKS_BASE_URL || tokenConfig.superblocksBaseUrl;
202515
202520
  if (tokenConfig.token) {
202516
202521
  return {
@@ -202811,15 +202816,15 @@ var require_api_files = __commonJS({
202811
202816
  exports.readAppApiYamlFile = readAppApiYamlFile4;
202812
202817
  exports.resolveLanguageSpecificStepContentFromBlocks = resolveLanguageSpecificStepContentFromBlocks2;
202813
202818
  async function writeApiFiles3(...args) {
202814
- const esmFunction = await import("./api-KZEWFKEN.js");
202819
+ const esmFunction = await import("./api-JGOVG2EU.js");
202815
202820
  return esmFunction.writeApiFiles(...args);
202816
202821
  }
202817
202822
  async function readAppApiYamlFile4(...args) {
202818
- const esmFunction = await import("./api-KZEWFKEN.js");
202823
+ const esmFunction = await import("./api-JGOVG2EU.js");
202819
202824
  return esmFunction.readAppApiYamlFile(...args);
202820
202825
  }
202821
202826
  async function resolveLanguageSpecificStepContentFromBlocks2(...args) {
202822
- const esmFunction = await import("./api-KZEWFKEN.js");
202827
+ const esmFunction = await import("./api-JGOVG2EU.js");
202823
202828
  return esmFunction.resolveLanguageSpecificStepContentFromBlocks(...args);
202824
202829
  }
202825
202830
  }
@@ -365124,7 +365129,7 @@ var require_config_loader = __commonJS({
365124
365129
  * @returns {Promise<{createJiti: Function|undefined, version: string;}>} A promise that fulfills with an object containing the jiti module's createJiti function and version.
365125
365130
  */
365126
365131
  static async loadJiti() {
365127
- const { createJiti } = await import("./jiti-H2QBQXJS.js");
365132
+ const { createJiti } = await import("./jiti-KGPB6B5H.js");
365128
365133
  const version5 = require_package6().version;
365129
365134
  return { createJiti, version: version5 };
365130
365135
  }
@@ -365453,7 +365458,7 @@ var require_eslint_helpers = __commonJS({
365453
365458
  }
365454
365459
  async function globMatch({ basePath, pattern }) {
365455
365460
  let found = false;
365456
- const { hfs } = await import("./src-CRDGCAJL.js");
365461
+ const { hfs } = await import("./src-MZLIUYEK.js");
365457
365462
  const patternToUse = normalizeToPosix(path97.relative(basePath, pattern));
365458
365463
  const matcher = new Minimatch2(patternToUse, MINIMATCH_OPTIONS);
365459
365464
  const walkSettings = {
@@ -365493,7 +365498,7 @@ var require_eslint_helpers = __commonJS({
365493
365498
  return new Minimatch2(patternToUse, MINIMATCH_OPTIONS);
365494
365499
  });
365495
365500
  const unmatchedPatterns = /* @__PURE__ */ new Set([...relativeToPatterns.keys()]);
365496
- const { hfs } = await import("./src-CRDGCAJL.js");
365501
+ const { hfs } = await import("./src-MZLIUYEK.js");
365497
365502
  const walk2 = hfs.walk(basePath, {
365498
365503
  async directoryFilter(entry) {
365499
365504
  if (!matchers.some((matcher) => matcher.match(entry.path, true))) {
@@ -522258,7 +522263,7 @@ init_cjs_shims();
522258
522263
  // ../sdk/package.json
522259
522264
  var package_default = {
522260
522265
  name: "@superblocksteam/sdk",
522261
- version: "2.0.100-next.1",
522266
+ version: "2.0.100-next.2",
522262
522267
  description: "Superblocks JS SDK",
522263
522268
  homepage: "https://www.superblocks.com",
522264
522269
  license: "Superblocks Community Software License",
@@ -522480,7 +522485,7 @@ var config = void 0;
522480
522485
  var configured = false;
522481
522486
  var ddTracePromise = void 0;
522482
522487
  async function getDdTrace() {
522483
- ddTracePromise ??= import("./dd-trace-EWI43B6X.js").then((module) => module.default);
522488
+ ddTracePromise ??= import("./dd-trace-NTAMVOZP.js").then((module) => module.default);
522484
522489
  return await ddTracePromise;
522485
522490
  }
522486
522491
  var deploymentType = (() => {
@@ -527759,7 +527764,7 @@ var MAX_ATTRIBUTE_LENGTH = 64e3;
527759
527764
  var LLMObsSpanWriter = null;
527760
527765
  async function loadLLMObsSpanWriter() {
527761
527766
  if (!LLMObsSpanWriter) {
527762
- const module = await import("./spans-Q2SPMIG5.js");
527767
+ const module = await import("./spans-TRK7PRT7.js");
527763
527768
  LLMObsSpanWriter = module.default;
527764
527769
  }
527765
527770
  return LLMObsSpanWriter;
@@ -538449,11 +538454,18 @@ async function markSdkApiAsUntestedIfNeeded(filePath, clark2, services) {
538449
538454
  markApis(clark2, directlyAffected);
538450
538455
  return;
538451
538456
  }
538452
- if (filePath.startsWith("server/")) {
538453
- markApis(clark2, Array.from(previousEntryPoints.keys()));
538454
- return;
538457
+ const scopedApis = Array.from(previousEntryPoints.entries()).filter(([, ep]) => filePath.startsWith(entryPointScope(ep))).map(([name16]) => name16);
538458
+ if (scopedApis.length > 0) {
538459
+ markApis(clark2, scopedApis);
538455
538460
  }
538456
538461
  }
538462
+ function entryPointScope(entryPoint) {
538463
+ const withoutExt = entryPoint.replace(/\.(ts|tsx|js)$/, "");
538464
+ if (withoutExt.endsWith("/index")) {
538465
+ return withoutExt.slice(0, -"index".length);
538466
+ }
538467
+ return withoutExt + "/";
538468
+ }
538457
538469
  function markApis(clark2, apiNames) {
538458
538470
  if (apiNames.length === 0) {
538459
538471
  return;
@@ -615454,6 +615466,17 @@ function formatMediaTag(mediaType) {
615454
615466
  return "[pdf]";
615455
615467
  return `[media: ${mediaType}]`;
615456
615468
  }
615469
+ function formatFileTag(part) {
615470
+ const name16 = part.filename;
615471
+ const mediaType = part.mediaType;
615472
+ if (name16 && mediaType)
615473
+ return `[file: ${name16} (${mediaType})]`;
615474
+ if (name16)
615475
+ return `[file: ${name16}]`;
615476
+ if (mediaType)
615477
+ return `[file: ${mediaType}]`;
615478
+ return "[file]";
615479
+ }
615457
615480
  function stripMedia(msg) {
615458
615481
  if (!Array.isArray(msg.content)) {
615459
615482
  return msg;
@@ -615462,6 +615485,10 @@ function stripMedia(msg) {
615462
615485
  if (typeof part === "object" && part !== null && "type" in part && part.type === "image") {
615463
615486
  return { type: "text", text: "[image]" };
615464
615487
  }
615488
+ if (typeof part === "object" && part !== null && "type" in part && part.type === "file") {
615489
+ const filePart = part;
615490
+ return { type: "text", text: formatFileTag(filePart) };
615491
+ }
615465
615492
  if (part.type === "tool-result" && part.output?.type === "content" && Array.isArray(part.output.value)) {
615466
615493
  const firstMediaType = part.output.value.map(getMediaType).find((t16) => t16 !== null);
615467
615494
  if (firstMediaType) {
@@ -615574,9 +615601,23 @@ async function summarizeSession(options8) {
615574
615601
  };
615575
615602
  });
615576
615603
  }
615577
- async function summarizeWithSplitting(msgs) {
615604
+ const MAX_SPLIT_DEPTH = 10;
615605
+ async function summarizeWithSplitting(msgs, depth = 0) {
615606
+ if (depth >= MAX_SPLIT_DEPTH) {
615607
+ logger4.warn(`Summarization split depth limit reached (${MAX_SPLIT_DEPTH}). Falling back to truncation.`);
615608
+ return createTruncationFallback(messages3, tracer4);
615609
+ }
615578
615610
  if (msgs.length < 2) {
615579
- return callLLM(msgs);
615611
+ try {
615612
+ return await callLLM(msgs);
615613
+ } catch (error40) {
615614
+ if (isTokenLimitError(error40)) {
615615
+ logger4.warn(`Token limit exceeded even with ${msgs.length} message(s). Falling back to truncation.`);
615616
+ return createTruncationFallback(messages3, tracer4);
615617
+ }
615618
+ logger4.error(`LLM summarization failed. Falling back to truncation. Error: ${JSON.stringify(error40)}`, error40);
615619
+ return createTruncationFallback(messages3, tracer4);
615620
+ }
615580
615621
  }
615581
615622
  try {
615582
615623
  const result2 = await callLLM(msgs);
@@ -615589,31 +615630,30 @@ async function summarizeSession(options8) {
615589
615630
  const midpoint = Math.floor(msgs.length / 2);
615590
615631
  const firstHalf = msgs.slice(0, midpoint);
615591
615632
  const secondHalf = msgs.slice(midpoint);
615592
- logger4.warn(`Token limit exceeded with ${msgs.length} messages. Splitting: first half (${firstHalf.length}), second half (${secondHalf.length})`);
615633
+ logger4.warn(`Token limit exceeded with ${msgs.length} messages (depth=${depth}). Splitting: first half (${firstHalf.length}), second half (${secondHalf.length})`);
615593
615634
  const firstResult = await tracer4.trace({ name: "session.summarize.split", kind: "task" }, async (splitSpan) => {
615594
615635
  tracer4.annotate(splitSpan, {
615595
615636
  metadata: {
615596
615637
  input: {
615597
615638
  messageCount: firstHalf.length,
615598
- splitHalf: "first"
615639
+ splitHalf: "first",
615640
+ depth: depth + 1
615599
615641
  }
615600
615642
  }
615601
615643
  });
615602
- return summarizeWithSplitting(firstHalf);
615644
+ return summarizeWithSplitting(firstHalf, depth + 1);
615603
615645
  });
615604
615646
  return tracer4.trace({ name: "session.summarize.split", kind: "task" }, async (splitSpan) => {
615605
615647
  tracer4.annotate(splitSpan, {
615606
615648
  metadata: {
615607
615649
  input: {
615608
615650
  messageCount: firstResult.messages.length + secondHalf.length,
615609
- splitHalf: "combined"
615651
+ splitHalf: "combined",
615652
+ depth: depth + 1
615610
615653
  }
615611
615654
  }
615612
615655
  });
615613
- return summarizeWithSplitting([
615614
- ...firstResult.messages,
615615
- ...secondHalf
615616
- ]);
615656
+ return summarizeWithSplitting([...firstResult.messages, ...secondHalf], depth + 1);
615617
615657
  });
615618
615658
  }
615619
615659
  }
@@ -637909,7 +637949,7 @@ var PlaywrightMcpServerManager = class {
637909
637949
  this.logger.info(`Starting embedded Playwright MCP server: browser=${options8?.browser || "chromium"}, headless=${options8?.headless !== false}`);
637910
637950
  }
637911
637951
  try {
637912
- const { startEmbeddedPlaywrightMcpServer } = await import("./embedded-playwright-mcp-server-FQDPCN5R.js");
637952
+ const { startEmbeddedPlaywrightMcpServer } = await import("./embedded-playwright-mcp-server-4QEXQTI7.js");
637913
637953
  this.server = await startEmbeddedPlaywrightMcpServer({
637914
637954
  storageStatePath: options8?.storageStatePath,
637915
637955
  jwt: options8?.jwt,
@@ -649587,6 +649627,7 @@ var SECRET_SCAN_ENABLED_TOOLS = /* @__PURE__ */ new Set([
649587
649627
  executeRequestToIntegrationToolFactory.name
649588
649628
  ]);
649589
649629
  var TOOL_LOG_SUMMARY_NAMES = {
649630
+ buildCaptureScreenshot: buildCaptureScreenshotToolFactory.name,
649590
649631
  buildReadFile: buildReadFileToolFactory.name,
649591
649632
  executeRequestToIntegration: executeRequestToIntegrationToolFactory.name,
649592
649633
  getApiDocs: getApiDocsToolFactory.name,
@@ -649637,7 +649678,26 @@ function getTier2ErrorMeta(error40) {
649637
649678
  }
649638
649679
  };
649639
649680
  }
649681
+ function summarizeScreenshotResult(result) {
649682
+ if (!result || typeof result !== "object" || Array.isArray(result)) {
649683
+ return {
649684
+ fallback: true,
649685
+ type: Array.isArray(result) ? "array" : typeof result
649686
+ };
649687
+ }
649688
+ const root3 = result;
649689
+ const dataUrl = typeof root3.dataUrl === "string" ? root3.dataUrl : void 0;
649690
+ return {
649691
+ dataUrlChars: dataUrl?.length,
649692
+ hasShortLivedUrl: typeof root3.shortLivedUrl === "string",
649693
+ fileName: typeof root3.fileName === "string" ? root3.fileName : void 0,
649694
+ mimeType: typeof root3.mimeType === "string" ? root3.mimeType : void 0
649695
+ };
649696
+ }
649640
649697
  function summarizeToolResultForLogs(toolName, result) {
649698
+ if (toolName === TOOL_LOG_SUMMARY_NAMES.buildCaptureScreenshot) {
649699
+ return summarizeScreenshotResult(result);
649700
+ }
649641
649701
  const sanitizedResult = sanitizeLogObject(result);
649642
649702
  const serializedSanitizedResult = JSON.stringify(sanitizedResult);
649643
649703
  const fallbackSummary = (type) => ({
@@ -678159,8 +678219,16 @@ async function ensureGithubWorkflowFile(gitService, superblocksBaseUrl) {
678159
678219
  throw error40;
678160
678220
  }
678161
678221
  }
678222
+ const resolvedUrl = superblocksBaseUrl || "";
678223
+ if (!resolvedUrl) {
678224
+ getLogger().warn("[git] ensureGithubWorkflowFile: no superblocksBaseUrl provided, workflow will use default prod domain", {
678225
+ gitCategory: "setup",
678226
+ gitOperation: "ensure-github-workflow-file",
678227
+ gitOutcome: "degraded"
678228
+ });
678229
+ }
678162
678230
  await mkdir13(dirname14(workflowPath), { recursive: true });
678163
- await writeFile11(workflowPath, (0, import_shared53.buildGithubSuperblocksSyncWorkflowFromBaseUrl)(superblocksBaseUrl ?? ""), "utf-8");
678231
+ await writeFile11(workflowPath, (0, import_shared53.buildGithubSuperblocksSyncWorkflowFromBaseUrl)(resolvedUrl), "utf-8");
678164
678232
  getLogger().info(`[git] ensureGithubWorkflowFile: created ${GITHUB_WORKFLOW_PATH}`);
678165
678233
  return { created: true };
678166
678234
  }
@@ -678331,7 +678399,7 @@ var SocketManager = class extends import_shared55.TracedEventEmitter {
678331
678399
  super(tracer4);
678332
678400
  }
678333
678401
  socketServer;
678334
- startSocketServer({ server, fileSyncManager, syncService, lockService, aiService, gitService, activateGitService, checkAuthorization, path: path97, tracer: tracer4, gitOperationLock }) {
678402
+ startSocketServer({ server, fileSyncManager, syncService, lockService, aiService, gitService, activateGitService, checkAuthorization, path: path97, tracer: tracer4, gitOperationLock, superblocksBaseUrl }) {
678335
678403
  if (this.socketServer) {
678336
678404
  throw new Error("Socket server already started");
678337
678405
  }
@@ -678698,7 +678766,7 @@ var SocketManager = class extends import_shared55.TracedEventEmitter {
678698
678766
  throw fetchErr;
678699
678767
  }
678700
678768
  });
678701
- await ensureGithubWorkflowFile(readyGitService, aiService?.superblocksBaseUrl).catch((error40) => {
678769
+ await ensureGithubWorkflowFile(readyGitService, superblocksBaseUrl || aiService?.superblocksBaseUrl).catch((error40) => {
678702
678770
  getLogger().warn("[git] gitCommitLocal failed to ensure GitHub workflow file", {
678703
678771
  gitCategory: "setup",
678704
678772
  gitOperation: "ensure-github-workflow-file",
@@ -700656,7 +700724,7 @@ var parseYaml3;
700656
700724
  async function loadYaml(file2) {
700657
700725
  const content9 = await read_file_default(file2);
700658
700726
  if (!parseYaml3) {
700659
- ({ __parsePrettierYamlConfig: parseYaml3 } = await import("./yaml-KYKYW3AG.js"));
700727
+ ({ __parsePrettierYamlConfig: parseYaml3 } = await import("./yaml-6Z3PUEGD.js"));
700660
700728
  }
700661
700729
  try {
700662
700730
  return parseYaml3(content9);
@@ -706050,7 +706118,7 @@ function createParsersAndPrinters(modules) {
706050
706118
  }
706051
706119
  var estreePlugin = createParsersAndPrinters([
706052
706120
  {
706053
- importPlugin: () => import("./estree-GTPAQNNR.js"),
706121
+ importPlugin: () => import("./estree-6JFRN447.js"),
706054
706122
  printers: ["estree", "estree-json"]
706055
706123
  }
706056
706124
  ]);
@@ -706074,11 +706142,11 @@ var languages = [
706074
706142
  ];
706075
706143
  var { parsers: parsers12, printers } = createParsersAndPrinters([
706076
706144
  {
706077
- importPlugin: () => import("./acorn-PNEGFCQT.js"),
706145
+ importPlugin: () => import("./acorn-3PVDUZQI.js"),
706078
706146
  parsers: ["acorn", "espree"]
706079
706147
  },
706080
706148
  {
706081
- importPlugin: () => import("./angular-H72LJKLB.js"),
706149
+ importPlugin: () => import("./angular-G25U54XR.js"),
706082
706150
  parsers: [
706083
706151
  "__ng_action",
706084
706152
  "__ng_binding",
@@ -706087,7 +706155,7 @@ var { parsers: parsers12, printers } = createParsersAndPrinters([
706087
706155
  ]
706088
706156
  },
706089
706157
  {
706090
- importPlugin: () => import("./babel-HYKDU55F.js"),
706158
+ importPlugin: () => import("./babel-BIZEN6QE.js"),
706091
706159
  parsers: [
706092
706160
  "babel",
706093
706161
  "babel-flow",
@@ -706106,44 +706174,44 @@ var { parsers: parsers12, printers } = createParsersAndPrinters([
706106
706174
  ]
706107
706175
  },
706108
706176
  {
706109
- importPlugin: () => import("./flow-3DCRTQII.js"),
706177
+ importPlugin: () => import("./flow-CE2BIN75.js"),
706110
706178
  parsers: ["flow"]
706111
706179
  },
706112
706180
  {
706113
- importPlugin: () => import("./glimmer-GQATNI66.js"),
706181
+ importPlugin: () => import("./glimmer-U6LHQ6WT.js"),
706114
706182
  parsers: ["glimmer"],
706115
706183
  printers: ["glimmer"]
706116
706184
  },
706117
706185
  {
706118
- importPlugin: () => import("./graphql-XTOLKF2K.js"),
706186
+ importPlugin: () => import("./graphql-BR4APEAZ.js"),
706119
706187
  parsers: ["graphql"],
706120
706188
  printers: ["graphql"]
706121
706189
  },
706122
706190
  {
706123
- importPlugin: () => import("./html-2IWEHGSR.js"),
706191
+ importPlugin: () => import("./html-6FQCV33C.js"),
706124
706192
  parsers: ["html", "angular", "vue", "lwc", "mjml"],
706125
706193
  printers: ["html"]
706126
706194
  },
706127
706195
  {
706128
- importPlugin: () => import("./markdown-TZSJXYIQ.js"),
706196
+ importPlugin: () => import("./markdown-VDPENZHO.js"),
706129
706197
  parsers: ["markdown", "mdx", "remark"],
706130
706198
  printers: ["mdast"]
706131
706199
  },
706132
706200
  {
706133
- importPlugin: () => import("./meriyah-JFNLUK7E.js"),
706201
+ importPlugin: () => import("./meriyah-XROZPDRC.js"),
706134
706202
  parsers: ["meriyah"]
706135
706203
  },
706136
706204
  {
706137
- importPlugin: () => import("./postcss-FF43TEAV.js"),
706205
+ importPlugin: () => import("./postcss-LJDERGX3.js"),
706138
706206
  parsers: ["css", "less", "scss"],
706139
706207
  printers: ["postcss"]
706140
706208
  },
706141
706209
  {
706142
- importPlugin: () => import("./typescript-5OSGRWQD.js"),
706210
+ importPlugin: () => import("./typescript-KOSB7NY5.js"),
706143
706211
  parsers: ["typescript"]
706144
706212
  },
706145
706213
  {
706146
- importPlugin: () => import("./yaml-KYKYW3AG.js"),
706214
+ importPlugin: () => import("./yaml-6Z3PUEGD.js"),
706147
706215
  parsers: ["yaml"],
706148
706216
  printers: ["yaml"]
706149
706217
  }
@@ -709466,7 +709534,8 @@ var fileSyncVitePlugin = (pluginParams, options8) => {
709466
709534
  checkAuthorization: pluginParams.checkAuthorization,
709467
709535
  tracer: pluginParams.tracer,
709468
709536
  path: "/sb-updates",
709469
- gitOperationLock
709537
+ gitOperationLock,
709538
+ superblocksBaseUrl: pluginParams.superblocksBaseUrl
709470
709539
  });
709471
709540
  } finally {
709472
709541
  socketSpan.end();
@@ -717364,7 +717433,7 @@ function getJwksUriWithBaseUrl(superblocksBaseUrl) {
717364
717433
  return jwksUri;
717365
717434
  }
717366
717435
  var httpServer;
717367
- async function createDevServer({ root: root3, mode, fsOperationQueue, syncService, lockService, aiService, gitService, activateGitService, snapshotManager, logger: loggerOverride, port, sdk }) {
717436
+ async function createDevServer({ root: root3, mode, fsOperationQueue, syncService, lockService, aiService, gitService, activateGitService, snapshotManager, logger: loggerOverride, port, sdk, superblocksBaseUrl: explicitBaseUrl }) {
717368
717437
  const logger15 = getLogger2(loggerOverride);
717369
717438
  if (httpServer) {
717370
717439
  logger15.debug("Dev server already running");
@@ -717561,6 +717630,7 @@ async function createDevServer({ root: root3, mode, fsOperationQueue, syncServic
717561
717630
  checkAuthorization,
717562
717631
  logger: loggerOverride,
717563
717632
  httpServer,
717633
+ superblocksBaseUrl: explicitBaseUrl || localToken?.superblocksBaseUrl,
717564
717634
  features: {
717565
717635
  enableSessionRecording: featureFlags?.enableSessionRecording() ?? false
717566
717636
  }
@@ -717663,7 +717733,7 @@ async function createDevServer({ root: root3, mode, fsOperationQueue, syncServic
717663
717733
  logger15.info(`HTTP server started successfully on port ${port}`);
717664
717734
  return httpServer;
717665
717735
  }
717666
- async function startVite({ app, httpServer: httpServer2, root: root3, mode, port, fsOperationQueue, syncService, lockService, aiService, gitService, activateGitService, snapshotManager, checkAuthorization, logger: loggerOverride, features }) {
717736
+ async function startVite({ app, httpServer: httpServer2, root: root3, mode, port, fsOperationQueue, syncService, lockService, aiService, gitService, activateGitService, snapshotManager, checkAuthorization, logger: loggerOverride, superblocksBaseUrl, features }) {
717667
717737
  return tracer3.startActiveSpan("startVite", async (startViteSpan) => {
717668
717738
  try {
717669
717739
  const logger15 = getLogger2(loggerOverride);
@@ -717717,6 +717787,7 @@ async function startVite({ app, httpServer: httpServer2, root: root3, mode, port
717717
717787
  checkAuthorization,
717718
717788
  tracer: tracer3,
717719
717789
  logger: logger15,
717790
+ superblocksBaseUrl,
717720
717791
  features
717721
717792
  }, { isCustomBuildEnabled: isCustomBuildEnabled2 });
717722
717793
  logger15.debug("Configuring dev server with plugins and options");
@@ -718041,6 +718112,57 @@ import path75 from "node:path";
718041
718112
  import * as readline from "node:readline";
718042
718113
  import { promisify as promisify7 } from "node:util";
718043
718114
  var import_fs_extra5 = __toESM(require_lib(), 1);
718115
+
718116
+ // ../sdk/dist/cli-replacement/git-repo-setup.mjs
718117
+ init_cjs_shims();
718118
+ function getGitErrorFields(error40) {
718119
+ const meta2 = getErrorMeta2(error40);
718120
+ return {
718121
+ gitErrorKind: meta2.error.kind,
718122
+ gitErrorMessage: meta2.error.message
718123
+ };
718124
+ }
718125
+ async function ensureRemoteHasDefaultBranch(git, remoteUrl) {
718126
+ const allRefs = await git.raw(["ls-remote", "--heads", "origin"]).catch((err) => {
718127
+ getLogger2().warn("[git] ls-remote failed while checking for empty remote", {
718128
+ gitCategory: "setup",
718129
+ gitOperation: "seed-default-branch",
718130
+ gitOutcome: "failed",
718131
+ gitRemote: "origin",
718132
+ gitRemoteUrl: remoteUrl,
718133
+ ...getGitErrorFields(err)
718134
+ });
718135
+ return "";
718136
+ });
718137
+ if (allRefs.trim()) {
718138
+ return;
718139
+ }
718140
+ const hasAnyCommit = await git.raw(["rev-parse", "--verify", "HEAD"]).then(() => true, () => false);
718141
+ if (!hasAnyCommit) {
718142
+ return;
718143
+ }
718144
+ try {
718145
+ await git.raw(["push", "origin", "HEAD:refs/heads/main"]);
718146
+ getLogger2().info("[git] seeded empty remote with main branch", {
718147
+ gitCategory: "setup",
718148
+ gitOperation: "seed-default-branch",
718149
+ gitOutcome: "succeeded",
718150
+ gitRemote: "origin",
718151
+ gitRemoteUrl: remoteUrl
718152
+ });
718153
+ } catch (err) {
718154
+ getLogger2().warn("[git] failed to seed empty remote with main branch", {
718155
+ gitCategory: "setup",
718156
+ gitOperation: "seed-default-branch",
718157
+ gitOutcome: "failed",
718158
+ gitRemote: "origin",
718159
+ gitRemoteUrl: remoteUrl,
718160
+ ...getGitErrorFields(err)
718161
+ });
718162
+ }
718163
+ }
718164
+
718165
+ // ../sdk/dist/cli-replacement/dev.mjs
718044
718166
  var exec10 = promisify7(child_process3.exec);
718045
718167
  var passErrorToVSCode = (message, logger15) => {
718046
718168
  if (message && process.env.SUPERBLOCKS_VSCODE === "true") {
@@ -718131,7 +718253,7 @@ async function handleLockConflict(error40, lockSvc, span, logger15) {
718131
718253
  }
718132
718254
  async function readPkgJson(cwd) {
718133
718255
  try {
718134
- const { readPackage } = await import("./read-pkg-OF3O7K4J.js");
718256
+ const { readPackage } = await import("./read-pkg-DT5VH6EB.js");
718135
718257
  return await readPackage({ cwd });
718136
718258
  } catch {
718137
718259
  return null;
@@ -718348,7 +718470,8 @@ async function dev(options8) {
718348
718470
  cwd,
718349
718471
  logger: logger15,
718350
718472
  userName: gitUserName,
718351
- userEmail: gitUserEmail
718473
+ userEmail: gitUserEmail,
718474
+ superblocksBaseUrl: tokenConfig.superblocksBaseUrl
718352
718475
  });
718353
718476
  if (!bootstrappedGitService) {
718354
718477
  logger15.info("[git] startup git sync skipped", {
@@ -718519,7 +718642,8 @@ async function dev(options8) {
718519
718642
  cwd,
718520
718643
  logger: logger15,
718521
718644
  userName: gitUserName,
718522
- userEmail: gitUserEmail
718645
+ userEmail: gitUserEmail,
718646
+ superblocksBaseUrl: tokenConfig.superblocksBaseUrl
718523
718647
  });
718524
718648
  if (!runtimeGitService) {
718525
718649
  activeDbfsBranchName = await ensureRuntimeDbfsBranchConsistency({
@@ -718571,7 +718695,8 @@ async function dev(options8) {
718571
718695
  activateGitService: activateRuntimeGitService,
718572
718696
  snapshotManager,
718573
718697
  logger: options8.logger,
718574
- sdk
718698
+ sdk,
718699
+ superblocksBaseUrl: tokenConfig.superblocksBaseUrl
718575
718700
  };
718576
718701
  const result = await createDevServer(createDevServerOptions);
718577
718702
  span.end();
@@ -718603,14 +718728,7 @@ async function dev(options8) {
718603
718728
  }
718604
718729
  });
718605
718730
  }
718606
- function getGitErrorFields(error40) {
718607
- const meta2 = getErrorMeta2(error40);
718608
- return {
718609
- gitErrorKind: meta2.error.kind,
718610
- gitErrorMessage: meta2.error.message
718611
- };
718612
- }
718613
- async function bootstrapGitService({ sdk, applicationId, cwd, logger: logger15, userName, userEmail }) {
718731
+ async function bootstrapGitService({ sdk, applicationId, cwd, logger: logger15, userName, userEmail, superblocksBaseUrl }) {
718614
718732
  const gitConfigSdk = sdk;
718615
718733
  const gitConfig = await gitConfigSdk.getApplicationGitConfig(applicationId);
718616
718734
  if (!gitConfig?.gitRemoteUrl) {
@@ -718640,7 +718758,7 @@ async function bootstrapGitService({ sdk, applicationId, cwd, logger: logger15,
718640
718758
  }
718641
718759
  }
718642
718760
  await service.configure({ credentials, userName, userEmail });
718643
- await ensureGitRepo(service, gitConfig.gitRemoteUrl);
718761
+ await ensureGitRepo(service, gitConfig.gitRemoteUrl, superblocksBaseUrl);
718644
718762
  return service;
718645
718763
  }
718646
718764
  async function fetchAndEnsureLiveBranch(git, errorPrefix) {
@@ -718663,7 +718781,7 @@ async function fetchAndEnsureLiveBranch(git, errorPrefix) {
718663
718781
  throw fetchError;
718664
718782
  }
718665
718783
  }
718666
- async function ensureGitRepo(git, remoteUrl) {
718784
+ async function ensureGitRepo(git, remoteUrl, superblocksBaseUrl) {
718667
718785
  const hasGit = await nodeFs.access(path75.join(git.workDir, ".git")).then(() => true, () => false);
718668
718786
  if (!hasGit) {
718669
718787
  await git.init();
@@ -718686,7 +718804,7 @@ async function ensureGitRepo(git, remoteUrl) {
718686
718804
  return "";
718687
718805
  });
718688
718806
  if (!remoteRefs.includes(`refs/heads/${import_shared70.SUPERBLOCKS_LIVE_GIT_BRANCH}`)) {
718689
- await seedGithubWorkflowIfNeeded(git.workDir, remoteUrl);
718807
+ await seedGithubWorkflowIfNeeded(git.workDir, remoteUrl, superblocksBaseUrl);
718690
718808
  let defaultBranch;
718691
718809
  try {
718692
718810
  defaultBranch = await git.getDefaultBranch();
@@ -718758,10 +718876,11 @@ async function ensureGitRepo(git, remoteUrl) {
718758
718876
  await git.remote(["set-url", "origin", remoteUrl]);
718759
718877
  }
718760
718878
  }
718879
+ await ensureRemoteHasDefaultBranch(git, remoteUrl);
718761
718880
  }
718762
- await seedGithubWorkflowIfNeeded(git.workDir, remoteUrl);
718881
+ await seedGithubWorkflowIfNeeded(git.workDir, remoteUrl, superblocksBaseUrl);
718763
718882
  }
718764
- async function seedGithubWorkflowIfNeeded(workDir, remoteUrl) {
718883
+ async function seedGithubWorkflowIfNeeded(workDir, remoteUrl, superblocksBaseUrl) {
718765
718884
  if (!(0, import_shared70.isGitHubRemoteUrl)(remoteUrl)) {
718766
718885
  return;
718767
718886
  }
@@ -718772,7 +718891,8 @@ async function seedGithubWorkflowIfNeeded(workDir, remoteUrl) {
718772
718891
  return;
718773
718892
  }
718774
718893
  await nodeFs.mkdir(workflowDir, { recursive: true });
718775
- await nodeFs.writeFile(workflowFile, (0, import_shared70.buildGithubSuperblocksSyncWorkflow)(), "utf-8");
718894
+ const baseUrl = superblocksBaseUrl || process.env.SUPERBLOCKS_BASE_URL || "";
718895
+ await nodeFs.writeFile(workflowFile, baseUrl ? (0, import_shared70.buildGithubSuperblocksSyncWorkflowFromBaseUrl)(baseUrl) : (0, import_shared70.buildGithubSuperblocksSyncWorkflow)(), "utf-8");
718776
718896
  }
718777
718897
  async function canResolveRef(git, ref2) {
718778
718898
  try {
@@ -719720,7 +719840,7 @@ async function createPrompt(options8, settings) {
719720
719840
  enquirer3 = settings.enquirer;
719721
719841
  } else {
719722
719842
  try {
719723
- enquirer3 = await import("./enquirer-DEUK24GD.js").then((imported) => imported.default ? new imported.default() : new imported());
719843
+ enquirer3 = await import("./enquirer-MD4ILGGR.js").then((imported) => imported.default ? new imported.default() : new imported());
719724
719844
  } catch (e) {
719725
719845
  if (this instanceof TaskWrapper) {
719726
719846
  this.task.prompt = new PromptError("Enquirer is a peer dependency that must be installed separately.");
@@ -719928,9 +720048,9 @@ var _DefaultRenderer = class {
719928
720048
  return typeof bottomBar === "number" && bottomBar !== 0 || typeof bottomBar === "boolean" && bottomBar !== false || !task.hasTitle();
719929
720049
  }
719930
720050
  async render() {
719931
- const { createLogUpdate } = await import("./log-update-I2TVJWFF.js");
719932
- const { default: truncate } = await import("./cli-truncate-KPSAKQXQ.js");
719933
- const { default: wrap2 } = await import("./wrap-ansi-KAC5DSQS.js");
720051
+ const { createLogUpdate } = await import("./log-update-IPZBTHHB.js");
720052
+ const { default: truncate } = await import("./cli-truncate-5AEGTCV4.js");
720053
+ const { default: wrap2 } = await import("./wrap-ansi-UDL4BSKP.js");
719934
720054
  this.updater = createLogUpdate(this.logger.process.stdout);
719935
720055
  this.truncate = truncate;
719936
720056
  this.wrap = wrap2;