@sqaitech/mcp 0.30.15 → 0.30.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +13 -13
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -219501,7 +219501,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
219501
219501
  }
219502
219502
  throwErrorIfNonVLModel(intent = 'grounding') {
219503
219503
  const modelConfig = this.getModelConfig(intent);
219504
- if (!modelConfig.vlMode) throw new Error('No visual language model (VL model) detected for the current scenario. Element localization may be inaccurate. Please verify your model configuration. Learn more: https://midscenejs.com/choose-a-model');
219504
+ if (!modelConfig.vlMode) throw new Error('No visual language model (VL model) detected for the current scenario. Element localization may be inaccurate. Please verify your model configuration. Learn more: https://sqai.tech/choose-a-model');
219505
219505
  }
219506
219506
  constructor(modelConfigFn){
219507
219507
  model_config_manager_define_property(this, "modelConfigMap", void 0);
@@ -225465,7 +225465,7 @@ Wrong output:
225465
225465
  };
225466
225466
  } catch (e) {
225467
225467
  console.error(' call AI error', e);
225468
- const newError = new Error(`failed to call ${isStreaming ? 'streaming ' : ''}AI model service: ${e.message}. Trouble shooting: https://midscenejs.com/model-provider.html`, {
225468
+ const newError = new Error(`failed to call ${isStreaming ? 'streaming ' : ''}AI model service: ${e.message}. Trouble shooting: https://sqai.tech/model-provider.html`, {
225469
225469
  cause: e
225470
225470
  });
225471
225471
  throw newError;
@@ -228141,7 +228141,7 @@ Return JSON:
228141
228141
  if (query.deepThink || globalDeepThinkSwitch) searchAreaPrompt = query.prompt;
228142
228142
  const { vlMode } = modelConfig;
228143
228143
  if (searchAreaPrompt && !vlMode) {
228144
- console.warn('The "deepThink" feature is not supported with multimodal LLM. Please config VL model for Midscene. https://midscenejs.com/choose-a-model');
228144
+ console.warn('The "deepThink" feature is not supported with multimodal LLM. Please config VL model for SQAI. https://sqai.tech/choose-a-model');
228145
228145
  searchAreaPrompt = void 0;
228146
228146
  }
228147
228147
  const context = (null == opt ? void 0 : opt.context) || await this.contextRetrieverFn('locate');
@@ -228525,11 +228525,11 @@ Return JSON:
228525
228525
  return JSON.stringify(data, replacerForPageObject, indents);
228526
228526
  }
228527
228527
  function getVersion() {
228528
- return "0.30.12";
228528
+ return "0.30.16";
228529
228529
  }
228530
228530
  function utils_debugLog(...message) {
228531
228531
  const debugMode = process.env[SQAI_DEBUG_MODE];
228532
- if (debugMode) console.log('[Midscene]', ...message);
228532
+ if (debugMode) console.log('[SQAI]', ...message);
228533
228533
  }
228534
228534
  let lastReportedRepoUrl = '';
228535
228535
  function uploadTestInfoToServer({ testUrl, serverUrl }) {
@@ -231230,7 +231230,7 @@ Return JSON:
231230
231230
  }) : execution.tasks
231231
231231
  };
231232
231232
  }
