@superblocksteam/cli 2.0.130-next.4 → 2.0.130-next.6

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 (117) hide show
  1. package/README.md +1 -1
  2. package/dist/{acorn-6TUQZGW5.js → acorn-YQQUP7Y5.js} +3 -3
  3. package/dist/{angular-H5BTDPB5.js → angular-C6KKVS5D.js} +3 -3
  4. package/dist/{api-Q37DKMAI.js → api-ZIVOTW4P.js} +4 -4
  5. package/dist/{babel-OS7UVQCO.js → babel-HUHW5TKP.js} +3 -3
  6. package/dist/{chunk-WZEOVFB6.js → chunk-2IHFRTC7.js} +3 -3
  7. package/dist/{chunk-TM57HQX2.js → chunk-46IT7FWJ.js} +3 -3
  8. package/dist/{chunk-3YEIZG3Y.js → chunk-4BMQLH2S.js} +3 -3
  9. package/dist/{chunk-RZG7KH3D.js → chunk-4TSW5GMJ.js} +438 -197
  10. package/dist/{chunk-RZG7KH3D.js.map → chunk-4TSW5GMJ.js.map} +1 -1
  11. package/dist/{chunk-2AXZZ7LJ.js → chunk-5TQ2C42A.js} +4 -4
  12. package/dist/{chunk-PRWDU5AW.js → chunk-6OAE27XM.js} +3 -3
  13. package/dist/{chunk-3T52OK3W.js → chunk-B76D32TW.js} +3 -3
  14. package/dist/{chunk-54JUGZZZ.js → chunk-BPP7B7KR.js} +6 -6
  15. package/dist/{chunk-CD4MFL6W.js → chunk-DLHYSQN5.js} +2 -2
  16. package/dist/{chunk-GMIX6OEX.js → chunk-OZ5PP73Y.js} +4 -4
  17. package/dist/{chunk-WDEMQVNP.js → chunk-S5VFCN2Q.js} +4 -4
  18. package/dist/{chunk-FOK7OYFC.js → chunk-TUBSDWFN.js} +3 -3
  19. package/dist/{chunk-Z7ZZ6CYR.js → chunk-TZWUXOEO.js} +6 -6
  20. package/dist/{chunk-KUKTLLGB.js → chunk-WQFIDQKP.js} +3 -3
  21. package/dist/{chunk-KYZI3B4P.js → chunk-YJUGDZKB.js} +3 -3
  22. package/dist/{chunk-5AZNUXPQ.js → chunk-YX7NZCEV.js} +4 -4
  23. package/dist/{chunk-QBKCWA7K.js → chunk-ZMHPHXXK.js} +3 -3
  24. package/dist/{chunk-I77KUZWY.js → chunk-ZYZYJWTA.js} +3 -3
  25. package/dist/{cli-truncate-QRSZBGQX.js → cli-truncate-7RUWG373.js} +5 -5
  26. package/dist/commands/dev-parent.js +2 -2
  27. package/dist/{dd-trace-ON23TSXI.js → dd-trace-JBIRU2ZL.js} +7 -7
  28. package/dist/{dist-PYASEQKJ.js → dist-MKKSERRL.js} +13 -13
  29. package/dist/{embedded-playwright-mcp-server-TYFFLVKZ.js → embedded-playwright-mcp-server-RFH7NKFB.js} +3 -3
  30. package/dist/{enquirer-LYUVC6SB.js → enquirer-V4PAGAEG.js} +4 -4
  31. package/dist/{estree-YDAKYBBH.js → estree-2G5VFWVN.js} +3 -3
  32. package/dist/{flow-5FU6LHW6.js → flow-4J5UW7NH.js} +3 -3
  33. package/dist/{getMachineId-bsd-5FRPZYOR.js → getMachineId-bsd-DH6EQFGC.js} +5 -5
  34. package/dist/{getMachineId-bsd-ZIPVBNJ2.js → getMachineId-bsd-MUHND3S7.js} +5 -5
  35. package/dist/{getMachineId-darwin-5I2JCJA6.js → getMachineId-darwin-4REKUPZ4.js} +5 -5
  36. package/dist/{getMachineId-darwin-MI6UBPSN.js → getMachineId-darwin-N4EXBS7B.js} +5 -5
  37. package/dist/{getMachineId-linux-N6PVY2K2.js → getMachineId-linux-CAFQQJ5Q.js} +4 -4
  38. package/dist/{getMachineId-linux-BEMG4S4R.js → getMachineId-linux-ZJMB2K27.js} +4 -4
  39. package/dist/{getMachineId-unsupported-VPYWZLOQ.js → getMachineId-unsupported-EFIYAQPF.js} +4 -4
  40. package/dist/{getMachineId-unsupported-7CAN2IBW.js → getMachineId-unsupported-PTYGEKV4.js} +4 -4
  41. package/dist/{getMachineId-win-NVPXKHOU.js → getMachineId-win-2O7P6RA2.js} +5 -5
  42. package/dist/{getMachineId-win-A2DVJO2W.js → getMachineId-win-SS6X2DMP.js} +5 -5
  43. package/dist/{glimmer-QLDWRFB5.js → glimmer-2OXBJ7XH.js} +3 -3
  44. package/dist/{graphql-AZ64G2F4.js → graphql-DK45QNIQ.js} +3 -3
  45. package/dist/{html-4CGZJTM7.js → html-AFHMWCZ2.js} +3 -3
  46. package/dist/{http-5JS7Y4LD.js → http-X3PE65CS.js} +12 -12
  47. package/dist/index.js +18 -18
  48. package/dist/{jiti-CGSBHMWW.js → jiti-ODX7XBMY.js} +3 -3
  49. package/dist/{log-update-QHZBZRLS.js → log-update-S33WI3MU.js} +6 -6
  50. package/dist/{markdown-QG7C5ONF.js → markdown-QXFHC3SV.js} +3 -3
  51. package/dist/{meriyah-ELNL6ITK.js → meriyah-Q2I3F3DF.js} +3 -3
  52. package/dist/{postcss-3SXZ7DQY.js → postcss-TE4MN4LR.js} +3 -3
  53. package/dist/{read-pkg-YSNZMYOE.js → read-pkg-GXTAI2HX.js} +5 -5
  54. package/dist/{spans-W3NTY3CR.js → spans-MR6H72XO.js} +4 -4
  55. package/dist/{src-JR56WEXU.js → src-ADQL443X.js} +3 -3
  56. package/dist/{token-5Z5EWGB5.js → token-AV2FXIQU.js} +5 -5
  57. package/dist/{token-util-BLY4CG2I.js → token-util-XYXJMERC.js} +5 -5
  58. package/dist/{typescript-G2O3UATZ.js → typescript-XCQPLCVD.js} +3 -3
  59. package/dist/{wrap-ansi-2W3GSAAF.js → wrap-ansi-C2SQ2VZL.js} +5 -5
  60. package/dist/{yaml-L2ACLQKF.js → yaml-EEILP6LZ.js} +3 -3
  61. package/oclif.manifest.json +1 -1
  62. package/package.json +6 -6
  63. /package/dist/{acorn-6TUQZGW5.js.map → acorn-YQQUP7Y5.js.map} +0 -0
  64. /package/dist/{angular-H5BTDPB5.js.map → angular-C6KKVS5D.js.map} +0 -0
  65. /package/dist/{api-Q37DKMAI.js.map → api-ZIVOTW4P.js.map} +0 -0
  66. /package/dist/{babel-OS7UVQCO.js.map → babel-HUHW5TKP.js.map} +0 -0
  67. /package/dist/{chunk-WZEOVFB6.js.map → chunk-2IHFRTC7.js.map} +0 -0
  68. /package/dist/{chunk-TM57HQX2.js.map → chunk-46IT7FWJ.js.map} +0 -0
  69. /package/dist/{chunk-3YEIZG3Y.js.map → chunk-4BMQLH2S.js.map} +0 -0
  70. /package/dist/{chunk-2AXZZ7LJ.js.map → chunk-5TQ2C42A.js.map} +0 -0
  71. /package/dist/{chunk-PRWDU5AW.js.map → chunk-6OAE27XM.js.map} +0 -0
  72. /package/dist/{chunk-3T52OK3W.js.map → chunk-B76D32TW.js.map} +0 -0
  73. /package/dist/{chunk-54JUGZZZ.js.map → chunk-BPP7B7KR.js.map} +0 -0
  74. /package/dist/{chunk-CD4MFL6W.js.map → chunk-DLHYSQN5.js.map} +0 -0
  75. /package/dist/{chunk-GMIX6OEX.js.map → chunk-OZ5PP73Y.js.map} +0 -0
  76. /package/dist/{chunk-WDEMQVNP.js.map → chunk-S5VFCN2Q.js.map} +0 -0
  77. /package/dist/{chunk-FOK7OYFC.js.map → chunk-TUBSDWFN.js.map} +0 -0
  78. /package/dist/{chunk-Z7ZZ6CYR.js.map → chunk-TZWUXOEO.js.map} +0 -0
  79. /package/dist/{chunk-KUKTLLGB.js.map → chunk-WQFIDQKP.js.map} +0 -0
  80. /package/dist/{chunk-KYZI3B4P.js.map → chunk-YJUGDZKB.js.map} +0 -0
  81. /package/dist/{chunk-5AZNUXPQ.js.map → chunk-YX7NZCEV.js.map} +0 -0
  82. /package/dist/{chunk-QBKCWA7K.js.map → chunk-ZMHPHXXK.js.map} +0 -0
  83. /package/dist/{chunk-I77KUZWY.js.map → chunk-ZYZYJWTA.js.map} +0 -0
  84. /package/dist/{cli-truncate-QRSZBGQX.js.map → cli-truncate-7RUWG373.js.map} +0 -0
  85. /package/dist/{dd-trace-ON23TSXI.js.map → dd-trace-JBIRU2ZL.js.map} +0 -0
  86. /package/dist/{dist-PYASEQKJ.js.map → dist-MKKSERRL.js.map} +0 -0
  87. /package/dist/{embedded-playwright-mcp-server-TYFFLVKZ.js.map → embedded-playwright-mcp-server-RFH7NKFB.js.map} +0 -0
  88. /package/dist/{enquirer-LYUVC6SB.js.map → enquirer-V4PAGAEG.js.map} +0 -0
  89. /package/dist/{estree-YDAKYBBH.js.map → estree-2G5VFWVN.js.map} +0 -0
  90. /package/dist/{flow-5FU6LHW6.js.map → flow-4J5UW7NH.js.map} +0 -0
  91. /package/dist/{getMachineId-bsd-5FRPZYOR.js.map → getMachineId-bsd-DH6EQFGC.js.map} +0 -0
  92. /package/dist/{getMachineId-bsd-ZIPVBNJ2.js.map → getMachineId-bsd-MUHND3S7.js.map} +0 -0
  93. /package/dist/{getMachineId-darwin-5I2JCJA6.js.map → getMachineId-darwin-4REKUPZ4.js.map} +0 -0
  94. /package/dist/{getMachineId-darwin-MI6UBPSN.js.map → getMachineId-darwin-N4EXBS7B.js.map} +0 -0
  95. /package/dist/{getMachineId-linux-N6PVY2K2.js.map → getMachineId-linux-CAFQQJ5Q.js.map} +0 -0
  96. /package/dist/{getMachineId-linux-BEMG4S4R.js.map → getMachineId-linux-ZJMB2K27.js.map} +0 -0
  97. /package/dist/{getMachineId-unsupported-VPYWZLOQ.js.map → getMachineId-unsupported-EFIYAQPF.js.map} +0 -0
  98. /package/dist/{getMachineId-unsupported-7CAN2IBW.js.map → getMachineId-unsupported-PTYGEKV4.js.map} +0 -0
  99. /package/dist/{getMachineId-win-NVPXKHOU.js.map → getMachineId-win-2O7P6RA2.js.map} +0 -0
  100. /package/dist/{getMachineId-win-A2DVJO2W.js.map → getMachineId-win-SS6X2DMP.js.map} +0 -0
  101. /package/dist/{glimmer-QLDWRFB5.js.map → glimmer-2OXBJ7XH.js.map} +0 -0
  102. /package/dist/{graphql-AZ64G2F4.js.map → graphql-DK45QNIQ.js.map} +0 -0
  103. /package/dist/{html-4CGZJTM7.js.map → html-AFHMWCZ2.js.map} +0 -0
  104. /package/dist/{http-5JS7Y4LD.js.map → http-X3PE65CS.js.map} +0 -0
  105. /package/dist/{jiti-CGSBHMWW.js.map → jiti-ODX7XBMY.js.map} +0 -0
  106. /package/dist/{log-update-QHZBZRLS.js.map → log-update-S33WI3MU.js.map} +0 -0
  107. /package/dist/{markdown-QG7C5ONF.js.map → markdown-QXFHC3SV.js.map} +0 -0
  108. /package/dist/{meriyah-ELNL6ITK.js.map → meriyah-Q2I3F3DF.js.map} +0 -0
  109. /package/dist/{postcss-3SXZ7DQY.js.map → postcss-TE4MN4LR.js.map} +0 -0
  110. /package/dist/{read-pkg-YSNZMYOE.js.map → read-pkg-GXTAI2HX.js.map} +0 -0
  111. /package/dist/{spans-W3NTY3CR.js.map → spans-MR6H72XO.js.map} +0 -0
  112. /package/dist/{src-JR56WEXU.js.map → src-ADQL443X.js.map} +0 -0
  113. /package/dist/{token-5Z5EWGB5.js.map → token-AV2FXIQU.js.map} +0 -0
  114. /package/dist/{token-util-BLY4CG2I.js.map → token-util-XYXJMERC.js.map} +0 -0
  115. /package/dist/{typescript-G2O3UATZ.js.map → typescript-XCQPLCVD.js.map} +0 -0
  116. /package/dist/{wrap-ansi-2W3GSAAF.js.map → wrap-ansi-C2SQ2VZL.js.map} +0 -0
  117. /package/dist/{yaml-L2ACLQKF.js.map → yaml-EEILP6LZ.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 = '973583398dc0c43f256fd87c61e5d173e68039de';
4
+ process.env.DD_GIT_COMMIT_SHA = '7e864b14e272807f398e76e1a0da4d342b0a3b4e';
5
5
  }
