@superblocksteam/cli 2.0.106-next.0 → 2.0.106-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/{acorn-JXTSIMMS.js → acorn-QO52KVQO.js} +3 -3
- package/dist/{angular-6NNHHPKO.js → angular-YUWEXJBE.js} +3 -3
- package/dist/{api-WRSV65DW.js → api-5WWQLKJR.js} +4 -4
- package/dist/{babel-W5273TIY.js → babel-5YQYS64B.js} +3 -3
- package/dist/{chunk-W4RLP3E2.js → chunk-2H5KPH2O.js} +4 -4
- package/dist/{chunk-F742M5B7.js → chunk-3GJCLRDV.js} +3 -3
- package/dist/{chunk-PH4SMHMV.js → chunk-5LNSICAA.js} +6 -6
- package/dist/{chunk-RJD4R46O.js → chunk-BOZUPEHV.js} +6 -6
- package/dist/{chunk-OHOPET7J.js → chunk-BURIBQXL.js} +3 -3
- package/dist/{chunk-QJVIFTZW.js → chunk-E7NTY24A.js} +4 -4
- package/dist/{chunk-5UKSPTL7.js → chunk-ECJLTIMC.js} +4 -4
- package/dist/{chunk-YJYL4PZK.js → chunk-EZAYJMQJ.js} +3 -3
- package/dist/{chunk-JODWPIVH.js → chunk-JIFGA4NR.js} +3 -3
- package/dist/{chunk-7IINLHNE.js → chunk-MS67U3PK.js} +2 -2
- package/dist/{chunk-WKLVWGI6.js → chunk-PI3SD7EI.js} +3 -3
- package/dist/{chunk-6AP6GACV.js → chunk-QHGTAMJU.js} +3 -3
- package/dist/{chunk-S7VVKBVA.js → chunk-QIEZ3N5W.js} +3 -3
- package/dist/{chunk-URJDQ6EF.js → chunk-QQME6RVF.js} +410 -122
- package/dist/{chunk-URJDQ6EF.js.map → chunk-QQME6RVF.js.map} +1 -1
- package/dist/{chunk-LPAHAAUA.js → chunk-VI3GSRQD.js} +3 -3
- package/dist/{chunk-WQUIUM47.js → chunk-XICYD52F.js} +3 -3
- package/dist/{chunk-QHP4DGRQ.js → chunk-XKHVQK6Y.js} +4 -4
- package/dist/{cli-truncate-H3CL2QL7.js → cli-truncate-3RQW75YU.js} +5 -5
- package/dist/commands/dev-parent.js +2 -2
- package/dist/{dd-trace-OUOCR67F.js → dd-trace-2UHYT5SW.js} +7 -7
- package/dist/{dist-4B2T5IO3.js → dist-PW2BQF4E.js} +13 -13
- package/dist/{embedded-playwright-mcp-server-MLERRNWB.js → embedded-playwright-mcp-server-ZHUTAK6F.js} +3 -3
- package/dist/{enquirer-SIDCUJPM.js → enquirer-7OD7KAGN.js} +4 -4
- package/dist/{estree-7NADVLEG.js → estree-NWG7ORNF.js} +3 -3
- package/dist/{flow-QPXEUSAQ.js → flow-B2DJASGH.js} +3 -3
- package/dist/{getMachineId-bsd-2ORIDDQ5.js → getMachineId-bsd-E3GVT2GK.js} +5 -5
- package/dist/{getMachineId-darwin-33KOHDEM.js → getMachineId-darwin-QRJQCJQE.js} +5 -5
- package/dist/{getMachineId-linux-BYAUPJMO.js → getMachineId-linux-YRC7RADL.js} +4 -4
- package/dist/{getMachineId-unsupported-BB4ESA4F.js → getMachineId-unsupported-E7ZIQBN3.js} +4 -4
- package/dist/{getMachineId-win-XGSR4MT6.js → getMachineId-win-XFETCMTH.js} +5 -5
- package/dist/{glimmer-KRZYBCFR.js → glimmer-IELLTFF3.js} +3 -3
- package/dist/{graphql-2SQQ2CMB.js → graphql-GIEHFWOJ.js} +3 -3
- package/dist/{html-EOLDPQ3M.js → html-YZ5MVTIB.js} +3 -3
- package/dist/{http-P5ULMT2T.js → http-JUBYGRCQ.js} +12 -12
- package/dist/index.js +18 -18
- package/dist/{jiti-HELUOZWI.js → jiti-EMEL3JNP.js} +3 -3
- package/dist/{log-update-YFAVJD3F.js → log-update-4N5G3AVL.js} +6 -6
- package/dist/{markdown-VKUHOE3Z.js → markdown-NS4LHUPF.js} +3 -3
- package/dist/{meriyah-SA4HPCWA.js → meriyah-MCD53HCJ.js} +3 -3
- package/dist/{postcss-VBFQM3OD.js → postcss-OKYQPXFM.js} +3 -3
- package/dist/{read-pkg-S426WJLK.js → read-pkg-DZ2QCX34.js} +5 -5
- package/dist/{spans-7RZYSVZ5.js → spans-J7NJFIEG.js} +4 -4
- package/dist/{src-W525KKXH.js → src-4YG4SJN3.js} +3 -3
- package/dist/{token-V7DMFWR3.js → token-HNNP4N7Y.js} +5 -5
- package/dist/{token-util-NCL6GIGM.js → token-util-WSJSWZVU.js} +5 -5
- package/dist/{typescript-5PD7NGXG.js → typescript-FDRAW2VN.js} +3 -3
- package/dist/{wrap-ansi-H2GDAETT.js → wrap-ansi-2REKVBIM.js} +5 -5
- package/dist/{yaml-GDZZJPT4.js → yaml-DIKD4C3J.js} +3 -3
- package/oclif.manifest.json +1 -1
- package/package.json +5 -5
- /package/dist/{acorn-JXTSIMMS.js.map → acorn-QO52KVQO.js.map} +0 -0
- /package/dist/{angular-6NNHHPKO.js.map → angular-YUWEXJBE.js.map} +0 -0
- /package/dist/{api-WRSV65DW.js.map → api-5WWQLKJR.js.map} +0 -0
- /package/dist/{babel-W5273TIY.js.map → babel-5YQYS64B.js.map} +0 -0
- /package/dist/{chunk-W4RLP3E2.js.map → chunk-2H5KPH2O.js.map} +0 -0
- /package/dist/{chunk-F742M5B7.js.map → chunk-3GJCLRDV.js.map} +0 -0
- /package/dist/{chunk-PH4SMHMV.js.map → chunk-5LNSICAA.js.map} +0 -0
- /package/dist/{chunk-RJD4R46O.js.map → chunk-BOZUPEHV.js.map} +0 -0
- /package/dist/{chunk-OHOPET7J.js.map → chunk-BURIBQXL.js.map} +0 -0
- /package/dist/{chunk-QJVIFTZW.js.map → chunk-E7NTY24A.js.map} +0 -0
- /package/dist/{chunk-5UKSPTL7.js.map → chunk-ECJLTIMC.js.map} +0 -0
- /package/dist/{chunk-YJYL4PZK.js.map → chunk-EZAYJMQJ.js.map} +0 -0
- /package/dist/{chunk-JODWPIVH.js.map → chunk-JIFGA4NR.js.map} +0 -0
- /package/dist/{chunk-7IINLHNE.js.map → chunk-MS67U3PK.js.map} +0 -0
- /package/dist/{chunk-WKLVWGI6.js.map → chunk-PI3SD7EI.js.map} +0 -0
- /package/dist/{chunk-6AP6GACV.js.map → chunk-QHGTAMJU.js.map} +0 -0
- /package/dist/{chunk-S7VVKBVA.js.map → chunk-QIEZ3N5W.js.map} +0 -0
- /package/dist/{chunk-LPAHAAUA.js.map → chunk-VI3GSRQD.js.map} +0 -0
- /package/dist/{chunk-WQUIUM47.js.map → chunk-XICYD52F.js.map} +0 -0
- /package/dist/{chunk-QHP4DGRQ.js.map → chunk-XKHVQK6Y.js.map} +0 -0
- /package/dist/{cli-truncate-H3CL2QL7.js.map → cli-truncate-3RQW75YU.js.map} +0 -0
- /package/dist/{dd-trace-OUOCR67F.js.map → dd-trace-2UHYT5SW.js.map} +0 -0
- /package/dist/{dist-4B2T5IO3.js.map → dist-PW2BQF4E.js.map} +0 -0
- /package/dist/{embedded-playwright-mcp-server-MLERRNWB.js.map → embedded-playwright-mcp-server-ZHUTAK6F.js.map} +0 -0
- /package/dist/{enquirer-SIDCUJPM.js.map → enquirer-7OD7KAGN.js.map} +0 -0
- /package/dist/{estree-7NADVLEG.js.map → estree-NWG7ORNF.js.map} +0 -0
- /package/dist/{flow-QPXEUSAQ.js.map → flow-B2DJASGH.js.map} +0 -0
- /package/dist/{getMachineId-bsd-2ORIDDQ5.js.map → getMachineId-bsd-E3GVT2GK.js.map} +0 -0
- /package/dist/{getMachineId-darwin-33KOHDEM.js.map → getMachineId-darwin-QRJQCJQE.js.map} +0 -0
- /package/dist/{getMachineId-linux-BYAUPJMO.js.map → getMachineId-linux-YRC7RADL.js.map} +0 -0
- /package/dist/{getMachineId-unsupported-BB4ESA4F.js.map → getMachineId-unsupported-E7ZIQBN3.js.map} +0 -0
- /package/dist/{getMachineId-win-XGSR4MT6.js.map → getMachineId-win-XFETCMTH.js.map} +0 -0
- /package/dist/{glimmer-KRZYBCFR.js.map → glimmer-IELLTFF3.js.map} +0 -0
- /package/dist/{graphql-2SQQ2CMB.js.map → graphql-GIEHFWOJ.js.map} +0 -0
- /package/dist/{html-EOLDPQ3M.js.map → html-YZ5MVTIB.js.map} +0 -0
- /package/dist/{http-P5ULMT2T.js.map → http-JUBYGRCQ.js.map} +0 -0
- /package/dist/{jiti-HELUOZWI.js.map → jiti-EMEL3JNP.js.map} +0 -0
- /package/dist/{log-update-YFAVJD3F.js.map → log-update-4N5G3AVL.js.map} +0 -0
- /package/dist/{markdown-VKUHOE3Z.js.map → markdown-NS4LHUPF.js.map} +0 -0
- /package/dist/{meriyah-SA4HPCWA.js.map → meriyah-MCD53HCJ.js.map} +0 -0
- /package/dist/{postcss-VBFQM3OD.js.map → postcss-OKYQPXFM.js.map} +0 -0
- /package/dist/{read-pkg-S426WJLK.js.map → read-pkg-DZ2QCX34.js.map} +0 -0
- /package/dist/{spans-7RZYSVZ5.js.map → spans-J7NJFIEG.js.map} +0 -0
- /package/dist/{src-W525KKXH.js.map → src-4YG4SJN3.js.map} +0 -0
- /package/dist/{token-V7DMFWR3.js.map → token-HNNP4N7Y.js.map} +0 -0
- /package/dist/{token-util-NCL6GIGM.js.map → token-util-WSJSWZVU.js.map} +0 -0
- /package/dist/{typescript-5PD7NGXG.js.map → typescript-FDRAW2VN.js.map} +0 -0
- /package/dist/{wrap-ansi-H2GDAETT.js.map → wrap-ansi-2REKVBIM.js.map} +0 -0
- /package/dist/{yaml-GDZZJPT4.js.map → yaml-DIKD4C3J.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 = 'c33d9e255c76d5ed42e38bd961ad3bfd63602ae5';
|
|
5
5
|
}
|
|
6
6
|
import { createRequire as $dd_createRequire } from 'module';
|
|
7
7
|
import { fileURLToPath as $dd_fileURLToPath } from 'url';
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
require_re,
|
|
25
25
|
require_semver,
|
|
26
26
|
require_valid
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-3GJCLRDV.js";
|
|
28
28
|
import {
|
|
29
29
|
debounce_default,
|
|
30
30
|
get_default,
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
require_lib,
|
|
42
42
|
require_slugify,
|
|
43
43
|
throttle_default
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-JIFGA4NR.js";
|
|
45
45
|
import {
|
|
46
46
|
require_dd_trace,
|
|
47
47
|
require_import_in_the_middle,
|
|
@@ -50,16 +50,16 @@ import {
|
|
|
50
50
|
require_p_limit,
|
|
51
51
|
require_path_to_regexp,
|
|
52
52
|
require_src
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-5LNSICAA.js";
|
|
54
54
|
import {
|
|
55
55
|
require_commonjs
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-VI3GSRQD.js";
|
|
57
57
|
import {
|
|
58
58
|
require_dc_polyfill
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-BURIBQXL.js";
|
|
60
60
|
import {
|
|
61
61
|
require_token_error
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-QHGTAMJU.js";
|
|
63
63
|
import {
|
|
64
64
|
SpanKind,
|
|
65
65
|
SpanStatusCode,
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
init_esm,
|
|
69
69
|
metrics,
|
|
70
70
|
trace
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-PI3SD7EI.js";
|
|
72
72
|
import {
|
|
73
73
|
__commonJS,
|
|
74
74
|
__esm,
|
|
@@ -77,7 +77,7 @@ import {
|
|
|
77
77
|
__toCommonJS,
|
|
78
78
|
__toESM,
|
|
79
79
|
init_cjs_shims
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-MS67U3PK.js";
|
|
81
81
|
|
|
82
82
|
// ../../../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/constants.js
|
|
83
83
|
var require_constants3 = __commonJS({
|
|
@@ -44776,8 +44776,9 @@ var require_auth3 = __commonJS({
|
|
|
44776
44776
|
var restapiintegration_js_1 = require_restapiintegration();
|
|
44777
44777
|
var ClientAuthMethod;
|
|
44778
44778
|
(function(ClientAuthMethod2) {
|
|
44779
|
-
ClientAuthMethod2["POST"] = "POST";
|
|
44780
44779
|
ClientAuthMethod2["BASIC"] = "BASIC";
|
|
44780
|
+
ClientAuthMethod2["BEARER"] = "BEARER";
|
|
44781
|
+
ClientAuthMethod2["POST"] = "POST";
|
|
44781
44782
|
})(ClientAuthMethod || (exports2.ClientAuthMethod = ClientAuthMethod = {}));
|
|
44782
44783
|
var AUTH_METHODS_TO_TYPES = {
|
|
44783
44784
|
basic: index_js_1.IntegrationAuthType.BASIC,
|
|
@@ -44808,8 +44809,9 @@ var require_auth3 = __commonJS({
|
|
|
44808
44809
|
// allow caller to provide optional customized auth items
|
|
44809
44810
|
prependItems = []
|
|
44810
44811
|
}) => {
|
|
44812
|
+
const apiKeyFormDisplayName = enabledMethods.apiKeyFormDisplayName;
|
|
44811
44813
|
enabledMethods = Object.keys(enabledMethods).reduce((acc, key2) => {
|
|
44812
|
-
if (enabledMethods[key2]) {
|
|
44814
|
+
if (enabledMethods[key2] && key2 !== "apiKeyFormDisplayName") {
|
|
44813
44815
|
acc[key2] = enabledMethods[key2];
|
|
44814
44816
|
}
|
|
44815
44817
|
return acc;
|
|
@@ -44840,7 +44842,7 @@ var require_auth3 = __commonJS({
|
|
|
44840
44842
|
startVersion,
|
|
44841
44843
|
componentType: index_js_1.FormComponentType.DROPDOWN,
|
|
44842
44844
|
initialValue: authTypeInitialValue,
|
|
44843
|
-
options: authTypeOptions({ enabledMethods, allowNone, isProto }),
|
|
44845
|
+
options: authTypeOptions({ enabledMethods, allowNone, isProto, apiKeyFormDisplayName }),
|
|
44844
44846
|
disabled: !allowNone && enabledMethodKeys.length === 1
|
|
44845
44847
|
}
|
|
44846
44848
|
], fieldNamesToHide);
|
|
@@ -45037,6 +45039,7 @@ var require_auth3 = __commonJS({
|
|
|
45037
45039
|
message: `${apiKey.label} is required`
|
|
45038
45040
|
}
|
|
45039
45041
|
],
|
|
45042
|
+
...apiKey.tooltip ? { tooltip: apiKey.tooltip } : {},
|
|
45040
45043
|
display: {
|
|
45041
45044
|
show: {
|
|
45042
45045
|
authType: [index_js_1.IntegrationAuthType.API_KEY_FORM]
|
|
@@ -46032,7 +46035,7 @@ var require_auth3 = __commonJS({
|
|
|
46032
46035
|
}
|
|
46033
46036
|
return options8;
|
|
46034
46037
|
}
|
|
46035
|
-
function authTypeOptions({ enabledMethods, allowNone = true, isProto = false }) {
|
|
46038
|
+
function authTypeOptions({ enabledMethods, allowNone = true, isProto = false, apiKeyFormDisplayName }) {
|
|
46036
46039
|
const options8 = allowNone ? [
|
|
46037
46040
|
{
|
|
46038
46041
|
displayName: (0, index_js_1.getDisplayName)(index_js_1.IntegrationAuthType.NONE),
|
|
@@ -46063,7 +46066,7 @@ var require_auth3 = __commonJS({
|
|
|
46063
46066
|
}
|
|
46064
46067
|
if (enabledMethods.apiKeyForm) {
|
|
46065
46068
|
options8.push({
|
|
46066
|
-
displayName: (0, index_js_1.getDisplayName)(index_js_1.IntegrationAuthType.API_KEY_FORM),
|
|
46069
|
+
displayName: apiKeyFormDisplayName ?? (0, index_js_1.getDisplayName)(index_js_1.IntegrationAuthType.API_KEY_FORM),
|
|
46067
46070
|
value: index_js_1.IntegrationAuthType.API_KEY_FORM,
|
|
46068
46071
|
key: index_js_1.IntegrationAuthType.API_KEY_FORM
|
|
46069
46072
|
});
|
|
@@ -46275,13 +46278,17 @@ var require_openapi = __commonJS({
|
|
|
46275
46278
|
"use strict";
|
|
46276
46279
|
init_cjs_shims();
|
|
46277
46280
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
46278
|
-
exports2.getNativeOpenApiPlugin = void 0;
|
|
46281
|
+
exports2.getNativeOpenApiPlugin = exports2.oauth2BringYourOwnPluginIds = void 0;
|
|
46279
46282
|
var lodash_1 = require_lodash();
|
|
46280
46283
|
var index_js_1 = require_types2();
|
|
46281
46284
|
var constants_js_1 = require_constants4();
|
|
46282
46285
|
var auth_js_1 = require_auth3();
|
|
46283
46286
|
var restapiintegration_js_1 = require_restapiintegration();
|
|
46287
|
+
exports2.oauth2BringYourOwnPluginIds = /* @__PURE__ */ new Set();
|
|
46284
46288
|
var getNativeOpenApiPlugin = ({ id: id2, name: name17, serverURL, authMethods, docsURL, logoURL, openApiSpecURL, headers, tenantInput, isStreamable }) => {
|
|
46289
|
+
if (authMethods.oauth2BringYourOwn) {
|
|
46290
|
+
exports2.oauth2BringYourOwnPluginIds.add(id2);
|
|
46291
|
+
}
|
|
46285
46292
|
const mainSectionItems = [
|
|
46286
46293
|
{
|
|
46287
46294
|
label: "Display name",
|
|
@@ -60828,7 +60835,19 @@ var require_snowflakecortex = __commonJS({
|
|
|
60828
60835
|
openApiSpecURL: `${constants_js_1.PUBLIC_INTEGRATIONS_CDN_URL}/openapi/snowflake-cortex.yaml`,
|
|
60829
60836
|
logoURL: `${constants_js_1.PUBLIC_INTEGRATIONS_LOGO_URL}/snowflake.png`,
|
|
60830
60837
|
authMethods: {
|
|
60831
|
-
|
|
60838
|
+
apiKeyFormDisplayName: "Programmatic Access Token",
|
|
60839
|
+
apiKeyForm: [
|
|
60840
|
+
{
|
|
60841
|
+
label: "Programmatic Access Token",
|
|
60842
|
+
header: "Authorization",
|
|
60843
|
+
key: "api-key",
|
|
60844
|
+
required: true,
|
|
60845
|
+
valuePrefix: "Bearer ",
|
|
60846
|
+
tooltip: {
|
|
60847
|
+
markdownText: "A Programmatic Access Token (PAT) is used for authentication. [Learn how to generate one](https://docs.snowflake.com/en/user-guide/programmatic-access-tokens)."
|
|
60848
|
+
}
|
|
60849
|
+
}
|
|
60850
|
+
]
|
|
60832
60851
|
},
|
|
60833
60852
|
isStreamable: true,
|
|
60834
60853
|
serverURL: "https://{SUPERBLOCKS_OPENAPI_TENANT_NAME}.snowflakecomputing.com",
|
|
@@ -96547,15 +96566,15 @@ var require_api_files = __commonJS({
|
|
|
96547
96566
|
exports2.readAppApiYamlFile = readAppApiYamlFile4;
|
|
96548
96567
|
exports2.resolveLanguageSpecificStepContentFromBlocks = resolveLanguageSpecificStepContentFromBlocks2;
|
|
96549
96568
|
async function writeApiFiles3(...args) {
|
|
96550
|
-
const esmFunction = await import("./api-
|
|
96569
|
+
const esmFunction = await import("./api-5WWQLKJR.js");
|
|
96551
96570
|
return esmFunction.writeApiFiles(...args);
|
|
96552
96571
|
}
|
|
96553
96572
|
async function readAppApiYamlFile4(...args) {
|
|
96554
|
-
const esmFunction = await import("./api-
|
|
96573
|
+
const esmFunction = await import("./api-5WWQLKJR.js");
|
|
96555
96574
|
return esmFunction.readAppApiYamlFile(...args);
|
|
96556
96575
|
}
|
|
96557
96576
|
async function resolveLanguageSpecificStepContentFromBlocks2(...args) {
|
|
96558
|
-
const esmFunction = await import("./api-
|
|
96577
|
+
const esmFunction = await import("./api-5WWQLKJR.js");
|
|
96559
96578
|
return esmFunction.resolveLanguageSpecificStepContentFromBlocks(...args);
|
|
96560
96579
|
}
|
|
96561
96580
|
}
|
|
@@ -109347,19 +109366,19 @@ var require_getMachineId = __commonJS({
|
|
|
109347
109366
|
if (!getMachineIdImpl) {
|
|
109348
109367
|
switch (process5.platform) {
|
|
109349
109368
|
case "darwin":
|
|
109350
|
-
getMachineIdImpl = (await import("./getMachineId-darwin-
|
|
109369
|
+
getMachineIdImpl = (await import("./getMachineId-darwin-QRJQCJQE.js")).getMachineId;
|
|
109351
109370
|
break;
|
|
109352
109371
|
case "linux":
|
|
109353
|
-
getMachineIdImpl = (await import("./getMachineId-linux-
|
|
109372
|
+
getMachineIdImpl = (await import("./getMachineId-linux-YRC7RADL.js")).getMachineId;
|
|
109354
109373
|
break;
|
|
109355
109374
|
case "freebsd":
|
|
109356
|
-
getMachineIdImpl = (await import("./getMachineId-bsd-
|
|
109375
|
+
getMachineIdImpl = (await import("./getMachineId-bsd-E3GVT2GK.js")).getMachineId;
|
|
109357
109376
|
break;
|
|
109358
109377
|
case "win32":
|
|
109359
|
-
getMachineIdImpl = (await import("./getMachineId-win-
|
|
109378
|
+
getMachineIdImpl = (await import("./getMachineId-win-XFETCMTH.js")).getMachineId;
|
|
109360
109379
|
break;
|
|
109361
109380
|
default:
|
|
109362
|
-
getMachineIdImpl = (await import("./getMachineId-unsupported-
|
|
109381
|
+
getMachineIdImpl = (await import("./getMachineId-unsupported-E7ZIQBN3.js")).getMachineId;
|
|
109363
109382
|
break;
|
|
109364
109383
|
}
|
|
109365
109384
|
}
|
|
@@ -185222,8 +185241,8 @@ var require_get_vercel_oidc_token = __commonJS({
|
|
|
185222
185241
|
}
|
|
185223
185242
|
try {
|
|
185224
185243
|
const [{ getTokenPayload, isExpired }, { refreshToken }] = await Promise.all([
|
|
185225
|
-
await import("./token-util-
|
|
185226
|
-
await import("./token-
|
|
185244
|
+
await import("./token-util-WSJSWZVU.js"),
|
|
185245
|
+
await import("./token-HNNP4N7Y.js")
|
|
185227
185246
|
]);
|
|
185228
185247
|
if (!token2 || isExpired(getTokenPayload(token2))) {
|
|
185229
185248
|
await refreshToken();
|
|
@@ -219957,9 +219976,9 @@ var require_generated = __commonJS({
|
|
|
219957
219976
|
exports2.isExistsTypeAnnotation = isExistsTypeAnnotation;
|
|
219958
219977
|
exports2.isExportAllDeclaration = isExportAllDeclaration;
|
|
219959
219978
|
exports2.isExportDeclaration = isExportDeclaration;
|
|
219960
|
-
exports2.isExportDefaultDeclaration =
|
|
219979
|
+
exports2.isExportDefaultDeclaration = isExportDefaultDeclaration2;
|
|
219961
219980
|
exports2.isExportDefaultSpecifier = isExportDefaultSpecifier;
|
|
219962
|
-
exports2.isExportNamedDeclaration =
|
|
219981
|
+
exports2.isExportNamedDeclaration = isExportNamedDeclaration2;
|
|
219963
219982
|
exports2.isExportNamespaceSpecifier = isExportNamespaceSpecifier;
|
|
219964
219983
|
exports2.isExportSpecifier = isExportSpecifier;
|
|
219965
219984
|
exports2.isExpression = isExpression;
|
|
@@ -220184,8 +220203,8 @@ var require_generated = __commonJS({
|
|
|
220184
220203
|
exports2.isUpdateExpression = isUpdateExpression;
|
|
220185
220204
|
exports2.isUserWhitespacable = isUserWhitespacable;
|
|
220186
220205
|
exports2.isV8IntrinsicIdentifier = isV8IntrinsicIdentifier;
|
|
220187
|
-
exports2.isVariableDeclaration =
|
|
220188
|
-
exports2.isVariableDeclarator =
|
|
220206
|
+
exports2.isVariableDeclaration = isVariableDeclaration2;
|
|
220207
|
+
exports2.isVariableDeclarator = isVariableDeclarator3;
|
|
220189
220208
|
exports2.isVariance = isVariance;
|
|
220190
220209
|
exports2.isVoidPattern = isVoidPattern;
|
|
220191
220210
|
exports2.isVoidTypeAnnotation = isVoidTypeAnnotation;
|
|
@@ -220430,12 +220449,12 @@ var require_generated = __commonJS({
|
|
|
220430
220449
|
if (node.type !== "UpdateExpression") return false;
|
|
220431
220450
|
return opts == null || (0, _shallowEqual.default)(node, opts);
|
|
220432
220451
|
}
|
|
220433
|
-
function
|
|
220452
|
+
function isVariableDeclaration2(node, opts) {
|
|
220434
220453
|
if (!node) return false;
|
|
220435
220454
|
if (node.type !== "VariableDeclaration") return false;
|
|
220436
220455
|
return opts == null || (0, _shallowEqual.default)(node, opts);
|
|
220437
220456
|
}
|
|
220438
|
-
function
|
|
220457
|
+
function isVariableDeclarator3(node, opts) {
|
|
220439
220458
|
if (!node) return false;
|
|
220440
220459
|
if (node.type !== "VariableDeclarator") return false;
|
|
220441
220460
|
return opts == null || (0, _shallowEqual.default)(node, opts);
|
|
@@ -220485,12 +220504,12 @@ var require_generated = __commonJS({
|
|
|
220485
220504
|
if (node.type !== "ExportAllDeclaration") return false;
|
|
220486
220505
|
return opts == null || (0, _shallowEqual.default)(node, opts);
|
|
220487
220506
|
}
|
|
220488
|
-
function
|
|
220507
|
+
function isExportDefaultDeclaration2(node, opts) {
|
|
220489
220508
|
if (!node) return false;
|
|
220490
220509
|
if (node.type !== "ExportDefaultDeclaration") return false;
|
|
220491
220510
|
return opts == null || (0, _shallowEqual.default)(node, opts);
|
|
220492
220511
|
}
|
|
220493
|
-
function
|
|
220512
|
+
function isExportNamedDeclaration2(node, opts) {
|
|
220494
220513
|
if (!node) return false;
|
|
220495
220514
|
if (node.type !== "ExportNamedDeclaration") return false;
|
|
220496
220515
|
return opts == null || (0, _shallowEqual.default)(node, opts);
|
|
@@ -240209,7 +240228,7 @@ var require_virtual_types_validator = __commonJS({
|
|
|
240209
240228
|
isScope: nodeIsScope,
|
|
240210
240229
|
isStatement: nodeIsStatement,
|
|
240211
240230
|
isVar: nodeIsVar,
|
|
240212
|
-
isVariableDeclaration,
|
|
240231
|
+
isVariableDeclaration: isVariableDeclaration2,
|
|
240213
240232
|
react: react4,
|
|
240214
240233
|
isForOfStatement
|
|
240215
240234
|
} = _t;
|
|
@@ -240251,7 +240270,7 @@ var require_virtual_types_validator = __commonJS({
|
|
|
240251
240270
|
parent: parent2
|
|
240252
240271
|
} = this;
|
|
240253
240272
|
if (nodeIsStatement(node)) {
|
|
240254
|
-
if (
|
|
240273
|
+
if (isVariableDeclaration2(node)) {
|
|
240255
240274
|
if (isForXStatement(parent2, {
|
|
240256
240275
|
left: node
|
|
240257
240276
|
})) return false;
|
|
@@ -240967,8 +240986,8 @@ var require_scope2 = __commonJS({
|
|
|
240967
240986
|
isClassBody,
|
|
240968
240987
|
isClassDeclaration,
|
|
240969
240988
|
isExportAllDeclaration,
|
|
240970
|
-
isExportDefaultDeclaration,
|
|
240971
|
-
isExportNamedDeclaration,
|
|
240989
|
+
isExportDefaultDeclaration: isExportDefaultDeclaration2,
|
|
240990
|
+
isExportNamedDeclaration: isExportNamedDeclaration2,
|
|
240972
240991
|
isFunctionDeclaration,
|
|
240973
240992
|
isIdentifier: isIdentifier7,
|
|
240974
240993
|
isImportDeclaration,
|
|
@@ -240986,7 +241005,7 @@ var require_scope2 = __commonJS({
|
|
|
240986
241005
|
isTemplateLiteral: isTemplateLiteral2,
|
|
240987
241006
|
isThisExpression,
|
|
240988
241007
|
isUnaryExpression,
|
|
240989
|
-
isVariableDeclaration,
|
|
241008
|
+
isVariableDeclaration: isVariableDeclaration2,
|
|
240990
241009
|
expressionStatement,
|
|
240991
241010
|
matchesPattern,
|
|
240992
241011
|
memberExpression,
|
|
@@ -241009,11 +241028,11 @@ var require_scope2 = __commonJS({
|
|
|
241009
241028
|
default:
|
|
241010
241029
|
if (isImportDeclaration(node) || isExportDeclaration(node)) {
|
|
241011
241030
|
var _node$specifiers;
|
|
241012
|
-
if ((isExportAllDeclaration(node) ||
|
|
241031
|
+
if ((isExportAllDeclaration(node) || isExportNamedDeclaration2(node) || isImportDeclaration(node)) && node.source) {
|
|
241013
241032
|
gatherNodeParts(node.source, parts);
|
|
241014
|
-
} else if ((
|
|
241033
|
+
} else if ((isExportNamedDeclaration2(node) || isImportDeclaration(node)) && (_node$specifiers = node.specifiers) != null && _node$specifiers.length) {
|
|
241015
241034
|
for (const e of node.specifiers) gatherNodeParts(e, parts);
|
|
241016
|
-
} else if ((
|
|
241035
|
+
} else if ((isExportDefaultDeclaration2(node) || isExportNamedDeclaration2(node)) && node.declaration) {
|
|
241017
241036
|
gatherNodeParts(node.declaration, parts);
|
|
241018
241037
|
}
|
|
241019
241038
|
} else if (isModuleSpecifier(node)) {
|
|
@@ -241190,7 +241209,7 @@ var require_scope2 = __commonJS({
|
|
|
241190
241209
|
if (!id2) return;
|
|
241191
241210
|
const binding = scope.getBinding(id2.name);
|
|
241192
241211
|
binding == null || binding.reference(path77);
|
|
241193
|
-
} else if (
|
|
241212
|
+
} else if (isVariableDeclaration2(declar)) {
|
|
241194
241213
|
for (const decl of declar.declarations) {
|
|
241195
241214
|
for (const name17 of Object.keys(getBindingIdentifiers(decl))) {
|
|
241196
241215
|
const binding = scope.getBinding(name17);
|
|
@@ -245865,11 +245884,11 @@ var require_classes = __commonJS({
|
|
|
245865
245884
|
exports2._classMethodHead = _classMethodHead;
|
|
245866
245885
|
var _t = require_lib9();
|
|
245867
245886
|
var {
|
|
245868
|
-
isExportDefaultDeclaration,
|
|
245869
|
-
isExportNamedDeclaration
|
|
245887
|
+
isExportDefaultDeclaration: isExportDefaultDeclaration2,
|
|
245888
|
+
isExportNamedDeclaration: isExportNamedDeclaration2
|
|
245870
245889
|
} = _t;
|
|
245871
245890
|
function ClassDeclaration(node, parent2) {
|
|
245872
|
-
const inExport =
|
|
245891
|
+
const inExport = isExportDefaultDeclaration2(parent2) || isExportNamedDeclaration2(parent2);
|
|
245873
245892
|
if (!inExport || !this._shouldPrintDecoratorsBeforeExport(parent2)) {
|
|
245874
245893
|
this.printJoin(node.decorators);
|
|
245875
245894
|
}
|
|
@@ -250778,7 +250797,7 @@ var require_modification = __commonJS({
|
|
|
250778
250797
|
expressionStatement,
|
|
250779
250798
|
isAssignmentExpression,
|
|
250780
250799
|
isCallExpression: isCallExpression6,
|
|
250781
|
-
isExportNamedDeclaration,
|
|
250800
|
+
isExportNamedDeclaration: isExportNamedDeclaration2,
|
|
250782
250801
|
isExpression,
|
|
250783
250802
|
isIdentifier: isIdentifier7,
|
|
250784
250803
|
isSequenceExpression,
|
|
@@ -250792,7 +250811,7 @@ var require_modification = __commonJS({
|
|
|
250792
250811
|
parentPath,
|
|
250793
250812
|
parent: parent2
|
|
250794
250813
|
} = this;
|
|
250795
|
-
if (parentPath.isExpressionStatement() || parentPath.isLabeledStatement() ||
|
|
250814
|
+
if (parentPath.isExpressionStatement() || parentPath.isLabeledStatement() || isExportNamedDeclaration2(parent2) || parentPath.isExportDefaultDeclaration() && this.isDeclaration()) {
|
|
250796
250815
|
return parentPath.insertBefore(nodes);
|
|
250797
250816
|
} else if (this.isNodeType("Expression") && !this.isJSXElement() || parentPath.isForStatement() && this.key === "init") {
|
|
250798
250817
|
if (this.node) nodes.push(this.node);
|
|
@@ -250858,7 +250877,7 @@ var require_modification = __commonJS({
|
|
|
250858
250877
|
parentPath,
|
|
250859
250878
|
parent: parent2
|
|
250860
250879
|
} = this;
|
|
250861
|
-
if (parentPath.isExpressionStatement() || parentPath.isLabeledStatement() ||
|
|
250880
|
+
if (parentPath.isExpressionStatement() || parentPath.isLabeledStatement() || isExportNamedDeclaration2(parent2) || parentPath.isExportDefaultDeclaration() && this.isDeclaration()) {
|
|
250862
250881
|
return parentPath.insertAfter(nodes.map((node) => {
|
|
250863
250882
|
return isExpression(node) ? expressionStatement(node) : node;
|
|
250864
250883
|
}));
|
|
@@ -265583,7 +265602,7 @@ var require_replacement = __commonJS({
|
|
|
265583
265602
|
isIfStatement,
|
|
265584
265603
|
isProgram,
|
|
265585
265604
|
isStatement,
|
|
265586
|
-
isVariableDeclaration,
|
|
265605
|
+
isVariableDeclaration: isVariableDeclaration2,
|
|
265587
265606
|
removeComments: removeComments2,
|
|
265588
265607
|
returnStatement,
|
|
265589
265608
|
sequenceExpression,
|
|
@@ -265751,7 +265770,7 @@ var require_replacement = __commonJS({
|
|
|
265751
265770
|
exprs.push(node);
|
|
265752
265771
|
} else if (isExpressionStatement2(node)) {
|
|
265753
265772
|
exprs.push(node.expression);
|
|
265754
|
-
} else if (
|
|
265773
|
+
} else if (isVariableDeclaration2(node)) {
|
|
265755
265774
|
if (node.kind !== "var") return;
|
|
265756
265775
|
for (const declar of node.declarations) {
|
|
265757
265776
|
const bindings = getBindingIdentifiers(declar);
|
|
@@ -336402,7 +336421,7 @@ var require_vars_on_top = __commonJS({
|
|
|
336402
336421
|
function looksLikeImport(node) {
|
|
336403
336422
|
return node.type === "ImportDeclaration" || node.type === "ImportSpecifier" || node.type === "ImportDefaultSpecifier" || node.type === "ImportNamespaceSpecifier";
|
|
336404
336423
|
}
|
|
336405
|
-
function
|
|
336424
|
+
function isVariableDeclaration2(node) {
|
|
336406
336425
|
return node.type === "VariableDeclaration" || node.type === "ExportNamedDeclaration" && node.declaration && node.declaration.type === "VariableDeclaration";
|
|
336407
336426
|
}
|
|
336408
336427
|
function isVarOnTop(node, statements) {
|
|
@@ -336416,7 +336435,7 @@ var require_vars_on_top = __commonJS({
|
|
|
336416
336435
|
}
|
|
336417
336436
|
}
|
|
336418
336437
|
for (; i < l; ++i) {
|
|
336419
|
-
if (!
|
|
336438
|
+
if (!isVariableDeclaration2(statements[i])) {
|
|
336420
336439
|
return false;
|
|
336421
336440
|
}
|
|
336422
336441
|
if (statements[i] === node) {
|
|
@@ -367423,7 +367442,7 @@ var require_config_loader = __commonJS({
|
|
|
367423
367442
|
* @returns {Promise<{createJiti: Function|undefined, version: string;}>} A promise that fulfills with an object containing the jiti module's createJiti function and version.
|
|
367424
367443
|
*/
|
|
367425
367444
|
static async loadJiti() {
|
|
367426
|
-
const { createJiti } = await import("./jiti-
|
|
367445
|
+
const { createJiti } = await import("./jiti-EMEL3JNP.js");
|
|
367427
367446
|
const version5 = require_package6().version;
|
|
367428
367447
|
return { createJiti, version: version5 };
|
|
367429
367448
|
}
|
|
@@ -367752,7 +367771,7 @@ var require_eslint_helpers = __commonJS({
|
|
|
367752
367771
|
}
|
|
367753
367772
|
async function globMatch({ basePath, pattern }) {
|
|
367754
367773
|
let found = false;
|
|
367755
|
-
const { hfs } = await import("./src-
|
|
367774
|
+
const { hfs } = await import("./src-4YG4SJN3.js");
|
|
367756
367775
|
const patternToUse = normalizeToPosix(path77.relative(basePath, pattern));
|
|
367757
367776
|
const matcher = new Minimatch2(patternToUse, MINIMATCH_OPTIONS);
|
|
367758
367777
|
const walkSettings = {
|
|
@@ -367792,7 +367811,7 @@ var require_eslint_helpers = __commonJS({
|
|
|
367792
367811
|
return new Minimatch2(patternToUse, MINIMATCH_OPTIONS);
|
|
367793
367812
|
});
|
|
367794
367813
|
const unmatchedPatterns = /* @__PURE__ */ new Set([...relativeToPatterns.keys()]);
|
|
367795
|
-
const { hfs } = await import("./src-
|
|
367814
|
+
const { hfs } = await import("./src-4YG4SJN3.js");
|
|
367796
367815
|
const walk2 = hfs.walk(basePath, {
|
|
367797
367816
|
async directoryFilter(entry) {
|
|
367798
367817
|
if (!matchers.some((matcher) => matcher.match(entry.path, true))) {
|
|
@@ -447851,9 +447870,9 @@ var require_generated5 = __commonJS({
|
|
|
447851
447870
|
exports2.isExistsTypeAnnotation = isExistsTypeAnnotation;
|
|
447852
447871
|
exports2.isExportAllDeclaration = isExportAllDeclaration;
|
|
447853
447872
|
exports2.isExportDeclaration = isExportDeclaration;
|
|
447854
|
-
exports2.isExportDefaultDeclaration =
|
|
447873
|
+
exports2.isExportDefaultDeclaration = isExportDefaultDeclaration2;
|
|
447855
447874
|
exports2.isExportDefaultSpecifier = isExportDefaultSpecifier;
|
|
447856
|
-
exports2.isExportNamedDeclaration =
|
|
447875
|
+
exports2.isExportNamedDeclaration = isExportNamedDeclaration2;
|
|
447857
447876
|
exports2.isExportNamespaceSpecifier = isExportNamespaceSpecifier;
|
|
447858
447877
|
exports2.isExportSpecifier = isExportSpecifier;
|
|
447859
447878
|
exports2.isExpression = isExpression;
|
|
@@ -448078,8 +448097,8 @@ var require_generated5 = __commonJS({
|
|
|
448078
448097
|
exports2.isUpdateExpression = isUpdateExpression;
|
|
448079
448098
|
exports2.isUserWhitespacable = isUserWhitespacable;
|
|
448080
448099
|
exports2.isV8IntrinsicIdentifier = isV8IntrinsicIdentifier;
|
|
448081
|
-
exports2.isVariableDeclaration =
|
|
448082
|
-
exports2.isVariableDeclarator =
|
|
448100
|
+
exports2.isVariableDeclaration = isVariableDeclaration2;
|
|
448101
|
+
exports2.isVariableDeclarator = isVariableDeclarator3;
|
|
448083
448102
|
exports2.isVariance = isVariance;
|
|
448084
448103
|
exports2.isVoidPattern = isVoidPattern;
|
|
448085
448104
|
exports2.isVoidTypeAnnotation = isVoidTypeAnnotation;
|
|
@@ -448324,12 +448343,12 @@ var require_generated5 = __commonJS({
|
|
|
448324
448343
|
if (node.type !== "UpdateExpression") return false;
|
|
448325
448344
|
return opts == null || (0, _shallowEqual.default)(node, opts);
|
|
448326
448345
|
}
|
|
448327
|
-
function
|
|
448346
|
+
function isVariableDeclaration2(node, opts) {
|
|
448328
448347
|
if (!node) return false;
|
|
448329
448348
|
if (node.type !== "VariableDeclaration") return false;
|
|
448330
448349
|
return opts == null || (0, _shallowEqual.default)(node, opts);
|
|
448331
448350
|
}
|
|
448332
|
-
function
|
|
448351
|
+
function isVariableDeclarator3(node, opts) {
|
|
448333
448352
|
if (!node) return false;
|
|
448334
448353
|
if (node.type !== "VariableDeclarator") return false;
|
|
448335
448354
|
return opts == null || (0, _shallowEqual.default)(node, opts);
|
|
@@ -448379,12 +448398,12 @@ var require_generated5 = __commonJS({
|
|
|
448379
448398
|
if (node.type !== "ExportAllDeclaration") return false;
|
|
448380
448399
|
return opts == null || (0, _shallowEqual.default)(node, opts);
|
|
448381
448400
|
}
|
|
448382
|
-
function
|
|
448401
|
+
function isExportDefaultDeclaration2(node, opts) {
|
|
448383
448402
|
if (!node) return false;
|
|
448384
448403
|
if (node.type !== "ExportDefaultDeclaration") return false;
|
|
448385
448404
|
return opts == null || (0, _shallowEqual.default)(node, opts);
|
|
448386
448405
|
}
|
|
448387
|
-
function
|
|
448406
|
+
function isExportNamedDeclaration2(node, opts) {
|
|
448388
448407
|
if (!node) return false;
|
|
448389
448408
|
if (node.type !== "ExportNamedDeclaration") return false;
|
|
448390
448409
|
return opts == null || (0, _shallowEqual.default)(node, opts);
|
|
@@ -461427,7 +461446,7 @@ var require_virtual_types_validator2 = __commonJS({
|
|
|
461427
461446
|
isScope: nodeIsScope,
|
|
461428
461447
|
isStatement: nodeIsStatement,
|
|
461429
461448
|
isVar: nodeIsVar,
|
|
461430
|
-
isVariableDeclaration,
|
|
461449
|
+
isVariableDeclaration: isVariableDeclaration2,
|
|
461431
461450
|
react: react4,
|
|
461432
461451
|
isForOfStatement
|
|
461433
461452
|
} = _t;
|
|
@@ -461469,7 +461488,7 @@ var require_virtual_types_validator2 = __commonJS({
|
|
|
461469
461488
|
parent: parent2
|
|
461470
461489
|
} = this;
|
|
461471
461490
|
if (nodeIsStatement(node)) {
|
|
461472
|
-
if (
|
|
461491
|
+
if (isVariableDeclaration2(node)) {
|
|
461473
461492
|
if (isForXStatement(parent2, {
|
|
461474
461493
|
left: node
|
|
461475
461494
|
})) return false;
|
|
@@ -462171,8 +462190,8 @@ var require_scope3 = __commonJS({
|
|
|
462171
462190
|
isClassBody,
|
|
462172
462191
|
isClassDeclaration,
|
|
462173
462192
|
isExportAllDeclaration,
|
|
462174
|
-
isExportDefaultDeclaration,
|
|
462175
|
-
isExportNamedDeclaration,
|
|
462193
|
+
isExportDefaultDeclaration: isExportDefaultDeclaration2,
|
|
462194
|
+
isExportNamedDeclaration: isExportNamedDeclaration2,
|
|
462176
462195
|
isFunctionDeclaration,
|
|
462177
462196
|
isIdentifier: isIdentifier7,
|
|
462178
462197
|
isImportDeclaration,
|
|
@@ -462190,7 +462209,7 @@ var require_scope3 = __commonJS({
|
|
|
462190
462209
|
isTemplateLiteral: isTemplateLiteral2,
|
|
462191
462210
|
isThisExpression,
|
|
462192
462211
|
isUnaryExpression,
|
|
462193
|
-
isVariableDeclaration,
|
|
462212
|
+
isVariableDeclaration: isVariableDeclaration2,
|
|
462194
462213
|
expressionStatement,
|
|
462195
462214
|
matchesPattern,
|
|
462196
462215
|
memberExpression,
|
|
@@ -462211,11 +462230,11 @@ var require_scope3 = __commonJS({
|
|
|
462211
462230
|
default:
|
|
462212
462231
|
if (isImportDeclaration(node) || isExportDeclaration(node)) {
|
|
462213
462232
|
var _node$specifiers;
|
|
462214
|
-
if ((isExportAllDeclaration(node) ||
|
|
462233
|
+
if ((isExportAllDeclaration(node) || isExportNamedDeclaration2(node) || isImportDeclaration(node)) && node.source) {
|
|
462215
462234
|
gatherNodeParts(node.source, parts);
|
|
462216
|
-
} else if ((
|
|
462235
|
+
} else if ((isExportNamedDeclaration2(node) || isImportDeclaration(node)) && (_node$specifiers = node.specifiers) != null && _node$specifiers.length) {
|
|
462217
462236
|
for (const e of node.specifiers) gatherNodeParts(e, parts);
|
|
462218
|
-
} else if ((
|
|
462237
|
+
} else if ((isExportDefaultDeclaration2(node) || isExportNamedDeclaration2(node)) && node.declaration) {
|
|
462219
462238
|
gatherNodeParts(node.declaration, parts);
|
|
462220
462239
|
}
|
|
462221
462240
|
} else if (isModuleSpecifier(node)) {
|
|
@@ -462390,7 +462409,7 @@ var require_scope3 = __commonJS({
|
|
|
462390
462409
|
if (!id2) return;
|
|
462391
462410
|
const binding = scope.getBinding(id2.name);
|
|
462392
462411
|
binding == null || binding.reference(path77);
|
|
462393
|
-
} else if (
|
|
462412
|
+
} else if (isVariableDeclaration2(declar)) {
|
|
462394
462413
|
for (const decl of declar.declarations) {
|
|
462395
462414
|
for (const name17 of Object.keys(getBindingIdentifiers(decl))) {
|
|
462396
462415
|
const binding = scope.getBinding(name17);
|
|
@@ -466564,11 +466583,11 @@ var require_classes2 = __commonJS({
|
|
|
466564
466583
|
var _flow = require_flow4();
|
|
466565
466584
|
var _methods = require_methods2();
|
|
466566
466585
|
var {
|
|
466567
|
-
isExportDefaultDeclaration,
|
|
466568
|
-
isExportNamedDeclaration
|
|
466586
|
+
isExportDefaultDeclaration: isExportDefaultDeclaration2,
|
|
466587
|
+
isExportNamedDeclaration: isExportNamedDeclaration2
|
|
466569
466588
|
} = _t;
|
|
466570
466589
|
function ClassDeclaration(node, parent2) {
|
|
466571
|
-
const inExport =
|
|
466590
|
+
const inExport = isExportDefaultDeclaration2(parent2) || isExportNamedDeclaration2(parent2);
|
|
466572
466591
|
if (!inExport || !_expressions._shouldPrintDecoratorsBeforeExport.call(this, parent2)) {
|
|
466573
466592
|
this.printJoin(node.decorators);
|
|
466574
466593
|
}
|
|
@@ -469631,7 +469650,7 @@ var require_modification2 = __commonJS({
|
|
|
469631
469650
|
expressionStatement,
|
|
469632
469651
|
isAssignmentExpression,
|
|
469633
469652
|
isCallExpression: isCallExpression6,
|
|
469634
|
-
isExportNamedDeclaration,
|
|
469653
|
+
isExportNamedDeclaration: isExportNamedDeclaration2,
|
|
469635
469654
|
isExpression,
|
|
469636
469655
|
isIdentifier: isIdentifier7,
|
|
469637
469656
|
isSequenceExpression,
|
|
@@ -469645,7 +469664,7 @@ var require_modification2 = __commonJS({
|
|
|
469645
469664
|
parentPath,
|
|
469646
469665
|
parent: parent2
|
|
469647
469666
|
} = this;
|
|
469648
|
-
if (parentPath.isExpressionStatement() || parentPath.isLabeledStatement() ||
|
|
469667
|
+
if (parentPath.isExpressionStatement() || parentPath.isLabeledStatement() || isExportNamedDeclaration2(parent2) || parentPath.isExportDefaultDeclaration() && this.isDeclaration()) {
|
|
469649
469668
|
return parentPath.insertBefore(nodes);
|
|
469650
469669
|
} else if (this.isNodeType("Expression") && !this.isJSXElement() || parentPath.isForStatement() && this.key === "init") {
|
|
469651
469670
|
if (this.node) nodes.push(this.node);
|
|
@@ -469711,7 +469730,7 @@ var require_modification2 = __commonJS({
|
|
|
469711
469730
|
parentPath,
|
|
469712
469731
|
parent: parent2
|
|
469713
469732
|
} = this;
|
|
469714
|
-
if (parentPath.isExpressionStatement() || parentPath.isLabeledStatement() ||
|
|
469733
|
+
if (parentPath.isExpressionStatement() || parentPath.isLabeledStatement() || isExportNamedDeclaration2(parent2) || parentPath.isExportDefaultDeclaration() && this.isDeclaration()) {
|
|
469715
469734
|
return parentPath.insertAfter(nodes.map((node) => {
|
|
469716
469735
|
return isExpression(node) ? expressionStatement(node) : node;
|
|
469717
469736
|
}));
|
|
@@ -469876,7 +469895,7 @@ var require_replacement2 = __commonJS({
|
|
|
469876
469895
|
isIfStatement,
|
|
469877
469896
|
isProgram,
|
|
469878
469897
|
isStatement,
|
|
469879
|
-
isVariableDeclaration,
|
|
469898
|
+
isVariableDeclaration: isVariableDeclaration2,
|
|
469880
469899
|
removeComments: removeComments2,
|
|
469881
469900
|
returnStatement,
|
|
469882
469901
|
sequenceExpression,
|
|
@@ -470045,7 +470064,7 @@ var require_replacement2 = __commonJS({
|
|
|
470045
470064
|
exprs.push(node);
|
|
470046
470065
|
} else if (isExpressionStatement2(node)) {
|
|
470047
470066
|
exprs.push(node.expression);
|
|
470048
|
-
} else if (
|
|
470067
|
+
} else if (isVariableDeclaration2(node)) {
|
|
470049
470068
|
if (node.kind !== "var") return;
|
|
470050
470069
|
for (const declar of node.declarations) {
|
|
470051
470070
|
const bindings = getBindingIdentifiers(declar);
|
|
@@ -520447,7 +520466,7 @@ init_cjs_shims();
|
|
|
520447
520466
|
// ../sdk/package.json
|
|
520448
520467
|
var package_default = {
|
|
520449
520468
|
name: "@superblocksteam/sdk",
|
|
520450
|
-
version: "2.0.106-next.
|
|
520469
|
+
version: "2.0.106-next.2",
|
|
520451
520470
|
description: "Superblocks JS SDK",
|
|
520452
520471
|
homepage: "https://www.superblocks.com",
|
|
520453
520472
|
license: "Superblocks Community Software License",
|
|
@@ -520801,7 +520820,7 @@ var config = void 0;
|
|
|
520801
520820
|
var configured = false;
|
|
520802
520821
|
var ddTracePromise = void 0;
|
|
520803
520822
|
async function getDdTrace() {
|
|
520804
|
-
ddTracePromise ??= import("./dd-trace-
|
|
520823
|
+
ddTracePromise ??= import("./dd-trace-2UHYT5SW.js").then((module2) => module2.default);
|
|
520805
520824
|
return await ddTracePromise;
|
|
520806
520825
|
}
|
|
520807
520826
|
var deploymentType = (() => {
|
|
@@ -529892,7 +529911,7 @@ var MAX_ATTRIBUTE_LENGTH = 64e3;
|
|
|
529892
529911
|
var LLMObsSpanWriter = null;
|
|
529893
529912
|
async function loadLLMObsSpanWriter() {
|
|
529894
529913
|
if (!LLMObsSpanWriter) {
|
|
529895
|
-
const module2 = await import("./spans-
|
|
529914
|
+
const module2 = await import("./spans-J7NJFIEG.js");
|
|
529896
529915
|
LLMObsSpanWriter = module2.default;
|
|
529897
529916
|
}
|
|
529898
529917
|
return LLMObsSpanWriter;
|
|
@@ -543537,6 +543556,29 @@ var S3_READ_ACTIONS = [
|
|
|
543537
543556
|
import_shared21.S3ActionType.LIST_BUCKET_OBJECTS,
|
|
543538
543557
|
import_shared21.S3ActionType.LIST_BUCKETS
|
|
543539
543558
|
];
|
|
543559
|
+
var DYNAMODB_READ_ACTIONS = [
|
|
543560
|
+
"describeTable",
|
|
543561
|
+
"getItem",
|
|
543562
|
+
"listTables",
|
|
543563
|
+
"query",
|
|
543564
|
+
"scan"
|
|
543565
|
+
];
|
|
543566
|
+
var GCS_READ_ACTIONS = [
|
|
543567
|
+
"GENERATE_PRESIGNED_URL",
|
|
543568
|
+
"GET_OBJECT",
|
|
543569
|
+
"LIST_BUCKETS",
|
|
543570
|
+
"LIST_OBJECTS"
|
|
543571
|
+
];
|
|
543572
|
+
var COSMOSDB_READ_ACTION_CASES = ["read", "singleton"];
|
|
543573
|
+
var COSMOSDB_READ_CATEGORY_CASES = ["pointOperation", "sql"];
|
|
543574
|
+
var MONGODB_READ_ACTIONS = [
|
|
543575
|
+
"aggregate",
|
|
543576
|
+
"count",
|
|
543577
|
+
"distinct",
|
|
543578
|
+
"find",
|
|
543579
|
+
"findOne",
|
|
543580
|
+
"listCollections"
|
|
543581
|
+
];
|
|
543540
543582
|
var DESCRIPTION_BASE_PROMPT = `
|
|
543541
543583
|
A concise plain-English description of WHAT data operation will be performed
|
|
543542
543584
|
Focus on the domain names, the specific number of records if limited, and the table/resource name.
|
|
@@ -543567,6 +543609,10 @@ var executeRequestToIntegrationToolFactory = createToolFactory("executeRequestTo
|
|
|
543567
543609
|
- "graphql": For GraphQL integrations (${import_shared21.ExtendedIntegrationPluginId.GRAPHQL}). Provide query, variables, and headers.
|
|
543568
543610
|
- "rest": For REST API integrations (${import_shared21.ExtendedIntegrationPluginId.REST_API}). HTTP method is fixed to GET. Provide path, headers, and query parameters.
|
|
543569
543611
|
- "s3": For Amazon S3 integrations (${import_shared21.S3Plugin.id}). Provide a structured action (LIST_BUCKETS, LIST_BUCKET_OBJECTS, GET_OBJECT, GENERATE_PRESIGNED_URL) with optional resource (bucket name), path, and listFilesConfig.
|
|
543612
|
+
- "cosmosdb": For Azure Cosmos DB integrations (${import_shared21.CosmosDbPlugin.id}). Provide a structured action with actionCategory (sql or pointOperation) and actionCase (singleton for SQL queries, read for point reads).
|
|
543613
|
+
- "dynamodb": For Amazon DynamoDB integrations (${import_shared21.DynamoDBPlugin.id}). Provide a structured action (getItem, query, scan, listTables, describeTable) with JSON params.
|
|
543614
|
+
- "gcs": For Google Cloud Storage integrations (${import_shared21.GCSPlugin.id}). Provide a structured action (LIST_OBJECTS, GET_OBJECT, LIST_BUCKETS, GENERATE_PRESIGNED_URL) with optional resource (bucket), path, and prefix.
|
|
543615
|
+
- "mongodb": For MongoDB integrations (${import_shared21.MongoDBPlugin.id}). Provide a structured action (aggregate, count, distinct, find, findOne, listCollections) with collection, query, and other operation-specific fields.
|
|
543570
543616
|
- "salesforce": For Salesforce integrations (${import_shared21.SalesforcePlugin.id}). Provide SOQL query string.
|
|
543571
543617
|
- "other": For any other integration types that doesn't fit one of the above. Provide a generic query string.
|
|
543572
543618
|
|
|
@@ -543623,6 +543669,38 @@ var executeRequestToIntegrationToolFactory = createToolFactory("executeRequestTo
|
|
|
543623
543669
|
delimiter: zod_default.string().optional().describe("Delimiter for hierarchical listing (e.g. '/' for folder-like grouping)")
|
|
543624
543670
|
}).optional().describe("Configuration for LIST_BUCKET_OBJECTS action")
|
|
543625
543671
|
}),
|
|
543672
|
+
zod_default.object({
|
|
543673
|
+
type: zod_default.literal("cosmosdb"),
|
|
543674
|
+
actionCategory: zod_default.enum(COSMOSDB_READ_CATEGORY_CASES).describe("The CosmosDB action category: 'sql' for SQL queries, 'pointOperation' for single object actions"),
|
|
543675
|
+
actionCase: zod_default.enum(COSMOSDB_READ_ACTION_CASES).describe("The specific action: 'singleton' for SQL queries, 'read' for point reads"),
|
|
543676
|
+
containerId: zod_default.string().optional().describe("The CosmosDB container ID"),
|
|
543677
|
+
query: zod_default.string().optional().describe("The SQL query string (required for sql/singleton action)"),
|
|
543678
|
+
partitionKey: zod_default.string().optional().describe("The partition key for point operations"),
|
|
543679
|
+
id: zod_default.string().optional().describe("The item ID (required for pointOperation/read action)")
|
|
543680
|
+
}),
|
|
543681
|
+
zod_default.object({
|
|
543682
|
+
type: zod_default.literal("dynamodb"),
|
|
543683
|
+
action: zod_default.enum(DYNAMODB_READ_ACTIONS).describe("The DynamoDB action to perform (read-only)"),
|
|
543684
|
+
body: zod_default.string().optional().describe("JSON string of DynamoDB request parameters (e.g. TableName, Key, FilterExpression)")
|
|
543685
|
+
}),
|
|
543686
|
+
zod_default.object({
|
|
543687
|
+
type: zod_default.literal("gcs"),
|
|
543688
|
+
action: zod_default.enum(GCS_READ_ACTIONS).describe("The GCS action to perform (read-only)"),
|
|
543689
|
+
resource: zod_default.string().optional().describe("The GCS bucket name (required for all actions except LIST_BUCKETS)"),
|
|
543690
|
+
path: zod_default.string().optional().describe("The object key/path (required for GET_OBJECT and GENERATE_PRESIGNED_URL)"),
|
|
543691
|
+
prefix: zod_default.string().optional().describe("Prefix filter for listing objects or buckets")
|
|
543692
|
+
}),
|
|
543693
|
+
zod_default.object({
|
|
543694
|
+
type: zod_default.literal("mongodb"),
|
|
543695
|
+
action: zod_default.enum(MONGODB_READ_ACTIONS).describe("The MongoDB operation to perform (read-only)"),
|
|
543696
|
+
collection: zod_default.string().optional().describe("The collection name (required for all actions except listCollections)"),
|
|
543697
|
+
query: zod_default.string().optional().describe("JSON query filter for count, distinct, find, findOne operations"),
|
|
543698
|
+
pipeline: zod_default.string().optional().describe("JSON aggregation pipeline array for aggregate operation"),
|
|
543699
|
+
projection: zod_default.string().optional().describe("JSON projection document for find/findOne operations"),
|
|
543700
|
+
sortby: zod_default.string().optional().describe("JSON sort specification for find operation"),
|
|
543701
|
+
limit: zod_default.string().optional().describe("Maximum number of documents to return for find operation"),
|
|
543702
|
+
field: zod_default.string().optional().describe("Field name for distinct operation")
|
|
543703
|
+
}),
|
|
543626
543704
|
zod_default.object({
|
|
543627
543705
|
type: zod_default.literal("salesforce"),
|
|
543628
543706
|
query: zod_default.string().min(1).describe("The SOQL query string to execute")
|
|
@@ -543757,6 +543835,35 @@ var executeRequestToIntegrationToolFactory = createToolFactory("executeRequestTo
|
|
|
543757
543835
|
const request3 = buildS3Request(params);
|
|
543758
543836
|
return await executeRequest(clark.context, integrationId, request3);
|
|
543759
543837
|
}
|
|
543838
|
+
case "cosmosdb": {
|
|
543839
|
+
const validCombos = [
|
|
543840
|
+
["sql", "singleton"],
|
|
543841
|
+
["pointOperation", "read"]
|
|
543842
|
+
];
|
|
543843
|
+
const isValid2 = validCombos.some(([cat, act]) => params.actionCategory === cat && params.actionCase === act);
|
|
543844
|
+
if (!isValid2) {
|
|
543845
|
+
throw new ToolExecutionError(`Invalid CosmosDB action combination: "${params.actionCategory}/${params.actionCase}". Valid combinations are: sql/singleton, pointOperation/read.`, {
|
|
543846
|
+
toolName: "executeRequestToIntegration",
|
|
543847
|
+
input: args,
|
|
543848
|
+
context: {},
|
|
543849
|
+
severity: "info"
|
|
543850
|
+
});
|
|
543851
|
+
}
|
|
543852
|
+
const request3 = buildCosmosDbRequest(params);
|
|
543853
|
+
return await executeRequest(clark.context, integrationId, request3);
|
|
543854
|
+
}
|
|
543855
|
+
case "dynamodb": {
|
|
543856
|
+
const request3 = buildDynamoDBRequest(params);
|
|
543857
|
+
return await executeRequest(clark.context, integrationId, request3);
|
|
543858
|
+
}
|
|
543859
|
+
case "gcs": {
|
|
543860
|
+
const request3 = buildGCSRequest(params);
|
|
543861
|
+
return await executeRequest(clark.context, integrationId, request3);
|
|
543862
|
+
}
|
|
543863
|
+
case "mongodb": {
|
|
543864
|
+
const request3 = buildMongoDBRequest(params);
|
|
543865
|
+
return await executeRequest(clark.context, integrationId, request3);
|
|
543866
|
+
}
|
|
543760
543867
|
case "other": {
|
|
543761
543868
|
const { body } = params;
|
|
543762
543869
|
const request3 = { body };
|
|
@@ -543826,6 +543933,50 @@ var executeRequestToIntegrationToolFactory = createToolFactory("executeRequestTo
|
|
|
543826
543933
|
summary: cleanDescription
|
|
543827
543934
|
};
|
|
543828
543935
|
}
|
|
543936
|
+
case "cosmosdb": {
|
|
543937
|
+
const details = [`${params.actionCategory}/${params.actionCase}`];
|
|
543938
|
+
if (params.containerId)
|
|
543939
|
+
details.push(params.containerId);
|
|
543940
|
+
if (params.query)
|
|
543941
|
+
details.push(params.query);
|
|
543942
|
+
return {
|
|
543943
|
+
targets: [integration],
|
|
543944
|
+
details: codeBlock(details.join(" ")),
|
|
543945
|
+
summary: cleanDescription
|
|
543946
|
+
};
|
|
543947
|
+
}
|
|
543948
|
+
case "dynamodb": {
|
|
543949
|
+
const details = [params.action];
|
|
543950
|
+
if (params.body)
|
|
543951
|
+
details.push(params.body);
|
|
543952
|
+
return {
|
|
543953
|
+
targets: [integration],
|
|
543954
|
+
details: codeBlock(details.join(" ")),
|
|
543955
|
+
summary: cleanDescription
|
|
543956
|
+
};
|
|
543957
|
+
}
|
|
543958
|
+
case "gcs": {
|
|
543959
|
+
const details = [params.action];
|
|
543960
|
+
if (params.resource)
|
|
543961
|
+
details.push(params.resource);
|
|
543962
|
+
if (params.path)
|
|
543963
|
+
details.push(params.path);
|
|
543964
|
+
return {
|
|
543965
|
+
targets: [integration],
|
|
543966
|
+
details: codeBlock(details.join(" ")),
|
|
543967
|
+
summary: cleanDescription
|
|
543968
|
+
};
|
|
543969
|
+
}
|
|
543970
|
+
case "mongodb": {
|
|
543971
|
+
const details = [params.action];
|
|
543972
|
+
if (params.collection)
|
|
543973
|
+
details.push(params.collection);
|
|
543974
|
+
return {
|
|
543975
|
+
targets: [integration],
|
|
543976
|
+
details: codeBlock(details.join(" ")),
|
|
543977
|
+
summary: cleanDescription
|
|
543978
|
+
};
|
|
543979
|
+
}
|
|
543829
543980
|
case "other": {
|
|
543830
543981
|
return {
|
|
543831
543982
|
targets: [integration],
|
|
@@ -543966,6 +544117,80 @@ function buildRestApiRequest(httpRequest) {
|
|
|
543966
544117
|
}
|
|
543967
544118
|
return request3;
|
|
543968
544119
|
}
|
|
544120
|
+
function buildDynamoDBRequest(params) {
|
|
544121
|
+
const request3 = {
|
|
544122
|
+
action: params.action
|
|
544123
|
+
};
|
|
544124
|
+
if (params.body !== void 0) {
|
|
544125
|
+
request3.body = params.body;
|
|
544126
|
+
}
|
|
544127
|
+
return request3;
|
|
544128
|
+
}
|
|
544129
|
+
function buildGCSRequest(params) {
|
|
544130
|
+
const request3 = {
|
|
544131
|
+
action: params.action
|
|
544132
|
+
};
|
|
544133
|
+
if (params.resource !== void 0) {
|
|
544134
|
+
request3.resource = params.resource;
|
|
544135
|
+
}
|
|
544136
|
+
if (params.path !== void 0) {
|
|
544137
|
+
request3.path = params.path;
|
|
544138
|
+
}
|
|
544139
|
+
if (params.prefix !== void 0) {
|
|
544140
|
+
request3.prefix = params.prefix;
|
|
544141
|
+
}
|
|
544142
|
+
return request3;
|
|
544143
|
+
}
|
|
544144
|
+
function buildCosmosDbRequest(params) {
|
|
544145
|
+
const request3 = {
|
|
544146
|
+
"cosmosdbAction.case": params.actionCategory,
|
|
544147
|
+
"cosmosdbAction.value.action.case": params.actionCase
|
|
544148
|
+
};
|
|
544149
|
+
if (params.containerId !== void 0) {
|
|
544150
|
+
if (params.actionCategory === "pointOperation") {
|
|
544151
|
+
request3["cosmosdbAction.value.containerId"] = params.containerId;
|
|
544152
|
+
} else {
|
|
544153
|
+
request3["cosmosdbAction.value.action.value.containerId"] = params.containerId;
|
|
544154
|
+
}
|
|
544155
|
+
}
|
|
544156
|
+
if (params.query !== void 0) {
|
|
544157
|
+
request3["cosmosdbAction.value.action.value.query"] = params.query;
|
|
544158
|
+
}
|
|
544159
|
+
if (params.partitionKey !== void 0) {
|
|
544160
|
+
request3["cosmosdbAction.value.action.value.partitionKey"] = params.partitionKey;
|
|
544161
|
+
}
|
|
544162
|
+
if (params.id !== void 0) {
|
|
544163
|
+
request3["cosmosdbAction.value.action.value.id"] = params.id;
|
|
544164
|
+
}
|
|
544165
|
+
return request3;
|
|
544166
|
+
}
|
|
544167
|
+
function buildMongoDBRequest(params) {
|
|
544168
|
+
const request3 = {
|
|
544169
|
+
action: params.action
|
|
544170
|
+
};
|
|
544171
|
+
if (params.collection !== void 0) {
|
|
544172
|
+
request3.resource = params.collection;
|
|
544173
|
+
}
|
|
544174
|
+
if (params.query !== void 0) {
|
|
544175
|
+
request3.query = params.query;
|
|
544176
|
+
}
|
|
544177
|
+
if (params.pipeline !== void 0) {
|
|
544178
|
+
request3.pipeline = params.pipeline;
|
|
544179
|
+
}
|
|
544180
|
+
if (params.projection !== void 0) {
|
|
544181
|
+
request3.projection = params.projection;
|
|
544182
|
+
}
|
|
544183
|
+
if (params.sortby !== void 0) {
|
|
544184
|
+
request3.sortby = params.sortby;
|
|
544185
|
+
}
|
|
544186
|
+
if (params.limit !== void 0) {
|
|
544187
|
+
request3.limit = params.limit;
|
|
544188
|
+
}
|
|
544189
|
+
if (params.field !== void 0) {
|
|
544190
|
+
request3.field = params.field;
|
|
544191
|
+
}
|
|
544192
|
+
return request3;
|
|
544193
|
+
}
|
|
543969
544194
|
|
|
543970
544195
|
// ../../../vite-plugin-file-sync/dist/ai-service/agent/tools/integrations/integration-setup.js
|
|
543971
544196
|
init_cjs_shims();
|
|
@@ -597550,7 +597775,7 @@ var PlaywrightMcpServerManager = class {
|
|
|
597550
597775
|
this.logger.info(`Starting embedded Playwright MCP server: browser=${options8?.browser || "chromium"}, headless=${options8?.headless !== false}`);
|
|
597551
597776
|
}
|
|
597552
597777
|
try {
|
|
597553
|
-
const { startEmbeddedPlaywrightMcpServer } = await import("./embedded-playwright-mcp-server-
|
|
597778
|
+
const { startEmbeddedPlaywrightMcpServer } = await import("./embedded-playwright-mcp-server-ZHUTAK6F.js");
|
|
597554
597779
|
this.server = await startEmbeddedPlaywrightMcpServer({
|
|
597555
597780
|
storageStatePath: options8?.storageStatePath,
|
|
597556
597781
|
jwt: options8?.jwt,
|
|
@@ -608831,7 +609056,19 @@ var scanJavaScriptForSqlMutations = (node, source2) => {
|
|
|
608831
609056
|
}
|
|
608832
609057
|
const functionBody = source2.slice(node.start, node.end);
|
|
608833
609058
|
const functionBodyWithoutComments = removeComments(functionBody);
|
|
608834
|
-
const hasMutation = SQL_WRITE_KEYWORDS.some((keyword2) =>
|
|
609059
|
+
const hasMutation = SQL_WRITE_KEYWORDS.some((keyword2) => {
|
|
609060
|
+
const regex = new RegExp(`\\b${keyword2}\\b(?!\\s*[<(])`, "gi");
|
|
609061
|
+
let match2;
|
|
609062
|
+
while ((match2 = regex.exec(functionBodyWithoutComments)) !== null) {
|
|
609063
|
+
const idx = match2.index;
|
|
609064
|
+
const precedingChar = idx > 0 ? functionBodyWithoutComments[idx - 1] : "";
|
|
609065
|
+
const followingChar = idx + keyword2.length < functionBodyWithoutComments.length ? functionBodyWithoutComments[idx + keyword2.length] : "";
|
|
609066
|
+
if (precedingChar === "'" && followingChar === "'")
|
|
609067
|
+
continue;
|
|
609068
|
+
return true;
|
|
609069
|
+
}
|
|
609070
|
+
return false;
|
|
609071
|
+
});
|
|
608835
609072
|
if (hasMutation) {
|
|
608836
609073
|
return true;
|
|
608837
609074
|
}
|
|
@@ -608980,10 +609217,24 @@ var buildSdkPluginVariableMap = (ast) => {
|
|
|
608980
609217
|
});
|
|
608981
609218
|
return refs;
|
|
608982
609219
|
};
|
|
608983
|
-
var
|
|
609220
|
+
var getEnclosingApiExportName = (path77) => {
|
|
609221
|
+
let current2 = path77.parentPath;
|
|
609222
|
+
while (current2) {
|
|
609223
|
+
if (t6.isVariableDeclarator(current2.node) && t6.isIdentifier(current2.node.id) && t6.isCallExpression(current2.node.init) && t6.isIdentifier(current2.node.init.callee) && current2.node.init.callee.name === "api" && current2.parentPath && t6.isVariableDeclaration(current2.parentPath.node) && current2.parentPath.parentPath && t6.isExportNamedDeclaration(current2.parentPath.parentPath.node)) {
|
|
609224
|
+
return current2.node.id.name;
|
|
609225
|
+
}
|
|
609226
|
+
if (t6.isExportDefaultDeclaration(current2.node) && t6.isCallExpression(current2.node.declaration) && t6.isIdentifier(current2.node.declaration.callee) && current2.node.declaration.callee.name === "api") {
|
|
609227
|
+
return "default";
|
|
609228
|
+
}
|
|
609229
|
+
current2 = current2.parentPath;
|
|
609230
|
+
}
|
|
609231
|
+
return void 0;
|
|
609232
|
+
};
|
|
609233
|
+
var extractMutations = (source2, exportName) => {
|
|
608984
609234
|
const mutations = [];
|
|
608985
609235
|
const jsStepNames = extractStepNames(source2);
|
|
608986
609236
|
const jsSteps = /* @__PURE__ */ new Map();
|
|
609237
|
+
let foundTargetExport = false;
|
|
608987
609238
|
let ast;
|
|
608988
609239
|
try {
|
|
608989
609240
|
ast = (0, import_parser11.parse)(source2, {
|
|
@@ -608995,6 +609246,28 @@ var extractMutations = (source2) => {
|
|
|
608995
609246
|
throw new Error("Failed to parse source code");
|
|
608996
609247
|
}
|
|
608997
609248
|
const sdkPluginVars = buildSdkPluginVariableMap(ast);
|
|
609249
|
+
if (exportName) {
|
|
609250
|
+
for (const node of ast.program.body) {
|
|
609251
|
+
if (exportName === "default") {
|
|
609252
|
+
if (t6.isExportDefaultDeclaration(node) && t6.isCallExpression(node.declaration) && t6.isIdentifier(node.declaration.callee) && node.declaration.callee.name === "api") {
|
|
609253
|
+
foundTargetExport = true;
|
|
609254
|
+
break;
|
|
609255
|
+
}
|
|
609256
|
+
} else if (t6.isExportNamedDeclaration(node)) {
|
|
609257
|
+
const decl = node.declaration;
|
|
609258
|
+
if (t6.isVariableDeclaration(decl)) {
|
|
609259
|
+
for (const declarator of decl.declarations) {
|
|
609260
|
+
if (t6.isIdentifier(declarator.id) && declarator.id.name === exportName && t6.isCallExpression(declarator.init) && t6.isIdentifier(declarator.init.callee) && declarator.init.callee.name === "api") {
|
|
609261
|
+
foundTargetExport = true;
|
|
609262
|
+
break;
|
|
609263
|
+
}
|
|
609264
|
+
}
|
|
609265
|
+
}
|
|
609266
|
+
}
|
|
609267
|
+
if (foundTargetExport)
|
|
609268
|
+
break;
|
|
609269
|
+
}
|
|
609270
|
+
}
|
|
608998
609271
|
traverse(ast, {
|
|
608999
609272
|
NewExpression(path77) {
|
|
609000
609273
|
const typeName2 = getIntegrationTypeName(path77.node.callee);
|
|
@@ -609223,6 +609496,11 @@ var extractMutations = (source2) => {
|
|
|
609223
609496
|
const apiConfigNode = path77.parentPath?.parentPath?.parentPath?.parent;
|
|
609224
609497
|
if (!t6.isObjectExpression(apiConfigNode))
|
|
609225
609498
|
return;
|
|
609499
|
+
const enclosingExport = getEnclosingApiExportName(path77);
|
|
609500
|
+
if (exportName && enclosingExport === exportName)
|
|
609501
|
+
foundTargetExport = true;
|
|
609502
|
+
if (exportName && enclosingExport !== void 0 && enclosingExport !== exportName)
|
|
609503
|
+
return;
|
|
609226
609504
|
handleSdkIntegrationMutation(className, integrationKey, apiConfigNode, source2, mutations);
|
|
609227
609505
|
},
|
|
609228
609506
|
Identifier(path77) {
|
|
@@ -609244,14 +609522,22 @@ var extractMutations = (source2) => {
|
|
|
609244
609522
|
const apiConfigNode = path77.parentPath?.parentPath?.parentPath?.parent;
|
|
609245
609523
|
if (!t6.isObjectExpression(apiConfigNode))
|
|
609246
609524
|
return;
|
|
609525
|
+
const enclosingExport = getEnclosingApiExportName(path77);
|
|
609526
|
+
if (exportName && enclosingExport === exportName)
|
|
609527
|
+
foundTargetExport = true;
|
|
609528
|
+
if (exportName && enclosingExport !== void 0 && enclosingExport !== exportName)
|
|
609529
|
+
return;
|
|
609247
609530
|
handleSdkIntegrationMutation(varInfo.className, integrationKey, apiConfigNode, source2, mutations);
|
|
609248
609531
|
}
|
|
609249
609532
|
});
|
|
609533
|
+
if (exportName && !foundTargetExport) {
|
|
609534
|
+
return extractMutations(source2);
|
|
609535
|
+
}
|
|
609250
609536
|
return mutations;
|
|
609251
609537
|
};
|
|
609252
|
-
var containsMutations = (source2) => {
|
|
609538
|
+
var containsMutations = (source2, exportName) => {
|
|
609253
609539
|
try {
|
|
609254
|
-
return extractMutations(source2).length > 0;
|
|
609540
|
+
return extractMutations(source2, exportName).length > 0;
|
|
609255
609541
|
} catch {
|
|
609256
609542
|
return true;
|
|
609257
609543
|
}
|
|
@@ -609490,6 +609776,16 @@ Error: ${errorMessage}`,
|
|
|
609490
609776
|
};
|
|
609491
609777
|
}
|
|
609492
609778
|
}
|
|
609779
|
+
async function readApiSource(apiName, services, registryEntry) {
|
|
609780
|
+
if (services.features.sdkApiEnabled) {
|
|
609781
|
+
const sdkPath = registryEntry?.entryPoint;
|
|
609782
|
+
if (!sdkPath) {
|
|
609783
|
+
throw new Error(`No SDK registry entry point found for API "${apiName}"`);
|
|
609784
|
+
}
|
|
609785
|
+
return await services.appShell.readFile(sdkPath);
|
|
609786
|
+
}
|
|
609787
|
+
return await services.appShell.readFile(`apis/${apiName}.ts`);
|
|
609788
|
+
}
|
|
609493
609789
|
var validateTestApiInput = (input = {}, mutations = []) => {
|
|
609494
609790
|
const hasMutations = mutations?.length > 0;
|
|
609495
609791
|
const description = input?.description;
|
|
@@ -609515,7 +609811,7 @@ description: "Creates a users table with columns for id, name, email, and create
|
|
|
609515
609811
|
})`.trim());
|
|
609516
609812
|
}
|
|
609517
609813
|
};
|
|
609518
|
-
var checkTestApiPermissions = async (services, input,
|
|
609814
|
+
var checkTestApiPermissions = async (services, input, _clark) => {
|
|
609519
609815
|
if (!input || isEmpty_default(input)) {
|
|
609520
609816
|
return PermissionLevel.PROMPT;
|
|
609521
609817
|
}
|
|
@@ -609529,16 +609825,11 @@ var checkTestApiPermissions = async (services, input, clark) => {
|
|
|
609529
609825
|
}
|
|
609530
609826
|
let mutations = [];
|
|
609531
609827
|
try {
|
|
609532
|
-
const
|
|
609533
|
-
|
|
609534
|
-
|
|
609535
|
-
|
|
609536
|
-
|
|
609537
|
-
}
|
|
609538
|
-
const apiSourceContent = await services.appShell.readFile(apiTsPath);
|
|
609539
|
-
mutations = extractMutations(apiSourceContent);
|
|
609540
|
-
} catch {
|
|
609541
|
-
getLogger3().info(`[testApi] Failed to read API source, fall back to PROMPT: ${input.apiName}`);
|
|
609828
|
+
const registryEntry = services.features.sdkApiEnabled ? await resolveSdkApiRegistryEntry(input.apiName, services) : void 0;
|
|
609829
|
+
const apiSourceContent = await readApiSource(input.apiName, services, registryEntry);
|
|
609830
|
+
mutations = extractMutations(apiSourceContent, registryEntry ? registryEntry.exportName ?? "default" : void 0);
|
|
609831
|
+
} catch (error40) {
|
|
609832
|
+
getLogger3().info(`[testApi] Failed to resolve or read API source, fall back to PROMPT: ${input.apiName}`, error40 instanceof Error ? error40.message : String(error40));
|
|
609542
609833
|
validateTestApiInput(input, mutations);
|
|
609543
609834
|
return PermissionLevel.PROMPT;
|
|
609544
609835
|
}
|
|
@@ -609600,12 +609891,9 @@ The description will be shown to the user in an approval prompt, so it must be c
|
|
|
609600
609891
|
return [];
|
|
609601
609892
|
}
|
|
609602
609893
|
try {
|
|
609603
|
-
const
|
|
609604
|
-
|
|
609605
|
-
|
|
609606
|
-
}
|
|
609607
|
-
const apiSourceContent = await services.appShell.readFile(apiTsPath);
|
|
609608
|
-
const hasWrites = containsMutations(apiSourceContent);
|
|
609894
|
+
const registryEntry = services.features.sdkApiEnabled ? await resolveSdkApiRegistryEntry(apiName, services) : void 0;
|
|
609895
|
+
const apiSourceContent = await readApiSource(apiName, services, registryEntry);
|
|
609896
|
+
const hasWrites = containsMutations(apiSourceContent, registryEntry ? registryEntry.exportName ?? "default" : void 0);
|
|
609609
609897
|
if (!hasWrites) {
|
|
609610
609898
|
return [];
|
|
609611
609899
|
}
|
|
@@ -661647,7 +661935,7 @@ var parseYaml3;
|
|
|
661647
661935
|
async function loadYaml(file2) {
|
|
661648
661936
|
const content9 = await read_file_default(file2);
|
|
661649
661937
|
if (!parseYaml3) {
|
|
661650
|
-
({ __parsePrettierYamlConfig: parseYaml3 } = await import("./yaml-
|
|
661938
|
+
({ __parsePrettierYamlConfig: parseYaml3 } = await import("./yaml-DIKD4C3J.js"));
|
|
661651
661939
|
}
|
|
661652
661940
|
try {
|
|
661653
661941
|
return parseYaml3(content9);
|
|
@@ -667041,7 +667329,7 @@ function createParsersAndPrinters(modules) {
|
|
|
667041
667329
|
}
|
|
667042
667330
|
var estreePlugin = createParsersAndPrinters([
|
|
667043
667331
|
{
|
|
667044
|
-
importPlugin: () => import("./estree-
|
|
667332
|
+
importPlugin: () => import("./estree-NWG7ORNF.js"),
|
|
667045
667333
|
printers: ["estree", "estree-json"]
|
|
667046
667334
|
}
|
|
667047
667335
|
]);
|
|
@@ -667065,11 +667353,11 @@ var languages = [
|
|
|
667065
667353
|
];
|
|
667066
667354
|
var { parsers: parsers12, printers } = createParsersAndPrinters([
|
|
667067
667355
|
{
|
|
667068
|
-
importPlugin: () => import("./acorn-
|
|
667356
|
+
importPlugin: () => import("./acorn-QO52KVQO.js"),
|
|
667069
667357
|
parsers: ["acorn", "espree"]
|
|
667070
667358
|
},
|
|
667071
667359
|
{
|
|
667072
|
-
importPlugin: () => import("./angular-
|
|
667360
|
+
importPlugin: () => import("./angular-YUWEXJBE.js"),
|
|
667073
667361
|
parsers: [
|
|
667074
667362
|
"__ng_action",
|
|
667075
667363
|
"__ng_binding",
|
|
@@ -667078,7 +667366,7 @@ var { parsers: parsers12, printers } = createParsersAndPrinters([
|
|
|
667078
667366
|
]
|
|
667079
667367
|
},
|
|
667080
667368
|
{
|
|
667081
|
-
importPlugin: () => import("./babel-
|
|
667369
|
+
importPlugin: () => import("./babel-5YQYS64B.js"),
|
|
667082
667370
|
parsers: [
|
|
667083
667371
|
"babel",
|
|
667084
667372
|
"babel-flow",
|
|
@@ -667097,44 +667385,44 @@ var { parsers: parsers12, printers } = createParsersAndPrinters([
|
|
|
667097
667385
|
]
|
|
667098
667386
|
},
|
|
667099
667387
|
{
|
|
667100
|
-
importPlugin: () => import("./flow-
|
|
667388
|
+
importPlugin: () => import("./flow-B2DJASGH.js"),
|
|
667101
667389
|
parsers: ["flow"]
|
|
667102
667390
|
},
|
|
667103
667391
|
{
|
|
667104
|
-
importPlugin: () => import("./glimmer-
|
|
667392
|
+
importPlugin: () => import("./glimmer-IELLTFF3.js"),
|
|
667105
667393
|
parsers: ["glimmer"],
|
|
667106
667394
|
printers: ["glimmer"]
|
|
667107
667395
|
},
|
|
667108
667396
|
{
|
|
667109
|
-
importPlugin: () => import("./graphql-
|
|
667397
|
+
importPlugin: () => import("./graphql-GIEHFWOJ.js"),
|
|
667110
667398
|
parsers: ["graphql"],
|
|
667111
667399
|
printers: ["graphql"]
|
|
667112
667400
|
},
|
|
667113
667401
|
{
|
|
667114
|
-
importPlugin: () => import("./html-
|
|
667402
|
+
importPlugin: () => import("./html-YZ5MVTIB.js"),
|
|
667115
667403
|
parsers: ["html", "angular", "vue", "lwc", "mjml"],
|
|
667116
667404
|
printers: ["html"]
|
|
667117
667405
|
},
|
|
667118
667406
|
{
|
|
667119
|
-
importPlugin: () => import("./markdown-
|
|
667407
|
+
importPlugin: () => import("./markdown-NS4LHUPF.js"),
|
|
667120
667408
|
parsers: ["markdown", "mdx", "remark"],
|
|
667121
667409
|
printers: ["mdast"]
|
|
667122
667410
|
},
|
|
667123
667411
|
{
|
|
667124
|
-
importPlugin: () => import("./meriyah-
|
|
667412
|
+
importPlugin: () => import("./meriyah-MCD53HCJ.js"),
|
|
667125
667413
|
parsers: ["meriyah"]
|
|
667126
667414
|
},
|
|
667127
667415
|
{
|
|
667128
|
-
importPlugin: () => import("./postcss-
|
|
667416
|
+
importPlugin: () => import("./postcss-OKYQPXFM.js"),
|
|
667129
667417
|
parsers: ["css", "less", "scss"],
|
|
667130
667418
|
printers: ["postcss"]
|
|
667131
667419
|
},
|
|
667132
667420
|
{
|
|
667133
|
-
importPlugin: () => import("./typescript-
|
|
667421
|
+
importPlugin: () => import("./typescript-FDRAW2VN.js"),
|
|
667134
667422
|
parsers: ["typescript"]
|
|
667135
667423
|
},
|
|
667136
667424
|
{
|
|
667137
|
-
importPlugin: () => import("./yaml-
|
|
667425
|
+
importPlugin: () => import("./yaml-DIKD4C3J.js"),
|
|
667138
667426
|
parsers: ["yaml"],
|
|
667139
667427
|
printers: ["yaml"]
|
|
667140
667428
|
}
|
|
@@ -680031,7 +680319,7 @@ async function handleLockConflict(error40, lockSvc, span, logger15) {
|
|
|
680031
680319
|
}
|
|
680032
680320
|
async function readPkgJson(cwd) {
|
|
680033
680321
|
try {
|
|
680034
|
-
const { readPackage } = await import("./read-pkg-
|
|
680322
|
+
const { readPackage } = await import("./read-pkg-DZ2QCX34.js");
|
|
680035
680323
|
return await readPackage({ cwd });
|
|
680036
680324
|
} catch {
|
|
680037
680325
|
return null;
|
|
@@ -681373,4 +681661,4 @@ serve-static/index.js:
|
|
|
681373
681661
|
chokidar/esm/index.js:
|
|
681374
681662
|
(*! chokidar - MIT License (c) 2012 Paul Miller (paulmillr.com) *)
|
|
681375
681663
|
*/
|
|
681376
|
-
//# sourceMappingURL=chunk-
|
|
681664
|
+
//# sourceMappingURL=chunk-QQME6RVF.js.map
|