agent-device 0.14.8 → 0.15.0
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/README.md +8 -6
- package/android-snapshot-helper/README.md +4 -2
- package/android-snapshot-helper/dist/{agent-device-android-snapshot-helper-0.14.8.apk → agent-device-android-snapshot-helper-0.15.0.apk} +0 -0
- package/android-snapshot-helper/dist/agent-device-android-snapshot-helper-0.15.0.apk.sha256 +1 -0
- package/android-snapshot-helper/dist/{agent-device-android-snapshot-helper-0.14.8.manifest.json → agent-device-android-snapshot-helper-0.15.0.manifest.json} +6 -6
- package/dist/src/1769.js +7 -0
- package/dist/src/2151.js +429 -0
- package/dist/src/221.js +4 -4
- package/dist/src/2842.js +1 -0
- package/dist/src/3572.js +1 -0
- package/dist/src/4057.js +1 -1
- package/dist/src/840.js +2 -0
- package/dist/src/9542.js +2 -2
- package/dist/src/9639.js +2 -2
- package/dist/src/9818.js +1 -1
- package/dist/src/android-adb.d.ts +49 -11
- package/dist/src/android-adb.js +1 -1
- package/dist/src/android-snapshot-helper.d.ts +35 -2
- package/dist/src/cli.js +60 -57
- package/dist/src/contracts.d.ts +2 -0
- package/dist/src/finders.d.ts +2 -0
- package/dist/src/index.d.ts +25 -22
- package/dist/src/internal/companion-tunnel.js +1 -1
- package/dist/src/internal/daemon.js +51 -23
- package/dist/src/remote-config.d.ts +17 -14
- package/dist/src/selectors.d.ts +3 -0
- package/dist/src/server.js +2 -20
- package/ios-runner/AgentDeviceRunner/AgentDeviceRunner.xcodeproj/xcshareddata/xcschemes/AgentDeviceRunner.xcscheme +7 -1
- package/ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+CommandExecution.swift +210 -56
- package/ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+Interaction.swift +890 -99
- package/ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+Lifecycle.swift +94 -7
- package/ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+Models.swift +8 -0
- package/ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+Snapshot.swift +24 -0
- package/ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+SystemModal.swift +2 -0
- package/ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+TvRemote.swift +185 -0
- package/ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests.swift +1 -2
- package/ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests.xctestplan +26 -0
- package/package.json +25 -11
- package/server.json +3 -3
- package/skills/agent-device/SKILL.md +6 -1
- package/skills/dogfood/SKILL.md +3 -1
- package/android-snapshot-helper/dist/agent-device-android-snapshot-helper-0.14.8.apk.sha256 +0 -1
- package/dist/src/180.js +0 -1
- package/dist/src/6108.js +0 -26
- package/dist/src/6642.js +0 -1
- package/dist/src/7462.js +0 -1
- package/dist/src/8809.js +0 -8
- package/dist/src/command-schema.js +0 -381
- package/skills/react-devtools/SKILL.md +0 -48
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Readable } from 'node:stream';
|
|
2
|
-
import {
|
|
2
|
+
import { StdioOptions } from 'node:child_process';
|
|
3
3
|
import type { Writable } from 'node:stream';
|
|
4
4
|
|
|
5
5
|
export declare const ANDROID_SNAPSHOT_HELPER_NAME = "android-snapshot-helper";
|
|
@@ -59,14 +59,20 @@ 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>;
|
|
65
67
|
|
|
66
|
-
declare type AndroidAdbSpawner = (args: string[], options?:
|
|
68
|
+
declare type AndroidAdbSpawner = (args: string[], options?: ExecBackgroundOptions) => AndroidAdbProcess;
|
|
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: {
|
|
@@ -196,6 +218,15 @@ export declare function ensureAndroidSnapshotHelper(options: {
|
|
|
196
218
|
timeoutMs?: number;
|
|
197
219
|
}): Promise<AndroidSnapshotHelperInstallResult>;
|
|
198
220
|
|
|
221
|
+
declare type ExecBackgroundOptions = ExecOptions & {
|
|
222
|
+
/**
|
|
223
|
+
* Capture stdout/stderr into the wait result when the child has piped stdio.
|
|
224
|
+
* Set false when the caller owns, ignores, or forwards the streams.
|
|
225
|
+
*/
|
|
226
|
+
captureOutput?: boolean;
|
|
227
|
+
stdio?: StdioOptions;
|
|
228
|
+
};
|
|
229
|
+
|
|
199
230
|
declare type ExecOptions = {
|
|
200
231
|
cwd?: string;
|
|
201
232
|
env?: NodeJS.ProcessEnv;
|
|
@@ -237,6 +268,7 @@ declare type RawSnapshotNode = {
|
|
|
237
268
|
rect?: Rect;
|
|
238
269
|
enabled?: boolean;
|
|
239
270
|
selected?: boolean;
|
|
271
|
+
focused?: boolean;
|
|
240
272
|
hittable?: boolean;
|
|
241
273
|
depth?: number;
|
|
242
274
|
parentIndex?: number;
|
|
@@ -247,6 +279,7 @@ declare type RawSnapshotNode = {
|
|
|
247
279
|
surface?: string;
|
|
248
280
|
hiddenContentAbove?: boolean;
|
|
249
281
|
hiddenContentBelow?: boolean;
|
|
282
|
+
presentationHints?: string[];
|
|
250
283
|
};
|
|
251
284
|
|
|
252
285
|
declare type Rect = {
|