@swmansion/argent 0.27.1-next.7 → 0.27.1-next.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/dist/cli-cmds.mjs +1 -1
- package/dist/client.d.ts +51 -0
- package/dist/installer.mjs +1 -1
- package/dist/tool-args.generated.d.ts +8 -0
- package/dist/tool-server.cjs +537 -319
- package/package.json +1 -1
package/dist/cli-cmds.mjs
CHANGED
|
@@ -21916,7 +21916,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
|
|
|
21916
21916
|
var SESSION_ID2 = randomUUID5();
|
|
21917
21917
|
function readCliVersion() {
|
|
21918
21918
|
if (true) {
|
|
21919
|
-
return "0.27.1-next.
|
|
21919
|
+
return "0.27.1-next.8";
|
|
21920
21920
|
}
|
|
21921
21921
|
return "0.0.0";
|
|
21922
21922
|
}
|
package/dist/client.d.ts
CHANGED
|
@@ -13,6 +13,57 @@ export interface ArgentToolResult<T = unknown> {
|
|
|
13
13
|
/** Optional advisory note the tool attached to the result. */
|
|
14
14
|
note?: string;
|
|
15
15
|
}
|
|
16
|
+
/**
|
|
17
|
+
* A node of the `ui-tree` result. A flag is set only when true; a field named in
|
|
18
|
+
* `UiTree.unsupportedFields` is unknown when absent.
|
|
19
|
+
*/
|
|
20
|
+
export interface UiTreeNode {
|
|
21
|
+
role: string;
|
|
22
|
+
label?: string;
|
|
23
|
+
value?: string;
|
|
24
|
+
identifier?: string;
|
|
25
|
+
checked?: boolean;
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
password?: boolean;
|
|
28
|
+
focused?: boolean;
|
|
29
|
+
selected?: boolean;
|
|
30
|
+
/** Normalized to `screen` like gesture-tap, but not clamped: it can fall outside 0..1. */
|
|
31
|
+
frame?: {
|
|
32
|
+
x: number;
|
|
33
|
+
y: number;
|
|
34
|
+
width: number;
|
|
35
|
+
height: number;
|
|
36
|
+
};
|
|
37
|
+
/** Android: the view class. */
|
|
38
|
+
type?: string;
|
|
39
|
+
/** iOS: the accessibility trait names. */
|
|
40
|
+
traits?: string[];
|
|
41
|
+
roleDescription?: string;
|
|
42
|
+
/** Android: the raw content-desc. */
|
|
43
|
+
contentDescription?: string;
|
|
44
|
+
/** Android window roots: the package. */
|
|
45
|
+
bundleId?: string;
|
|
46
|
+
editable?: boolean;
|
|
47
|
+
heading?: boolean;
|
|
48
|
+
/** iOS: on screen, but behind an in-app presentation. */
|
|
49
|
+
covered?: boolean;
|
|
50
|
+
children: UiTreeNode[];
|
|
51
|
+
}
|
|
52
|
+
export interface UiTree {
|
|
53
|
+
schemaVersion: 1;
|
|
54
|
+
source: "ax-service" | "android-devtools";
|
|
55
|
+
/** Native units: iOS points, Android pixels. */
|
|
56
|
+
screen?: {
|
|
57
|
+
width: number;
|
|
58
|
+
height: number;
|
|
59
|
+
};
|
|
60
|
+
roots: UiTreeNode[];
|
|
61
|
+
truncated: boolean;
|
|
62
|
+
alertVisible?: boolean;
|
|
63
|
+
keyboardVisible?: boolean;
|
|
64
|
+
/** Fields this source cannot report. */
|
|
65
|
+
unsupportedFields: string[];
|
|
66
|
+
}
|
|
16
67
|
export interface CallToolOptions {
|
|
17
68
|
/** Receive progress events while a long-running tool works. */
|
|
18
69
|
onProgress?: (event: unknown) => void;
|
package/dist/installer.mjs
CHANGED
|
@@ -16730,7 +16730,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
|
|
|
16730
16730
|
var SESSION_ID = randomUUID4();
|
|
16731
16731
|
function readCliVersion() {
|
|
16732
16732
|
if (true) {
|
|
16733
|
-
return "0.27.1-next.
|
|
16733
|
+
return "0.27.1-next.8";
|
|
16734
16734
|
}
|
|
16735
16735
|
return "0.0.0";
|
|
16736
16736
|
}
|
|
@@ -406,6 +406,8 @@ export interface ArgentToolArgs {
|
|
|
406
406
|
bundleId: string;
|
|
407
407
|
/** Android-only: fully-qualified Activity name (e.g. `.MainActivity` or `com.example/com.example.MainActivity`). If omitted on Android, the app's default launcher activity is used. Ignored on iOS / Chromium. */
|
|
408
408
|
activity?: string;
|
|
409
|
+
/** Apple simulators only: arguments passed to the app process at launch, e.g. `["-FeatureFlag", "YES"]` to override UserDefaults. A running app is relaunched to apply them. Ignored on other targets, including a physical iPhone. */
|
|
410
|
+
launchArgs?: Array<string>;
|
|
409
411
|
};
|
|
410
412
|
"list-devices": Record<string, never>;
|
|
411
413
|
"native-describe-screen": {
|
|
@@ -747,6 +749,8 @@ export interface ArgentToolArgs {
|
|
|
747
749
|
bundleId: string;
|
|
748
750
|
/** Android-only: relaunch a non-launcher Activity (e.g. `.SettingsActivity` or `com.example/com.example.SettingsActivity`). If omitted, the app's default launcher activity is used. Ignored on iOS. */
|
|
749
751
|
activity?: string;
|
|
752
|
+
/** Apple simulators only: arguments passed to the app process at launch, e.g. `["-FeatureFlag", "YES"]` to override UserDefaults. Ignored on other targets, including a physical iPhone. */
|
|
753
|
+
launchArgs?: Array<string>;
|
|
750
754
|
};
|
|
751
755
|
rotate: {
|
|
752
756
|
/** Target device id from `list-devices` (iOS UDID or Android serial). */
|
|
@@ -847,6 +851,10 @@ export interface ArgentToolArgs {
|
|
|
847
851
|
/** Repeat the whole `button` value this many times (default 1). Compact for long same-button runs, e.g. { button: "down", repeat: 12 }. */
|
|
848
852
|
repeat?: number;
|
|
849
853
|
};
|
|
854
|
+
"ui-tree": {
|
|
855
|
+
/** Target device id from `list-devices`. */
|
|
856
|
+
udid: string;
|
|
857
|
+
};
|
|
850
858
|
"update-argent": {
|
|
851
859
|
/** Which install to update. 'auto' (default) updates the install serving this session — the global PATH install or this project's local devDependency, whichever this server runs from. Pass 'global' / 'local' to force one, or 'both' when the user has both and wants each updated. */
|
|
852
860
|
target?: "auto" | "global" | "local" | "both";
|