@mobileaidev/ai-app-bridge 0.2.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 +29 -0
- package/bin/ai-app-bridge.js +4164 -0
- package/bin/mcp-server.js +542 -0
- package/package.json +34 -0
package/README.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# AI App Bridge CLI
|
|
2
|
+
|
|
3
|
+
```bash
|
|
4
|
+
npm install -g @mobileaidev/ai-app-bridge
|
|
5
|
+
|
|
6
|
+
ai-app-bridge status --package-name io.github.mobileaidev.aiappbridge.sample
|
|
7
|
+
ai-app-bridge tree --package-name io.github.mobileaidev.aiappbridge.sample
|
|
8
|
+
ai-app-bridge install-apk --package-name io.github.mobileaidev.aiappbridge.sample --apk-path app-debug.apk
|
|
9
|
+
ai-app-bridge screenshot --package-name io.github.mobileaidev.aiappbridge.sample
|
|
10
|
+
ai-app-bridge input-text --package-name io.github.mobileaidev.aiappbridge.sample --text "中文输入" --hide-keyboard
|
|
11
|
+
ai-app-bridge network --package-name io.github.mobileaidev.aiappbridge.sample --compact --url-filter /api/
|
|
12
|
+
ai-app-bridge webview-network --package-name io.github.mobileaidev.aiappbridge.sample --duration-ms 3000
|
|
13
|
+
ai-app-bridge-mcp
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
WebView network and console capture use Android WebView DevTools/CDP when the
|
|
17
|
+
target app is debuggable and WebView debugging is enabled.
|
|
18
|
+
|
|
19
|
+
`input-text` first uses the app bridge native text endpoint. This is required
|
|
20
|
+
for Chinese and other Unicode text because `adb shell input text` is ASCII-only
|
|
21
|
+
on many Android 16 devices; ASCII text can still fall back to ADB when an older
|
|
22
|
+
bridge runtime is running.
|
|
23
|
+
|
|
24
|
+
When `screenshot` or `smoke` runs without `--out-file`, the CLI writes a unique
|
|
25
|
+
PNG under `build/ai_app_bridge_artifacts` instead of reusing a stable filename
|
|
26
|
+
or creating files in the project root.
|
|
27
|
+
It keeps the newest 20 generated screenshots for each command prefix. Use
|
|
28
|
+
`--artifact-dir` to choose that directory, or `--out-file` when a fixed path is
|
|
29
|
+
intentional.
|