@superblocksteam/cli 2.0.130-next.4 → 2.0.130-next.5
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.
- package/README.md +1 -1
- package/dist/{acorn-6TUQZGW5.js → acorn-2OSOKZWW.js} +3 -3
- package/dist/{angular-H5BTDPB5.js → angular-BDYQKWE3.js} +3 -3
- package/dist/{api-Q37DKMAI.js → api-J3L5K2HK.js} +4 -4
- package/dist/{babel-OS7UVQCO.js → babel-3PELWUVK.js} +3 -3
- package/dist/{chunk-GMIX6OEX.js → chunk-3T6ENDIX.js} +4 -4
- package/dist/{chunk-3T52OK3W.js → chunk-55PJWILX.js} +3 -3
- package/dist/{chunk-KYZI3B4P.js → chunk-7XXSEGNR.js} +3 -3
- package/dist/{chunk-RZG7KH3D.js → chunk-AHLM5SRP.js} +432 -197
- package/dist/{chunk-RZG7KH3D.js.map → chunk-AHLM5SRP.js.map} +1 -1
- package/dist/{chunk-CD4MFL6W.js → chunk-CO52VRGR.js} +2 -2
- package/dist/{chunk-I77KUZWY.js → chunk-D5Z7UTWO.js} +3 -3
- package/dist/{chunk-QBKCWA7K.js → chunk-EGZIHBTC.js} +3 -3
- package/dist/{chunk-Z7ZZ6CYR.js → chunk-F3XAMIOE.js} +6 -6
- package/dist/{chunk-WZEOVFB6.js → chunk-FVD74PEE.js} +3 -3
- package/dist/{chunk-2AXZZ7LJ.js → chunk-GYNICLGQ.js} +4 -4
- package/dist/{chunk-WDEMQVNP.js → chunk-K55X2G3W.js} +4 -4
- package/dist/{chunk-KUKTLLGB.js → chunk-LE7FUEI3.js} +3 -3
- package/dist/{chunk-PRWDU5AW.js → chunk-M3ZCS2YS.js} +3 -3
- package/dist/{chunk-54JUGZZZ.js → chunk-MC6ZIGGW.js} +6 -6
- package/dist/{chunk-5AZNUXPQ.js → chunk-MFIE2SBZ.js} +4 -4
- package/dist/{chunk-FOK7OYFC.js → chunk-P3CFWMAL.js} +3 -3
- package/dist/{chunk-TM57HQX2.js → chunk-SQQKUSPT.js} +3 -3
- package/dist/{chunk-3YEIZG3Y.js → chunk-WU3XTLMT.js} +3 -3
- package/dist/{cli-truncate-QRSZBGQX.js → cli-truncate-OU57Y6ZO.js} +5 -5
- package/dist/commands/dev-parent.js +2 -2
- package/dist/{dd-trace-ON23TSXI.js → dd-trace-2E22MTTE.js} +7 -7
- package/dist/{dist-PYASEQKJ.js → dist-2NILTE63.js} +13 -13
- package/dist/{embedded-playwright-mcp-server-TYFFLVKZ.js → embedded-playwright-mcp-server-YCSIDXHC.js} +3 -3
- package/dist/{enquirer-LYUVC6SB.js → enquirer-CCOGMTBL.js} +4 -4
- package/dist/{estree-YDAKYBBH.js → estree-3YU2SNQQ.js} +3 -3
- package/dist/{flow-5FU6LHW6.js → flow-GI4X5GOZ.js} +3 -3
- package/dist/{getMachineId-bsd-ZIPVBNJ2.js → getMachineId-bsd-F53U2NIB.js} +5 -5
- package/dist/{getMachineId-bsd-5FRPZYOR.js → getMachineId-bsd-U724ZXVC.js} +5 -5
- package/dist/{getMachineId-darwin-MI6UBPSN.js → getMachineId-darwin-GNBFBPHT.js} +5 -5
- package/dist/{getMachineId-darwin-5I2JCJA6.js → getMachineId-darwin-IF4YMPIE.js} +5 -5
- package/dist/{getMachineId-linux-BEMG4S4R.js → getMachineId-linux-EAE4JILP.js} +4 -4
- package/dist/{getMachineId-linux-N6PVY2K2.js → getMachineId-linux-OEKBX7KT.js} +4 -4
- package/dist/{getMachineId-unsupported-VPYWZLOQ.js → getMachineId-unsupported-DPCFTXUI.js} +4 -4
- package/dist/{getMachineId-unsupported-7CAN2IBW.js → getMachineId-unsupported-ZJCPKRYC.js} +4 -4
- package/dist/{getMachineId-win-NVPXKHOU.js → getMachineId-win-IALRM7CR.js} +5 -5
- package/dist/{getMachineId-win-A2DVJO2W.js → getMachineId-win-JJUTKUQH.js} +5 -5
- package/dist/{glimmer-QLDWRFB5.js → glimmer-3ROGYMIR.js} +3 -3
- package/dist/{graphql-AZ64G2F4.js → graphql-6CYOHVDP.js} +3 -3
- package/dist/{html-4CGZJTM7.js → html-CYEXMRR7.js} +3 -3
- package/dist/{http-5JS7Y4LD.js → http-H4ERLJK6.js} +12 -12
- package/dist/index.js +18 -18
- package/dist/{jiti-CGSBHMWW.js → jiti-OGG3UQHH.js} +3 -3
- package/dist/{log-update-QHZBZRLS.js → log-update-EX34NL4G.js} +6 -6
- package/dist/{markdown-QG7C5ONF.js → markdown-AKCMKZIH.js} +3 -3
- package/dist/{meriyah-ELNL6ITK.js → meriyah-LA4QESK5.js} +3 -3
- package/dist/{postcss-3SXZ7DQY.js → postcss-L5OO57MY.js} +3 -3
- package/dist/{read-pkg-YSNZMYOE.js → read-pkg-C77UIGLE.js} +5 -5
- package/dist/{spans-W3NTY3CR.js → spans-W5LCEFOV.js} +4 -4
- package/dist/{src-JR56WEXU.js → src-5CEEHC4F.js} +3 -3
- package/dist/{token-5Z5EWGB5.js → token-P5D6RWXT.js} +5 -5
- package/dist/{token-util-BLY4CG2I.js → token-util-RM2TBUM3.js} +5 -5
- package/dist/{typescript-G2O3UATZ.js → typescript-OTSVEC4M.js} +3 -3
- package/dist/{wrap-ansi-2W3GSAAF.js → wrap-ansi-755DXMDW.js} +5 -5
- package/dist/{yaml-L2ACLQKF.js → yaml-QXAJFS4E.js} +3 -3
- package/oclif.manifest.json +1 -1
- package/package.json +6 -6
- /package/dist/{acorn-6TUQZGW5.js.map → acorn-2OSOKZWW.js.map} +0 -0
- /package/dist/{angular-H5BTDPB5.js.map → angular-BDYQKWE3.js.map} +0 -0
- /package/dist/{api-Q37DKMAI.js.map → api-J3L5K2HK.js.map} +0 -0
- /package/dist/{babel-OS7UVQCO.js.map → babel-3PELWUVK.js.map} +0 -0
- /package/dist/{chunk-GMIX6OEX.js.map → chunk-3T6ENDIX.js.map} +0 -0
- /package/dist/{chunk-3T52OK3W.js.map → chunk-55PJWILX.js.map} +0 -0
- /package/dist/{chunk-KYZI3B4P.js.map → chunk-7XXSEGNR.js.map} +0 -0
- /package/dist/{chunk-CD4MFL6W.js.map → chunk-CO52VRGR.js.map} +0 -0
- /package/dist/{chunk-I77KUZWY.js.map → chunk-D5Z7UTWO.js.map} +0 -0
- /package/dist/{chunk-QBKCWA7K.js.map → chunk-EGZIHBTC.js.map} +0 -0
- /package/dist/{chunk-Z7ZZ6CYR.js.map → chunk-F3XAMIOE.js.map} +0 -0
- /package/dist/{chunk-WZEOVFB6.js.map → chunk-FVD74PEE.js.map} +0 -0
- /package/dist/{chunk-2AXZZ7LJ.js.map → chunk-GYNICLGQ.js.map} +0 -0
- /package/dist/{chunk-WDEMQVNP.js.map → chunk-K55X2G3W.js.map} +0 -0
- /package/dist/{chunk-KUKTLLGB.js.map → chunk-LE7FUEI3.js.map} +0 -0
- /package/dist/{chunk-PRWDU5AW.js.map → chunk-M3ZCS2YS.js.map} +0 -0
- /package/dist/{chunk-54JUGZZZ.js.map → chunk-MC6ZIGGW.js.map} +0 -0
- /package/dist/{chunk-5AZNUXPQ.js.map → chunk-MFIE2SBZ.js.map} +0 -0
- /package/dist/{chunk-FOK7OYFC.js.map → chunk-P3CFWMAL.js.map} +0 -0
- /package/dist/{chunk-TM57HQX2.js.map → chunk-SQQKUSPT.js.map} +0 -0
- /package/dist/{chunk-3YEIZG3Y.js.map → chunk-WU3XTLMT.js.map} +0 -0
- /package/dist/{cli-truncate-QRSZBGQX.js.map → cli-truncate-OU57Y6ZO.js.map} +0 -0
- /package/dist/{dd-trace-ON23TSXI.js.map → dd-trace-2E22MTTE.js.map} +0 -0
- /package/dist/{dist-PYASEQKJ.js.map → dist-2NILTE63.js.map} +0 -0
- /package/dist/{embedded-playwright-mcp-server-TYFFLVKZ.js.map → embedded-playwright-mcp-server-YCSIDXHC.js.map} +0 -0
- /package/dist/{enquirer-LYUVC6SB.js.map → enquirer-CCOGMTBL.js.map} +0 -0
- /package/dist/{estree-YDAKYBBH.js.map → estree-3YU2SNQQ.js.map} +0 -0
- /package/dist/{flow-5FU6LHW6.js.map → flow-GI4X5GOZ.js.map} +0 -0
- /package/dist/{getMachineId-bsd-ZIPVBNJ2.js.map → getMachineId-bsd-F53U2NIB.js.map} +0 -0
- /package/dist/{getMachineId-bsd-5FRPZYOR.js.map → getMachineId-bsd-U724ZXVC.js.map} +0 -0
- /package/dist/{getMachineId-darwin-MI6UBPSN.js.map → getMachineId-darwin-GNBFBPHT.js.map} +0 -0
- /package/dist/{getMachineId-darwin-5I2JCJA6.js.map → getMachineId-darwin-IF4YMPIE.js.map} +0 -0
- /package/dist/{getMachineId-linux-BEMG4S4R.js.map → getMachineId-linux-EAE4JILP.js.map} +0 -0
- /package/dist/{getMachineId-linux-N6PVY2K2.js.map → getMachineId-linux-OEKBX7KT.js.map} +0 -0
- /package/dist/{getMachineId-unsupported-VPYWZLOQ.js.map → getMachineId-unsupported-DPCFTXUI.js.map} +0 -0
- /package/dist/{getMachineId-unsupported-7CAN2IBW.js.map → getMachineId-unsupported-ZJCPKRYC.js.map} +0 -0
- /package/dist/{getMachineId-win-NVPXKHOU.js.map → getMachineId-win-IALRM7CR.js.map} +0 -0
- /package/dist/{getMachineId-win-A2DVJO2W.js.map → getMachineId-win-JJUTKUQH.js.map} +0 -0
- /package/dist/{glimmer-QLDWRFB5.js.map → glimmer-3ROGYMIR.js.map} +0 -0
- /package/dist/{graphql-AZ64G2F4.js.map → graphql-6CYOHVDP.js.map} +0 -0
- /package/dist/{html-4CGZJTM7.js.map → html-CYEXMRR7.js.map} +0 -0
- /package/dist/{http-5JS7Y4LD.js.map → http-H4ERLJK6.js.map} +0 -0
- /package/dist/{jiti-CGSBHMWW.js.map → jiti-OGG3UQHH.js.map} +0 -0
- /package/dist/{log-update-QHZBZRLS.js.map → log-update-EX34NL4G.js.map} +0 -0
- /package/dist/{markdown-QG7C5ONF.js.map → markdown-AKCMKZIH.js.map} +0 -0
- /package/dist/{meriyah-ELNL6ITK.js.map → meriyah-LA4QESK5.js.map} +0 -0
- /package/dist/{postcss-3SXZ7DQY.js.map → postcss-L5OO57MY.js.map} +0 -0
- /package/dist/{read-pkg-YSNZMYOE.js.map → read-pkg-C77UIGLE.js.map} +0 -0
- /package/dist/{spans-W3NTY3CR.js.map → spans-W5LCEFOV.js.map} +0 -0
- /package/dist/{src-JR56WEXU.js.map → src-5CEEHC4F.js.map} +0 -0
- /package/dist/{token-5Z5EWGB5.js.map → token-P5D6RWXT.js.map} +0 -0
- /package/dist/{token-util-BLY4CG2I.js.map → token-util-RM2TBUM3.js.map} +0 -0
- /package/dist/{typescript-G2O3UATZ.js.map → typescript-OTSVEC4M.js.map} +0 -0
- /package/dist/{wrap-ansi-2W3GSAAF.js.map → wrap-ansi-755DXMDW.js.map} +0 -0
- /package/dist/{yaml-L2ACLQKF.js.map → yaml-QXAJFS4E.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 = '
|
|
4
|
+
process.env.DD_GIT_COMMIT_SHA = '350fb22a4698a3073278c5a584fed81dcb874455';
|
|
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-
|
|
25
|
+
} from "./chunk-SQQKUSPT.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-
|
|
32
|
+
} from "./chunk-F3XAMIOE.js";
|
|
33
33
|
import {
|
|
34
34
|
require_commonjs
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-LE7FUEI3.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-
|
|
52
|
+
} from "./chunk-EGZIHBTC.js";
|
|
53
53
|
import {
|
|
54
54
|
require_dc_polyfill
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-P3CFWMAL.js";
|
|
56
56
|
import {
|
|
57
57
|
require_token_error
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-D5Z7UTWO.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-
|
|
68
|
+
} from "./chunk-7XXSEGNR.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-
|
|
77
|
+
} from "./chunk-CO52VRGR.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
|
|
40005
|
+
var JSON52 = {
|
|
40006
40006
|
parse: parse33,
|
|
40007
40007
|
stringify: stringify3
|
|
40008
40008
|
};
|
|
40009
|
-
module.exports =
|
|
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-
|
|
97077
|
+
const esmFunction = await import("./api-J3L5K2HK.js");
|
|
97078
97078
|
return esmFunction.writeApiFiles(...args);
|
|
97079
97079
|
}
|
|
97080
97080
|
async function readAppApiYamlFile4(...args) {
|
|
97081
|
-
const esmFunction = await import("./api-
|
|
97081
|
+
const esmFunction = await import("./api-J3L5K2HK.js");
|
|
97082
97082
|
return esmFunction.readAppApiYamlFile(...args);
|
|
97083
97083
|
}
|
|
97084
97084
|
async function resolveLanguageSpecificStepContentFromBlocks2(...args) {
|
|
97085
|
-
const esmFunction = await import("./api-
|
|
97085
|
+
const esmFunction = await import("./api-J3L5K2HK.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-
|
|
106721
|
+
getMachineIdImpl = (await import("./getMachineId-darwin-GNBFBPHT.js")).getMachineId;
|
|
106722
106722
|
break;
|
|
106723
106723
|
case "linux":
|
|
106724
|
-
getMachineIdImpl = (await import("./getMachineId-linux-
|
|
106724
|
+
getMachineIdImpl = (await import("./getMachineId-linux-OEKBX7KT.js")).getMachineId;
|
|
106725
106725
|
break;
|
|
106726
106726
|
case "freebsd":
|
|
106727
|
-
getMachineIdImpl = (await import("./getMachineId-bsd-
|
|
106727
|
+
getMachineIdImpl = (await import("./getMachineId-bsd-F53U2NIB.js")).getMachineId;
|
|
106728
106728
|
break;
|
|
106729
106729
|
case "win32":
|
|
106730
|
-
getMachineIdImpl = (await import("./getMachineId-win-
|
|
106730
|
+
getMachineIdImpl = (await import("./getMachineId-win-JJUTKUQH.js")).getMachineId;
|
|
106731
106731
|
break;
|
|
106732
106732
|
default:
|
|
106733
|
-
getMachineIdImpl = (await import("./getMachineId-unsupported-
|
|
106733
|
+
getMachineIdImpl = (await import("./getMachineId-unsupported-ZJCPKRYC.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-
|
|
115725
|
+
getMachineIdImpl = (await import("./getMachineId-darwin-IF4YMPIE.js")).getMachineId;
|
|
115726
115726
|
break;
|
|
115727
115727
|
case "linux":
|
|
115728
|
-
getMachineIdImpl = (await import("./getMachineId-linux-
|
|
115728
|
+
getMachineIdImpl = (await import("./getMachineId-linux-EAE4JILP.js")).getMachineId;
|
|
115729
115729
|
break;
|
|
115730
115730
|
case "freebsd":
|
|
115731
|
-
getMachineIdImpl = (await import("./getMachineId-bsd-
|
|
115731
|
+
getMachineIdImpl = (await import("./getMachineId-bsd-U724ZXVC.js")).getMachineId;
|
|
115732
115732
|
break;
|
|
115733
115733
|
case "win32":
|
|
115734
|
-
getMachineIdImpl = (await import("./getMachineId-win-
|
|
115734
|
+
getMachineIdImpl = (await import("./getMachineId-win-IALRM7CR.js")).getMachineId;
|
|
115735
115735
|
break;
|
|
115736
115736
|
default:
|
|
115737
|
-
getMachineIdImpl = (await import("./getMachineId-unsupported-
|
|
115737
|
+
getMachineIdImpl = (await import("./getMachineId-unsupported-DPCFTXUI.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-
|
|
197611
|
-
await import("./token-
|
|
197610
|
+
await import("./token-util-RM2TBUM3.js"),
|
|
197611
|
+
await import("./token-P5D6RWXT.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-
|
|
453002
|
+
const { createJiti } = await import("./jiti-OGG3UQHH.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-
|
|
453331
|
+
const { hfs } = await import("./src-5CEEHC4F.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-
|
|
453371
|
+
const { hfs } = await import("./src-5CEEHC4F.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.
|
|
509996
|
+
version: "2.0.130-next.5",
|
|
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-
|
|
510374
|
+
ddTracePromise ??= import("./dd-trace-2E22MTTE.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-
|
|
536214
|
+
const module = await import("./spans-W5LCEFOV.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:
|
|
545142
|
+
ignore: codeModeExcludedFiles.flatMap((pattern) => [
|
|
545152
545143
|
pattern,
|
|
545153
545144
|
`**/${pattern}`
|
|
545154
545145
|
])
|
|
@@ -608415,10 +608406,9 @@ var VirtualFileSystem = class {
|
|
|
608415
608406
|
function createDefaultVirtualFileSystem(options8) {
|
|
608416
608407
|
const logger22 = getLogger3();
|
|
608417
608408
|
const vfs = new VirtualFileSystem();
|
|
608418
|
-
vfs.registerHandler(new ApiFileHandler());
|
|
608419
|
-
logger22.info(`[VirtualFileSystem] Registered ApiFileHandler`);
|
|
608420
608409
|
if (!options8?.sdkApiEnabled) {
|
|
608421
608410
|
vfs.registerHandler(new ApiFileHandler());
|
|
608411
|
+
logger22.info(`[VirtualFileSystem] Registered ApiFileHandler`);
|
|
608422
608412
|
}
|
|
608423
608413
|
const hasKnowledgeManager = !!options8?.knowledgeManager;
|
|
608424
608414
|
const shouldRegisterSkillHandler = hasKnowledgeManager || options8?.useSystemSkills;
|
|
@@ -610291,7 +610281,6 @@ import { exec as exec4 } from "node:child_process";
|
|
|
610291
610281
|
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
610282
|
import * as path39 from "node:path";
|
|
610293
610283
|
import { promisify as promisify5 } from "node:util";
|
|
610294
|
-
var import_json5 = __toESM(require_lib4());
|
|
610295
610284
|
|
|
610296
610285
|
// ../../../../node_modules/.pnpm/package-manager-detector@1.3.0/node_modules/package-manager-detector/dist/index.mjs
|
|
610297
610286
|
init_cjs_shims();
|
|
@@ -611139,12 +611128,9 @@ var AppShell = (() => {
|
|
|
611139
611128
|
}
|
|
611140
611129
|
async runTypecheckRawOutput(abortSignal) {
|
|
611141
611130
|
const command = process.env.SUPERBLOCKS_SERVER_ENV === "local" ? "pnpm exec tsc" : "npx tsc";
|
|
611142
|
-
|
|
611143
|
-
|
|
611144
|
-
|
|
611145
|
-
args = shadowRootConfig ? ["-b", shadowRootConfig, "--pretty false"] : ["--noEmit", "--pretty false"];
|
|
611146
|
-
} else {
|
|
611147
|
-
args = [
|
|
611131
|
+
const checkForErrors = new Promise((resolve14) => {
|
|
611132
|
+
exec4([
|
|
611133
|
+
command,
|
|
611148
611134
|
"--noEmit",
|
|
611149
611135
|
// speed up marginal typecheck
|
|
611150
611136
|
"--incremental",
|
|
@@ -611154,10 +611140,7 @@ var AppShell = (() => {
|
|
|
611154
611140
|
"--noImplicitAny false",
|
|
611155
611141
|
// cache in separate file to avoid conflicts with vite or user ide
|
|
611156
611142
|
"--tsBuildInfoFile .superblocks/app.tsbuildinfo"
|
|
611157
|
-
]
|
|
611158
|
-
}
|
|
611159
|
-
const checkForErrors = new Promise((resolve14) => {
|
|
611160
|
-
exec4([command, ...args].join(" "), {
|
|
611143
|
+
].join(" "), {
|
|
611161
611144
|
cwd: this.appRootDirPath,
|
|
611162
611145
|
encoding: "utf-8",
|
|
611163
611146
|
signal: abortSignal
|
|
@@ -611171,108 +611154,6 @@ var AppShell = (() => {
|
|
|
611171
611154
|
}
|
|
611172
611155
|
return output;
|
|
611173
611156
|
}
|
|
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
611157
|
async runLinter(filePaths, abortSignal) {
|
|
611277
611158
|
const absoluteFilePaths = filePaths.map((filePath) => path39.join(this.appRootDirPath, filePath));
|
|
611278
611159
|
return await this.enqueueFsOperation("runLinter", async () => {
|
|
@@ -629237,7 +629118,7 @@ var PlaywrightMcpServerManager = class {
|
|
|
629237
629118
|
this.logger.info(`Starting embedded Playwright MCP server: browser=${options8?.browser || "chromium"}, headless=${options8?.headless !== false}`);
|
|
629238
629119
|
}
|
|
629239
629120
|
try {
|
|
629240
|
-
const { startEmbeddedPlaywrightMcpServer } = await import("./embedded-playwright-mcp-server-
|
|
629121
|
+
const { startEmbeddedPlaywrightMcpServer } = await import("./embedded-playwright-mcp-server-YCSIDXHC.js");
|
|
629241
629122
|
this.server = await startEmbeddedPlaywrightMcpServer({
|
|
629242
629123
|
storageStatePath: options8?.storageStatePath,
|
|
629243
629124
|
jwt: options8?.jwt,
|
|
@@ -629366,6 +629247,128 @@ var PlaywrightMcpServerManager = class {
|
|
|
629366
629247
|
}
|
|
629367
629248
|
};
|
|
629368
629249
|
|
|
629250
|
+
// ../../../vite-plugin-file-sync/dist/ai-service/migration-auto-dispatch-readiness.js
|
|
629251
|
+
init_cjs_shims();
|
|
629252
|
+
function evaluateMigrationAutoDispatchReadiness(input) {
|
|
629253
|
+
if (!input.appArtifactsReady) {
|
|
629254
|
+
return { ready: false, reason: "app-artifacts-not-ready" };
|
|
629255
|
+
}
|
|
629256
|
+
if (!input.hasConnectedPeer) {
|
|
629257
|
+
return { ready: false, reason: "peer-not-connected" };
|
|
629258
|
+
}
|
|
629259
|
+
if (!input.hasUsableJwt) {
|
|
629260
|
+
return { ready: false, reason: "jwt-unavailable" };
|
|
629261
|
+
}
|
|
629262
|
+
return { ready: true };
|
|
629263
|
+
}
|
|
629264
|
+
|
|
629265
|
+
// ../../../vite-plugin-file-sync/dist/ai-service/migration-llm-config.js
|
|
629266
|
+
init_cjs_shims();
|
|
629267
|
+
var FLAG_KEYS = {
|
|
629268
|
+
chaosOptions: "ui.clark-ai.chaos.options",
|
|
629269
|
+
contextOptionsV2: "ai.context-v2.options",
|
|
629270
|
+
coreModelName: "superblocks.ai.core-model.name",
|
|
629271
|
+
defaultThinkingBudget: "ui.clark-ai.default-thinking-budget",
|
|
629272
|
+
fallbackStrategy: "ai.fallback.strategy",
|
|
629273
|
+
llmProvider: "ui.clark-ai.llm-provider",
|
|
629274
|
+
navigationToolEnabled: "ui.clark-ai.tool.navigation",
|
|
629275
|
+
screenshotToolEnabled: "ai.screenshot-tool.enabled",
|
|
629276
|
+
serverContextManagement: "ai.server-context-management.options",
|
|
629277
|
+
testingEnabled: "ai.playwright-app-test.enabled",
|
|
629278
|
+
unifiedProviderEnabled: "superblocks.ai.provider.unified"
|
|
629279
|
+
};
|
|
629280
|
+
var VALID_CORE_MODELS = [
|
|
629281
|
+
"claude-opus-4-5",
|
|
629282
|
+
"claude-opus-4-6",
|
|
629283
|
+
"claude-opus-4-7",
|
|
629284
|
+
"claude-sonnet-4-5",
|
|
629285
|
+
"claude-sonnet-4-6"
|
|
629286
|
+
];
|
|
629287
|
+
var DEFAULT_CORE_MODEL = "claude-sonnet-4-5";
|
|
629288
|
+
var isValidProvider = (provider) => provider === "vertex" || provider === "bedrock" || provider === "anthropic" || provider === "snowflake";
|
|
629289
|
+
var normalizeProvider = (provider, defaultProvider) => {
|
|
629290
|
+
if (isValidProvider(provider)) {
|
|
629291
|
+
return provider;
|
|
629292
|
+
}
|
|
629293
|
+
return defaultProvider;
|
|
629294
|
+
};
|
|
629295
|
+
var getDisabledToolsForMigration = (flags) => {
|
|
629296
|
+
const disabledTools = [];
|
|
629297
|
+
if (!flags.isScreenshotToolEnabled) {
|
|
629298
|
+
disabledTools.push("build_captureScreenshot");
|
|
629299
|
+
}
|
|
629300
|
+
if (!flags.isNavigationToolEnabled) {
|
|
629301
|
+
disabledTools.push("build_navigatePreview");
|
|
629302
|
+
}
|
|
629303
|
+
if (!flags.isTestingEnabled) {
|
|
629304
|
+
disabledTools.push("startTestRun");
|
|
629305
|
+
disabledTools.push("endTestRun");
|
|
629306
|
+
disabledTools.push("browser_playwright_action");
|
|
629307
|
+
}
|
|
629308
|
+
return disabledTools;
|
|
629309
|
+
};
|
|
629310
|
+
var readFlag = (flagBootstrap, key2, fallback) => {
|
|
629311
|
+
const raw = flagBootstrap?.[key2];
|
|
629312
|
+
return raw === void 0 ? fallback : raw;
|
|
629313
|
+
};
|
|
629314
|
+
var readOptionalRecord = (flagBootstrap, key2) => {
|
|
629315
|
+
const raw = flagBootstrap?.[key2];
|
|
629316
|
+
if (!raw || typeof raw !== "object" || Array.isArray(raw)) {
|
|
629317
|
+
return void 0;
|
|
629318
|
+
}
|
|
629319
|
+
return raw;
|
|
629320
|
+
};
|
|
629321
|
+
var readFallbackStrategy = (flagBootstrap) => {
|
|
629322
|
+
const raw = flagBootstrap?.[FLAG_KEYS.fallbackStrategy];
|
|
629323
|
+
if (typeof raw === "string" && FALLBACK_STRATEGIES.includes(raw)) {
|
|
629324
|
+
return raw;
|
|
629325
|
+
}
|
|
629326
|
+
return void 0;
|
|
629327
|
+
};
|
|
629328
|
+
function buildServerMigrationLlmConfig(flagBootstrap) {
|
|
629329
|
+
const llmProvider = readFlag(flagBootstrap, FLAG_KEYS.llmProvider, "vertex");
|
|
629330
|
+
const defaultThinkingBudget = readFlag(flagBootstrap, FLAG_KEYS.defaultThinkingBudget, 5e3);
|
|
629331
|
+
const coreModelName = readFlag(flagBootstrap, FLAG_KEYS.coreModelName, DEFAULT_CORE_MODEL);
|
|
629332
|
+
let coreModel = DEFAULT_CORE_MODEL;
|
|
629333
|
+
if (VALID_CORE_MODELS.includes(coreModelName)) {
|
|
629334
|
+
coreModel = coreModelName;
|
|
629335
|
+
} else if (coreModelName !== DEFAULT_CORE_MODEL) {
|
|
629336
|
+
console.warn(`[migration-llm-config] Unrecognized core model "${coreModelName}"; falling back to ${DEFAULT_CORE_MODEL}`);
|
|
629337
|
+
}
|
|
629338
|
+
const unifiedProviderEnabled = readFlag(flagBootstrap, FLAG_KEYS.unifiedProviderEnabled, false);
|
|
629339
|
+
const isNavigationToolEnabled = readFlag(flagBootstrap, FLAG_KEYS.navigationToolEnabled, true);
|
|
629340
|
+
const isScreenshotToolEnabled = readFlag(flagBootstrap, FLAG_KEYS.screenshotToolEnabled, true);
|
|
629341
|
+
const isTestingEnabled = readFlag(flagBootstrap, FLAG_KEYS.testingEnabled, false);
|
|
629342
|
+
const chaosOptionsRaw = readOptionalRecord(flagBootstrap, FLAG_KEYS.chaosOptions);
|
|
629343
|
+
const chaosOptions = chaosOptionsRaw && Object.keys(chaosOptionsRaw).length > 0 ? chaosOptionsRaw : void 0;
|
|
629344
|
+
const migrationFlags = {
|
|
629345
|
+
isChecklistEnabled: true,
|
|
629346
|
+
isNavigationToolEnabled,
|
|
629347
|
+
isScreenshotToolEnabled,
|
|
629348
|
+
isTestingEnabled,
|
|
629349
|
+
isFactsEnabled: false,
|
|
629350
|
+
isAppKnowledgeEnabled: false
|
|
629351
|
+
};
|
|
629352
|
+
return {
|
|
629353
|
+
provider: normalizeProvider(llmProvider, "vertex"),
|
|
629354
|
+
thinkingEnabled: true,
|
|
629355
|
+
thinkingBudgetTokens: String(defaultThinkingBudget),
|
|
629356
|
+
interleavedThinking: true,
|
|
629357
|
+
disabledTools: getDisabledToolsForMigration({
|
|
629358
|
+
isNavigationToolEnabled,
|
|
629359
|
+
isScreenshotToolEnabled,
|
|
629360
|
+
isTestingEnabled
|
|
629361
|
+
}),
|
|
629362
|
+
contextOptionsV2: readOptionalRecord(flagBootstrap, FLAG_KEYS.contextOptionsV2),
|
|
629363
|
+
serverContextManagement: readOptionalRecord(flagBootstrap, FLAG_KEYS.serverContextManagement),
|
|
629364
|
+
chaosOptions,
|
|
629365
|
+
coreModel,
|
|
629366
|
+
unifiedProviderEnabled,
|
|
629367
|
+
fallbackStrategy: readFallbackStrategy(flagBootstrap),
|
|
629368
|
+
flags: migrationFlags
|
|
629369
|
+
};
|
|
629370
|
+
}
|
|
629371
|
+
|
|
629369
629372
|
// ../../../vite-plugin-file-sync/dist/ai-service/policy-gate-step.js
|
|
629370
629373
|
init_cjs_shims();
|
|
629371
629374
|
var HIDDEN_TOOLS = /* @__PURE__ */ new Set(["reportReviewRun"]);
|
|
@@ -629741,6 +629744,40 @@ var RequestDeduplicator = class {
|
|
|
629741
629744
|
}
|
|
629742
629745
|
};
|
|
629743
629746
|
|
|
629747
|
+
// ../../../vite-plugin-file-sync/dist/ai-service/resolve-generation-state-for-ui.js
|
|
629748
|
+
init_cjs_shims();
|
|
629749
|
+
var TERMINAL_FSM = ["Idle", "AwaitingUser", "Dead"];
|
|
629750
|
+
var ACTIVE_FSM = [
|
|
629751
|
+
"AgentPlanning",
|
|
629752
|
+
"LLMGenerating",
|
|
629753
|
+
"PostProcessing",
|
|
629754
|
+
"RuntimeReviewing"
|
|
629755
|
+
];
|
|
629756
|
+
var ACTIVE_CACHE = [
|
|
629757
|
+
AiGenerationState.GENERATING,
|
|
629758
|
+
AiGenerationState.DEBUGGING,
|
|
629759
|
+
AiGenerationState.SUMMARIZING
|
|
629760
|
+
];
|
|
629761
|
+
function resolveGenerationStateForUi(input) {
|
|
629762
|
+
const { clarkState, lastGenerationState: cache3 } = input;
|
|
629763
|
+
if (cache3?.state === AiGenerationState.CANCELLED) {
|
|
629764
|
+
return cache3;
|
|
629765
|
+
}
|
|
629766
|
+
if (TERMINAL_FSM.includes(clarkState)) {
|
|
629767
|
+
if (cache3 && ACTIVE_CACHE.includes(cache3.state)) {
|
|
629768
|
+
return { state: AiGenerationState.IDLE };
|
|
629769
|
+
}
|
|
629770
|
+
return cache3;
|
|
629771
|
+
}
|
|
629772
|
+
if (ACTIVE_FSM.includes(clarkState)) {
|
|
629773
|
+
if (cache3 && ACTIVE_CACHE.includes(cache3.state)) {
|
|
629774
|
+
return cache3;
|
|
629775
|
+
}
|
|
629776
|
+
return cache3;
|
|
629777
|
+
}
|
|
629778
|
+
return cache3;
|
|
629779
|
+
}
|
|
629780
|
+
|
|
629744
629781
|
// ../../../vite-plugin-file-sync/dist/ai-service/state-machine/handlers/agent-planning.js
|
|
629745
629782
|
init_cjs_shims();
|
|
629746
629783
|
var import_shared46 = __toESM(require_dist2());
|
|
@@ -636279,6 +636316,56 @@ ${stderrTail}` : void 0
|
|
|
636279
636316
|
});
|
|
636280
636317
|
}
|
|
636281
636318
|
|
|
636319
|
+
// ../../../vite-plugin-file-sync/dist/ai-service/util/inference-jwt.js
|
|
636320
|
+
init_cjs_shims();
|
|
636321
|
+
function decodeJwtPayload(jwt2) {
|
|
636322
|
+
try {
|
|
636323
|
+
const parts = jwt2.split(".");
|
|
636324
|
+
if (parts.length !== 3 || !parts[1]) {
|
|
636325
|
+
return void 0;
|
|
636326
|
+
}
|
|
636327
|
+
return JSON.parse(Buffer.from(parts[1], "base64").toString());
|
|
636328
|
+
} catch {
|
|
636329
|
+
return void 0;
|
|
636330
|
+
}
|
|
636331
|
+
}
|
|
636332
|
+
function isUsableMigrationInferenceJwt(jwt2) {
|
|
636333
|
+
if (!jwt2) {
|
|
636334
|
+
return false;
|
|
636335
|
+
}
|
|
636336
|
+
const payload = decodeJwtPayload(jwt2);
|
|
636337
|
+
if (!payload) {
|
|
636338
|
+
return false;
|
|
636339
|
+
}
|
|
636340
|
+
if (payload.scope === "apps:update") {
|
|
636341
|
+
return false;
|
|
636342
|
+
}
|
|
636343
|
+
return true;
|
|
636344
|
+
}
|
|
636345
|
+
function describeMigrationInferenceJwt(jwt2) {
|
|
636346
|
+
if (!jwt2) {
|
|
636347
|
+
return {
|
|
636348
|
+
hasFederatedToken: false,
|
|
636349
|
+
present: false,
|
|
636350
|
+
usable: false
|
|
636351
|
+
};
|
|
636352
|
+
}
|
|
636353
|
+
const payload = decodeJwtPayload(jwt2);
|
|
636354
|
+
if (!payload) {
|
|
636355
|
+
return {
|
|
636356
|
+
hasFederatedToken: false,
|
|
636357
|
+
present: true,
|
|
636358
|
+
usable: false
|
|
636359
|
+
};
|
|
636360
|
+
}
|
|
636361
|
+
return {
|
|
636362
|
+
hasFederatedToken: Boolean(payload.federated_token),
|
|
636363
|
+
present: true,
|
|
636364
|
+
scope: payload.scope,
|
|
636365
|
+
usable: isUsableMigrationInferenceJwt(jwt2)
|
|
636366
|
+
};
|
|
636367
|
+
}
|
|
636368
|
+
|
|
636282
636369
|
// ../../../vite-plugin-file-sync/dist/ai-service/util/json-stream-parser.js
|
|
636283
636370
|
init_cjs_shims();
|
|
636284
636371
|
function createJsonStreamParser(key2 = "result") {
|
|
@@ -636758,6 +636845,9 @@ var AiService = class extends import_shared52.TracedEventEmitter {
|
|
|
636758
636845
|
try {
|
|
636759
636846
|
this.tokenManagerJwt = event.token;
|
|
636760
636847
|
this.getLogger().info(`[ai-service] token updated via tokenManager`);
|
|
636848
|
+
if (event.token && isUsableMigrationInferenceJwt(event.token)) {
|
|
636849
|
+
this.updateClarkJwt(event.token);
|
|
636850
|
+
}
|
|
636761
636851
|
} catch (err) {
|
|
636762
636852
|
console.error("[ai-service] tokenUpdated listener threw", err);
|
|
636763
636853
|
}
|
|
@@ -636855,9 +636945,14 @@ var AiService = class extends import_shared52.TracedEventEmitter {
|
|
|
636855
636945
|
* Updates the JWT in Clark context
|
|
636856
636946
|
*/
|
|
636857
636947
|
updateClarkJwt(jwt2) {
|
|
636858
|
-
|
|
636859
|
-
|
|
636948
|
+
const jwtDetails = describeMigrationInferenceJwt(jwt2);
|
|
636949
|
+
if (!jwt2 || !jwtDetails.usable) {
|
|
636950
|
+
return;
|
|
636860
636951
|
}
|
|
636952
|
+
this.clark.updateContext({ jwt: jwt2 });
|
|
636953
|
+
const llmConfig = this.lastMigrationTurnCredentials?.llmConfig ?? this.clark.context.llmConfig ?? buildServerMigrationLlmConfig(this.config.flagBootstrap);
|
|
636954
|
+
this.storeMigrationTurnCredentials(jwt2, llmConfig);
|
|
636955
|
+
this.tryAutoDispatchMigrationTurnIfReady();
|
|
636861
636956
|
}
|
|
636862
636957
|
// ===== Recording API =====
|
|
636863
636958
|
/**
|
|
@@ -637227,6 +637322,116 @@ var AiService = class extends import_shared52.TracedEventEmitter {
|
|
|
637227
637322
|
}
|
|
637228
637323
|
});
|
|
637229
637324
|
}
|
|
637325
|
+
this.tryAutoDispatchMigrationTurnIfReady();
|
|
637326
|
+
}
|
|
637327
|
+
migrationAppArtifactsReady = false;
|
|
637328
|
+
migrationAutoDispatchPending = false;
|
|
637329
|
+
migrationAutoDispatchInFlight = false;
|
|
637330
|
+
lastMigrationTurnCredentials;
|
|
637331
|
+
hasInitialPendingMigrationWork(items) {
|
|
637332
|
+
const pendingItems = items.filter((item) => isApiMigrationOrigin(item.origin) && (item.status === "pending" || item.status === "in_progress"));
|
|
637333
|
+
if (pendingItems.length === 0) {
|
|
637334
|
+
return false;
|
|
637335
|
+
}
|
|
637336
|
+
return !pendingItems.some((item) => item.lastFailureReason);
|
|
637337
|
+
}
|
|
637338
|
+
resolveMigrationTurnCredentials() {
|
|
637339
|
+
const cachedJwt = this.lastMigrationTurnCredentials?.jwt;
|
|
637340
|
+
const inferenceJwt = this.getInferenceJwt();
|
|
637341
|
+
const jwt2 = (cachedJwt && isUsableMigrationInferenceJwt(cachedJwt) ? cachedJwt : void 0) ?? (inferenceJwt && isUsableMigrationInferenceJwt(inferenceJwt) ? inferenceJwt : void 0);
|
|
637342
|
+
const llmConfig = this.lastMigrationTurnCredentials?.llmConfig ?? this.clark.context.llmConfig ?? buildServerMigrationLlmConfig(this.config.flagBootstrap);
|
|
637343
|
+
return { jwt: jwt2, llmConfig };
|
|
637344
|
+
}
|
|
637345
|
+
storeMigrationTurnCredentials(jwt2, llmConfig) {
|
|
637346
|
+
const nextJwt = jwt2 && jwt2.length > 0 ? jwt2 : this.lastMigrationTurnCredentials?.jwt;
|
|
637347
|
+
this.lastMigrationTurnCredentials = {
|
|
637348
|
+
...nextJwt ? { jwt: nextJwt } : {},
|
|
637349
|
+
llmConfig
|
|
637350
|
+
};
|
|
637351
|
+
if (jwt2 && jwt2.length > 0 && !this.getInferenceJwt()) {
|
|
637352
|
+
this.clark.updateContext({ jwt: jwt2 });
|
|
637353
|
+
}
|
|
637354
|
+
}
|
|
637355
|
+
isRetriableMigrationAutoDispatchFailure(reason) {
|
|
637356
|
+
if (!reason) {
|
|
637357
|
+
return false;
|
|
637358
|
+
}
|
|
637359
|
+
return reason.startsWith("busy:") || reason === "pending-tool-permission" || reason === "awaiting-interactive-response";
|
|
637360
|
+
}
|
|
637361
|
+
/**
|
|
637362
|
+
* Called by dev startup once DBFS download (or upload-first local tree)
|
|
637363
|
+
* has finished so migration scratch/checklist files are on disk.
|
|
637364
|
+
*/
|
|
637365
|
+
notifyMigrationAppArtifactsReady() {
|
|
637366
|
+
if (this.migrationAppArtifactsReady) {
|
|
637367
|
+
return;
|
|
637368
|
+
}
|
|
637369
|
+
this.migrationAppArtifactsReady = true;
|
|
637370
|
+
this.tryAutoDispatchMigrationTurnIfReady();
|
|
637371
|
+
}
|
|
637372
|
+
tryAutoDispatchMigrationTurnIfReady() {
|
|
637373
|
+
if (this.migrationAutoDispatchInFlight) {
|
|
637374
|
+
return;
|
|
637375
|
+
}
|
|
637376
|
+
const { jwt: jwt2 } = this.resolveMigrationTurnCredentials();
|
|
637377
|
+
const readiness = evaluateMigrationAutoDispatchReadiness({
|
|
637378
|
+
appArtifactsReady: this.migrationAppArtifactsReady,
|
|
637379
|
+
hasConnectedPeer: this.hasConnectedPeer(),
|
|
637380
|
+
hasUsableJwt: Boolean(jwt2)
|
|
637381
|
+
});
|
|
637382
|
+
if (!readiness.ready) {
|
|
637383
|
+
if (readiness.reason === "jwt-unavailable") {
|
|
637384
|
+
this.migrationAutoDispatchPending = true;
|
|
637385
|
+
}
|
|
637386
|
+
return;
|
|
637387
|
+
}
|
|
637388
|
+
void this.maybeAutoDispatchMigrationTurn().catch((error40) => {
|
|
637389
|
+
this.getLogger().error("[ai-service] Migration auto-dispatch failed", getErrorMeta2(error40));
|
|
637390
|
+
});
|
|
637391
|
+
}
|
|
637392
|
+
/**
|
|
637393
|
+
* Attempts to start the initial post-flip migration turn without UI
|
|
637394
|
+
* involvement. Skips user-initiated focused-debug retries (items with
|
|
637395
|
+
* `lastFailureReason`) and defers when JWT is unavailable.
|
|
637396
|
+
*/
|
|
637397
|
+
async maybeAutoDispatchMigrationTurn() {
|
|
637398
|
+
if (this.migrationAutoDispatchInFlight) {
|
|
637399
|
+
return;
|
|
637400
|
+
}
|
|
637401
|
+
this.migrationAutoDispatchInFlight = true;
|
|
637402
|
+
try {
|
|
637403
|
+
const checklist = await readPersistedChecklist(this.appRootDirPath);
|
|
637404
|
+
if (!checklist) {
|
|
637405
|
+
this.migrationAutoDispatchPending = false;
|
|
637406
|
+
return;
|
|
637407
|
+
}
|
|
637408
|
+
if (!this.hasInitialPendingMigrationWork(checklist.items)) {
|
|
637409
|
+
this.migrationAutoDispatchPending = false;
|
|
637410
|
+
return;
|
|
637411
|
+
}
|
|
637412
|
+
const { jwt: jwt2, llmConfig } = this.resolveMigrationTurnCredentials();
|
|
637413
|
+
if (!jwt2) {
|
|
637414
|
+
this.migrationAutoDispatchPending = true;
|
|
637415
|
+
return;
|
|
637416
|
+
}
|
|
637417
|
+
const result = await this.handleAiTriggerMigrationTurn({
|
|
637418
|
+
jwt: jwt2,
|
|
637419
|
+
llmConfig,
|
|
637420
|
+
triggeredBy: "auto-dispatch"
|
|
637421
|
+
});
|
|
637422
|
+
if (result.dispatched) {
|
|
637423
|
+
this.migrationAutoDispatchPending = false;
|
|
637424
|
+
this.getLogger().info("[ai-service] Auto-dispatched post-flip migration turn");
|
|
637425
|
+
} else if (result.reason === "already-triggered") {
|
|
637426
|
+
this.migrationAutoDispatchPending = false;
|
|
637427
|
+
} else if (this.isRetriableMigrationAutoDispatchFailure(result.reason)) {
|
|
637428
|
+
this.migrationAutoDispatchPending = true;
|
|
637429
|
+
} else {
|
|
637430
|
+
this.migrationAutoDispatchPending = false;
|
|
637431
|
+
}
|
|
637432
|
+
} finally {
|
|
637433
|
+
this.migrationAutoDispatchInFlight = false;
|
|
637434
|
+
}
|
|
637230
637435
|
}
|
|
637231
637436
|
/**
|
|
637232
637437
|
* Remove the integration metadata cache for this session.
|
|
@@ -637538,12 +637743,16 @@ var AiService = class extends import_shared52.TracedEventEmitter {
|
|
|
637538
637743
|
* per ai-service lifetime. The disk checklist is the recovery source of
|
|
637539
637744
|
* truth across process restarts.
|
|
637540
637745
|
*
|
|
637541
|
-
*
|
|
637542
|
-
*
|
|
637543
|
-
*
|
|
637544
|
-
*
|
|
637746
|
+
* Primary auto-trigger: readiness gate (`notifyMigrationAppArtifactsReady`,
|
|
637747
|
+
* `handleUserConnected`, `updateClarkJwt`) →
|
|
637748
|
+
* `tryAutoDispatchMigrationTurnIfReady` → `maybeAutoDispatchMigrationTurn`.
|
|
637749
|
+
* Backup caller: the UI RPC (see v1.ai.triggerMigrationTurn) once it
|
|
637750
|
+
* observes the post-flip state via /sb-migration-status.
|
|
637751
|
+
* User retry after unresolved failures: UI RPC with
|
|
637752
|
+
* `retryMode: "focused-debug"` after /sb-migration-retry-unresolved.
|
|
637545
637753
|
*/
|
|
637546
637754
|
async handleAiTriggerMigrationTurn(request) {
|
|
637755
|
+
this.storeMigrationTurnCredentials(request.jwt, request.llmConfig);
|
|
637547
637756
|
if (request.retryMode === "focused-debug") {
|
|
637548
637757
|
this.migrationTurnTriggered = false;
|
|
637549
637758
|
}
|
|
@@ -637564,22 +637773,25 @@ var AiService = class extends import_shared52.TracedEventEmitter {
|
|
|
637564
637773
|
return { dispatched: false, reason: "awaiting-interactive-response" };
|
|
637565
637774
|
}
|
|
637566
637775
|
}
|
|
637776
|
+
this.migrationTurnTriggered = true;
|
|
637567
637777
|
const checklist = await readPersistedChecklist(this.appRootDirPath);
|
|
637568
637778
|
if (!checklist) {
|
|
637779
|
+
this.migrationTurnTriggered = false;
|
|
637569
637780
|
this.getLogger().warn("[ai-service] Migration checklist not found or unreadable; skipping translation turn");
|
|
637570
637781
|
return { dispatched: false, reason: "checklist-unavailable" };
|
|
637571
637782
|
}
|
|
637572
637783
|
const pendingSeedApiItems = checklist.items.filter((item) => API_MIGRATION_ORIGINS.has(item.origin) && (item.status === "pending" || item.status === "in_progress"));
|
|
637573
637784
|
const pendingSeedApiCount = pendingSeedApiItems.length;
|
|
637574
637785
|
if (pendingSeedApiCount === 0) {
|
|
637786
|
+
this.migrationTurnTriggered = false;
|
|
637575
637787
|
return { dispatched: false, reason: "no-pending-items" };
|
|
637576
637788
|
}
|
|
637577
637789
|
const quota = await this.checkAiQuota(request.jwt);
|
|
637578
637790
|
if (!quota.allowed) {
|
|
637791
|
+
this.migrationTurnTriggered = false;
|
|
637579
637792
|
this.getLogger().warn("[ai-service] Skipping v2\u2192v3 migration turn \u2014 AI quota exceeded", { reason: quota.reason });
|
|
637580
637793
|
return { dispatched: false, reason: "quota-exceeded" };
|
|
637581
637794
|
}
|
|
637582
|
-
this.migrationTurnTriggered = true;
|
|
637583
637795
|
this.appShell.setApiHandlerEnabled(false);
|
|
637584
637796
|
this.getLogger().info(`[ai-service] Dispatching internal v2\u2192v3 migration turn for ${pendingSeedApiCount} API(s) (API VFS projection disabled, retryMode=${request.retryMode ?? "none"})`);
|
|
637585
637797
|
const prompt = buildTranslationPrompt({
|
|
@@ -637600,7 +637812,8 @@ var AiService = class extends import_shared52.TracedEventEmitter {
|
|
|
637600
637812
|
migrationSource: "superblocks_2_0",
|
|
637601
637813
|
origin: "app_migration",
|
|
637602
637814
|
pendingSeedApiCount,
|
|
637603
|
-
retryMode: request.retryMode ?? "none"
|
|
637815
|
+
retryMode: request.retryMode ?? "none",
|
|
637816
|
+
triggeredBy: request.triggeredBy ?? (request.retryMode === "focused-debug" ? "focused-debug" : "ui-rpc")
|
|
637604
637817
|
};
|
|
637605
637818
|
this.clark.updateContext((context2) => ({
|
|
637606
637819
|
...context2,
|
|
@@ -637832,6 +638045,7 @@ var AiService = class extends import_shared52.TracedEventEmitter {
|
|
|
637832
638045
|
}
|
|
637833
638046
|
async handleAiGenerate(request) {
|
|
637834
638047
|
this.getLogger().info(`[ai-service] handleAiGenerate: peerId=${this.stablePeer.peerId ?? "unknown"}`);
|
|
638048
|
+
this.storeMigrationTurnCredentials(request.jwt, request.llmConfig);
|
|
637835
638049
|
if (this.clark.state === ClarkStateNames.Dead) {
|
|
637836
638050
|
throw new Error("Service is unavailable");
|
|
637837
638051
|
}
|
|
@@ -638874,6 +639088,12 @@ ${request.prompt}`;
|
|
|
638874
639088
|
}
|
|
638875
639089
|
return `Continue with the task using alternative approaches. The tool ${toolName} was denied permission.`;
|
|
638876
639090
|
}
|
|
639091
|
+
resolveGenerationStateForUi() {
|
|
639092
|
+
return resolveGenerationStateForUi({
|
|
639093
|
+
clarkState: this.clark.state,
|
|
639094
|
+
lastGenerationState: this.clark.context.lastGenerationState
|
|
639095
|
+
});
|
|
639096
|
+
}
|
|
638877
639097
|
handleUserConnected(peer, peerId) {
|
|
638878
639098
|
const existingPeerId = this.stablePeer.peerId;
|
|
638879
639099
|
this.getLogger().info(`[ai-service] handleUserConnected: peerId=${peerId}`);
|
|
@@ -638892,9 +639112,10 @@ ${request.prompt}`;
|
|
|
638892
639112
|
this.authenticatedPeerId = void 0;
|
|
638893
639113
|
this.authenticatedPeerUserId = void 0;
|
|
638894
639114
|
}
|
|
638895
|
-
|
|
638896
|
-
|
|
638897
|
-
|
|
639115
|
+
const generationState = this.resolveGenerationStateForUi();
|
|
639116
|
+
if (generationState) {
|
|
639117
|
+
this.getLogger().info(`[ai-service] Syncing generation state on reconnect: ${generationState.state}`);
|
|
639118
|
+
catchBackgroundPeerDisconnect(peer.call.aiSetGenerationState(generationState), "generation state reconnect push");
|
|
638898
639119
|
}
|
|
638899
639120
|
if (this.clark.context.pendingToolPermissionRequest) {
|
|
638900
639121
|
const request = this.clark.context.pendingToolPermissionRequest;
|
|
@@ -638927,6 +639148,7 @@ ${request.prompt}`;
|
|
|
638927
639148
|
if (this.taskStore) {
|
|
638928
639149
|
this.pendingTaskResyncPeerIds.add(peerId);
|
|
638929
639150
|
}
|
|
639151
|
+
this.tryAutoDispatchMigrationTurnIfReady();
|
|
638930
639152
|
}
|
|
638931
639153
|
/**
|
|
638932
639154
|
* Per-session set of peer IDs that connected since their last task
|
|
@@ -639678,9 +639900,9 @@ ${request.prompt}`;
|
|
|
639678
639900
|
// ../../../vite-plugin-file-sync/dist/sync-service/index.js
|
|
639679
639901
|
init_cjs_shims();
|
|
639680
639902
|
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());
|
|
639903
|
+
var import_shared58 = __toESM(require_dist2(), 1);
|
|
639904
|
+
var import_shared59 = __toESM(require_dist2(), 1);
|
|
639905
|
+
var import_shared60 = __toESM(require_dist2(), 1);
|
|
639684
639906
|
|
|
639685
639907
|
// ../../../vite-plugin-file-sync/dist/errors/make-server-error.js
|
|
639686
639908
|
init_cjs_shims();
|
|
@@ -639767,7 +639989,7 @@ async function* listLocalDirectory(localDirectoryPath, rootDirectoryPath = local
|
|
|
639767
639989
|
if (normalizedRelativePath.startsWith(".superblocks/") && !isPersistedSuperblocksFile(normalizedRelativePath)) {
|
|
639768
639990
|
continue;
|
|
639769
639991
|
}
|
|
639770
|
-
if (
|
|
639992
|
+
if (codeModeExcludedFiles.includes(name17)) {
|
|
639771
639993
|
continue;
|
|
639772
639994
|
}
|
|
639773
639995
|
try {
|
|
@@ -641274,8 +641496,8 @@ var SyncService = class extends import_shared58.TracedEventEmitter {
|
|
|
641274
641496
|
|
|
641275
641497
|
// ../../../vite-plugin-file-sync/dist/lock-service/index.js
|
|
641276
641498
|
init_cjs_shims();
|
|
641277
|
-
var import_shared61 = __toESM(require_dist2());
|
|
641278
|
-
var import_shared62 = __toESM(require_dist2());
|
|
641499
|
+
var import_shared61 = __toESM(require_dist2(), 1);
|
|
641500
|
+
var import_shared62 = __toESM(require_dist2(), 1);
|
|
641279
641501
|
|
|
641280
641502
|
// ../../../vite-plugin-file-sync/dist/lock-service/activity-tracker.js
|
|
641281
641503
|
init_cjs_shims();
|
|
@@ -642970,7 +643192,8 @@ var SocketManager = class extends import_shared70.TracedEventEmitter {
|
|
|
642970
643192
|
force: request?.force
|
|
642971
643193
|
});
|
|
642972
643194
|
return {
|
|
642973
|
-
messages: messages3 ?? []
|
|
643195
|
+
messages: messages3 ?? [],
|
|
643196
|
+
generationState: aiService?.resolveGenerationStateForUi()
|
|
642974
643197
|
};
|
|
642975
643198
|
}
|
|
642976
643199
|
],
|
|
@@ -643073,6 +643296,11 @@ var SocketManager = class extends import_shared70.TracedEventEmitter {
|
|
|
643073
643296
|
getLogger3().info(`Clark log forwarding ${request.enabled ? "enabled" : "disabled"}`);
|
|
643074
643297
|
}
|
|
643075
643298
|
],
|
|
643299
|
+
primeClarkInferenceJwt: [
|
|
643300
|
+
async (request) => {
|
|
643301
|
+
aiService?.updateClarkJwt(request.jwt);
|
|
643302
|
+
}
|
|
643303
|
+
],
|
|
643076
643304
|
gitCommitLocal: [
|
|
643077
643305
|
async (request) => runWithGitLock(async () => {
|
|
643078
643306
|
try {
|
|
@@ -643765,7 +643993,7 @@ var import_util37 = __toESM(require_dist3());
|
|
|
643765
643993
|
// ../../../vite-plugin-file-sync/dist/codegen.js
|
|
643766
643994
|
init_cjs_shims();
|
|
643767
643995
|
var t7 = __toESM(require_lib8());
|
|
643768
|
-
var
|
|
643996
|
+
var import_json5 = __toESM(require_lib4());
|
|
643769
643997
|
|
|
643770
643998
|
// ../../../vite-plugin-file-sync/dist/parsing/type-parsing-registry.js
|
|
643771
643999
|
init_cjs_shims();
|
|
@@ -644065,7 +644293,7 @@ function getPropertyExpression(info, fieldName = "") {
|
|
|
644065
644293
|
} else if (type === "COMPUTED" && typeof value2 === "string") {
|
|
644066
644294
|
let parsed;
|
|
644067
644295
|
try {
|
|
644068
|
-
parsed =
|
|
644296
|
+
parsed = import_json5.default.parse(value2);
|
|
644069
644297
|
return getPropertyExpression(Property.Static(parsed), fieldName);
|
|
644070
644298
|
} catch (_e2) {
|
|
644071
644299
|
}
|
|
@@ -666003,7 +666231,7 @@ var parseYaml3;
|
|
|
666003
666231
|
async function loadYaml(file2) {
|
|
666004
666232
|
const content18 = await read_file_default(file2);
|
|
666005
666233
|
if (!parseYaml3) {
|
|
666006
|
-
({ __parsePrettierYamlConfig: parseYaml3 } = await import("./yaml-
|
|
666234
|
+
({ __parsePrettierYamlConfig: parseYaml3 } = await import("./yaml-QXAJFS4E.js"));
|
|
666007
666235
|
}
|
|
666008
666236
|
try {
|
|
666009
666237
|
return parseYaml3(content18);
|
|
@@ -671397,7 +671625,7 @@ function createParsersAndPrinters(modules) {
|
|
|
671397
671625
|
}
|
|
671398
671626
|
var estreePlugin = createParsersAndPrinters([
|
|
671399
671627
|
{
|
|
671400
|
-
importPlugin: () => import("./estree-
|
|
671628
|
+
importPlugin: () => import("./estree-3YU2SNQQ.js"),
|
|
671401
671629
|
printers: ["estree", "estree-json"]
|
|
671402
671630
|
}
|
|
671403
671631
|
]);
|
|
@@ -671421,11 +671649,11 @@ var languages = [
|
|
|
671421
671649
|
];
|
|
671422
671650
|
var { parsers: parsers12, printers } = createParsersAndPrinters([
|
|
671423
671651
|
{
|
|
671424
|
-
importPlugin: () => import("./acorn-
|
|
671652
|
+
importPlugin: () => import("./acorn-2OSOKZWW.js"),
|
|
671425
671653
|
parsers: ["acorn", "espree"]
|
|
671426
671654
|
},
|
|
671427
671655
|
{
|
|
671428
|
-
importPlugin: () => import("./angular-
|
|
671656
|
+
importPlugin: () => import("./angular-BDYQKWE3.js"),
|
|
671429
671657
|
parsers: [
|
|
671430
671658
|
"__ng_action",
|
|
671431
671659
|
"__ng_binding",
|
|
@@ -671434,7 +671662,7 @@ var { parsers: parsers12, printers } = createParsersAndPrinters([
|
|
|
671434
671662
|
]
|
|
671435
671663
|
},
|
|
671436
671664
|
{
|
|
671437
|
-
importPlugin: () => import("./babel-
|
|
671665
|
+
importPlugin: () => import("./babel-3PELWUVK.js"),
|
|
671438
671666
|
parsers: [
|
|
671439
671667
|
"babel",
|
|
671440
671668
|
"babel-flow",
|
|
@@ -671453,44 +671681,44 @@ var { parsers: parsers12, printers } = createParsersAndPrinters([
|
|
|
671453
671681
|
]
|
|
671454
671682
|
},
|
|
671455
671683
|
{
|
|
671456
|
-
importPlugin: () => import("./flow-
|
|
671684
|
+
importPlugin: () => import("./flow-GI4X5GOZ.js"),
|
|
671457
671685
|
parsers: ["flow"]
|
|
671458
671686
|
},
|
|
671459
671687
|
{
|
|
671460
|
-
importPlugin: () => import("./glimmer-
|
|
671688
|
+
importPlugin: () => import("./glimmer-3ROGYMIR.js"),
|
|
671461
671689
|
parsers: ["glimmer"],
|
|
671462
671690
|
printers: ["glimmer"]
|
|
671463
671691
|
},
|
|
671464
671692
|
{
|
|
671465
|
-
importPlugin: () => import("./graphql-
|
|
671693
|
+
importPlugin: () => import("./graphql-6CYOHVDP.js"),
|
|
671466
671694
|
parsers: ["graphql"],
|
|
671467
671695
|
printers: ["graphql"]
|
|
671468
671696
|
},
|
|
671469
671697
|
{
|
|
671470
|
-
importPlugin: () => import("./html-
|
|
671698
|
+
importPlugin: () => import("./html-CYEXMRR7.js"),
|
|
671471
671699
|
parsers: ["html", "angular", "vue", "lwc", "mjml"],
|
|
671472
671700
|
printers: ["html"]
|
|
671473
671701
|
},
|
|
671474
671702
|
{
|
|
671475
|
-
importPlugin: () => import("./markdown-
|
|
671703
|
+
importPlugin: () => import("./markdown-AKCMKZIH.js"),
|
|
671476
671704
|
parsers: ["markdown", "mdx", "remark"],
|
|
671477
671705
|
printers: ["mdast"]
|
|
671478
671706
|
},
|
|
671479
671707
|
{
|
|
671480
|
-
importPlugin: () => import("./meriyah-
|
|
671708
|
+
importPlugin: () => import("./meriyah-LA4QESK5.js"),
|
|
671481
671709
|
parsers: ["meriyah"]
|
|
671482
671710
|
},
|
|
671483
671711
|
{
|
|
671484
|
-
importPlugin: () => import("./postcss-
|
|
671712
|
+
importPlugin: () => import("./postcss-L5OO57MY.js"),
|
|
671485
671713
|
parsers: ["css", "less", "scss"],
|
|
671486
671714
|
printers: ["postcss"]
|
|
671487
671715
|
},
|
|
671488
671716
|
{
|
|
671489
|
-
importPlugin: () => import("./typescript-
|
|
671717
|
+
importPlugin: () => import("./typescript-OTSVEC4M.js"),
|
|
671490
671718
|
parsers: ["typescript"]
|
|
671491
671719
|
},
|
|
671492
671720
|
{
|
|
671493
|
-
importPlugin: () => import("./yaml-
|
|
671721
|
+
importPlugin: () => import("./yaml-QXAJFS4E.js"),
|
|
671494
671722
|
parsers: ["yaml"],
|
|
671495
671723
|
printers: ["yaml"]
|
|
671496
671724
|
}
|
|
@@ -689554,7 +689782,7 @@ async function handleLockConflict(error40, lockSvc, span, logger22) {
|
|
|
689554
689782
|
}
|
|
689555
689783
|
async function readPkgJson(cwd) {
|
|
689556
689784
|
try {
|
|
689557
|
-
const { readPackage } = await import("./read-pkg-
|
|
689785
|
+
const { readPackage } = await import("./read-pkg-C77UIGLE.js");
|
|
689558
689786
|
return await readPackage({ cwd });
|
|
689559
689787
|
} catch {
|
|
689560
689788
|
return null;
|
|
@@ -689939,6 +690167,7 @@ async function dev(options8) {
|
|
|
689939
690167
|
logger: logger22,
|
|
689940
690168
|
tokenManager,
|
|
689941
690169
|
features: AiServiceFeatureFlags.create(flagBootstrap),
|
|
690170
|
+
flagBootstrap,
|
|
689942
690171
|
pluginExecutionVersions: currentUser.organizations[0].pluginExecutionVersions
|
|
689943
690172
|
});
|
|
689944
690173
|
await tracer4.startActiveSpan("aiServiceInitialize", async (span) => {
|
|
@@ -689948,6 +690177,9 @@ async function dev(options8) {
|
|
|
689948
690177
|
span.end();
|
|
689949
690178
|
}
|
|
689950
690179
|
});
|
|
690180
|
+
if (uploadFirst) {
|
|
690181
|
+
aiService?.notifyMigrationAppArtifactsReady();
|
|
690182
|
+
}
|
|
689951
690183
|
logger22.info(`[dev-startup] Starting git sync (${downloadFirst ? "download" : "upload"}-first) on branch '${activeDbfsBranchName}'`);
|
|
689952
690184
|
await tracer4.startActiveSpan("gitSync", async (gitSpan) => {
|
|
689953
690185
|
try {
|
|
@@ -690060,6 +690292,9 @@ async function dev(options8) {
|
|
|
690060
690292
|
} else if (downloadFirst && isSynced) {
|
|
690061
690293
|
logger22.info("[dev-startup] Skipping download, already in sync");
|
|
690062
690294
|
}
|
|
690295
|
+
if (downloadFirst) {
|
|
690296
|
+
aiService?.notifyMigrationAppArtifactsReady();
|
|
690297
|
+
}
|
|
690063
690298
|
await stripResolvedFromLockfile(cwd);
|
|
690064
690299
|
if (!aiService) {
|
|
690065
690300
|
logger22.info("[home-npmrc] skipped: AiService unavailable at startup");
|
|
@@ -691278,4 +691513,4 @@ serve-static/index.js:
|
|
|
691278
691513
|
chokidar/esm/index.js:
|
|
691279
691514
|
(*! chokidar - MIT License (c) 2012 Paul Miller (paulmillr.com) *)
|
|
691280
691515
|
*/
|
|
691281
|
-
//# sourceMappingURL=chunk-
|
|
691516
|
+
//# sourceMappingURL=chunk-AHLM5SRP.js.map
|