@midscene/ios 1.9.8-beta-20260618014851.0 → 1.9.8

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/es/cli.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import { createReportCliCommands, z } from "@midscene/core";
2
2
  import { reportCLIError, runToolsCLI } from "@midscene/shared/cli";
3
- import { agentBehaviorInitArgShape, getAgentInitArgsSignature, shouldRebuildAgentForInitArgs } from "@midscene/shared/agent-tools/agent-behavior-init-args";
4
- import { BaseMidsceneTools } from "@midscene/shared/agent-tools/base-tools";
5
3
  import { getDebug } from "@midscene/shared/logger";
4
+ import { agentBehaviorInitArgShape, getAgentInitArgsSignature, shouldRebuildAgentForInitArgs } from "@midscene/shared/mcp/agent-behavior-init-args";
5
+ import { BaseMidsceneTools } from "@midscene/shared/mcp/base-tools";
6
6
  import { Agent } from "@midscene/core/agent";
7
7
  import { MIDSCENE_IOS_DEVICE_CLASS_OVERRIDE } from "@midscene/shared/env";
8
8
  import { mergeAndNormalizeAppNameMapping, normalizeForComparison } from "@midscene/shared/utils";
@@ -1340,7 +1340,7 @@ async function agentFromWebDriverAgent(opts) {
1340
1340
  await device.connect();
1341
1341
  return new IOSAgent(device, opts);
1342
1342
  }
1343
- function agent_tools_define_property(obj, key, value) {
1343
+ function mcp_tools_define_property(obj, key, value) {
1344
1344
  if (key in obj) Object.defineProperty(obj, key, {
1345
1345
  value: value,
1346
1346
  enumerable: true,
@@ -1350,7 +1350,7 @@ function agent_tools_define_property(obj, key, value) {
1350
1350
  else obj[key] = value;
1351
1351
  return obj;
1352
1352
  }
1353
- const debug = getDebug('agent-tools:ios');
1353
+ const debug = getDebug('mcp:ios-tools');
1354
1354
  const iosInitArgShape = {
1355
1355
  deviceId: z.string().optional().describe('iOS device UDID (optional when WDA auto-detect is sufficient)'),
1356
1356
  wdaHost: z.string().optional().describe('WebDriverAgent host, defaults to localhost'),
@@ -1442,20 +1442,20 @@ class IOSMidsceneTools extends BaseMidsceneTools {
1442
1442
  ];
1443
1443
  }
1444
1444
  constructor(...args){
1445
- super(...args), agent_tools_define_property(this, "initArgSpec", {
1445
+ super(...args), mcp_tools_define_property(this, "initArgSpec", {
1446
1446
  namespace: 'ios',
1447
1447
  shape: iosInitArgShape,
1448
1448
  cli: {
1449
1449
  preferBareKeys: true
1450
1450
  },
1451
1451
  adapt: (extracted)=>extracted
1452
- }), agent_tools_define_property(this, "lastOptsSignature", void 0);
1452
+ }), mcp_tools_define_property(this, "lastOptsSignature", void 0);
1453
1453
  }
1454
1454
  }
1455
1455
  const tools = new IOSMidsceneTools();
1456
1456
  runToolsCLI(tools, 'midscene-ios', {
1457
1457
  stripPrefix: 'ios_',
1458
- version: "1.9.8-beta-20260618014851.0",
1458
+ version: "1.9.8",
1459
1459
  extraCommands: createReportCliCommands()
1460
1460
  }).catch((e)=>{
1461
1461
  process.exit(reportCLIError(e));
package/dist/es/index.mjs CHANGED
@@ -9,8 +9,8 @@ import { mergeAndNormalizeAppNameMapping, normalizeForComparison } from "@midsce
9
9
  import { WDAManager, WebDriverClient } from "@midscene/webdriver";
10
10
  import { Agent } from "@midscene/core/agent";
11
11
  import { MIDSCENE_IOS_DEVICE_CLASS_OVERRIDE, overrideAIConfig } from "@midscene/shared/env";
12
- import { agentBehaviorInitArgShape, getAgentInitArgsSignature, shouldRebuildAgentForInitArgs } from "@midscene/shared/agent-tools/agent-behavior-init-args";
13
- import { BaseMidsceneTools } from "@midscene/shared/agent-tools/base-tools";
12
+ import { agentBehaviorInitArgShape, getAgentInitArgsSignature, shouldRebuildAgentForInitArgs } from "@midscene/shared/mcp/agent-behavior-init-args";
13
+ import { BaseMidsceneTools } from "@midscene/shared/mcp/base-tools";
14
14
  import { exec } from "node:child_process";
15
15
  import { platform } from "node:os";
16
16
  import { promisify } from "node:util";
@@ -1345,7 +1345,7 @@ async function agentFromWebDriverAgent(opts) {
1345
1345
  await device.connect();
1346
1346
  return new IOSAgent(device, opts);
1347
1347
  }
1348
- function agent_tools_define_property(obj, key, value) {
1348
+ function mcp_tools_define_property(obj, key, value) {
1349
1349
  if (key in obj) Object.defineProperty(obj, key, {
1350
1350
  value: value,
1351
1351
  enumerable: true,
@@ -1355,7 +1355,7 @@ function agent_tools_define_property(obj, key, value) {
1355
1355
  else obj[key] = value;
1356
1356
  return obj;
1357
1357
  }
1358
- const debug = getDebug('agent-tools:ios');
1358
+ const debug = getDebug('mcp:ios-tools');
1359
1359
  const iosInitArgShape = {
1360
1360
  deviceId: z.string().optional().describe('iOS device UDID (optional when WDA auto-detect is sufficient)'),
1361
1361
  wdaHost: z.string().optional().describe('WebDriverAgent host, defaults to localhost'),
@@ -1447,14 +1447,14 @@ class IOSMidsceneTools extends BaseMidsceneTools {
1447
1447
  ];
1448
1448
  }
1449
1449
  constructor(...args){
1450
- super(...args), agent_tools_define_property(this, "initArgSpec", {
1450
+ super(...args), mcp_tools_define_property(this, "initArgSpec", {
1451
1451
  namespace: 'ios',
1452
1452
  shape: iosInitArgShape,
1453
1453
  cli: {
1454
1454
  preferBareKeys: true
1455
1455
  },
1456
1456
  adapt: (extracted)=>extracted
1457
- }), agent_tools_define_property(this, "lastOptsSignature", void 0);
1457
+ }), mcp_tools_define_property(this, "lastOptsSignature", void 0);
1458
1458
  }
1459
1459
  }
1460
1460
  const execAsync = promisify(exec);