agent-device 0.9.0 → 0.10.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 +103 -19
- package/dist/src/224.js +1 -1
- package/dist/src/bin.js +2 -2
- package/dist/src/core/capabilities.d.ts +1 -1
- package/dist/src/core/click-button.d.ts +20 -0
- package/dist/src/core/dispatch-resolve.d.ts +7 -6
- package/dist/src/core/dispatch.d.ts +1 -0
- package/dist/src/daemon/context.d.ts +1 -0
- package/dist/src/daemon/handlers/interaction-common.d.ts +12 -0
- package/dist/src/daemon/handlers/interaction-fill.d.ts +3 -0
- package/dist/src/daemon/handlers/interaction-flags.d.ts +4 -0
- package/dist/src/daemon/handlers/interaction-get.d.ts +3 -0
- package/dist/src/daemon/handlers/interaction-is.d.ts +3 -0
- package/dist/src/daemon/handlers/interaction-press.d.ts +3 -0
- package/dist/src/daemon/handlers/interaction-scroll.d.ts +3 -0
- package/dist/src/daemon/handlers/interaction-selector.d.ts +27 -0
- package/dist/src/daemon/handlers/interaction-snapshot.d.ts +8 -0
- package/dist/src/daemon/handlers/interaction-targeting.d.ts +28 -0
- package/dist/src/daemon/handlers/interaction.d.ts +5 -12
- package/dist/src/daemon/handlers/session-device-utils.d.ts +1 -0
- package/dist/src/daemon/handlers/session-runtime.d.ts +3 -1
- package/dist/src/daemon/handlers/session.d.ts +8 -0
- package/dist/src/daemon/handlers/snapshot-alert.d.ts +13 -0
- package/dist/src/daemon/handlers/snapshot-capture.d.ts +27 -0
- package/dist/src/daemon/handlers/snapshot-session.d.ts +15 -0
- package/dist/src/daemon/handlers/snapshot-settings.d.ts +24 -0
- package/dist/src/daemon/handlers/snapshot-wait.d.ts +37 -0
- package/dist/src/daemon/handlers/snapshot.d.ts +4 -20
- package/dist/src/daemon/is-predicates.d.ts +2 -1
- package/dist/src/daemon/selectors-build.d.ts +2 -1
- package/dist/src/daemon/selectors-match.d.ts +3 -2
- package/dist/src/daemon/selectors-resolve.d.ts +3 -2
- package/dist/src/daemon/snapshot-processing.d.ts +2 -1
- package/dist/src/daemon/types.d.ts +5 -5
- package/dist/src/daemon.js +35 -34
- package/dist/src/platforms/android/devices.d.ts +4 -0
- package/dist/src/platforms/android/sdk.d.ts +2 -0
- package/dist/src/platforms/ios/app-filter.d.ts +2 -0
- package/dist/src/platforms/ios/devices.d.ts +2 -1
- package/dist/src/platforms/ios/macos-apps.d.ts +12 -0
- package/dist/src/platforms/ios/runner-client.d.ts +3 -1
- package/dist/src/platforms/ios/runner-macos-products.d.ts +3 -0
- package/dist/src/platforms/ios/runner-xctestrun-products.d.ts +2 -0
- package/dist/src/platforms/ios/runner-xctestrun.d.ts +20 -2
- package/dist/src/utils/command-schema.d.ts +3 -2
- package/dist/src/utils/device.d.ts +13 -5
- package/ios-runner/AgentDeviceRunner/AgentDeviceRunner.xcodeproj/project.pbxproj +58 -50
- package/ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/AgentDeviceRunnerUITests.entitlements +10 -0
- package/ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+CommandExecution.swift +35 -1
- package/ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+Interaction.swift +83 -9
- package/ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+Lifecycle.swift +39 -7
- package/ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+Models.swift +2 -0
- package/ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+ScreenRecorder.swift +5 -6
- package/ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+Snapshot.swift +132 -112
- package/ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+SystemModal.swift +4 -0
- package/ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests.swift +22 -5
- package/package.json +3 -2
- package/skills/agent-device/SKILL.md +25 -5
- package/skills/agent-device/references/macos-desktop.md +89 -0
- package/skills/agent-device/references/snapshot-refs.md +11 -2
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Platform } from '../utils/device.ts';
|
|
1
2
|
import type { SnapshotNode, SnapshotState } from '../utils/snapshot.ts';
|
|
2
3
|
import type { Selector, SelectorChain } from './selectors-parse.ts';
|
|
3
4
|
export type SelectorDiagnostics = {
|
|
@@ -12,13 +13,13 @@ type SelectorResolution = {
|
|
|
12
13
|
diagnostics: SelectorDiagnostics[];
|
|
13
14
|
};
|
|
14
15
|
export declare function resolveSelectorChain(nodes: SnapshotState['nodes'], chain: SelectorChain, options: {
|
|
15
|
-
platform:
|
|
16
|
+
platform: Platform;
|
|
16
17
|
requireRect?: boolean;
|
|
17
18
|
requireUnique?: boolean;
|
|
18
19
|
disambiguateAmbiguous?: boolean;
|
|
19
20
|
}): SelectorResolution | null;
|
|
20
21
|
export declare function findSelectorChainMatch(nodes: SnapshotState['nodes'], chain: SelectorChain, options: {
|
|
21
|
-
platform:
|
|
22
|
+
platform: Platform;
|
|
22
23
|
requireRect?: boolean;
|
|
23
24
|
}): {
|
|
24
25
|
selectorIndex: number;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import type { Platform } from '../utils/device.ts';
|
|
1
2
|
import type { RawSnapshotNode, SnapshotState } from '../utils/snapshot.ts';
|
|
2
3
|
export declare function findNodeByLabel(nodes: SnapshotState['nodes'], label: string): import("../index.ts").SnapshotNode | null;
|
|
3
4
|
export declare function resolveRefLabel(node: SnapshotState['nodes'][number], nodes: SnapshotState['nodes']): string | undefined;
|
|
4
5
|
export declare function pruneGroupNodes(nodes: RawSnapshotNode[]): RawSnapshotNode[];
|
|
5
6
|
export declare function normalizeType(type: string): string;
|
|
6
|
-
export declare function isFillableType(type: string, platform:
|
|
7
|
+
export declare function isFillableType(type: string, platform: Platform): boolean;
|
|
7
8
|
export declare function findNearestHittableAncestor(nodes: SnapshotState['nodes'], node: SnapshotState['nodes'][number]): SnapshotState['nodes'][number] | null;
|
|
8
9
|
export declare function extractNodeText(node: SnapshotState['nodes'][number]): string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { MaterializeInstallSource } from '../platforms/install-source.ts';
|
|
2
2
|
import type { CommandFlags } from '../core/dispatch.ts';
|
|
3
|
-
import type { DeviceInfo } from '../utils/device.ts';
|
|
3
|
+
import type { DeviceInfo, Platform, PlatformSelector } from '../utils/device.ts';
|
|
4
4
|
import type { ExecResult } from '../utils/exec.ts';
|
|
5
5
|
import type { SnapshotState } from '../utils/snapshot.ts';
|
|
6
6
|
export type DaemonInstallSource = MaterializeInstallSource;
|
|
@@ -29,7 +29,7 @@ export type DaemonRequest = {
|
|
|
29
29
|
materializedPathRetentionMs?: number;
|
|
30
30
|
materializationId?: string;
|
|
31
31
|
lockPolicy?: DaemonLockPolicy;
|
|
32
|
-
lockPlatform?:
|
|
32
|
+
lockPlatform?: PlatformSelector;
|
|
33
33
|
};
|
|
34
34
|
};
|
|
35
35
|
export type SessionRuntimeHints = {
|
|
@@ -85,14 +85,14 @@ export type SessionState = {
|
|
|
85
85
|
child: ReturnType<typeof import('node:child_process').spawn>;
|
|
86
86
|
wait: Promise<ExecResult>;
|
|
87
87
|
} | {
|
|
88
|
-
platform: 'ios-device-runner';
|
|
88
|
+
platform: 'ios-device-runner' | 'macos-runner';
|
|
89
89
|
outPath: string;
|
|
90
90
|
clientOutPath?: string;
|
|
91
|
-
remotePath
|
|
91
|
+
remotePath?: string;
|
|
92
92
|
};
|
|
93
93
|
/** Session-scoped app log stream; logs written to outPath for agent to grep */
|
|
94
94
|
appLog?: {
|
|
95
|
-
platform:
|
|
95
|
+
platform: Platform;
|
|
96
96
|
backend: 'ios-simulator' | 'ios-device' | 'android';
|
|
97
97
|
outPath: string;
|
|
98
98
|
startedAt: number;
|