@midscene/ios 1.10.8 → 1.10.9-beta-20260731103801.0
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 +2 -5
- package/dist/es/index.mjs +1 -4
- package/dist/lib/cli.js +2 -5
- package/dist/lib/index.js +1 -4
- package/dist/types/index.d.ts +1 -1
- package/package.json +5 -5
- package/static/index.html +1 -1
- package/static/static/js/{index.61f1fcf6.js → index.7c8f2b91.js} +8 -8
- package/static/static/js/index.7c8f2b91.js.map +1 -0
- package/static/static/js/index.61f1fcf6.js.map +0 -1
- /package/static/static/js/{index.61f1fcf6.js.LICENSE.txt → index.7c8f2b91.js.LICENSE.txt} +0 -0
package/dist/es/cli.mjs
CHANGED
|
@@ -1523,11 +1523,9 @@ function agent_tools_define_property(obj, key, value) {
|
|
|
1523
1523
|
}
|
|
1524
1524
|
const agent_tools_debug = getDebug('agent-tools:ios');
|
|
1525
1525
|
const iosInitArgShape = {
|
|
1526
|
-
deviceId: z.string().optional().describe('iOS device UDID (optional when WDA auto-detect is sufficient)'),
|
|
1527
1526
|
wdaHost: z.string().optional().describe('WebDriverAgent host, defaults to localhost'),
|
|
1528
1527
|
wdaPort: z.number().optional().describe('WebDriverAgent port'),
|
|
1529
1528
|
sessionId: z.string().optional().describe('Existing WebDriverAgent session ID to reuse'),
|
|
1530
|
-
useWDA: z.boolean().optional().describe('Whether to reuse an existing WebDriverAgent session'),
|
|
1531
1529
|
wdaMjpegPort: z.number().optional().describe('WebDriverAgent MJPEG streaming port'),
|
|
1532
1530
|
wdaMjpegFrameSource: z.object({
|
|
1533
1531
|
enabled: z.boolean().optional()
|
|
@@ -1535,7 +1533,6 @@ const iosInitArgShape = {
|
|
|
1535
1533
|
...agentBehaviorInitArgShape
|
|
1536
1534
|
};
|
|
1537
1535
|
function getTargetIdentity(initArgs) {
|
|
1538
|
-
if (initArgs?.deviceId) return initArgs.sessionId ? `${initArgs.deviceId}-session-${initArgs.sessionId}` : initArgs.deviceId;
|
|
1539
1536
|
if (initArgs?.wdaHost || initArgs?.wdaPort || initArgs?.sessionId) {
|
|
1540
1537
|
const wdaHost = initArgs.wdaHost ?? 'localhost';
|
|
1541
1538
|
const wdaPort = initArgs.wdaPort ?? 'default';
|
|
@@ -1599,7 +1596,7 @@ class IOSMidsceneTools extends BaseMidsceneTools {
|
|
|
1599
1596
|
content: [
|
|
1600
1597
|
{
|
|
1601
1598
|
type: 'text',
|
|
1602
|
-
text:
|
|
1599
|
+
text: 'Connected to iOS device'
|
|
1603
1600
|
},
|
|
1604
1601
|
...this.buildScreenshotContent(screenshot)
|
|
1605
1602
|
],
|
|
@@ -1629,7 +1626,7 @@ class IOSMidsceneTools extends BaseMidsceneTools {
|
|
|
1629
1626
|
const tools = new IOSMidsceneTools();
|
|
1630
1627
|
runToolsCLI(tools, 'midscene-ios', {
|
|
1631
1628
|
stripPrefix: 'ios_',
|
|
1632
|
-
version: "1.10.
|
|
1629
|
+
version: "1.10.9-beta-20260731103801.0",
|
|
1633
1630
|
extraCommands: createReportCliCommands()
|
|
1634
1631
|
}).catch((e)=>{
|
|
1635
1632
|
process.exit(reportCLIError(e));
|
package/dist/es/index.mjs
CHANGED
|
@@ -1528,11 +1528,9 @@ function agent_tools_define_property(obj, key, value) {
|
|
|
1528
1528
|
}
|
|
1529
1529
|
const agent_tools_debug = getDebug('agent-tools:ios');
|
|
1530
1530
|
const iosInitArgShape = {
|
|
1531
|
-
deviceId: z.string().optional().describe('iOS device UDID (optional when WDA auto-detect is sufficient)'),
|
|
1532
1531
|
wdaHost: z.string().optional().describe('WebDriverAgent host, defaults to localhost'),
|
|
1533
1532
|
wdaPort: z.number().optional().describe('WebDriverAgent port'),
|
|
1534
1533
|
sessionId: z.string().optional().describe('Existing WebDriverAgent session ID to reuse'),
|
|
1535
|
-
useWDA: z.boolean().optional().describe('Whether to reuse an existing WebDriverAgent session'),
|
|
1536
1534
|
wdaMjpegPort: z.number().optional().describe('WebDriverAgent MJPEG streaming port'),
|
|
1537
1535
|
wdaMjpegFrameSource: z.object({
|
|
1538
1536
|
enabled: z.boolean().optional()
|
|
@@ -1540,7 +1538,6 @@ const iosInitArgShape = {
|
|
|
1540
1538
|
...agentBehaviorInitArgShape
|
|
1541
1539
|
};
|
|
1542
1540
|
function getTargetIdentity(initArgs) {
|
|
1543
|
-
if (initArgs?.deviceId) return initArgs.sessionId ? `${initArgs.deviceId}-session-${initArgs.sessionId}` : initArgs.deviceId;
|
|
1544
1541
|
if (initArgs?.wdaHost || initArgs?.wdaPort || initArgs?.sessionId) {
|
|
1545
1542
|
const wdaHost = initArgs.wdaHost ?? 'localhost';
|
|
1546
1543
|
const wdaPort = initArgs.wdaPort ?? 'default';
|
|
@@ -1604,7 +1601,7 @@ class IOSMidsceneTools extends BaseMidsceneTools {
|
|
|
1604
1601
|
content: [
|
|
1605
1602
|
{
|
|
1606
1603
|
type: 'text',
|
|
1607
|
-
text:
|
|
1604
|
+
text: 'Connected to iOS device'
|
|
1608
1605
|
},
|
|
1609
1606
|
...this.buildScreenshotContent(screenshot)
|
|
1610
1607
|
],
|
package/dist/lib/cli.js
CHANGED
|
@@ -1547,11 +1547,9 @@ function agent_tools_define_property(obj, key, value) {
|
|
|
1547
1547
|
}
|
|
1548
1548
|
const agent_tools_debug = (0, logger_namespaceObject.getDebug)('agent-tools:ios');
|
|
1549
1549
|
const iosInitArgShape = {
|
|
1550
|
-
deviceId: core_namespaceObject.z.string().optional().describe('iOS device UDID (optional when WDA auto-detect is sufficient)'),
|
|
1551
1550
|
wdaHost: core_namespaceObject.z.string().optional().describe('WebDriverAgent host, defaults to localhost'),
|
|
1552
1551
|
wdaPort: core_namespaceObject.z.number().optional().describe('WebDriverAgent port'),
|
|
1553
1552
|
sessionId: core_namespaceObject.z.string().optional().describe('Existing WebDriverAgent session ID to reuse'),
|
|
1554
|
-
useWDA: core_namespaceObject.z.boolean().optional().describe('Whether to reuse an existing WebDriverAgent session'),
|
|
1555
1553
|
wdaMjpegPort: core_namespaceObject.z.number().optional().describe('WebDriverAgent MJPEG streaming port'),
|
|
1556
1554
|
wdaMjpegFrameSource: core_namespaceObject.z.object({
|
|
1557
1555
|
enabled: core_namespaceObject.z.boolean().optional()
|
|
@@ -1559,7 +1557,6 @@ const iosInitArgShape = {
|
|
|
1559
1557
|
...agent_behavior_init_args_namespaceObject.agentBehaviorInitArgShape
|
|
1560
1558
|
};
|
|
1561
1559
|
function getTargetIdentity(initArgs) {
|
|
1562
|
-
if (initArgs?.deviceId) return initArgs.sessionId ? `${initArgs.deviceId}-session-${initArgs.sessionId}` : initArgs.deviceId;
|
|
1563
1560
|
if (initArgs?.wdaHost || initArgs?.wdaPort || initArgs?.sessionId) {
|
|
1564
1561
|
const wdaHost = initArgs.wdaHost ?? 'localhost';
|
|
1565
1562
|
const wdaPort = initArgs.wdaPort ?? 'default';
|
|
@@ -1623,7 +1620,7 @@ class IOSMidsceneTools extends base_tools_namespaceObject.BaseMidsceneTools {
|
|
|
1623
1620
|
content: [
|
|
1624
1621
|
{
|
|
1625
1622
|
type: 'text',
|
|
1626
|
-
text:
|
|
1623
|
+
text: 'Connected to iOS device'
|
|
1627
1624
|
},
|
|
1628
1625
|
...this.buildScreenshotContent(screenshot)
|
|
1629
1626
|
],
|
|
@@ -1653,7 +1650,7 @@ class IOSMidsceneTools extends base_tools_namespaceObject.BaseMidsceneTools {
|
|
|
1653
1650
|
const tools = new IOSMidsceneTools();
|
|
1654
1651
|
(0, cli_namespaceObject.runToolsCLI)(tools, 'midscene-ios', {
|
|
1655
1652
|
stripPrefix: 'ios_',
|
|
1656
|
-
version: "1.10.
|
|
1653
|
+
version: "1.10.9-beta-20260731103801.0",
|
|
1657
1654
|
extraCommands: (0, core_namespaceObject.createReportCliCommands)()
|
|
1658
1655
|
}).catch((e)=>{
|
|
1659
1656
|
process.exit((0, cli_namespaceObject.reportCLIError)(e));
|
package/dist/lib/index.js
CHANGED
|
@@ -1567,11 +1567,9 @@ function agent_tools_define_property(obj, key, value) {
|
|
|
1567
1567
|
}
|
|
1568
1568
|
const agent_tools_debug = (0, logger_namespaceObject.getDebug)('agent-tools:ios');
|
|
1569
1569
|
const iosInitArgShape = {
|
|
1570
|
-
deviceId: core_namespaceObject.z.string().optional().describe('iOS device UDID (optional when WDA auto-detect is sufficient)'),
|
|
1571
1570
|
wdaHost: core_namespaceObject.z.string().optional().describe('WebDriverAgent host, defaults to localhost'),
|
|
1572
1571
|
wdaPort: core_namespaceObject.z.number().optional().describe('WebDriverAgent port'),
|
|
1573
1572
|
sessionId: core_namespaceObject.z.string().optional().describe('Existing WebDriverAgent session ID to reuse'),
|
|
1574
|
-
useWDA: core_namespaceObject.z.boolean().optional().describe('Whether to reuse an existing WebDriverAgent session'),
|
|
1575
1573
|
wdaMjpegPort: core_namespaceObject.z.number().optional().describe('WebDriverAgent MJPEG streaming port'),
|
|
1576
1574
|
wdaMjpegFrameSource: core_namespaceObject.z.object({
|
|
1577
1575
|
enabled: core_namespaceObject.z.boolean().optional()
|
|
@@ -1579,7 +1577,6 @@ const iosInitArgShape = {
|
|
|
1579
1577
|
...agent_behavior_init_args_namespaceObject.agentBehaviorInitArgShape
|
|
1580
1578
|
};
|
|
1581
1579
|
function getTargetIdentity(initArgs) {
|
|
1582
|
-
if (initArgs?.deviceId) return initArgs.sessionId ? `${initArgs.deviceId}-session-${initArgs.sessionId}` : initArgs.deviceId;
|
|
1583
1580
|
if (initArgs?.wdaHost || initArgs?.wdaPort || initArgs?.sessionId) {
|
|
1584
1581
|
const wdaHost = initArgs.wdaHost ?? 'localhost';
|
|
1585
1582
|
const wdaPort = initArgs.wdaPort ?? 'default';
|
|
@@ -1643,7 +1640,7 @@ class IOSMidsceneTools extends base_tools_namespaceObject.BaseMidsceneTools {
|
|
|
1643
1640
|
content: [
|
|
1644
1641
|
{
|
|
1645
1642
|
type: 'text',
|
|
1646
|
-
text:
|
|
1643
|
+
text: 'Connected to iOS device'
|
|
1647
1644
|
},
|
|
1648
1645
|
...this.buildScreenshotContent(screenshot)
|
|
1649
1646
|
],
|
package/dist/types/index.d.ts
CHANGED
|
@@ -201,7 +201,7 @@ export declare class IOSDevice implements AbstractInterface {
|
|
|
201
201
|
destroy(): Promise<void>;
|
|
202
202
|
}
|
|
203
203
|
|
|
204
|
-
declare type IOSInitArgs = AgentBehaviorInitArgs & Pick<IOSDeviceOpt, '
|
|
204
|
+
declare type IOSInitArgs = AgentBehaviorInitArgs & Pick<IOSDeviceOpt, 'wdaHost' | 'wdaPort' | 'sessionId' | 'wdaMjpegPort' | 'wdaMjpegFrameSource'>;
|
|
205
205
|
|
|
206
206
|
/**
|
|
207
207
|
* iOS-specific tools manager
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midscene/ios",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.9-beta-20260731103801.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/web-infra-dev/midscene.git",
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@inquirer/prompts": "^7.8.6",
|
|
45
45
|
"open": "10.1.0",
|
|
46
|
-
"@midscene/core": "1.10.
|
|
47
|
-
"@midscene/
|
|
48
|
-
"@midscene/
|
|
49
|
-
"@midscene/
|
|
46
|
+
"@midscene/core": "1.10.9-beta-20260731103801.0",
|
|
47
|
+
"@midscene/playground": "1.10.9-beta-20260731103801.0",
|
|
48
|
+
"@midscene/webdriver": "1.10.9-beta-20260731103801.0",
|
|
49
|
+
"@midscene/shared": "1.10.9-beta-20260731103801.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@rslib/core": "^0.18.3",
|
package/static/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!doctype html><html><head><link rel="icon" href="/favicon.ico"><title>Midscene Playground</title><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><script defer src="/static/js/lib-react.7b1abe58.js"></script><script defer src="/static/js/859.2cecd47a.js"></script><script defer src="/static/js/index.
|
|
1
|
+
<!doctype html><html><head><link rel="icon" href="/favicon.ico"><title>Midscene Playground</title><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><script defer src="/static/js/lib-react.7b1abe58.js"></script><script defer src="/static/js/859.2cecd47a.js"></script><script defer src="/static/js/index.7c8f2b91.js"></script><link href="/static/css/index.2b6b43ad.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
|