@deveco-test/deveco-cli-openharmony-arm64 1.3.12-Test.2 → 1.3.13-23.1
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/SKILL.md +16 -10
- package/dist/cli.js +128 -128
- package/dist/internal/telemetry-upload-background.js +1 -1
- package/index.zip +0 -0
- package/package.json +3 -3
- /package/{THIRD-PARTY-LICENSES → NOTICE} +0 -0
package/SKILL.md
CHANGED
|
@@ -107,14 +107,14 @@ Inspect UI on the selected connected device (candidates: `devecocli device list`
|
|
|
107
107
|
| `window list` | List active windows | `--format default\|json`, `--all` (include system windows) |
|
|
108
108
|
| `display list` | List displays with id, width and height (px) — source of `--display <displayId>` values for `ui screenshot` (previewer virtual displays appear only when targeting the local machine) | `--format default\|json`, `--all` (add screen id, refresh rate, VPR, rotation columns; unreported fields render as `-`, or `null` in json) |
|
|
109
109
|
| `screenshot` | Capture a screenshot of the device screen | `--display <displayId>` (omit = default screen, not the previewer), required `--path <path>` (existing directory or PNG file path; relative paths supported; writable destination; no overwrite) |
|
|
110
|
-
| `click [x] [y]` | Tap at the specified coordinates or node | `--id <id>` (auto-resolves to center), `--window <windowId>` (used with `--id`) |
|
|
111
|
-
| `doubleclick [x] [y]` | Double-tap at the specified coordinates or node | `--id <id>`, `--window <windowId>` |
|
|
112
|
-
| `longclick [x] [y]` | Long-press at the specified coordinates or node | `--id <id>`, `--window <windowId>` |
|
|
113
|
-
| `swipe <x1> <y1> <x2> <y2>` | Swipe
|
|
114
|
-
| `fling <x1> <y1> <x2> <y2>` | Fling
|
|
115
|
-
| `drag <x1> <y1> <x2> <y2>` | Drag
|
|
116
|
-
| `dircfling <direction>` |
|
|
117
|
-
| `text <text> [x] [y]` | Input text at a target location or the
|
|
110
|
+
| `click [x] [y]` | Tap at the specified coordinates or node, including targets on secondary displays | `--id <id>` (auto-resolves to center), `--window <windowId>` (used with `--id` or `x y`; display resolved automatically) |
|
|
111
|
+
| `doubleclick [x] [y]` | Double-tap at the specified coordinates or node, including targets on secondary displays | `--id <id>`, `--window <windowId>` (used with `--id` or `x y`) |
|
|
112
|
+
| `longclick [x] [y]` | Long-press at the specified coordinates or node, including targets on secondary displays | `--id <id>`, `--window <windowId>` (used with `--id` or `x y`) |
|
|
113
|
+
| `swipe <x1> <y1> <x2> <y2>` | Swipe between points on the primary or a secondary display | `--speed <n>` (200–40000, px/s), `--window <windowId>` (resolves target display) |
|
|
114
|
+
| `fling <x1> <y1> <x2> <y2>` | Fling between points on the primary or a secondary display | `--speed <n>` (200–40000, px/s), `--window <windowId>` (resolves target display) |
|
|
115
|
+
| `drag <x1> <y1> <x2> <y2>` | Drag between points on the primary or a secondary display | `--speed <n>` (200–40000, px/s), `--window <windowId>` (resolves target display) |
|
|
116
|
+
| `dircfling <direction>` | Fling in a direction on the primary or a secondary display | `direction`: `up`, `down`, `left`, `right`; `--window <windowId>` (resolves target display) |
|
|
117
|
+
| `text <text> [x] [y]` | Input text at a target location or focused field on the primary or a secondary display | `--id <id>` (auto-resolves to center), `--window <windowId>` (used with `--id`, coordinates, or focused input) |
|
|
118
118
|
|
|
119
119
|
- **Previewer screenshots**: Each previewer window renders on its own virtual display; `ui screenshot` without `--display` captures the default (main) screen, not the previewer. Always pass the id: `devecocli ui display list` -> `devecocli ui screenshot --display <displayId> --path <dir|png>`.
|
|
120
120
|
- Display ids are assigned at previewer launch, and relaunches leave stale virtual displays behind — re-query after every previewer (re)start instead of reusing an earlier id.
|
|
@@ -123,8 +123,14 @@ Inspect UI on the selected connected device (candidates: `devecocli device list`
|
|
|
123
123
|
- `ui` commands run against the local hdc target and do NOT accept `--device local` (`run`-only value): on multi-target hosts pass the local serial `127.0.0.1:<port>`.
|
|
124
124
|
- **Real-device screenshots**: Target the phone with `--device <name|serial>` and omit `--display` — a single-screen device has only its own screen, so the default capture is the device screen; the virtual-display workflow above is previewer-only.
|
|
125
125
|
- **Coordinates vs `--id`**: Mutually exclusive. Provide either `x y` or `--id <id>`. For `text`, if neither is given, text goes to the currently focused field.
|
|
126
|
-
- **`--window`**:
|
|
127
|
-
-
|
|
126
|
+
- **`--window`**: All input commands use this to resolve the target display automatically. `click`, `doubleclick`, and `longclick` accept it with `--id` or `x y`; `text` also accepts it with coordinates or by itself for focused input; `swipe`, `fling`, `drag`, and `dircfling` accept it for display selection. All of these commands support secondary displays.
|
|
127
|
+
- **Previewer input**: Find the app previewer window with `ui window list --all`, dump its nodes with `ui layout --window <windowId> --format json` when a node id is needed, then run the input command with `--window <windowId> --device <serial>`. For example, `ui click --id <nodeId> --window <windowId> --device <serial>`. The CLI resolves the window's display automatically; input commands have no `--display` option and do not require a manually supplied display id.
|
|
128
|
+
- Use explicit `--window` for multi-device previewers and whenever node ids may be ambiguous. Automatic cross-display lookup is only a convenience for a unique node.
|
|
129
|
+
- For raw coordinates, use a command such as `ui click <x> <y> --window <windowId> --device <serial>`. Coordinates must be device pixels in the target display's coordinate system, such as `ui layout` bounds or unscaled pixels from that display's screenshot. Host-window offsets and image scaling are not converted automatically.
|
|
130
|
+
- For focused text input on a secondary display, use `ui text <text> --window <windowId> --device <serial>`.
|
|
131
|
+
- For `swipe`, `fling`, `drag`, and `dircfling`, the CLI supplies the required default speed (`600`) and step length when routing to a secondary display; no extra parameters are needed from the user.
|
|
132
|
+
- Re-query the window id after every previewer restart.
|
|
133
|
+
- **`swipe` vs `dircfling`**: `swipe` requires exact start/end coordinates and supports `--speed`; `dircfling` only needs a direction (`up/down/left/right`) and uses the default speed of `600` (ideal for page/list scrolling). On secondary displays, the CLI explicitly supplies this speed and the required step length.
|
|
128
134
|
- **Text encoding**: Special characters in `text` are Base64-encoded internally to safely pass through device shell.
|
|
129
135
|
- `--format json` pairs well with `jq`.
|
|
130
136
|
- `--mode full`: full layout tree, no filtering.
|