test-wuying-agentbay-sdk 0.13.1-beta.20251223134501 → 0.13.1-beta.20251223140234
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/dist/index.cjs +53 -45
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +9 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -12023,7 +12023,15 @@ var _Computer = class _Computer {
|
|
|
12023
12023
|
data: ""
|
|
12024
12024
|
};
|
|
12025
12025
|
}
|
|
12026
|
-
|
|
12026
|
+
if (!result.data) {
|
|
12027
|
+
return {
|
|
12028
|
+
success: false,
|
|
12029
|
+
requestId: result.requestId || "",
|
|
12030
|
+
errorMessage: result.errorMessage || "Failed to take screenshot",
|
|
12031
|
+
data: ""
|
|
12032
|
+
};
|
|
12033
|
+
}
|
|
12034
|
+
const screenshotUrl = result.data || "";
|
|
12027
12035
|
return {
|
|
12028
12036
|
success: true,
|
|
12029
12037
|
requestId: result.requestId || "",
|
|
@@ -12736,7 +12744,7 @@ var _ContextManager = class _ContextManager {
|
|
|
12736
12744
|
try {
|
|
12737
12745
|
const response = await this.session.getClient().getContextInfo(request);
|
|
12738
12746
|
const requestId = extractRequestId(response) || "";
|
|
12739
|
-
if (_optionalChain([response, 'optionalAccess',
|
|
12747
|
+
if (_optionalChain([response, 'optionalAccess', _146 => _146.body, 'optionalAccess', _147 => _147.success]) === false && response.body.code) {
|
|
12740
12748
|
const errorMsg = `[${response.body.code}] ${response.body.message || "Unknown error"}`;
|
|
12741
12749
|
const fullResponse2 = response.body ? JSON.stringify(response.body, null, 2) : "";
|
|
12742
12750
|
logAPIResponseWithDetails("GetContextInfo", requestId, false, void 0, fullResponse2);
|
|
@@ -12748,7 +12756,7 @@ var _ContextManager = class _ContextManager {
|
|
|
12748
12756
|
};
|
|
12749
12757
|
}
|
|
12750
12758
|
const contextStatusData = [];
|
|
12751
|
-
if (_optionalChain([response, 'optionalAccess',
|
|
12759
|
+
if (_optionalChain([response, 'optionalAccess', _148 => _148.body, 'optionalAccess', _149 => _149.data, 'optionalAccess', _150 => _150.contextStatus])) {
|
|
12752
12760
|
try {
|
|
12753
12761
|
const contextStatusStr = response.body.data.contextStatus;
|
|
12754
12762
|
const statusItems = JSON.parse(contextStatusStr);
|
|
@@ -12863,7 +12871,7 @@ var _ContextManager = class _ContextManager {
|
|
|
12863
12871
|
try {
|
|
12864
12872
|
const response = await this.session.getClient().syncContext(request);
|
|
12865
12873
|
const requestId = extractRequestId(response) || "";
|
|
12866
|
-
if (_optionalChain([response, 'optionalAccess',
|
|
12874
|
+
if (_optionalChain([response, 'optionalAccess', _151 => _151.body, 'optionalAccess', _152 => _152.success]) === false && response.body.code) {
|
|
12867
12875
|
const errorMsg = `[${response.body.code}] ${response.body.message || "Unknown error"}`;
|
|
12868
12876
|
const fullResponse2 = response.body ? JSON.stringify(response.body, null, 2) : "";
|
|
12869
12877
|
logAPIResponseWithDetails("SyncContext", requestId, false, void 0, fullResponse2);
|
|
@@ -12874,7 +12882,7 @@ var _ContextManager = class _ContextManager {
|
|
|
12874
12882
|
};
|
|
12875
12883
|
}
|
|
12876
12884
|
let success = false;
|
|
12877
|
-
if (_optionalChain([response, 'optionalAccess',
|
|
12885
|
+
if (_optionalChain([response, 'optionalAccess', _153 => _153.body, 'optionalAccess', _154 => _154.success]) !== void 0) {
|
|
12878
12886
|
success = response.body.success;
|
|
12879
12887
|
}
|
|
12880
12888
|
const keyFields = {
|
|
@@ -13088,7 +13096,7 @@ var _FileTransfer = class _FileTransfer {
|
|
|
13088
13096
|
};
|
|
13089
13097
|
response = await client.getAndLoadInternalContext(req);
|
|
13090
13098
|
} catch (e) {
|
|
13091
|
-
return [false, _optionalChain([e, 'optionalAccess',
|
|
13099
|
+
return [false, _optionalChain([e, 'optionalAccess', _155 => _155.message]) || String(e)];
|
|
13092
13100
|
}
|
|
13093
13101
|
const body = response && response.body ? response.body : {};
|
|
13094
13102
|
if (body.Success === false && body.Code) {
|
|
@@ -13110,7 +13118,7 @@ var _FileTransfer = class _FileTransfer {
|
|
|
13110
13118
|
}
|
|
13111
13119
|
return [false, "Response contains no data"];
|
|
13112
13120
|
} catch (e) {
|
|
13113
|
-
return [false, _optionalChain([e, 'optionalAccess',
|
|
13121
|
+
return [false, _optionalChain([e, 'optionalAccess', _156 => _156.message]) || String(e)];
|
|
13114
13122
|
}
|
|
13115
13123
|
}
|
|
13116
13124
|
/**
|
|
@@ -14551,7 +14559,7 @@ var _FileSystem = class _FileSystem {
|
|
|
14551
14559
|
console.log(`Starting directory monitoring for: ${path6}`);
|
|
14552
14560
|
console.log(`Polling interval: ${interval} ms`);
|
|
14553
14561
|
const monitor = /* @__PURE__ */ _chunk4IPTHWLMcjs.__name.call(void 0, async () => {
|
|
14554
|
-
while (!_optionalChain([signal, 'optionalAccess',
|
|
14562
|
+
while (!_optionalChain([signal, 'optionalAccess', _157 => _157.aborted])) {
|
|
14555
14563
|
try {
|
|
14556
14564
|
if (this.session._isExpired && this.session._isExpired()) {
|
|
14557
14565
|
console.log(`Session expired, stopping directory monitoring for: ${path6}`);
|
|
@@ -14578,7 +14586,7 @@ var _FileSystem = class _FileSystem {
|
|
|
14578
14586
|
}
|
|
14579
14587
|
await new Promise((resolve2) => {
|
|
14580
14588
|
const timeoutId = setTimeout(resolve2, interval);
|
|
14581
|
-
_optionalChain([signal, 'optionalAccess',
|
|
14589
|
+
_optionalChain([signal, 'optionalAccess', _158 => _158.addEventListener, 'call', _159 => _159("abort", () => {
|
|
14582
14590
|
clearTimeout(timeoutId);
|
|
14583
14591
|
resolve2(void 0);
|
|
14584
14592
|
})]);
|
|
@@ -15200,8 +15208,8 @@ var _Mobile = class _Mobile {
|
|
|
15200
15208
|
url: adbUrl
|
|
15201
15209
|
};
|
|
15202
15210
|
} else {
|
|
15203
|
-
const errorMsg = _optionalChain([response, 'access',
|
|
15204
|
-
const requestId = _optionalChain([response, 'access',
|
|
15211
|
+
const errorMsg = _optionalChain([response, 'access', _160 => _160.body, 'optionalAccess', _161 => _161.message]) || "Unknown error";
|
|
15212
|
+
const requestId = _optionalChain([response, 'access', _162 => _162.body, 'optionalAccess', _163 => _163.requestId]) || "";
|
|
15205
15213
|
logError(`\u274C Failed to get ADB URL: ${errorMsg}`);
|
|
15206
15214
|
return {
|
|
15207
15215
|
success: false,
|
|
@@ -15473,11 +15481,11 @@ var _Mobile = class _Mobile {
|
|
|
15473
15481
|
errorMessage: ""
|
|
15474
15482
|
};
|
|
15475
15483
|
} else {
|
|
15476
|
-
const errorMessage = _optionalChain([result, 'optionalAccess',
|
|
15484
|
+
const errorMessage = _optionalChain([result, 'optionalAccess', _164 => _164.errorMessage]) || `Failed to execute ${description}`;
|
|
15477
15485
|
logError(`Failed to execute ${description}: ${errorMessage}`);
|
|
15478
15486
|
return {
|
|
15479
15487
|
success: false,
|
|
15480
|
-
requestId: _optionalChain([result, 'optionalAccess',
|
|
15488
|
+
requestId: _optionalChain([result, 'optionalAccess', _165 => _165.requestId]) || "",
|
|
15481
15489
|
errorMessage
|
|
15482
15490
|
};
|
|
15483
15491
|
}
|
|
@@ -15990,9 +15998,9 @@ var _Session = class _Session {
|
|
|
15990
15998
|
);
|
|
15991
15999
|
const requestId = extractRequestId(response) || "";
|
|
15992
16000
|
const responseBody = response.body;
|
|
15993
|
-
const success = _optionalChain([responseBody, 'optionalAccess',
|
|
16001
|
+
const success = _optionalChain([responseBody, 'optionalAccess', _166 => _166.success]) !== false;
|
|
15994
16002
|
if (!success) {
|
|
15995
|
-
const errorMessage = `[${_optionalChain([responseBody, 'optionalAccess',
|
|
16003
|
+
const errorMessage = `[${_optionalChain([responseBody, 'optionalAccess', _167 => _167.code]) || "Unknown"}] ${_optionalChain([responseBody, 'optionalAccess', _168 => _168.message]) || "Failed to delete session"}`;
|
|
15996
16004
|
logAPIResponseWithDetails(
|
|
15997
16005
|
"DeleteSessionAsync",
|
|
15998
16006
|
requestId,
|
|
@@ -16184,9 +16192,9 @@ var _Session = class _Session {
|
|
|
16184
16192
|
});
|
|
16185
16193
|
const response = await this.getClient().getLabel(request);
|
|
16186
16194
|
const requestId = extractRequestId(response) || "";
|
|
16187
|
-
const responseBody = _optionalChain([response, 'optionalAccess',
|
|
16188
|
-
const data = _optionalChain([responseBody, 'optionalAccess',
|
|
16189
|
-
const labelsJSON = _optionalChain([data, 'optionalAccess',
|
|
16195
|
+
const responseBody = _optionalChain([response, 'optionalAccess', _169 => _169.body]);
|
|
16196
|
+
const data = _optionalChain([responseBody, 'optionalAccess', _170 => _170.data]);
|
|
16197
|
+
const labelsJSON = _optionalChain([data, 'optionalAccess', _171 => _171.labels]);
|
|
16190
16198
|
let labels = {};
|
|
16191
16199
|
if (labelsJSON) {
|
|
16192
16200
|
labels = JSON.parse(labelsJSON);
|
|
@@ -16259,7 +16267,7 @@ var _Session = class _Session {
|
|
|
16259
16267
|
logDebug(`Request: SessionId=${this.sessionId}`);
|
|
16260
16268
|
const response = await this.getClient().getMcpResource(request);
|
|
16261
16269
|
const requestId = extractRequestId(response) || "";
|
|
16262
|
-
if (_optionalChain([response, 'optionalAccess',
|
|
16270
|
+
if (_optionalChain([response, 'optionalAccess', _172 => _172.body, 'optionalAccess', _173 => _173.success]) === false && _optionalChain([response, 'access', _174 => _174.body, 'optionalAccess', _175 => _175.code])) {
|
|
16263
16271
|
const errorMessage = `[${response.body.code}] ${response.body.message || "Unknown error"}`;
|
|
16264
16272
|
const fullResponse2 = response.body ? JSON.stringify(response.body, null, 2) : "";
|
|
16265
16273
|
logAPIResponseWithDetails(
|
|
@@ -16276,15 +16284,15 @@ var _Session = class _Session {
|
|
|
16276
16284
|
};
|
|
16277
16285
|
}
|
|
16278
16286
|
const responseBody = response.body;
|
|
16279
|
-
const data = _optionalChain([responseBody, 'optionalAccess',
|
|
16287
|
+
const data = _optionalChain([responseBody, 'optionalAccess', _176 => _176.data]);
|
|
16280
16288
|
const sessionInfo = new SessionInfoClass();
|
|
16281
|
-
if (_optionalChain([data, 'optionalAccess',
|
|
16289
|
+
if (_optionalChain([data, 'optionalAccess', _177 => _177.sessionId])) {
|
|
16282
16290
|
sessionInfo.sessionId = data.sessionId;
|
|
16283
16291
|
}
|
|
16284
|
-
if (_optionalChain([data, 'optionalAccess',
|
|
16292
|
+
if (_optionalChain([data, 'optionalAccess', _178 => _178.resourceUrl])) {
|
|
16285
16293
|
sessionInfo.resourceUrl = data.resourceUrl;
|
|
16286
16294
|
}
|
|
16287
|
-
if (_optionalChain([data, 'optionalAccess',
|
|
16295
|
+
if (_optionalChain([data, 'optionalAccess', _179 => _179.desktopInfo])) {
|
|
16288
16296
|
const desktopInfo = data.desktopInfo;
|
|
16289
16297
|
if (desktopInfo.appId) {
|
|
16290
16298
|
sessionInfo.appId = desktopInfo.appId;
|
|
@@ -16329,7 +16337,7 @@ var _Session = class _Session {
|
|
|
16329
16337
|
};
|
|
16330
16338
|
} catch (error) {
|
|
16331
16339
|
const errorStr = String(error);
|
|
16332
|
-
const errorCode = _optionalChain([error, 'optionalAccess',
|
|
16340
|
+
const errorCode = _optionalChain([error, 'optionalAccess', _180 => _180.data, 'optionalAccess', _181 => _181.Code]) || _optionalChain([error, 'optionalAccess', _182 => _182.code]) || "";
|
|
16333
16341
|
if (errorCode === "InvalidMcpSession.NotFound" || errorStr.includes("NotFound")) {
|
|
16334
16342
|
logInfoWithColor(`Session not found: ${this.sessionId}`);
|
|
16335
16343
|
logDebug(`GetMcpResource error details: ${errorStr}`);
|
|
@@ -16487,13 +16495,13 @@ var _Session = class _Session {
|
|
|
16487
16495
|
});
|
|
16488
16496
|
const response = await this.agentBay.getClient().getLink(request);
|
|
16489
16497
|
const requestId = extractRequestId(response) || "";
|
|
16490
|
-
const responseBody = _optionalChain([response, 'optionalAccess',
|
|
16498
|
+
const responseBody = _optionalChain([response, 'optionalAccess', _183 => _183.body]);
|
|
16491
16499
|
if (typeof responseBody !== "object") {
|
|
16492
16500
|
throw new Error(
|
|
16493
16501
|
"Invalid response format: expected a dictionary from response body"
|
|
16494
16502
|
);
|
|
16495
16503
|
}
|
|
16496
|
-
let data = _optionalChain([responseBody, 'optionalAccess',
|
|
16504
|
+
let data = _optionalChain([responseBody, 'optionalAccess', _184 => _184.data]) || {};
|
|
16497
16505
|
logDebug(`Data: ${JSON.stringify(data)}`);
|
|
16498
16506
|
if (typeof data !== "object") {
|
|
16499
16507
|
try {
|
|
@@ -16549,7 +16557,7 @@ var _Session = class _Session {
|
|
|
16549
16557
|
logDebug(`Request: ImageId=${imageId}`);
|
|
16550
16558
|
const response = await this.getClient().listMcpTools(request);
|
|
16551
16559
|
const requestId = extractRequestId(response) || "";
|
|
16552
|
-
if (_optionalChain([response, 'optionalAccess',
|
|
16560
|
+
if (_optionalChain([response, 'optionalAccess', _185 => _185.body, 'optionalAccess', _186 => _186.success]) === false && _optionalChain([response, 'access', _187 => _187.body, 'optionalAccess', _188 => _188.code])) {
|
|
16553
16561
|
const errorMessage = `[${response.body.code}] ${response.body.message || "Unknown error"}`;
|
|
16554
16562
|
const fullResponse2 = response.body ? JSON.stringify(response.body, null, 2) : "";
|
|
16555
16563
|
logAPIResponseWithDetails(
|
|
@@ -16720,7 +16728,7 @@ var _Session = class _Session {
|
|
|
16720
16728
|
autoGenSession
|
|
16721
16729
|
});
|
|
16722
16730
|
const response = await this.getClient().callMcpTool(callToolRequest);
|
|
16723
|
-
if (!_optionalChain([response, 'access',
|
|
16731
|
+
if (!_optionalChain([response, 'access', _189 => _189.body, 'optionalAccess', _190 => _190.data])) {
|
|
16724
16732
|
return {
|
|
16725
16733
|
success: false,
|
|
16726
16734
|
data: "",
|
|
@@ -17231,8 +17239,8 @@ var _AgentBay = class _AgentBay {
|
|
|
17231
17239
|
async create(params) {
|
|
17232
17240
|
try {
|
|
17233
17241
|
const paramsCopy = this.deepCopyParams(params);
|
|
17234
|
-
logDebug(`default context syncs length: ${_optionalChain([paramsCopy, 'access',
|
|
17235
|
-
if (_optionalChain([paramsCopy, 'access',
|
|
17242
|
+
logDebug(`default context syncs length: ${_optionalChain([paramsCopy, 'access', _191 => _191.contextSync, 'optionalAccess', _192 => _192.length])}`);
|
|
17243
|
+
if (_optionalChain([paramsCopy, 'access', _193 => _193.extraConfigs, 'optionalAccess', _194 => _194.mobile, 'optionalAccess', _195 => _195.simulateConfig])) {
|
|
17236
17244
|
const mobileSimContextId = paramsCopy.extraConfigs.mobile.simulateConfig.simulatedContextId;
|
|
17237
17245
|
if (mobileSimContextId) {
|
|
17238
17246
|
const mobileSimContextSync = new ContextSync(
|
|
@@ -17252,7 +17260,7 @@ var _AgentBay = class _AgentBay {
|
|
|
17252
17260
|
if (paramsCopy.enableBrowserReplay === false) {
|
|
17253
17261
|
request.enableRecord = false;
|
|
17254
17262
|
}
|
|
17255
|
-
const framework = _optionalChain([paramsCopy, 'optionalAccess',
|
|
17263
|
+
const framework = _optionalChain([paramsCopy, 'optionalAccess', _196 => _196.framework]) || "";
|
|
17256
17264
|
const sdkStatsJson = `{"source":"sdk","sdk_language":"typescript","sdk_version":"${VERSION}","is_release":${IS_RELEASE},"framework":"${framework}"}`;
|
|
17257
17265
|
request.sdkStats = sdkStatsJson;
|
|
17258
17266
|
if (this.config.region_id) {
|
|
@@ -17309,7 +17317,7 @@ var _AgentBay = class _AgentBay {
|
|
|
17309
17317
|
}
|
|
17310
17318
|
if (paramsCopy.extraConfigs) {
|
|
17311
17319
|
request.extraConfigs = JSON.stringify(paramsCopy.extraConfigs);
|
|
17312
|
-
if (_optionalChain([paramsCopy, 'access',
|
|
17320
|
+
if (_optionalChain([paramsCopy, 'access', _197 => _197.extraConfigs, 'access', _198 => _198.mobile, 'optionalAccess', _199 => _199.simulateConfig, 'optionalAccess', _200 => _200.simulate])) {
|
|
17313
17321
|
mobileSimPath = paramsCopy.extraConfigs.mobile.simulateConfig.simulatePath;
|
|
17314
17322
|
if (!mobileSimPath) {
|
|
17315
17323
|
logInfo("mobile_sim_path is not set now, skip mobile simulate operation");
|
|
@@ -17552,9 +17560,9 @@ var _AgentBay = class _AgentBay {
|
|
|
17552
17560
|
}
|
|
17553
17561
|
const response2 = await this.client.listSession(request2);
|
|
17554
17562
|
const requestId2 = extractRequestId(response2) || "";
|
|
17555
|
-
if (!_optionalChain([response2, 'access',
|
|
17556
|
-
const code = _optionalChain([response2, 'access',
|
|
17557
|
-
const message = _optionalChain([response2, 'access',
|
|
17563
|
+
if (!_optionalChain([response2, 'access', _201 => _201.body, 'optionalAccess', _202 => _202.success])) {
|
|
17564
|
+
const code = _optionalChain([response2, 'access', _203 => _203.body, 'optionalAccess', _204 => _204.code]) || "Unknown";
|
|
17565
|
+
const message = _optionalChain([response2, 'access', _205 => _205.body, 'optionalAccess', _206 => _206.message]) || "Unknown error";
|
|
17558
17566
|
return {
|
|
17559
17567
|
requestId: requestId2,
|
|
17560
17568
|
success: false,
|
|
@@ -17596,9 +17604,9 @@ var _AgentBay = class _AgentBay {
|
|
|
17596
17604
|
const response = await this.client.listSession(request);
|
|
17597
17605
|
const requestId = extractRequestId(response) || "";
|
|
17598
17606
|
setRequestId(requestId);
|
|
17599
|
-
if (!_optionalChain([response, 'access',
|
|
17600
|
-
const code = _optionalChain([response, 'access',
|
|
17601
|
-
const message = _optionalChain([response, 'access',
|
|
17607
|
+
if (!_optionalChain([response, 'access', _207 => _207.body, 'optionalAccess', _208 => _208.success])) {
|
|
17608
|
+
const code = _optionalChain([response, 'access', _209 => _209.body, 'optionalAccess', _210 => _210.code]) || "Unknown";
|
|
17609
|
+
const message = _optionalChain([response, 'access', _211 => _211.body, 'optionalAccess', _212 => _212.message]) || "Unknown error";
|
|
17602
17610
|
logAPIResponseWithDetails(
|
|
17603
17611
|
"ListSession",
|
|
17604
17612
|
requestId,
|
|
@@ -17706,7 +17714,7 @@ var _AgentBay = class _AgentBay {
|
|
|
17706
17714
|
const requestId = extractRequestId(response) || "";
|
|
17707
17715
|
const body = response.body;
|
|
17708
17716
|
setRequestId(requestId);
|
|
17709
|
-
if (_optionalChain([body, 'optionalAccess',
|
|
17717
|
+
if (_optionalChain([body, 'optionalAccess', _213 => _213.success]) === false && body.code) {
|
|
17710
17718
|
logAPIResponseWithDetails(
|
|
17711
17719
|
"GetSession",
|
|
17712
17720
|
requestId,
|
|
@@ -17725,12 +17733,12 @@ var _AgentBay = class _AgentBay {
|
|
|
17725
17733
|
}
|
|
17726
17734
|
const result = {
|
|
17727
17735
|
requestId,
|
|
17728
|
-
httpStatusCode: _optionalChain([body, 'optionalAccess',
|
|
17729
|
-
code: _optionalChain([body, 'optionalAccess',
|
|
17730
|
-
success: _optionalChain([body, 'optionalAccess',
|
|
17736
|
+
httpStatusCode: _optionalChain([body, 'optionalAccess', _214 => _214.httpStatusCode]) || 0,
|
|
17737
|
+
code: _optionalChain([body, 'optionalAccess', _215 => _215.code]) || "",
|
|
17738
|
+
success: _optionalChain([body, 'optionalAccess', _216 => _216.success]) || false,
|
|
17731
17739
|
errorMessage: ""
|
|
17732
17740
|
};
|
|
17733
|
-
if (_optionalChain([body, 'optionalAccess',
|
|
17741
|
+
if (_optionalChain([body, 'optionalAccess', _217 => _217.data])) {
|
|
17734
17742
|
const contextsList = body.data.contexts || [];
|
|
17735
17743
|
const contexts = [];
|
|
17736
17744
|
if (Array.isArray(contextsList)) {
|
|
@@ -17770,7 +17778,7 @@ var _AgentBay = class _AgentBay {
|
|
|
17770
17778
|
return result;
|
|
17771
17779
|
} catch (error) {
|
|
17772
17780
|
const errorStr = String(error);
|
|
17773
|
-
const errorCode = _optionalChain([error, 'optionalAccess',
|
|
17781
|
+
const errorCode = _optionalChain([error, 'optionalAccess', _218 => _218.data, 'optionalAccess', _219 => _219.Code]) || _optionalChain([error, 'optionalAccess', _220 => _220.code]) || "";
|
|
17774
17782
|
if (errorCode === "InvalidMcpSession.NotFound" || errorStr.includes("NotFound")) {
|
|
17775
17783
|
logInfo(`Session not found: ${sessionId}`);
|
|
17776
17784
|
logDebug(`GetSession error details: ${errorStr}`);
|
|
@@ -18739,7 +18747,7 @@ var _MobileSimulateService = class _MobileSimulateService {
|
|
|
18739
18747
|
if (!contextSync) {
|
|
18740
18748
|
throw new Error("contextSync is required for external context");
|
|
18741
18749
|
}
|
|
18742
|
-
if (_optionalChain([contextSync, 'access',
|
|
18750
|
+
if (_optionalChain([contextSync, 'access', _221 => _221.policy, 'optionalAccess', _222 => _222.bwList, 'optionalAccess', _223 => _223.whiteLists])) {
|
|
18743
18751
|
const exists = contextSync.policy.bwList.whiteLists.some(
|
|
18744
18752
|
(whiteList) => whiteList.path === MOBILE_INFO_SUB_PATH
|
|
18745
18753
|
);
|