react-native-mcp-kit 1.0.1 → 2.0.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/README.md +220 -720
- package/dist/babel/stripPlugin.d.ts.map +1 -1
- package/dist/babel/stripPlugin.js +40 -3
- package/dist/babel/stripPlugin.js.map +1 -1
- package/dist/bin/ios-hid +0 -0
- package/dist/client/contexts/McpContext/McpProvider.d.ts +1 -1
- package/dist/client/contexts/McpContext/McpProvider.d.ts.map +1 -1
- package/dist/client/contexts/McpContext/McpProvider.js +67 -4
- package/dist/client/contexts/McpContext/McpProvider.js.map +1 -1
- package/dist/client/contexts/McpContext/types.d.ts +11 -1
- package/dist/client/contexts/McpContext/types.d.ts.map +1 -1
- package/dist/client/core/McpClient.d.ts +7 -0
- package/dist/client/core/McpClient.d.ts.map +1 -1
- package/dist/client/core/McpClient.js +73 -2
- package/dist/client/core/McpClient.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/modules/device/device.d.ts.map +1 -1
- package/dist/modules/device/device.js +16 -4
- package/dist/modules/device/device.js.map +1 -1
- package/dist/modules/fiberTree/fiberTree.d.ts.map +1 -1
- package/dist/modules/fiberTree/fiberTree.js +61 -15
- package/dist/modules/fiberTree/fiberTree.js.map +1 -1
- package/dist/modules/fiberTree/types.d.ts +9 -0
- package/dist/modules/fiberTree/types.d.ts.map +1 -1
- package/dist/modules/fiberTree/utils.d.ts +2 -1
- package/dist/modules/fiberTree/utils.d.ts.map +1 -1
- package/dist/modules/fiberTree/utils.js +57 -1
- package/dist/modules/fiberTree/utils.js.map +1 -1
- package/dist/modules/index.d.ts +0 -1
- package/dist/modules/index.d.ts.map +1 -1
- package/dist/modules/index.js +1 -3
- package/dist/modules/index.js.map +1 -1
- package/dist/modules/navigation/navigation.d.ts.map +1 -1
- package/dist/modules/navigation/navigation.js +32 -40
- package/dist/modules/navigation/navigation.js.map +1 -1
- package/dist/modules/navigation/types.d.ts +2 -1
- package/dist/modules/navigation/types.d.ts.map +1 -1
- package/dist/server/bridge.d.ts +38 -12
- package/dist/server/bridge.d.ts.map +1 -1
- package/dist/server/bridge.js +136 -56
- package/dist/server/bridge.js.map +1 -1
- package/dist/server/cli.js +10 -1
- package/dist/server/cli.js.map +1 -1
- package/dist/server/host/deviceResolver.d.ts +53 -0
- package/dist/server/host/deviceResolver.d.ts.map +1 -0
- package/dist/server/host/deviceResolver.js +555 -0
- package/dist/server/host/deviceResolver.js.map +1 -0
- package/dist/server/host/helpers.d.ts +33 -0
- package/dist/server/host/helpers.d.ts.map +1 -0
- package/dist/server/host/helpers.js +42 -0
- package/dist/server/host/helpers.js.map +1 -0
- package/dist/server/host/hostModule.d.ts +4 -0
- package/dist/server/host/hostModule.d.ts.map +1 -0
- package/dist/server/host/hostModule.js +26 -0
- package/dist/server/host/hostModule.js.map +1 -0
- package/dist/server/host/index.d.ts +4 -0
- package/dist/server/host/index.d.ts.map +1 -0
- package/dist/server/host/index.js +8 -0
- package/dist/server/host/index.js.map +1 -0
- package/dist/server/host/iosInput.d.ts +15 -0
- package/dist/server/host/iosInput.d.ts.map +1 -0
- package/dist/server/host/iosInput.js +93 -0
- package/dist/server/host/iosInput.js.map +1 -0
- package/dist/server/host/modules/screenshot.d.ts +4 -0
- package/dist/server/host/modules/screenshot.d.ts.map +1 -0
- package/dist/server/host/modules/screenshot.js +615 -0
- package/dist/server/host/modules/screenshot.js.map +1 -0
- package/dist/server/host/processRunner.d.ts +19 -0
- package/dist/server/host/processRunner.d.ts.map +1 -0
- package/dist/server/host/processRunner.js +58 -0
- package/dist/server/host/processRunner.js.map +1 -0
- package/dist/server/host/tools/capture.d.ts +6 -0
- package/dist/server/host/tools/capture.d.ts.map +1 -0
- package/dist/server/host/tools/capture.js +148 -0
- package/dist/server/host/tools/capture.js.map +1 -0
- package/dist/server/host/tools/devices.d.ts +4 -0
- package/dist/server/host/tools/devices.d.ts.map +1 -0
- package/dist/server/host/tools/devices.js +17 -0
- package/dist/server/host/tools/devices.js.map +1 -0
- package/dist/server/host/tools/input.d.ts +7 -0
- package/dist/server/host/tools/input.d.ts.map +1 -0
- package/dist/server/host/tools/input.js +286 -0
- package/dist/server/host/tools/input.js.map +1 -0
- package/dist/server/host/tools/lifecycle.d.ts +6 -0
- package/dist/server/host/tools/lifecycle.d.ts.map +1 -0
- package/dist/server/host/tools/lifecycle.js +271 -0
- package/dist/server/host/tools/lifecycle.js.map +1 -0
- package/dist/server/host/types.d.ts +17 -0
- package/dist/server/host/types.d.ts.map +1 -0
- package/dist/{modules/components → server/host}/types.js.map +1 -1
- package/dist/server/host/wda.d.ts +15 -0
- package/dist/server/host/wda.d.ts.map +1 -0
- package/dist/server/host/wda.js +100 -0
- package/dist/server/host/wda.js.map +1 -0
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +10 -17
- package/dist/server/index.js.map +1 -1
- package/dist/server/mcpServer.d.ts +5 -10
- package/dist/server/mcpServer.d.ts.map +1 -1
- package/dist/server/mcpServer.js +438 -153
- package/dist/server/mcpServer.js.map +1 -1
- package/dist/server/types.d.ts +2 -8
- package/dist/server/types.d.ts.map +1 -1
- package/dist/shared/protocol.d.ts +6 -0
- package/dist/shared/protocol.d.ts.map +1 -1
- package/package.json +6 -12
- package/dist/client/contexts/McpTreeContext/McpTracker.d.ts +0 -10
- package/dist/client/contexts/McpTreeContext/McpTracker.d.ts.map +0 -1
- package/dist/client/contexts/McpTreeContext/McpTracker.js +0 -101
- package/dist/client/contexts/McpTreeContext/McpTracker.js.map +0 -1
- package/dist/client/contexts/McpTreeContext/McpTreeContext.d.ts +0 -2
- package/dist/client/contexts/McpTreeContext/McpTreeContext.d.ts.map +0 -1
- package/dist/client/contexts/McpTreeContext/McpTreeContext.js +0 -6
- package/dist/client/contexts/McpTreeContext/McpTreeContext.js.map +0 -1
- package/dist/client/contexts/McpTreeContext/McpTreeRegistry.d.ts +0 -16
- package/dist/client/contexts/McpTreeContext/McpTreeRegistry.d.ts.map +0 -1
- package/dist/client/contexts/McpTreeContext/McpTreeRegistry.js +0 -96
- package/dist/client/contexts/McpTreeContext/McpTreeRegistry.js.map +0 -1
- package/dist/client/contexts/McpTreeContext/index.d.ts +0 -5
- package/dist/client/contexts/McpTreeContext/index.d.ts.map +0 -1
- package/dist/client/contexts/McpTreeContext/index.js +0 -10
- package/dist/client/contexts/McpTreeContext/index.js.map +0 -1
- package/dist/client/contexts/McpTreeContext/types.d.ts +0 -14
- package/dist/client/contexts/McpTreeContext/types.d.ts.map +0 -1
- package/dist/client/contexts/McpTreeContext/types.js.map +0 -1
- package/dist/modules/components/components.d.ts +0 -8
- package/dist/modules/components/components.d.ts.map +0 -1
- package/dist/modules/components/components.js +0 -315
- package/dist/modules/components/components.js.map +0 -1
- package/dist/modules/components/index.d.ts +0 -3
- package/dist/modules/components/index.d.ts.map +0 -1
- package/dist/modules/components/index.js +0 -6
- package/dist/modules/components/index.js.map +0 -1
- package/dist/modules/components/types.d.ts +0 -18
- package/dist/modules/components/types.d.ts.map +0 -1
- package/dist/modules/components/types.js +0 -3
- package/dist/modules/components/utils.d.ts +0 -18
- package/dist/modules/components/utils.d.ts.map +0 -1
- package/dist/modules/components/utils.js +0 -386
- package/dist/modules/components/utils.js.map +0 -1
- package/dist/modules/screenshot/index.d.ts +0 -3
- package/dist/modules/screenshot/index.d.ts.map +0 -1
- package/dist/modules/screenshot/index.js +0 -6
- package/dist/modules/screenshot/index.js.map +0 -1
- package/dist/modules/screenshot/screenshot.d.ts +0 -4
- package/dist/modules/screenshot/screenshot.d.ts.map +0 -1
- package/dist/modules/screenshot/screenshot.js +0 -89
- package/dist/modules/screenshot/screenshot.js.map +0 -1
- package/dist/modules/screenshot/types.d.ts +0 -5
- package/dist/modules/screenshot/types.d.ts.map +0 -1
- package/dist/modules/screenshot/types.js +0 -3
- package/dist/modules/screenshot/types.js.map +0 -1
- package/dist/modules/tree/index.d.ts +0 -2
- package/dist/modules/tree/index.d.ts.map +0 -1
- package/dist/modules/tree/index.js +0 -6
- package/dist/modules/tree/index.js.map +0 -1
- package/dist/modules/tree/tree.d.ts +0 -3
- package/dist/modules/tree/tree.d.ts.map +0 -1
- package/dist/modules/tree/tree.js +0 -274
- package/dist/modules/tree/tree.js.map +0 -1
- /package/dist/{client/contexts/McpTreeContext → server/host}/types.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hostModule.d.ts","sourceRoot":"","sources":["../../../src/server/host/hostModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAKrD,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,eAAO,MAAM,UAAU,WAAY,aAAa,KAAG,UAiBlD,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.hostModule = void 0;
|
|
4
|
+
const capture_1 = require("./tools/capture");
|
|
5
|
+
const devices_1 = require("./tools/devices");
|
|
6
|
+
const input_1 = require("./tools/input");
|
|
7
|
+
const lifecycle_1 = require("./tools/lifecycle");
|
|
8
|
+
const hostModule = (runner) => {
|
|
9
|
+
return {
|
|
10
|
+
description: 'OS-level operations that run on the MCP server host via xcrun simctl / adb. Works when the React Native app is hung, disconnected, or not installed.',
|
|
11
|
+
name: 'host',
|
|
12
|
+
tools: {
|
|
13
|
+
launch_app: (0, lifecycle_1.launchAppTool)(runner),
|
|
14
|
+
list_devices: (0, devices_1.listDevicesTool)(runner),
|
|
15
|
+
press_key: (0, input_1.pressKeyTool)(runner),
|
|
16
|
+
restart_app: (0, lifecycle_1.restartAppTool)(runner),
|
|
17
|
+
screenshot: (0, capture_1.screenshotTool)(runner),
|
|
18
|
+
swipe: (0, input_1.swipeTool)(runner),
|
|
19
|
+
tap: (0, input_1.tapTool)(runner),
|
|
20
|
+
terminate_app: (0, lifecycle_1.terminateAppTool)(runner),
|
|
21
|
+
type_text: (0, input_1.typeTextTool)(runner),
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
exports.hostModule = hostModule;
|
|
26
|
+
//# sourceMappingURL=hostModule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hostModule.js","sourceRoot":"","sources":["../../../src/server/host/hostModule.ts"],"names":[],"mappings":";;;AACA,6CAAiD;AACjD,6CAAkD;AAClD,yCAA+E;AAC/E,iDAAoF;AAG7E,MAAM,UAAU,GAAG,CAAC,MAAqB,EAAc,EAAE;IAC9D,OAAO;QACL,WAAW,EACT,sJAAsJ;QACxJ,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE;YACL,UAAU,EAAE,IAAA,yBAAa,EAAC,MAAM,CAAC;YACjC,YAAY,EAAE,IAAA,yBAAe,EAAC,MAAM,CAAC;YACrC,SAAS,EAAE,IAAA,oBAAY,EAAC,MAAM,CAAC;YAC/B,WAAW,EAAE,IAAA,0BAAc,EAAC,MAAM,CAAC;YACnC,UAAU,EAAE,IAAA,wBAAc,EAAC,MAAM,CAAC;YAClC,KAAK,EAAE,IAAA,iBAAS,EAAC,MAAM,CAAC;YACxB,GAAG,EAAE,IAAA,eAAO,EAAC,MAAM,CAAC;YACpB,aAAa,EAAE,IAAA,4BAAgB,EAAC,MAAM,CAAC;YACvC,SAAS,EAAE,IAAA,oBAAY,EAAC,MAAM,CAAC;SAChC;KACF,CAAC;AACJ,CAAC,CAAC;AAjBW,QAAA,UAAU,cAiBrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/server/host/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,KAAK,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.runProcess = exports.hostModule = void 0;
|
|
4
|
+
var hostModule_1 = require("./hostModule");
|
|
5
|
+
Object.defineProperty(exports, "hostModule", { enumerable: true, get: function () { return hostModule_1.hostModule; } });
|
|
6
|
+
var processRunner_1 = require("./processRunner");
|
|
7
|
+
Object.defineProperty(exports, "runProcess", { enumerable: true, get: function () { return processRunner_1.runProcess; } });
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/server/host/index.ts"],"names":[],"mappings":";;;AAAA,2CAA0C;AAAjC,wGAAA,UAAU,OAAA;AACnB,iDAAiE;AAAxD,2GAAA,UAAU,OAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type AppTargetError } from './helpers';
|
|
2
|
+
import { type ProcessRunner } from './processRunner';
|
|
3
|
+
export declare const tapIos: (udid: string, xPixels: number, yPixels: number, runner: ProcessRunner) => Promise<{
|
|
4
|
+
ok: true;
|
|
5
|
+
} | AppTargetError>;
|
|
6
|
+
export declare const swipeIos: (udid: string, x1Pixels: number, y1Pixels: number, x2Pixels: number, y2Pixels: number, durationMs: number, runner: ProcessRunner) => Promise<{
|
|
7
|
+
ok: true;
|
|
8
|
+
} | AppTargetError>;
|
|
9
|
+
export declare const typeTextIos: (udid: string, text: string, submit: boolean, runner: ProcessRunner) => Promise<{
|
|
10
|
+
ok: true;
|
|
11
|
+
} | AppTargetError>;
|
|
12
|
+
export declare const pressKeyIos: (udid: string, key: string, runner: ProcessRunner) => Promise<{
|
|
13
|
+
ok: true;
|
|
14
|
+
} | AppTargetError>;
|
|
15
|
+
//# sourceMappingURL=iosInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iosInput.d.ts","sourceRoot":"","sources":["../../../src/server/host/iosInput.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,EAAwB,KAAK,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAqC3E,eAAO,MAAM,MAAM,SACX,MAAM,WACH,MAAM,WACN,MAAM,UACP,aAAa,KACpB,OAAO,CAAC;IAAE,EAAE,EAAE,IAAI,CAAA;CAAE,GAAG,cAAc,CAEvC,CAAC;AAEF,eAAO,MAAM,QAAQ,SACb,MAAM,YACF,MAAM,YACN,MAAM,YACN,MAAM,YACN,MAAM,cACJ,MAAM,UACV,aAAa,KACpB,OAAO,CAAC;IAAE,EAAE,EAAE,IAAI,CAAA;CAAE,GAAG,cAAc,CAcvC,CAAC;AAEF,eAAO,MAAM,WAAW,SAChB,MAAM,QACN,MAAM,UACJ,OAAO,UACP,aAAa,KACpB,OAAO,CAAC;IAAE,EAAE,EAAE,IAAI,CAAA;CAAE,GAAG,cAAc,CAKvC,CAAC;AAiBF,eAAO,MAAM,WAAW,SAChB,MAAM,OACP,MAAM,UACH,aAAa,KACpB,OAAO,CAAC;IAAE,EAAE,EAAE,IAAI,CAAA;CAAE,GAAG,cAAc,CAkBvC,CAAC"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// iOS input injection via the bundled ios-hid Swift binary.
|
|
3
|
+
// ios-hid uses Apple private frameworks (SimulatorKit, CoreSimulator) to inject
|
|
4
|
+
// HID events directly into iOS Simulator — no WDA, no idb, no external deps.
|
|
5
|
+
// Coordinates are PHYSICAL PIXELS end-to-end, matching Android adb semantics
|
|
6
|
+
// and fiber_tree bounds — ios-hid passes them straight to the HID layer with
|
|
7
|
+
// screenSize loaded from SimDevice.deviceType.mainScreenSize (also pixels on
|
|
8
|
+
// Xcode 15+).
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.pressKeyIos = exports.typeTextIos = exports.swipeIos = exports.tapIos = void 0;
|
|
11
|
+
const node_path_1 = require("node:path");
|
|
12
|
+
const processRunner_1 = require("./processRunner");
|
|
13
|
+
const IOS_INPUT_TIMEOUT_MS = 5_000;
|
|
14
|
+
const getIosHidPath = () => {
|
|
15
|
+
return (0, node_path_1.join)(__dirname, '..', '..', 'bin', 'ios-hid');
|
|
16
|
+
};
|
|
17
|
+
const runIosHid = async (runner, args, action) => {
|
|
18
|
+
const bin = getIosHidPath();
|
|
19
|
+
try {
|
|
20
|
+
const proc = await runner(bin, args, { timeoutMs: IOS_INPUT_TIMEOUT_MS });
|
|
21
|
+
if (proc.timedOut) {
|
|
22
|
+
return { error: `iOS ${action} timed out after ${IOS_INPUT_TIMEOUT_MS}ms` };
|
|
23
|
+
}
|
|
24
|
+
if (proc.exitCode !== 0) {
|
|
25
|
+
const stderr = proc.stderr.toString('utf8').trim();
|
|
26
|
+
return {
|
|
27
|
+
error: `iOS ${action} failed: ${stderr.slice(0, 500) || `exit code ${proc.exitCode}`}`,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
return { ok: true };
|
|
31
|
+
}
|
|
32
|
+
catch (err) {
|
|
33
|
+
if (err instanceof processRunner_1.ProcessNotFoundError) {
|
|
34
|
+
return {
|
|
35
|
+
error: 'ios-hid binary not found. This usually means the package was installed on a non-macOS platform. iOS input injection requires macOS with Xcode.',
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
return { error: `iOS ${action} failed: ${err.message}` };
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
const tapIos = async (udid, xPixels, yPixels, runner) => {
|
|
42
|
+
return runIosHid(runner, ['tap', udid, String(xPixels), String(yPixels)], 'tap');
|
|
43
|
+
};
|
|
44
|
+
exports.tapIos = tapIos;
|
|
45
|
+
const swipeIos = async (udid, x1Pixels, y1Pixels, x2Pixels, y2Pixels, durationMs, runner) => {
|
|
46
|
+
return runIosHid(runner, [
|
|
47
|
+
'swipe',
|
|
48
|
+
udid,
|
|
49
|
+
String(x1Pixels),
|
|
50
|
+
String(y1Pixels),
|
|
51
|
+
String(x2Pixels),
|
|
52
|
+
String(y2Pixels),
|
|
53
|
+
String(durationMs / 1000),
|
|
54
|
+
], 'swipe');
|
|
55
|
+
};
|
|
56
|
+
exports.swipeIos = swipeIos;
|
|
57
|
+
const typeTextIos = async (udid, text, submit, runner) => {
|
|
58
|
+
// ios-hid handles clipboard paste internally (simctl pbcopy + Cmd+V)
|
|
59
|
+
// to avoid keyboard layout issues (HID keycodes are physical keys).
|
|
60
|
+
const fullText = submit ? text + '\n' : text;
|
|
61
|
+
return runIosHid(runner, ['type', udid, fullText], 'type');
|
|
62
|
+
};
|
|
63
|
+
exports.typeTextIos = typeTextIos;
|
|
64
|
+
// Keys that don't exist on iOS Simulator
|
|
65
|
+
const IOS_UNSUPPORTED_KEYS = new Set(['back', 'menu', 'power', 'volume_down', 'volume_up']);
|
|
66
|
+
const IOS_BUTTON_MAP = {
|
|
67
|
+
home: 'home',
|
|
68
|
+
};
|
|
69
|
+
const IOS_KEY_TEXT = {
|
|
70
|
+
backspace: '\u007F',
|
|
71
|
+
enter: '\n',
|
|
72
|
+
escape: '\u001B',
|
|
73
|
+
space: ' ',
|
|
74
|
+
tab: '\t',
|
|
75
|
+
};
|
|
76
|
+
const pressKeyIos = async (udid, key, runner) => {
|
|
77
|
+
if (IOS_UNSUPPORTED_KEYS.has(key)) {
|
|
78
|
+
return {
|
|
79
|
+
error: `Key '${key}' is not available on iOS Simulator. Supported: enter, tab, space, backspace, escape, home.`,
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
const button = IOS_BUTTON_MAP[key];
|
|
83
|
+
if (button) {
|
|
84
|
+
return runIosHid(runner, ['button', udid, button], 'button');
|
|
85
|
+
}
|
|
86
|
+
const keyText = IOS_KEY_TEXT[key];
|
|
87
|
+
if (keyText) {
|
|
88
|
+
return runIosHid(runner, ['type', udid, keyText], 'key');
|
|
89
|
+
}
|
|
90
|
+
return { error: `Unknown key '${key}' for iOS.` };
|
|
91
|
+
};
|
|
92
|
+
exports.pressKeyIos = pressKeyIos;
|
|
93
|
+
//# sourceMappingURL=iosInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iosInput.js","sourceRoot":"","sources":["../../../src/server/host/iosInput.ts"],"names":[],"mappings":";AAAA,4DAA4D;AAC5D,gFAAgF;AAChF,6EAA6E;AAC7E,6EAA6E;AAC7E,6EAA6E;AAC7E,6EAA6E;AAC7E,cAAc;;;AAEd,yCAAiC;AAGjC,mDAA2E;AAE3E,MAAM,oBAAoB,GAAG,KAAK,CAAC;AAEnC,MAAM,aAAa,GAAG,GAAW,EAAE;IACjC,OAAO,IAAA,gBAAI,EAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC;AACvD,CAAC,CAAC;AAEF,MAAM,SAAS,GAAG,KAAK,EACrB,MAAqB,EACrB,IAAuB,EACvB,MAAc,EAC0B,EAAE;IAC1C,MAAM,GAAG,GAAG,aAAa,EAAE,CAAC;IAC5B,IAAI,CAAC;QACH,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE,SAAS,EAAE,oBAAoB,EAAE,CAAC,CAAC;QAC1E,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YAClB,OAAO,EAAE,KAAK,EAAE,OAAO,MAAM,oBAAoB,oBAAoB,IAAI,EAAE,CAAC;QAC9E,CAAC;QACD,IAAI,IAAI,CAAC,QAAQ,KAAK,CAAC,EAAE,CAAC;YACxB,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC;YACnD,OAAO;gBACL,KAAK,EAAE,OAAO,MAAM,YAAY,MAAM,CAAC,KAAK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