dsh-mobilecode 0.11.8 → 0.11.9
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/lib/client.js +2 -1
- package/lib/skill.js +1 -1
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -198,7 +198,7 @@ window.__ModuleLoader__.load({
|
|
|
198
198
|
// Shown on both stream captions so a refresh visibly proves which client
|
|
199
199
|
// bundle the browser is actually running. Kept in lockstep with
|
|
200
200
|
// package.json by test/client.mjs.
|
|
201
|
-
const MC_VERSION = "0.11.
|
|
201
|
+
const MC_VERSION = "0.11.9";
|
|
202
202
|
// The panel shows cards for platforms the host can actually drive; the
|
|
203
203
|
// server reports its OS in info.os (iOS tooling is darwin-only).
|
|
204
204
|
const fallbackPlatforms = (os) => (os === "darwin" ? ["ios", "android"] : ["android"]);
|
|
@@ -1607,3 +1607,4 @@ window.__ModuleLoader__.load({
|
|
|
1607
1607
|
return module.exports;
|
|
1608
1608
|
}
|
|
1609
1609
|
});
|
|
1610
|
+
|
package/lib/skill.js
CHANGED
|
@@ -47,7 +47,7 @@ The loop is **observe once → act with an assertion → observe again only if t
|
|
|
47
47
|
- Prefer \`device_tap_element\` (resource-id / text / content-desc). Raw pixel coordinates through \`device_input action=tap\` are the last resort — they break on the next layout change.
|
|
48
48
|
- When you must tap pixels, take the center of a box from \`device_ui_tree\`/\`device_screen\`: x=(x1+x2)/2, y=(y1+y2)/2. Coordinates are ABSOLUTE pixels of the current display.
|
|
49
49
|
- \`device_input action=swipe\` scrolls; \`action=key\` with "back" is a first-class verb on Android — use it instead of hunting for an on-screen back arrow.
|
|
50
|
-
- Typing: ASCII goes through
|
|
50
|
+
- Typing: ASCII goes through \`input text\` directly. Non-ASCII (Chinese, emoji) needs the ADBKeyboard IME — \`device_input\` uses it automatically when installed, and refuses with the install hint otherwise (github.com/senzhk/ADBKeyBoard); do not retry a refused non-ASCII type.
|
|
51
51
|
|
|
52
52
|
## Never guess a package name or a control
|
|
53
53
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-mobilecode",
|
|
3
3
|
"description": "MobileCode for the dsh web GUI: detect iOS/Android projects, run preview servers, and drive the simulator/emulator from the session — 37 agent tools (device_run, device_screen, device_ui_tree, device_ui_rows, device_tap_row, device_tap_element, device_wait_for, device_scroll_to, device_input, device_batch, device_intent, device_connect, device_pair_qr, device_perf, device_meminfo, device_backtrace, device_display, device_avd_create, device_pair_capture, device_app_info, device_install, device_uninstall, device_reboot, device_log, live screen stream, multimodal screenshots) plus a host-mediated co-op mesh hub (random callsigns, JSON pub/sub, tunable latency/jitter/drop/dup/throttle) so two virtual devices — and the AI watching them — can talk in real time. One classified adb boundary and a Wi-Fi connect/pair QR flow in the Connection settings tab. Hot-pluggable — mounted via the profile bundle list + cordis.patch.yml, no dsh source changes.",
|
|
4
|
-
"version": "0.11.
|
|
4
|
+
"version": "0.11.9",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"packageManager": "pnpm@11.22.0",
|
|
7
7
|
"engines": {
|