231233
- const getMidsceneVersion = ()=>"0.30.12";
231233
+ const getMidsceneVersion = ()=>"0.30.16";
231234
231234
  const parsePrompt = (prompt)=>{
231235
231235
  if ('string' == typeof prompt) return {
231236
231236
  textPrompt: prompt,
@@ -233255,7 +233255,7 @@ ${Object.keys(size).filter((key)=>size[key]).map((key)=>` ${key} size: ${size[k
233255
233255
  const methodName = String(prop);
233256
233256
  const deviceId = this.deviceId;
233257
233257
  debugDevice(`ADB error with device ${deviceId} when calling ${methodName}: ${error}`);
233258
- throw new Error(`ADB error with device ${deviceId} when calling ${methodName}, please check https://midscenejs.com/integrate-with-android.html#faq : ${error.message}`, {
233258
+ throw new Error(`ADB error with device ${deviceId} when calling ${methodName}, please check https://sqai.tech/integrate-with-android.html#faq : ${error.message}`, {
233259
233259
  cause: error
233260
233260
  });
233261
233261
  }
@@ -233970,7 +233970,7 @@ ${Object.keys(size).filter((key)=>size[key]).map((key)=>` ${key} size: ${size[k
233970
233970
  return devices;
233971
233971
  } catch (error) {
233972
233972
  console.error('Failed to get device list:', error);
233973
- throw new Error(`Unable to get connected Android device list, please check https://midscenejs.com/integrate-with-android.html#faq : ${error.message}`, {
233973
+ throw new Error(`Unable to get connected Android device list, please check https://sqai.tech/integrate-with-android.html#faq : ${error.message}`, {
233974
233974
  cause: error
233975
233975
  });
233976
233976
  }
@@ -236499,7 +236499,7 @@ ${Object.keys(size).filter((key)=>size[key]).map((key)=>` ${key} size: ${size[k
236499
236499
  logMsg('one client connected');
236500
236500
  this.socket = socket;
236501
236501
  const clientVersion = socket.handshake.query.version;
236502
- logMsg(`Bridge connected, cli-side version v0.30.12, browser-side version v${clientVersion}`);
236502
+ logMsg(`Bridge connected, cli-side version v0.30.16, browser-side version v${clientVersion}`);
236503
236503
  socket.on(common_BridgeEvent.CallResponse, (params)=>{
236504
236504
  const id = params.id;
236505
236505
  const response = params.response;
@@ -236527,7 +236527,7 @@ ${Object.keys(size).filter((key)=>size[key]).map((key)=>` ${key} size: ${size[k
236527
236527
  var _this_onConnect, _this;
236528
236528
  null == (_this_onConnect = (_this = this).onConnect) || _this_onConnect.call(_this);
236529
236529
  const payload = {
236530
- version: "0.30.12"
236530
+ version: "0.30.16"
236531
236531
  };
236532
236532
  socket.emit(common_BridgeEvent.Connected, payload);
236533
236533
  Promise.resolve().then(()=>{
@@ -236845,7 +236845,7 @@ ${Object.keys(size).filter((key)=>size[key]).map((key)=>` ${key} size: ${size[k
236845
236845
  timeout: this.waitForNavigationTimeout
236846
236846
  });
236847
236847
  } catch (error) {
236848
- console.warn('[midscene:warning] Waiting for the "navigation" has timed out, but Midscene will continue execution. Please check https://midscenejs.com/faq.html#customize-the-network-timeout for more information on customizing the network timeout');
236848
+ console.warn('[sqai:warning] Waiting for the "navigation" has timed out, but SQAI will continue execution. Please check https://sqai.tech/faq.html#customize-the-network-timeout for more information on customizing the network timeout');
236849
236849
  }
236850
236850
  debugPage('waitForNavigation end');
236851
236851
  }
@@ -236860,7 +236860,7 @@ ${Object.keys(size).filter((key)=>size[key]).map((key)=>` ${key} size: ${size[k
236860
236860
  timeout: this.waitForNetworkIdleTimeout
236861
236861
  });
236862
236862
  } catch (error) {
236863
- console.warn('[midscene:warning] Waiting for the "network idle" has timed out, but Midscene will continue execution. Please check https://midscenejs.com/faq.html#customize-the-network-timeout for more information on customizing the network timeout');
236863
+ console.warn('[sqai:warning] Waiting for the "network idle" has timed out, but SQAI will continue execution. Please check https://sqai.tech/faq.html#customize-the-network-timeout for more information on customizing the network timeout');
236864
236864
  }
236865
236865
  }
236866
236866
  }
@@ -261593,7 +261593,7 @@ test('ai shop', async ({
261593
261593
  setIsMcp(true);
261594
261594
  const src_server = new McpServer({
261595
261595
  name: '@sqaitech/mcp',
261596
- version: '0.30.12',
261596
+ version: '0.30.16',
261597
261597
  description: 'Midscene MCP Server: Control the browser using natural language commands for navigation, clicking, input, hovering, and achieving goals. Also supports screenshots and JavaScript execution.'
261598
261598
  });
261599
261599
  src_server.tool(tools_tools.midscene_playwright_example.name, tools_tools.midscene_playwright_example.description, {}, async ()=>({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sqaitech/mcp",
3
- "version": "0.30.15",
3
+ "version": "0.30.16",
4
4
  "bin": "dist/index.js",
5
5
  "files": [
6
6
  "dist"
@@ -15,11 +15,11 @@
15
15
  "typescript": "^5.8.3",
16
16
  "vitest": "3.0.5",
17
17
  "zod": "3.24.3",
18
- "@sqaitech/android": "0.30.15",
19
- "@sqaitech/core": "0.30.15",
20
- "@sqaitech/shared": "0.30.15",
21
- "@sqaitech/report": "0.30.15",
22
- "@sqaitech/web": "0.30.15"
18
+ "@sqaitech/android": "0.30.16",
19
+ "@sqaitech/web": "0.30.16",
20
+ "@sqaitech/shared": "0.30.16",
21
+ "@sqaitech/core": "0.30.16",
22
+ "@sqaitech/report": "0.30.16"
23
23
  },
24
24
  "dependencies": {
25
25
  "@silvia-odwyer/photon": "0.3.3",