6
6
  import { createRequire as $dd_createRequire } from 'module';
7
7
  import { fileURLToPath as $dd_fileURLToPath } from 'url';
@@ -22,17 +22,17 @@ import {
22
22
  require_re,
23
23
  require_semver,
24
24
  require_valid
25
- } from "./chunk-TM57HQX2.js";
25
+ } from "./chunk-46IT7FWJ.js";
26
26
  import {
27
27
  require_dd_trace,
28
28
  require_js_yaml,
29
29
  require_module_details_from_path,
30
30
  require_p_limit,
31
31
  require_path_to_regexp
32
- } from "./chunk-Z7ZZ6CYR.js";
32
+ } from "./chunk-TZWUXOEO.js";
33
33
  import {
34
34
  require_commonjs
35
- } from "./chunk-KUKTLLGB.js";
35
+ } from "./chunk-WQFIDQKP.js";
36
36
  import {
37
37
  debounce_default,
38
38
  get_default,
@@ -49,13 +49,13 @@ import {
49
49
  require_lib,
50
50
  require_slugify,
51
51
  throttle_default
52
- } from "./chunk-QBKCWA7K.js";
52
+ } from "./chunk-ZMHPHXXK.js";
53
53
  import {
54
54
  require_dc_polyfill
55
- } from "./chunk-FOK7OYFC.js";
55
+ } from "./chunk-TUBSDWFN.js";
56
56
  import {
57
57
  require_token_error
58
- } from "./chunk-I77KUZWY.js";
58
+ } from "./chunk-ZYZYJWTA.js";
59
59
  import {
60
60
  SpanKind,
61
61
  SpanStatusCode,
@@ -65,7 +65,7 @@ import {
65
65
  init_esm,
66
66
  metrics,
67
67
  trace
68
- } from "./chunk-KYZI3B4P.js";
68
+ } from "./chunk-YJUGDZKB.js";
69
69
  import {
70
70
  __commonJS,
71
71
  __esm,
@@ -74,7 +74,7 @@ import {
74
74
  __toCommonJS,
75
75
  __toESM,
76
76
  init_cjs_shims
77
- } from "./chunk-CD4MFL6W.js";
77
+ } from "./chunk-DLHYSQN5.js";
78
78
 
79
79
  // ../../../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/constants.js
