agent-device 0.14.9 → 0.15.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.
Files changed (50) hide show
  1. package/README.md +7 -4
  2. package/android-snapshot-helper/dist/{agent-device-android-snapshot-helper-0.14.9.apk → agent-device-android-snapshot-helper-0.15.1.apk} +0 -0
  3. package/android-snapshot-helper/dist/agent-device-android-snapshot-helper-0.15.1.apk.sha256 +1 -0
  4. package/android-snapshot-helper/dist/{agent-device-android-snapshot-helper-0.14.9.manifest.json → agent-device-android-snapshot-helper-0.15.1.manifest.json} +6 -6
  5. package/dist/src/1393.js +1 -0
  6. package/dist/src/1769.js +7 -0
  7. package/dist/src/1974.js +2 -2
  8. package/dist/src/208.js +1 -1
  9. package/dist/src/2151.js +434 -0
  10. package/dist/src/221.js +4 -4
  11. package/dist/src/2842.js +1 -0
  12. package/dist/src/3572.js +1 -0
  13. package/dist/src/4057.js +1 -1
  14. package/dist/src/4829.js +1 -1
  15. package/dist/src/9542.js +2 -2
  16. package/dist/src/9639.js +2 -2
  17. package/dist/src/989.js +1 -1
  18. package/dist/src/android-adb.d.ts +38 -9
  19. package/dist/src/android-adb.js +1 -1
  20. package/dist/src/android-snapshot-helper.d.ts +23 -0
  21. package/dist/src/cli.js +60 -57
  22. package/dist/src/contracts.d.ts +1 -0
  23. package/dist/src/finders.d.ts +1 -0
  24. package/dist/src/index.d.ts +56 -27
  25. package/dist/src/internal/companion-tunnel.js +1 -1
  26. package/dist/src/internal/daemon.js +51 -23
  27. package/dist/src/remote-config.d.ts +17 -14
  28. package/dist/src/selectors.d.ts +2 -0
  29. package/dist/src/server.js +2 -20
  30. package/ios-runner/AgentDeviceRunner/AgentDeviceRunner.xcodeproj/xcshareddata/xcschemes/AgentDeviceRunner.xcscheme +7 -1
  31. package/ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+Alert.swift +155 -0
  32. package/ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+CommandExecution.swift +131 -72
  33. package/ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+Interaction.swift +734 -10
  34. package/ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+Lifecycle.swift +89 -16
  35. package/ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+Models.swift +5 -0
  36. package/ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+Snapshot.swift +9 -0
  37. package/ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+SystemModal.swift +4 -3
  38. package/ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests.swift +1 -2
  39. package/ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests.xctestplan +26 -0
  40. package/ios-runner/AgentDeviceRunner/RecordingScripts/recording-overlay.swift +7 -1
  41. package/package.json +30 -11
  42. package/server.json +3 -3
  43. package/skills/agent-device/SKILL.md +2 -7
  44. package/android-snapshot-helper/dist/agent-device-android-snapshot-helper-0.14.9.apk.sha256 +0 -1
  45. package/dist/src/180.js +0 -1
  46. package/dist/src/6108.js +0 -26
  47. package/dist/src/6642.js +0 -1
  48. package/dist/src/7462.js +0 -1
  49. package/dist/src/8809.js +0 -8
  50. package/dist/src/command-schema.js +0 -382
@@ -59,6 +59,8 @@ declare type AndroidAdbProvider = {
59
59
  reverse?: AndroidPortReverseProvider;
60
60
  pull?: AndroidAdbPuller;
61
61
  install?: AndroidAdbInstaller;
62
+ installBundle?: AndroidBundleInstaller;
63
+ text?: AndroidTextInjector;
62
64
  };
63
65
 
64
66
  declare type AndroidAdbPuller = (remotePath: string, localPath: string, options?: AndroidAdbTransferOptions) => Promise<AndroidAdbExecutorResult>;
@@ -67,6 +69,10 @@ declare type AndroidAdbSpawner = (args: string[], options?: ExecBackgroundOption
67
69
 
68
70
  declare type AndroidAdbTransferOptions = AndroidAdbExecutorOptions;
69
71
 
72
+ declare type AndroidBundleInstaller = (bundlePath: string, options: {
73
+ mode: string;
74
+ }) => Promise<void>;
75
+
70
76
  declare type AndroidPortReverseEndpoint = `tcp:${number}` | `localabstract:${string}`;
71
77
 
72
78
  declare type AndroidPortReverseMapping = {
@@ -185,6 +191,22 @@ export declare type AndroidSnapshotHelperPreparedArtifact = AndroidSnapshotHelpe
185
191
  cleanup?: () => Promise<void>;
186
192
  };
187
193
 
194
+ declare type AndroidTextInjectionRequest = {
195
+ action: 'type' | 'fill';
196
+ text: string;
197
+ delayMs?: number;
198
+ /**
199
+ * Present only for fill. Providers must make this target the focused/replaced
200
+ * input for the request, not inject into an unrelated currently focused field.
201
+ */
202
+ target?: {
203
+ x: number;
204
+ y: number;
205
+ };
206
+ };
207
+
208
+ declare type AndroidTextInjector = (request: AndroidTextInjectionRequest) => Promise<void>;
209
+
188
210
  export declare function captureAndroidSnapshotWithHelper(options: AndroidSnapshotHelperCaptureOptions): Promise<AndroidSnapshotHelperOutput>;
189
211
 
190
212
  export declare function ensureAndroidSnapshotHelper(options: {
@@ -257,6 +279,7 @@ declare type RawSnapshotNode = {
257
279
  surface?: string;
258
280
  hiddenContentAbove?: boolean;
259
281
  hiddenContentBelow?: boolean;
282
+ presentationHints?: string[];
260
283
  };
261
284
 
262
285
  declare type Rect = {