@swmansion/argent 0.27.1-next.7 → 0.27.1-next.8

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 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.7";
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;
@@ -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.7";
16733
+ return "0.27.1-next.8";
16734
16734
  }
16735
16735
  return "0.0.0";
16736
16736
  }
@@ -847,6 +847,10 @@ export interface ArgentToolArgs {
847
847
  /** Repeat the whole `button` value this many times (default 1). Compact for long same-button runs, e.g. { button: "down", repeat: 12 }. */
848
848
  repeat?: number;
849
849
  };
850
+ "ui-tree": {
851
+ /** Target device id from `list-devices`. */
852
+ udid: string;
853
+ };
850
854
  "update-argent": {
851
855
  /** 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
856
  target?: "auto" | "global" | "local" | "both";