80
80
  var require_constants3 = __commonJS({
@@ -40002,11 +40002,11 @@ var require_lib4 = __commonJS({
40002
40002
  init_cjs_shims();
40003
40003
  var parse33 = require_parse3();
40004
40004
  var stringify3 = require_stringify();
40005
- var JSON53 = {
40005
+ var JSON52 = {
40006
40006
  parse: parse33,
40007
40007
  stringify: stringify3
40008
40008
  };
40009
- module.exports = JSON53;
40009
+ module.exports = JSON52;
40010
40010
  }
40011
40011
  });
40012
40012
 
@@ -97074,15 +97074,15 @@ var require_api_files = __commonJS({
97074
97074
  exports.readAppApiYamlFile = readAppApiYamlFile4;
97075
97075
  exports.resolveLanguageSpecificStepContentFromBlocks = resolveLanguageSpecificStepContentFromBlocks2;
97076
97076
  async function writeApiFiles3(...args) {
97077
- const esmFunction = await import("./api-Q37DKMAI.js");
97077
+ const esmFunction = await import("./api-ZIVOTW4P.js");
97078
97078
  return esmFunction.writeApiFiles(...args);
97079
97079
  }
97080
97080
  async function readAppApiYamlFile4(...args) {
97081
- const esmFunction = await import("./api-Q37DKMAI.js");
97081
+ const esmFunction = await import("./api-ZIVOTW4P.js");
97082
97082
  return esmFunction.readAppApiYamlFile(...args);
97083
97083
  }
97084
97084
  async function resolveLanguageSpecificStepContentFromBlocks2(...args) {
97085
- const esmFunction = await import("./api-Q37DKMAI.js");
97085
+ const esmFunction = await import("./api-ZIVOTW4P.js");
97086
97086
  return esmFunction.resolveLanguageSpecificStepContentFromBlocks(...args);
97087
97087
  }
97088
97088
  }
@@ -106718,19 +106718,19 @@ var require_getMachineId = __commonJS({
106718
106718
  if (!getMachineIdImpl) {
106719
106719
  switch (process5.platform) {
106720
106720
  case "darwin":
106721
- getMachineIdImpl = (await import("./getMachineId-darwin-MI6UBPSN.js")).getMachineId;
106721
+ getMachineIdImpl = (await import("./getMachineId-darwin-N4EXBS7B.js")).getMachineId;
106722
106722
  break;
106723
106723
  case "linux":
106724
- getMachineIdImpl = (await import("./getMachineId-linux-N6PVY2K2.js")).getMachineId;
106724
+ getMachineIdImpl = (await import("./getMachineId-linux-CAFQQJ5Q.js")).getMachineId;
106725
106725
  break;
106726
106726
  case "freebsd":
106727
- getMachineIdImpl = (await import("./getMachineId-bsd-ZIPVBNJ2.js")).getMachineId;
106727
+ getMachineIdImpl = (await import("./getMachineId-bsd-MUHND3S7.js")).getMachineId;
106728
106728
  break;
106729
106729
  case "win32":
106730
- getMachineIdImpl = (await import("./getMachineId-win-A2DVJO2W.js")).getMachineId;
106730
+ getMachineIdImpl = (await import("./getMachineId-win-SS6X2DMP.js")).getMachineId;
106731
106731
  break;
106732
106732
  default:
106733
- getMachineIdImpl = (await import("./getMachineId-unsupported-7CAN2IBW.js")).getMachineId;
106733
+ getMachineIdImpl = (await import("./getMachineId-unsupported-PTYGEKV4.js")).getMachineId;
106734
106734
  break;
106735
106735
  }
106736
106736
  }
@@ -115722,19 +115722,19 @@ var require_getMachineId2 = __commonJS({
115722
115722
  if (!getMachineIdImpl) {
115723
115723
  switch (process5.platform) {
115724
115724
  case "darwin":
115725
- getMachineIdImpl = (await import("./getMachineId-darwin-5I2JCJA6.js")).getMachineId;
115725
+ getMachineIdImpl = (await import("./getMachineId-darwin-4REKUPZ4.js")).getMachineId;
115726
115726
  break;
115727
115727
  case "linux":
115728
- getMachineIdImpl = (await import("./getMachineId-linux-BEMG4S4R.js")).getMachineId;
115728
+ getMachineIdImpl = (await import("./getMachineId-linux-ZJMB2K27.js")).getMachineId;
115729
115729
  break;
115730
115730
  case "freebsd":
115731
- getMachineIdImpl = (await import("./getMachineId-bsd-5FRPZYOR.js")).getMachineId;
115731
+ getMachineIdImpl = (await import("./getMachineId-bsd-DH6EQFGC.js")).getMachineId;
115732
115732
  break;
115733
115733
  case "win32":
115734
- getMachineIdImpl = (await import("./getMachineId-win-NVPXKHOU.js")).getMachineId;
115734
+ getMachineIdImpl = (await import("./getMachineId-win-2O7P6RA2.js")).getMachineId;
115735
115735
  break;
115736
115736
  default:
115737
- getMachineIdImpl = (await import("./getMachineId-unsupported-VPYWZLOQ.js")).getMachineId;
115737
+ getMachineIdImpl = (await import("./getMachineId-unsupported-EFIYAQPF.js")).getMachineId;
115738
115738
  break;
115739
115739
  }
115740
115740
  }
@@ -197607,8 +197607,8 @@ var require_get_vercel_oidc_token = __commonJS({
197607
197607
  }
197608
197608
  try {
197609
197609
  const [{ getTokenPayload, isExpired }, { refreshToken }] = await Promise.all([
197610
- await import("./token-util-BLY4CG2I.js"),
197611
- await import("./token-5Z5EWGB5.js")
197610
+ await import("./token-util-XYXJMERC.js"),
197611
+ await import("./token-AV2FXIQU.js")
197612
197612
  ]);
197613
197613
  if (!token2 || isExpired(getTokenPayload(token2))) {
197614
197614
  await refreshToken();
@@ -452999,7 +452999,7 @@ var require_config_loader = __commonJS({
452999
452999
  * @returns {Promise<{createJiti: Function|undefined, version: string;}>} A promise that fulfills with an object containing the jiti module's createJiti function and version.
453000
453000
  */
453001
453001
  static async loadJiti() {
453002
- const { createJiti } = await import("./jiti-CGSBHMWW.js");
453002
+ const { createJiti } = await import("./jiti-ODX7XBMY.js");
453003
453003
  const version4 = require_package5().version;
453004
453004
  return { createJiti, version: version4 };
453005
453005
  }
@@ -453328,7 +453328,7 @@ var require_eslint_helpers = __commonJS({
453328
453328
  }
453329
453329
  async function globMatch({ basePath, pattern }) {
453330
453330
  let found = false;
453331
- const { hfs } = await import("./src-JR56WEXU.js");
453331
+ const { hfs } = await import("./src-ADQL443X.js");
453332
453332
  const patternToUse = normalizeToPosix(path80.relative(basePath, pattern));
453333
453333
  const matcher = new Minimatch2(patternToUse, MINIMATCH_OPTIONS);
453334
453334
  const walkSettings = {
@@ -453368,7 +453368,7 @@ var require_eslint_helpers = __commonJS({
453368
453368
  return new Minimatch2(patternToUse, MINIMATCH_OPTIONS);
453369
453369
  });
453370
453370
  const unmatchedPatterns = /* @__PURE__ */ new Set([...relativeToPatterns.keys()]);
453371
- const { hfs } = await import("./src-JR56WEXU.js");
453371
+ const { hfs } = await import("./src-ADQL443X.js");
453372
453372
  const walk2 = hfs.walk(basePath, {
453373
453373
  async directoryFilter(entry) {
453374
453374
  if (!matchers.some((matcher) => matcher.match(entry.path, true))) {
@@ -509993,7 +509993,7 @@ init_cjs_shims();
509993
509993
  // ../sdk/package.json
509994
509994
  var package_default = {
509995
509995
  name: "@superblocksteam/sdk",
509996
- version: "2.0.130-next.4",
509996
+ version: "2.0.130-next.6",
509997
509997
  description: "Superblocks JS SDK",
509998
509998
  homepage: "https://www.superblocks.com",
509999
509999
  license: "Superblocks Community Software License",
@@ -510371,7 +510371,7 @@ var config = void 0;
510371
510371
  var configured = false;
510372
510372
  var ddTracePromise = void 0;
510373
510373
  async function getDdTrace() {
510374
- ddTracePromise ??= import("./dd-trace-ON23TSXI.js").then((module) => module.default);
510374
+ ddTracePromise ??= import("./dd-trace-JBIRU2ZL.js").then((module) => module.default);
510375
510375
  return await ddTracePromise;
510376
510376
  }
510377
510377
  var deploymentType = (() => {
@@ -514476,7 +514476,7 @@ init_cjs_shims();
514476
514476
 
514477
514477
  // ../../../vite-plugin-file-sync/dist/ai-service/index.js
514478
514478
  init_cjs_shims();
514479
- var import_ai17 = __toESM(require_dist9());
514479
+ var import_ai17 = __toESM(require_dist9(), 1);
514480
514480
  import { createHash as createHash5, randomUUID as randomUUID5 } from "node:crypto";
514481
514481
  import os6 from "node:os";
514482
514482
  import path51 from "node:path";
@@ -518914,7 +518914,7 @@ init_cjs_shims();
518914
518914
  init_cjs_shims();
518915
518915
 
518916
518916
  // ../../../vite-plugin-file-sync/dist/ai-service/index.js
518917
- var import_shared52 = __toESM(require_dist2());
518917
+ var import_shared52 = __toESM(require_dist2(), 1);
518918
518918
 
518919
518919
  // ../../../vite-plugin-file-sync/dist/migration/translation-prompt.js
518920
518920
  init_cjs_shims();
@@ -536211,7 +536211,7 @@ var MAX_ATTRIBUTE_LENGTH = 64e3;
536211
536211
  var LLMObsSpanWriter = null;
536212
536212
  async function loadLLMObsSpanWriter() {
536213
536213
  if (!LLMObsSpanWriter) {
536214
- const module = await import("./spans-W3NTY3CR.js");
536214
+ const module = await import("./spans-MR6H72XO.js");
536215
536215
  LLMObsSpanWriter = module.default;
536216
536216
  }
536217
536217
  return LLMObsSpanWriter;
@@ -545108,23 +545108,15 @@ var codeModeSyncExcludedDirectories = [
545108
545108
  ".superblocks",
545109
545109
  ".git",
545110
545110
  "node_modules",
545111
- "build",
545112
- // `dist` holds `tsc -b` emit output (declarations/JS) for the fullstack app
545113
- // template; it is a regenerated build artifact and must never reach dbfs.
545114
- "dist"
545111
+ "build"
545115
545112
  ];
545116
545113
  var codeModeDownloadExcludedDirectories = [
545117
545114
  ".git",
545118
545115
  "node_modules",
545119
545116
  "build",
545120
- "dist",
545121
545117
  "integration_cache"
545122
545118
  ];
545123
545119
  var codeModeExcludedFiles = [".env", ".npmrc"];
545124
- var TSBUILDINFO_FILE_SUFFIX = ".tsbuildinfo";
545125
- function isCodeModeExcludedFile(name17) {
545126
- return codeModeExcludedFiles.includes(name17) || name17.endsWith(TSBUILDINFO_FILE_SUFFIX);
545127
- }
545128
545120
  function isPersistedChecklistPath(relativePath) {
545129
545121
  return relativePath === CHECKLIST_PERSISTED_RELATIVE_PATH;
545130
545122
  }
@@ -545141,14 +545133,13 @@ function isPersistedChecklistPathOrAncestor(relativePath) {
545141
545133
  return isPersistedChecklistPath(relativePath) || isPersistedChecklistAncestorPath(relativePath);
545142
545134
  }
545143
545135
  function getCodeModeDownloadArchiveGlobPatterns() {
545144
- const tsBuildInfoGlob = `*${TSBUILDINFO_FILE_SUFFIX}`;
545145
545136
  return {
545146
545137
  // readdir-glob only skips recursion for directory matches via `skip`.
545147
545138
  skip: [
545148
545139
  ...codeModeDownloadExcludedDirectories,
545149
545140
  ...codeModeExcludedFiles
545150
545141
  ].flatMap((pattern) => [pattern, `**/${pattern}`]),
545151
- ignore: [...codeModeExcludedFiles, tsBuildInfoGlob].flatMap((pattern) => [
545142
+ ignore: codeModeExcludedFiles.flatMap((pattern) => [
545152
545143
  pattern,
545153
545144
  `**/${pattern}`
545154
545145
  ])
@@ -545946,6 +545937,8 @@ function diffRelativePath(apiName) {
545946
545937
  }
545947
545938
  var migrationVerificationToolFactory = createToolFactory("runMigrationVerification", ({ clark, services }) => ({
545948
545939
  category: ToolCategory.DEBUG,
545940
+ timeoutMs: 3e5,
545941
+ // 5 minutes — verification runs both v2+v3 pipelines which regularly exceed 60s
545949
545942
  getRequiredPermissions: async (input) => {
545950
545943
  const apiName = input?.apiName;
545951
545944
  if (!apiName)
@@ -560428,6 +560421,8 @@ var checkTestApiPermissions = async (services, input, _clark) => {
560428
560421
  var testApiToolFactory = createToolFactory("testApi", ({ clark, services }) => {
560429
560422
  return {
560430
560423
  category: ToolCategory.DEBUG,
560424
+ timeoutMs: 3e5,
560425
+ // 5 minutes — API executions involve LLM/network calls that regularly exceed 60s
560431
560426
  // For SDK APIs, we skip the output limit but will truncate the output we send to the LLM in toModelOutput
560432
560427
  skipOutputLimit: (_output) => !!services.features.sdkApiEnabled,
560433
560428
  description: `
@@ -564832,6 +564827,8 @@ var inputSchema = zod_default.object({
564832
564827
  var executeRequestToIntegrationToolFactory = createToolFactory("executeRequestToIntegration", ({ clark, services }) => {
564833
564828
  return {
564834
564829
  category: ToolCategory.DATA,
564830
+ timeoutMs: 3e5,
564831
+ // 5 minutes — integration requests involve LLM/network calls that regularly exceed 60s
564835
564832
  defaultPermission: PermissionLevel.ALLOW,
564836
564833
  description: `
564837
564834
  Use this tool to make requests to integrations configured in the user's application.
@@ -608415,10 +608412,9 @@ var VirtualFileSystem = class {
608415
608412
  function createDefaultVirtualFileSystem(options8) {
608416
608413
  const logger22 = getLogger3();
608417
608414
  const vfs = new VirtualFileSystem();
608418
- vfs.registerHandler(new ApiFileHandler());
608419
- logger22.info(`[VirtualFileSystem] Registered ApiFileHandler`);
608420
608415
  if (!options8?.sdkApiEnabled) {
608421
608416
  vfs.registerHandler(new ApiFileHandler());
608417
+ logger22.info(`[VirtualFileSystem] Registered ApiFileHandler`);
608422
608418
  }
608423
608419
  const hasKnowledgeManager = !!options8?.knowledgeManager;
608424
608420
  const shouldRegisterSkillHandler = hasKnowledgeManager || options8?.useSystemSkills;
@@ -610291,7 +610287,6 @@ import { exec as exec4 } from "node:child_process";
610291
610287
  import { readFile as fsReadFile2, mkdir as mkdir10, writeFile as writeFile9, access as access3, rm as rm8, stat as stat7, readdir as readdir8 } from "node:fs/promises";
610292
610288
  import * as path39 from "node:path";
610293
610289
  import { promisify as promisify5 } from "node:util";
610294
- var import_json5 = __toESM(require_lib4());
610295
610290
 
610296
610291
  // ../../../../node_modules/.pnpm/package-manager-detector@1.3.0/node_modules/package-manager-detector/dist/index.mjs
610297
610292
  init_cjs_shims();
@@ -611139,12 +611134,9 @@ var AppShell = (() => {
611139
611134
  }
611140
611135
  async runTypecheckRawOutput(abortSignal) {
611141
611136
  const command = process.env.SUPERBLOCKS_SERVER_ENV === "local" ? "pnpm exec tsc" : "npx tsc";
611142
- let args;
611143
- if (await this.appUsesProjectReferences()) {
611144
- const shadowRootConfig = await this.prepareReferenceShadowConfigs();
611145
- args = shadowRootConfig ? ["-b", shadowRootConfig, "--pretty false"] : ["--noEmit", "--pretty false"];
611146
- } else {
611147
- args = [
611137
+ const checkForErrors = new Promise((resolve14) => {
611138
+ exec4([
611139
+ command,
611148
611140
  "--noEmit",
611149
611141
  // speed up marginal typecheck
611150
611142
  "--incremental",
@@ -611154,10 +611146,7 @@ var AppShell = (() => {
611154
611146
  "--noImplicitAny false",
611155
611147
  // cache in separate file to avoid conflicts with vite or user ide
611156
611148
  "--tsBuildInfoFile .superblocks/app.tsbuildinfo"
611157
- ];
611158
- }
611159
- const checkForErrors = new Promise((resolve14) => {
611160
- exec4([command, ...args].join(" "), {
611149
+ ].join(" "), {
611161
611150
  cwd: this.appRootDirPath,
611162
611151
  encoding: "utf-8",
611163
611152
  signal: abortSignal
@@ -611171,108 +611160,6 @@ var AppShell = (() => {
611171
611160
  }
611172
611161
  return output;
611173
611162
  }
611174
- /**
611175
- * Returns true when the app's root tsconfig declares project `references`.
611176
- *
611177
- * Reference apps (the fullstack/3.0 template) must be type-checked with
611178
- * `tsc -b`, which follows references; non-reference apps use the original
611179
- * `tsc --noEmit ...` command. Parsed with JSON5 because tsconfig.json allows
611180
- * comments and trailing commas. On any read/parse failure we fall back to
611181
- * `false` (the proven non-build-mode command): the only templates that use
611182
- * references ship a well-formed tsconfig, and legacy/2.0 apps have none.
611183
- */
611184
- async appUsesProjectReferences() {
611185
- const tsconfigPath = path39.join(this.appRootDirPath, "tsconfig.json");
611186
- try {
611187
- const raw = await fsReadFile2(tsconfigPath, "utf-8");
611188
- const parsed = import_json5.default.parse(raw);
611189
- return Array.isArray(parsed.references) && parsed.references.length > 0;
611190
- } catch (error40) {
611191
- getLogger3().warn("[ai-service] could not determine tsconfig project references; defaulting to non-build-mode typecheck", getErrorMeta2(error40));
611192
- return false;
611193
- }
611194
- }
611195
- /**
611196
- * Generate "shadow" tsconfigs under `.superblocks/tscheck/` that mirror the
611197
- * app's project-reference graph but redirect all emit into that scratch dir,
611198
- * and return the app-root-relative path of the shadow root config to pass to
611199
- * `tsc -b`. Returns `null` on any failure so the caller can fail closed to a
611200
- * non-emitting `tsc --noEmit` (never a plain in-tree `tsc -b`, which would
611201
- * emit into the app tree and break build_debug's read-only contract).
611202
- *
611203
- * Why this exists: `tsc -b` cannot run with `--noEmit` against composite
611204
- * projects that emit declarations (TS6310), and build mode rejects a CLI
611205
- * `--outDir`/`--tsBuildInfoFile` override (TS5094). The only way to relocate
611206
- * emit is per-project config. Each shadow:
611207
- * - `extends` the original config (inheriting include/exclude/paths/etc.,
611208
- * whose relative paths still resolve against the original's directory),
611209
- * - sets `rootDir` to the app root so composite projects don't treat the
611210
- * scratch dir as the source root (TS6059),
611211
- * - overrides `outDir` + `tsBuildInfoFile` into the scratch dir,
611212
- * - rewrites `references` to point at the corresponding shadow configs (so
611213
- * building a referenced project also emits into the scratch dir, never the
611214
- * app tree).
611215
- *
611216
- * `.superblocks/` is already excluded from dbfs sync, the vite watcher, and
611217
- * Clark's context, so confining emit there preserves the read-only contract.
611218
- */
611219
- async prepareReferenceShadowConfigs() {
611220
- try {
611221
- const appRoot = this.appRootDirPath;
611222
- const scratchDir = path39.join(appRoot, ".superblocks", "tscheck");
611223
- const rootConfigAbs = path39.join(appRoot, "tsconfig.json");
611224
- const originals = [];
611225
- const seen = /* @__PURE__ */ new Set();
611226
- const refsByConfig = /* @__PURE__ */ new Map();
611227
- const queue = [rootConfigAbs];
611228
- while (queue.length > 0) {
611229
- const configAbs = queue.shift();
611230
- if (seen.has(configAbs)) {
611231
- continue;
611232
- }
611233
- seen.add(configAbs);
611234
- originals.push(configAbs);
611235
- const parsed = import_json5.default.parse(await fsReadFile2(configAbs, "utf-8"));
611236
- const refs = Array.isArray(parsed.references) ? parsed.references : [];
611237
- const resolvedRefs = [];
611238
- for (const ref2 of refs) {
611239
- if (!ref2?.path) {
611240
- continue;
611241
- }
611242
- const refResolved = path39.resolve(path39.dirname(configAbs), ref2.path);
611243
- const refAbs = refResolved.endsWith(".json") ? refResolved : path39.join(refResolved, "tsconfig.json");
611244
- resolvedRefs.push(refAbs);
611245
- queue.push(refAbs);
611246
- }
611247
- refsByConfig.set(configAbs, resolvedRefs);
611248
- }
611249
- const shadowNameOf = (configAbs) => `${path39.relative(appRoot, configAbs).split(path39.sep).join("__")}.sbcheck.json`;
611250
- const toPosix = (p3) => p3.split(path39.sep).join("/");
611251
- const rootDirRel = toPosix(path39.relative(scratchDir, appRoot)) || ".";
611252
- await mkdir10(scratchDir, { recursive: true });
611253
- await Promise.all(originals.map(async (configAbs) => {
611254
- const shadowName = shadowNameOf(configAbs);
611255
- const emitName = shadowName.replace(/\.json$/, "");
611256
- const shadow = {
611257
- extends: toPosix(path39.relative(scratchDir, configAbs)),
611258
- compilerOptions: {
611259
- rootDir: rootDirRel,
611260
- outDir: `./emit/${emitName}`,
611261
- tsBuildInfoFile: `./${emitName}.tsbuildinfo`
611262
- },
611263
- references: (refsByConfig.get(configAbs) ?? []).map((refAbs) => ({
611264
- path: `./${shadowNameOf(refAbs)}`
611265
- }))
611266
- };
611267
- await writeFile9(path39.join(scratchDir, shadowName), JSON.stringify(shadow, null, 2), "utf-8");
611268
- }));
611269
- const rootShadowAbs = path39.join(scratchDir, shadowNameOf(rootConfigAbs));
611270
- return toPosix(path39.relative(appRoot, rootShadowAbs));
611271
- } catch (error40) {
611272
- getLogger3().warn("[ai-service] could not prepare isolated tsc -b scratch configs; failing closed to non-emitting tsc --noEmit", getErrorMeta2(error40));
611273
- return null;
611274
- }
611275
- }
611276
611163
  async runLinter(filePaths, abortSignal) {
611277
611164
  const absoluteFilePaths = filePaths.map((filePath) => path39.join(this.appRootDirPath, filePath));
611278
611165
  return await this.enqueueFsOperation("runLinter", async () => {
@@ -629237,7 +629124,7 @@ var PlaywrightMcpServerManager = class {
629237
629124
  this.logger.info(`Starting embedded Playwright MCP server: browser=${options8?.browser || "chromium"}, headless=${options8?.headless !== false}`);
629238
629125
  }
629239
629126
  try {
629240
- const { startEmbeddedPlaywrightMcpServer } = await import("./embedded-playwright-mcp-server-TYFFLVKZ.js");
629127
+ const { startEmbeddedPlaywrightMcpServer } = await import("./embedded-playwright-mcp-server-RFH7NKFB.js");
629241
629128
  this.server = await startEmbeddedPlaywrightMcpServer({
629242
629129
  storageStatePath: options8?.storageStatePath,
629243
629130
  jwt: options8?.jwt,
@@ -629366,6 +629253,128 @@ var PlaywrightMcpServerManager = class {
629366
629253
  }
629367
629254
  };
629368
629255
 
629256
+ // ../../../vite-plugin-file-sync/dist/ai-service/migration-auto-dispatch-readiness.js
629257
+ init_cjs_shims();
629258
+ function evaluateMigrationAutoDispatchReadiness(input) {
629259
+ if (!input.appArtifactsReady) {
629260
+ return { ready: false, reason: "app-artifacts-not-ready" };
629261
+ }
629262
+ if (!input.hasConnectedPeer) {
629263
+ return { ready: false, reason: "peer-not-connected" };
629264
+ }
629265
+ if (!input.hasUsableJwt) {
629266
+ return { ready: false, reason: "jwt-unavailable" };
629267
+ }
629268
+ return { ready: true };
629269
+ }
629270
+
629271
+ // ../../../vite-plugin-file-sync/dist/ai-service/migration-llm-config.js
629272
+ init_cjs_shims();
629273
+ var FLAG_KEYS = {
629274
+ chaosOptions: "ui.clark-ai.chaos.options",
629275
+ contextOptionsV2: "ai.context-v2.options",
629276
+ coreModelName: "superblocks.ai.core-model.name",
629277
+ defaultThinkingBudget: "ui.clark-ai.default-thinking-budget",
629278
+ fallbackStrategy: "ai.fallback.strategy",
629279
+ llmProvider: "ui.clark-ai.llm-provider",
629280
+ navigationToolEnabled: "ui.clark-ai.tool.navigation",
629281
+ screenshotToolEnabled: "ai.screenshot-tool.enabled",
629282
+ serverContextManagement: "ai.server-context-management.options",
629283
+ testingEnabled: "ai.playwright-app-test.enabled",
629284
+ unifiedProviderEnabled: "superblocks.ai.provider.unified"
629285
+ };
629286
+ var VALID_CORE_MODELS = [
629287
+ "claude-opus-4-5",
629288
+ "claude-opus-4-6",
629289
+ "claude-opus-4-7",
629290
+ "claude-sonnet-4-5",
629291
+ "claude-sonnet-4-6"
629292
+ ];
629293
+ var DEFAULT_CORE_MODEL = "claude-sonnet-4-5";
629294
+ var isValidProvider = (provider) => provider === "vertex" || provider === "bedrock" || provider === "anthropic" || provider === "snowflake";
629295
+ var normalizeProvider = (provider, defaultProvider) => {
629296
+ if (isValidProvider(provider)) {
629297
+ return provider;
629298
+ }
629299
+ return defaultProvider;
629300
+ };
629301
+ var getDisabledToolsForMigration = (flags) => {
629302
+ const disabledTools = [];
629303
+ if (!flags.isScreenshotToolEnabled) {
629304
+ disabledTools.push("build_captureScreenshot");
629305
+ }
629306
+ if (!flags.isNavigationToolEnabled) {
629307
+ disabledTools.push("build_navigatePreview");
629308
+ }
629309
+ if (!flags.isTestingEnabled) {
629310
+ disabledTools.push("startTestRun");
629311
+ disabledTools.push("endTestRun");
629312
+ disabledTools.push("browser_playwright_action");
629313
+ }
629314
+ return disabledTools;
629315
+ };
629316
+ var readFlag = (flagBootstrap, key2, fallback) => {
629317
+ const raw = flagBootstrap?.[key2];
629318
+ return raw === void 0 ? fallback : raw;
629319
+ };
629320
+ var readOptionalRecord = (flagBootstrap, key2) => {
629321
+ const raw = flagBootstrap?.[key2];
629322
+ if (!raw || typeof raw !== "object" || Array.isArray(raw)) {
629323
+ return void 0;
629324
+ }
629325
+ return raw;
629326
+ };
629327
+ var readFallbackStrategy = (flagBootstrap) => {
629328
+ const raw = flagBootstrap?.[FLAG_KEYS.fallbackStrategy];
629329
+ if (typeof raw === "string" && FALLBACK_STRATEGIES.includes(raw)) {
629330
+ return raw;
629331
+ }
629332
+ return void 0;
629333
+ };
629334
+ function buildServerMigrationLlmConfig(flagBootstrap) {
629335
+ const llmProvider = readFlag(flagBootstrap, FLAG_KEYS.llmProvider, "vertex");
629336
+ const defaultThinkingBudget = readFlag(flagBootstrap, FLAG_KEYS.defaultThinkingBudget, 5e3);
629337
+ const coreModelName = readFlag(flagBootstrap, FLAG_KEYS.coreModelName, DEFAULT_CORE_MODEL);
629338
+ let coreModel = DEFAULT_CORE_MODEL;
629339
+ if (VALID_CORE_MODELS.includes(coreModelName)) {
629340
+ coreModel = coreModelName;
629341
+ } else if (coreModelName !== DEFAULT_CORE_MODEL) {
629342
+ console.warn(`[migration-llm-config] Unrecognized core model "${coreModelName}"; falling back to ${DEFAULT_CORE_MODEL}`);
629343
+ }
629344
+ const unifiedProviderEnabled = readFlag(flagBootstrap, FLAG_KEYS.unifiedProviderEnabled, false);
629345
+ const isNavigationToolEnabled = readFlag(flagBootstrap, FLAG_KEYS.navigationToolEnabled, true);
629346
+ const isScreenshotToolEnabled = readFlag(flagBootstrap, FLAG_KEYS.screenshotToolEnabled, true);
629347
+ const isTestingEnabled = readFlag(flagBootstrap, FLAG_KEYS.testingEnabled, false);
629348
+ const chaosOptionsRaw = readOptionalRecord(flagBootstrap, FLAG_KEYS.chaosOptions);
629349
+ const chaosOptions = chaosOptionsRaw && Object.keys(chaosOptionsRaw).length > 0 ? chaosOptionsRaw : void 0;
629350
+ const migrationFlags = {
629351
+ isChecklistEnabled: true,
629352
+ isNavigationToolEnabled,
629353
+ isScreenshotToolEnabled,
629354
+ isTestingEnabled,
629355
+ isFactsEnabled: false,
629356
+ isAppKnowledgeEnabled: false
629357
+ };
629358
+ return {
629359
+ provider: normalizeProvider(llmProvider, "vertex"),
629360
+ thinkingEnabled: true,
629361
+ thinkingBudgetTokens: String(defaultThinkingBudget),
629362
+ interleavedThinking: true,
629363
+ disabledTools: getDisabledToolsForMigration({
629364
+ isNavigationToolEnabled,
629365
+ isScreenshotToolEnabled,
629366
+ isTestingEnabled
629367
+ }),
629368
+ contextOptionsV2: readOptionalRecord(flagBootstrap, FLAG_KEYS.contextOptionsV2),
629369
+ serverContextManagement: readOptionalRecord(flagBootstrap, FLAG_KEYS.serverContextManagement),
629370
+ chaosOptions,
629371
+ coreModel,
629372
+ unifiedProviderEnabled,
629373
+ fallbackStrategy: readFallbackStrategy(flagBootstrap),
629374
+ flags: migrationFlags
629375
+ };
629376
+ }
629377
+
629369
629378
  // ../../../vite-plugin-file-sync/dist/ai-service/policy-gate-step.js
629370
629379
  init_cjs_shims();
629371
629380
  var HIDDEN_TOOLS = /* @__PURE__ */ new Set(["reportReviewRun"]);
@@ -629741,6 +629750,40 @@ var RequestDeduplicator = class {
629741
629750
  }
629742
629751
  };
629743
629752
 
629753
+ // ../../../vite-plugin-file-sync/dist/ai-service/resolve-generation-state-for-ui.js
629754
+ init_cjs_shims();
629755
+ var TERMINAL_FSM = ["Idle", "AwaitingUser", "Dead"];
629756
+ var ACTIVE_FSM = [
629757
+ "AgentPlanning",
629758
+ "LLMGenerating",
629759
+ "PostProcessing",
629760
+ "RuntimeReviewing"
629761
+ ];
629762
+ var ACTIVE_CACHE = [
629763
+ AiGenerationState.GENERATING,
629764
+ AiGenerationState.DEBUGGING,
629765
+ AiGenerationState.SUMMARIZING
629766
+ ];
629767
+ function resolveGenerationStateForUi(input) {
629768
+ const { clarkState, lastGenerationState: cache3 } = input;
629769
+ if (cache3?.state === AiGenerationState.CANCELLED) {
629770
+ return cache3;
629771
+ }
629772
+ if (TERMINAL_FSM.includes(clarkState)) {
629773
+ if (cache3 && ACTIVE_CACHE.includes(cache3.state)) {
629774
+ return { state: AiGenerationState.IDLE };
629775
+ }
629776
+ return cache3;
629777
+ }
629778
+ if (ACTIVE_FSM.includes(clarkState)) {
629779
+ if (cache3 && ACTIVE_CACHE.includes(cache3.state)) {
629780
+ return cache3;
629781
+ }
629782
+ return cache3;
629783
+ }
629784
+ return cache3;
629785
+ }
629786
+
629744
629787
  // ../../../vite-plugin-file-sync/dist/ai-service/state-machine/handlers/agent-planning.js
629745
629788
  init_cjs_shims();
629746
629789
  var import_shared46 = __toESM(require_dist2());
@@ -636279,6 +636322,56 @@ ${stderrTail}` : void 0
636279
636322
  });
636280
636323
  }
636281
636324
 
636325
+ // ../../../vite-plugin-file-sync/dist/ai-service/util/inference-jwt.js
636326
+ init_cjs_shims();
636327
+ function decodeJwtPayload(jwt2) {
636328
+ try {
636329
+ const parts = jwt2.split(".");
636330
+ if (parts.length !== 3 || !parts[1]) {
636331
+ return void 0;
636332
+ }
636333
+ return JSON.parse(Buffer.from(parts[1], "base64").toString());
636334
+ } catch {
636335
+ return void 0;
636336
+ }
636337
+ }
636338
+ function isUsableMigrationInferenceJwt(jwt2) {
636339
+ if (!jwt2) {
636340
+ return false;
636341
+ }
636342
+ const payload = decodeJwtPayload(jwt2);
636343
+ if (!payload) {
636344
+ return false;
636345
+ }
636346
+ if (payload.scope === "apps:update") {
636347
+ return false;
636348
+ }
636349
+ return true;
636350
+ }
636351
+ function describeMigrationInferenceJwt(jwt2) {
636352
+ if (!jwt2) {
636353
+ return {
636354
+ hasFederatedToken: false,
636355
+ present: false,
636356
+ usable: false
636357
+ };
636358
+ }
636359
+ const payload = decodeJwtPayload(jwt2);
636360
+ if (!payload) {
636361
+ return {
636362
+ hasFederatedToken: false,
636363
+ present: true,
636364
+ usable: false
636365
+ };
636366
+ }
636367
+ return {
636368
+ hasFederatedToken: Boolean(payload.federated_token),
636369
+ present: true,
636370
+ scope: payload.scope,
636371
+ usable: isUsableMigrationInferenceJwt(jwt2)
636372
+ };
636373
+ }
636374
+
636282
636375
  // ../../../vite-plugin-file-sync/dist/ai-service/util/json-stream-parser.js
636283
636376
  init_cjs_shims();
636284
636377
  function createJsonStreamParser(key2 = "result") {
@@ -636758,6 +636851,9 @@ var AiService = class extends import_shared52.TracedEventEmitter {
636758
636851
  try {
636759
636852
  this.tokenManagerJwt = event.token;
636760
636853
  this.getLogger().info(`[ai-service] token updated via tokenManager`);
636854
+ if (event.token && isUsableMigrationInferenceJwt(event.token)) {
636855
+ this.updateClarkJwt(event.token);
636856
+ }
636761
636857
  } catch (err) {
636762
636858
  console.error("[ai-service] tokenUpdated listener threw", err);
636763
636859
  }
@@ -636855,9 +636951,14 @@ var AiService = class extends import_shared52.TracedEventEmitter {
636855
636951
  * Updates the JWT in Clark context
636856
636952
  */
636857
636953
  updateClarkJwt(jwt2) {
636858
- if (jwt2) {
636859
- this.clark.updateContext({ jwt: jwt2 });
636954
+ const jwtDetails = describeMigrationInferenceJwt(jwt2);
636955
+ if (!jwt2 || !jwtDetails.usable) {
636956
+ return;
636860
636957
  }
636958
+ this.clark.updateContext({ jwt: jwt2 });
636959
+ const llmConfig = this.lastMigrationTurnCredentials?.llmConfig ?? this.clark.context.llmConfig ?? buildServerMigrationLlmConfig(this.config.flagBootstrap);
636960
+ this.storeMigrationTurnCredentials(jwt2, llmConfig);
636961
+ this.tryAutoDispatchMigrationTurnIfReady();
636861
636962
  }
636862
636963
  // ===== Recording API =====
636863
636964
  /**
@@ -637227,6 +637328,116 @@ var AiService = class extends import_shared52.TracedEventEmitter {
637227
637328
  }
637228
637329
  });
637229
637330
  }
637331
+ this.tryAutoDispatchMigrationTurnIfReady();
637332
+ }
637333
+ migrationAppArtifactsReady = false;
637334
+ migrationAutoDispatchPending = false;
637335
+ migrationAutoDispatchInFlight = false;
637336
+ lastMigrationTurnCredentials;
637337
+ hasInitialPendingMigrationWork(items) {
637338
+ const pendingItems = items.filter((item) => isApiMigrationOrigin(item.origin) && (item.status === "pending" || item.status === "in_progress"));
637339
+ if (pendingItems.length === 0) {
637340
+ return false;
637341
+ }
637342
+ return !pendingItems.some((item) => item.lastFailureReason);
637343
+ }
637344
+ resolveMigrationTurnCredentials() {
637345
+ const cachedJwt = this.lastMigrationTurnCredentials?.jwt;
637346
+ const inferenceJwt = this.getInferenceJwt();
637347
+ const jwt2 = (cachedJwt && isUsableMigrationInferenceJwt(cachedJwt) ? cachedJwt : void 0) ?? (inferenceJwt && isUsableMigrationInferenceJwt(inferenceJwt) ? inferenceJwt : void 0);
637348
+ const llmConfig = this.lastMigrationTurnCredentials?.llmConfig ?? this.clark.context.llmConfig ?? buildServerMigrationLlmConfig(this.config.flagBootstrap);
637349
+ return { jwt: jwt2, llmConfig };
637350
+ }
637351
+ storeMigrationTurnCredentials(jwt2, llmConfig) {
637352
+ const nextJwt = jwt2 && jwt2.length > 0 ? jwt2 : this.lastMigrationTurnCredentials?.jwt;
637353
+ this.lastMigrationTurnCredentials = {
637354
+ ...nextJwt ? { jwt: nextJwt } : {},
637355
+ llmConfig
637356
+ };
637357
+ if (jwt2 && jwt2.length > 0 && !this.getInferenceJwt()) {
637358
+ this.clark.updateContext({ jwt: jwt2 });
637359
+ }
637360
+ }
637361
+ isRetriableMigrationAutoDispatchFailure(reason) {
637362
+ if (!reason) {
637363
+ return false;
637364
+ }
637365
+ return reason.startsWith("busy:") || reason === "pending-tool-permission" || reason === "awaiting-interactive-response";
637366
+ }
637367
+ /**
637368
+ * Called by dev startup once DBFS download (or upload-first local tree)
637369
+ * has finished so migration scratch/checklist files are on disk.
637370
+ */
637371
+ notifyMigrationAppArtifactsReady() {
637372
+ if (this.migrationAppArtifactsReady) {
637373
+ return;
637374
+ }
637375
+ this.migrationAppArtifactsReady = true;
637376
+ this.tryAutoDispatchMigrationTurnIfReady();
637377
+ }
637378
+ tryAutoDispatchMigrationTurnIfReady() {
637379
+ if (this.migrationAutoDispatchInFlight) {
637380
+ return;
637381
+ }
637382
+ const { jwt: jwt2 } = this.resolveMigrationTurnCredentials();
637383
+ const readiness = evaluateMigrationAutoDispatchReadiness({
637384
+ appArtifactsReady: this.migrationAppArtifactsReady,
637385
+ hasConnectedPeer: this.hasConnectedPeer(),
637386
+ hasUsableJwt: Boolean(jwt2)
637387
+ });
637388
+ if (!readiness.ready) {
637389
+ if (readiness.reason === "jwt-unavailable") {
637390
+ this.migrationAutoDispatchPending = true;
637391
+ }
637392
+ return;
637393
+ }
637394
+ void this.maybeAutoDispatchMigrationTurn().catch((error40) => {
637395
+ this.getLogger().error("[ai-service] Migration auto-dispatch failed", getErrorMeta2(error40));
637396
+ });
637397
+ }
637398
+ /**
637399
+ * Attempts to start the initial post-flip migration turn without UI
637400
+ * involvement. Skips user-initiated focused-debug retries (items with
637401
+ * `lastFailureReason`) and defers when JWT is unavailable.
637402
+ */
637403
+ async maybeAutoDispatchMigrationTurn() {
637404
+ if (this.migrationAutoDispatchInFlight) {
637405
+ return;
637406
+ }
637407
+ this.migrationAutoDispatchInFlight = true;
637408
+ try {
637409
+ const checklist = await readPersistedChecklist(this.appRootDirPath);
637410
+ if (!checklist) {
637411
+ this.migrationAutoDispatchPending = false;
637412
+ return;
637413
+ }
637414
+ if (!this.hasInitialPendingMigrationWork(checklist.items)) {
637415
+ this.migrationAutoDispatchPending = false;
637416
+ return;
637417
+ }
637418
+ const { jwt: jwt2, llmConfig } = this.resolveMigrationTurnCredentials();
637419
+ if (!jwt2) {
637420
+ this.migrationAutoDispatchPending = true;
637421
+ return;
637422
+ }
637423
+ const result = await this.handleAiTriggerMigrationTurn({
637424
+ jwt: jwt2,
637425
+ llmConfig,
637426
+ triggeredBy: "auto-dispatch"
637427
+ });
637428
+ if (result.dispatched) {
637429
+ this.migrationAutoDispatchPending = false;
637430
+ this.getLogger().info("[ai-service] Auto-dispatched post-flip migration turn");
637431
+ } else if (result.reason === "already-triggered") {
637432
+ this.migrationAutoDispatchPending = false;
637433
+ } else if (this.isRetriableMigrationAutoDispatchFailure(result.reason)) {
637434
+ this.migrationAutoDispatchPending = true;
637435
+ } else {
637436
+ this.migrationAutoDispatchPending = false;
637437
+ }
637438
+ } finally {
637439
+ this.migrationAutoDispatchInFlight = false;
637440
+ }
637230
637441
  }
637231
637442
  /**
637232
637443
  * Remove the integration metadata cache for this session.
@@ -637538,12 +637749,16 @@ var AiService = class extends import_shared52.TracedEventEmitter {
637538
637749
  * per ai-service lifetime. The disk checklist is the recovery source of
637539
637750
  * truth across process restarts.
637540
637751
  *
637541
- * Expected caller: the UI issues a dedicated RPC (see
637542
- * v1.ai.triggerMigrationTurn) once it observes the post-flip state via
637543
- * /sb-migration-status. jwt + llmConfig come from the UI's normal auth
637544
- * flow.
637752
+ * Primary auto-trigger: readiness gate (`notifyMigrationAppArtifactsReady`,
637753
+ * `handleUserConnected`, `updateClarkJwt`)
637754
+ * `tryAutoDispatchMigrationTurnIfReady` `maybeAutoDispatchMigrationTurn`.
637755
+ * Backup caller: the UI RPC (see v1.ai.triggerMigrationTurn) once it
637756
+ * observes the post-flip state via /sb-migration-status.
637757
+ * User retry after unresolved failures: UI RPC with
637758
+ * `retryMode: "focused-debug"` after /sb-migration-retry-unresolved.
637545
637759
  */
637546
637760
  async handleAiTriggerMigrationTurn(request) {
637761
+ this.storeMigrationTurnCredentials(request.jwt, request.llmConfig);
637547
637762
  if (request.retryMode === "focused-debug") {
637548
637763
  this.migrationTurnTriggered = false;
637549
637764
  }
@@ -637564,22 +637779,25 @@ var AiService = class extends import_shared52.TracedEventEmitter {
637564
637779
  return { dispatched: false, reason: "awaiting-interactive-response" };
637565
637780
  }
637566
637781
  }
637782
+ this.migrationTurnTriggered = true;
637567
637783
  const checklist = await readPersistedChecklist(this.appRootDirPath);
637568
637784
  if (!checklist) {
637785
+ this.migrationTurnTriggered = false;
637569
637786
  this.getLogger().warn("[ai-service] Migration checklist not found or unreadable; skipping translation turn");
637570
637787
  return { dispatched: false, reason: "checklist-unavailable" };
637571
637788
  }
637572
637789
  const pendingSeedApiItems = checklist.items.filter((item) => API_MIGRATION_ORIGINS.has(item.origin) && (item.status === "pending" || item.status === "in_progress"));
637573
637790
  const pendingSeedApiCount = pendingSeedApiItems.length;
637574
637791
  if (pendingSeedApiCount === 0) {
637792
+ this.migrationTurnTriggered = false;
637575
637793
  return { dispatched: false, reason: "no-pending-items" };
637576
637794
  }
637577
637795
  const quota = await this.checkAiQuota(request.jwt);
637578
637796
  if (!quota.allowed) {
637797
+ this.migrationTurnTriggered = false;
637579
637798
  this.getLogger().warn("[ai-service] Skipping v2\u2192v3 migration turn \u2014 AI quota exceeded", { reason: quota.reason });
637580
637799
  return { dispatched: false, reason: "quota-exceeded" };
637581
637800
  }
637582
- this.migrationTurnTriggered = true;
637583
637801
  this.appShell.setApiHandlerEnabled(false);
637584
637802
  this.getLogger().info(`[ai-service] Dispatching internal v2\u2192v3 migration turn for ${pendingSeedApiCount} API(s) (API VFS projection disabled, retryMode=${request.retryMode ?? "none"})`);
637585
637803
  const prompt = buildTranslationPrompt({
@@ -637600,7 +637818,8 @@ var AiService = class extends import_shared52.TracedEventEmitter {
637600
637818
  migrationSource: "superblocks_2_0",
637601
637819
  origin: "app_migration",
637602
637820
  pendingSeedApiCount,
637603
- retryMode: request.retryMode ?? "none"
637821
+ retryMode: request.retryMode ?? "none",
637822
+ triggeredBy: request.triggeredBy ?? (request.retryMode === "focused-debug" ? "focused-debug" : "ui-rpc")
637604
637823
  };
637605
637824
  this.clark.updateContext((context2) => ({
637606
637825
  ...context2,
@@ -637832,6 +638051,7 @@ var AiService = class extends import_shared52.TracedEventEmitter {
637832
638051
  }
637833
638052
  async handleAiGenerate(request) {
637834
638053
  this.getLogger().info(`[ai-service] handleAiGenerate: peerId=${this.stablePeer.peerId ?? "unknown"}`);
638054
+ this.storeMigrationTurnCredentials(request.jwt, request.llmConfig);
637835
638055
  if (this.clark.state === ClarkStateNames.Dead) {
637836
638056
  throw new Error("Service is unavailable");
637837
638057
  }
@@ -638874,6 +639094,12 @@ ${request.prompt}`;
638874
639094
  }
638875
639095
  return `Continue with the task using alternative approaches. The tool ${toolName} was denied permission.`;
638876
639096
  }
639097
+ resolveGenerationStateForUi() {
639098
+ return resolveGenerationStateForUi({
639099
+ clarkState: this.clark.state,
639100
+ lastGenerationState: this.clark.context.lastGenerationState
639101
+ });
639102
+ }
638877
639103
  handleUserConnected(peer, peerId) {
638878
639104
  const existingPeerId = this.stablePeer.peerId;
638879
639105
  this.getLogger().info(`[ai-service] handleUserConnected: peerId=${peerId}`);
@@ -638892,9 +639118,10 @@ ${request.prompt}`;
638892
639118
  this.authenticatedPeerId = void 0;
638893
639119
  this.authenticatedPeerUserId = void 0;
638894
639120
  }
638895
- if (this.clark.context.lastGenerationState) {
638896
- this.getLogger().info(`[ai-service] Syncing generation state on reconnect: ${this.clark.context.lastGenerationState.state}`);
638897
- catchBackgroundPeerDisconnect(peer.call.aiSetGenerationState(this.clark.context.lastGenerationState), "generation state reconnect push");
639121
+ const generationState = this.resolveGenerationStateForUi();
639122
+ if (generationState) {
639123
+ this.getLogger().info(`[ai-service] Syncing generation state on reconnect: ${generationState.state}`);
639124
+ catchBackgroundPeerDisconnect(peer.call.aiSetGenerationState(generationState), "generation state reconnect push");
638898
639125
  }
638899
639126
  if (this.clark.context.pendingToolPermissionRequest) {
638900
639127
  const request = this.clark.context.pendingToolPermissionRequest;
@@ -638927,6 +639154,7 @@ ${request.prompt}`;
638927
639154
  if (this.taskStore) {
638928
639155
  this.pendingTaskResyncPeerIds.add(peerId);
638929
639156
  }
639157
+ this.tryAutoDispatchMigrationTurnIfReady();
638930
639158
  }
638931
639159
  /**
638932
639160
  * Per-session set of peer IDs that connected since their last task
@@ -639678,9 +639906,9 @@ ${request.prompt}`;
639678
639906
  // ../../../vite-plugin-file-sync/dist/sync-service/index.js
639679
639907
  init_cjs_shims();
639680
639908
  import { normalizePath as normalizePath8 } from "vite";
639681
- var import_shared58 = __toESM(require_dist2());
639682
- var import_shared59 = __toESM(require_dist2());
639683
- var import_shared60 = __toESM(require_dist2());
639909
+ var import_shared58 = __toESM(require_dist2(), 1);
639910
+ var import_shared59 = __toESM(require_dist2(), 1);
639911
+ var import_shared60 = __toESM(require_dist2(), 1);
639684
639912
 
639685
639913
  // ../../../vite-plugin-file-sync/dist/errors/make-server-error.js
639686
639914
  init_cjs_shims();
@@ -639767,7 +639995,7 @@ async function* listLocalDirectory(localDirectoryPath, rootDirectoryPath = local
639767
639995
  if (normalizedRelativePath.startsWith(".superblocks/") && !isPersistedSuperblocksFile(normalizedRelativePath)) {
639768
639996
  continue;
639769
639997
  }
639770
- if (isCodeModeExcludedFile(name17)) {
639998
+ if (codeModeExcludedFiles.includes(name17)) {
639771
639999
  continue;
639772
640000
  }
639773
640001
  try {
@@ -641274,8 +641502,8 @@ var SyncService = class extends import_shared58.TracedEventEmitter {
641274
641502
 
641275
641503
  // ../../../vite-plugin-file-sync/dist/lock-service/index.js
641276
641504
  init_cjs_shims();
641277
- var import_shared61 = __toESM(require_dist2());
641278
- var import_shared62 = __toESM(require_dist2());
641505
+ var import_shared61 = __toESM(require_dist2(), 1);
641506
+ var import_shared62 = __toESM(require_dist2(), 1);
641279
641507
 
641280
641508
  // ../../../vite-plugin-file-sync/dist/lock-service/activity-tracker.js
641281
641509
  init_cjs_shims();
@@ -642970,7 +643198,8 @@ var SocketManager = class extends import_shared70.TracedEventEmitter {
642970
643198
  force: request?.force
642971
643199
  });
642972
643200
  return {
642973
- messages: messages3 ?? []
643201
+ messages: messages3 ?? [],
643202
+ generationState: aiService?.resolveGenerationStateForUi()
642974
643203
  };
642975
643204
  }
642976
643205
  ],
@@ -643073,6 +643302,11 @@ var SocketManager = class extends import_shared70.TracedEventEmitter {
643073
643302
  getLogger3().info(`Clark log forwarding ${request.enabled ? "enabled" : "disabled"}`);
643074
643303
  }
643075
643304
  ],
643305
+ primeClarkInferenceJwt: [
643306
+ async (request) => {
643307
+ aiService?.updateClarkJwt(request.jwt);
643308
+ }
643309
+ ],
643076
643310
  gitCommitLocal: [
643077
643311
  async (request) => runWithGitLock(async () => {
643078
643312
  try {
@@ -643765,7 +643999,7 @@ var import_util37 = __toESM(require_dist3());
643765
643999
  // ../../../vite-plugin-file-sync/dist/codegen.js
643766
644000
  init_cjs_shims();
643767
644001
  var t7 = __toESM(require_lib8());
643768
- var import_json52 = __toESM(require_lib4());
644002
+ var import_json5 = __toESM(require_lib4());
643769
644003
 
643770
644004
  // ../../../vite-plugin-file-sync/dist/parsing/type-parsing-registry.js
643771
644005
  init_cjs_shims();
@@ -644065,7 +644299,7 @@ function getPropertyExpression(info, fieldName = "") {
644065
644299
  } else if (type === "COMPUTED" && typeof value2 === "string") {
644066
644300
  let parsed;
644067
644301
  try {
644068
- parsed = import_json52.default.parse(value2);
644302
+ parsed = import_json5.default.parse(value2);
644069
644303
  return getPropertyExpression(Property.Static(parsed), fieldName);
644070
644304
  } catch (_e2) {
644071
644305
  }
@@ -666003,7 +666237,7 @@ var parseYaml3;
666003
666237
  async function loadYaml(file2) {
666004
666238
  const content18 = await read_file_default(file2);
666005
666239
  if (!parseYaml3) {
666006
- ({ __parsePrettierYamlConfig: parseYaml3 } = await import("./yaml-L2ACLQKF.js"));
666240
+ ({ __parsePrettierYamlConfig: parseYaml3 } = await import("./yaml-EEILP6LZ.js"));
666007
666241
  }
666008
666242
  try {
666009
666243
  return parseYaml3(content18);
@@ -671397,7 +671631,7 @@ function createParsersAndPrinters(modules) {
671397
671631
  }
671398
671632
  var estreePlugin = createParsersAndPrinters([
671399
671633
  {
671400
- importPlugin: () => import("./estree-YDAKYBBH.js"),
671634
+ importPlugin: () => import("./estree-2G5VFWVN.js"),
671401
671635
  printers: ["estree", "estree-json"]
671402
671636
  }
671403
671637
  ]);
@@ -671421,11 +671655,11 @@ var languages = [
671421
671655
  ];
671422
671656
  var { parsers: parsers12, printers } = createParsersAndPrinters([
671423
671657
  {
671424
- importPlugin: () => import("./acorn-6TUQZGW5.js"),
671658
+ importPlugin: () => import("./acorn-YQQUP7Y5.js"),
671425
671659
  parsers: ["acorn", "espree"]
671426
671660
  },
671427
671661
  {
671428
- importPlugin: () => import("./angular-H5BTDPB5.js"),
671662
+ importPlugin: () => import("./angular-C6KKVS5D.js"),
671429
671663
  parsers: [
671430
671664
  "__ng_action",
671431
671665
  "__ng_binding",
@@ -671434,7 +671668,7 @@ var { parsers: parsers12, printers } = createParsersAndPrinters([
671434
671668
  ]
671435
671669
  },
671436
671670
  {
671437
- importPlugin: () => import("./babel-OS7UVQCO.js"),
671671
+ importPlugin: () => import("./babel-HUHW5TKP.js"),
671438
671672
  parsers: [
671439
671673
  "babel",
671440
671674
  "babel-flow",
@@ -671453,44 +671687,44 @@ var { parsers: parsers12, printers } = createParsersAndPrinters([
671453
671687
  ]
671454
671688
  },
671455
671689
  {
671456
- importPlugin: () => import("./flow-5FU6LHW6.js"),
671690
+ importPlugin: () => import("./flow-4J5UW7NH.js"),
671457
671691
  parsers: ["flow"]
671458
671692
  },
671459
671693
  {
671460
- importPlugin: () => import("./glimmer-QLDWRFB5.js"),
671694
+ importPlugin: () => import("./glimmer-2OXBJ7XH.js"),
671461
671695
  parsers: ["glimmer"],
671462
671696
  printers: ["glimmer"]
671463
671697
  },
671464
671698
  {
671465
- importPlugin: () => import("./graphql-AZ64G2F4.js"),
671699
+ importPlugin: () => import("./graphql-DK45QNIQ.js"),
671466
671700
  parsers: ["graphql"],
671467
671701
  printers: ["graphql"]
671468
671702
  },
671469
671703
  {
671470
- importPlugin: () => import("./html-4CGZJTM7.js"),
671704
+ importPlugin: () => import("./html-AFHMWCZ2.js"),
671471
671705
  parsers: ["html", "angular", "vue", "lwc", "mjml"],
671472
671706
  printers: ["html"]
671473
671707
  },
671474
671708
  {
671475
- importPlugin: () => import("./markdown-QG7C5ONF.js"),
671709
+ importPlugin: () => import("./markdown-QXFHC3SV.js"),
671476
671710
  parsers: ["markdown", "mdx", "remark"],
671477
671711
  printers: ["mdast"]
671478
671712
  },
671479
671713
  {
671480
- importPlugin: () => import("./meriyah-ELNL6ITK.js"),
671714
+ importPlugin: () => import("./meriyah-Q2I3F3DF.js"),
671481
671715
  parsers: ["meriyah"]
671482
671716
  },
671483
671717
  {
671484
- importPlugin: () => import("./postcss-3SXZ7DQY.js"),
671718
+ importPlugin: () => import("./postcss-TE4MN4LR.js"),
671485
671719
  parsers: ["css", "less", "scss"],
671486
671720
  printers: ["postcss"]
671487
671721
  },
671488
671722
  {
671489
- importPlugin: () => import("./typescript-G2O3UATZ.js"),
671723
+ importPlugin: () => import("./typescript-XCQPLCVD.js"),
671490
671724
  parsers: ["typescript"]
671491
671725
  },
671492
671726
  {
671493
- importPlugin: () => import("./yaml-L2ACLQKF.js"),
671727
+ importPlugin: () => import("./yaml-EEILP6LZ.js"),
671494
671728
  parsers: ["yaml"],
671495
671729
  printers: ["yaml"]
671496
671730
  }
@@ -689554,7 +689788,7 @@ async function handleLockConflict(error40, lockSvc, span, logger22) {
689554
689788
  }
689555
689789
  async function readPkgJson(cwd) {
689556
689790
  try {
689557
- const { readPackage } = await import("./read-pkg-YSNZMYOE.js");
689791
+ const { readPackage } = await import("./read-pkg-GXTAI2HX.js");
689558
689792
  return await readPackage({ cwd });
689559
689793
  } catch {
689560
689794
  return null;
@@ -689939,6 +690173,7 @@ async function dev(options8) {
689939
690173
  logger: logger22,
689940
690174
  tokenManager,
689941
690175
  features: AiServiceFeatureFlags.create(flagBootstrap),
690176
+ flagBootstrap,
689942
690177
  pluginExecutionVersions: currentUser.organizations[0].pluginExecutionVersions
689943
690178
  });
689944
690179
  await tracer4.startActiveSpan("aiServiceInitialize", async (span) => {
@@ -689948,6 +690183,9 @@ async function dev(options8) {
689948
690183
  span.end();
689949
690184
  }
689950
690185
  });
690186
+ if (uploadFirst) {
690187
+ aiService?.notifyMigrationAppArtifactsReady();
690188
+ }
689951
690189
  logger22.info(`[dev-startup] Starting git sync (${downloadFirst ? "download" : "upload"}-first) on branch '${activeDbfsBranchName}'`);
689952
690190
  await tracer4.startActiveSpan("gitSync", async (gitSpan) => {
689953
690191
  try {
@@ -690060,6 +690298,9 @@ async function dev(options8) {
690060
690298
  } else if (downloadFirst && isSynced) {
690061
690299
  logger22.info("[dev-startup] Skipping download, already in sync");
690062
690300
  }
690301
+ if (downloadFirst) {
690302
+ aiService?.notifyMigrationAppArtifactsReady();
690303
+ }
690063
690304
  await stripResolvedFromLockfile(cwd);
690064
690305
  if (!aiService) {
690065
690306
  logger22.info("[home-npmrc] skipped: AiService unavailable at startup");
@@ -691278,4 +691519,4 @@ serve-static/index.js:
691278
691519
  chokidar/esm/index.js:
691279
691520
  (*! chokidar - MIT License (c) 2012 Paul Miller (paulmillr.com) *)
691280
691521
  */
691281
- //# sourceMappingURL=chunk-RZG7KH3D.js.map
691522
+ //# sourceMappingURL=chunk-4TSW5GMJ.js.map