agent-device 0.21.19 → 0.21.21
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/android/ime-helper/dist/{agent-device-android-ime-helper-0.21.19.apk → agent-device-android-ime-helper-0.21.21.apk} +0 -0
- package/android/ime-helper/dist/agent-device-android-ime-helper-0.21.21.apk.sha256 +1 -0
- package/android/ime-helper/dist/{agent-device-android-ime-helper-0.21.19.manifest.json → agent-device-android-ime-helper-0.21.21.manifest.json} +4 -4
- package/android/snapshot-helper/dist/agent-device-android-snapshot-helper-0.21.21.apk +0 -0
- package/android/snapshot-helper/dist/agent-device-android-snapshot-helper-0.21.21.apk.sha256 +1 -0
- package/android/snapshot-helper/dist/{agent-device-android-snapshot-helper-0.21.19.manifest.json → agent-device-android-snapshot-helper-0.21.21.manifest.json} +6 -6
- package/apple/macos-helper/Sources/AgentDeviceMacOSHelper/AppWindowScreenshot.swift +73 -0
- package/apple/macos-helper/Sources/AgentDeviceMacOSHelper/BackgroundInteraction.swift +557 -0
- package/apple/macos-helper/Sources/AgentDeviceMacOSHelper/GhostCursor.swift +141 -0
- package/apple/macos-helper/Sources/AgentDeviceMacOSHelper/SnapshotTraversal.swift +107 -3
- package/apple/macos-helper/Sources/AgentDeviceMacOSHelper/main.swift +136 -22
- package/apple/macos-helper/Tests/AgentDeviceMacOSHelperTests/BackgroundInteractionTests.swift +88 -0
- package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunner/AgentDeviceRunnerApp.m +133 -4
- package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerSynthesizedGesture.h +10 -2
- package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerSynthesizedGesture.m +36 -9
- package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+Alert.swift +28 -0
- package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+CommandJournal.swift +1 -14
- package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+Interaction.swift +14 -16
- package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+Models.swift +67 -14
- package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+SynthesizedCommitDeadline.swift +6 -1
- package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+SynthesizedGesturePolicy.swift +7 -2
- package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+SynthesizedInteraction.swift +21 -7
- package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+SynthesizedTextEntry.swift +121 -17
- package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+TextEntry.swift +179 -6
- package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+TextEntryConfirmation.swift +119 -0
- package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+TextEntryFocus.swift +8 -1
- package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+TextEntryReadiness.swift +23 -11
- package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+TextInputProbe.swift +59 -6
- package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+TextTyping.swift +112 -23
- package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+TypeExecution.swift +25 -12
- package/dist/apple/runner/AgentDeviceRunner/RecordingScripts/RecordingExportSupport.swift +6 -1
- package/dist/apple/runner/AgentDeviceRunner/RecordingScripts/recording-overlay.swift +43 -13
- package/dist/apple/snapshot-presentation/Sources/AgentDeviceSnapshotPresentation/SnapshotModels.swift +20 -5
- package/dist/apple/snapshot-presentation/Sources/AgentDeviceSnapshotPresentation/SnapshotPresentationProjection.swift +2 -15
- package/dist/apple/snapshot-presentation/Sources/AgentDeviceSnapshotPresentation/SnapshotVisibilityFold.swift +10 -25
- package/dist/apple/snapshot-presentation/Sources/AgentDeviceSnapshotPresentation/SnapshotVisibilityFoldProjection.swift +1 -18
- package/dist/src/adapter.js +1 -1
- package/dist/src/adb-executor.js +2 -2
- package/dist/src/adb-failure.js +1 -1
- package/dist/src/adb-transport.js +1 -1
- package/dist/src/agent-browser-lifecycle.js +1 -1
- package/dist/src/agent-browser-process-record.js +1 -1
- package/dist/src/agent-browser-provider.js +1 -1
- package/dist/src/agent-browser-tool.js +1 -1
- package/dist/src/agent-device-client.js +2 -2
- package/dist/src/ai-sdk.js +1 -1
- package/dist/src/alert-runtime.js +1 -1
- package/dist/src/alert.js +1 -0
- package/dist/src/android-adb.d.ts +12 -0
- package/dist/src/android-input-ownership.js +1 -1
- package/dist/src/app-backend.js +1 -0
- package/dist/src/app-catalog.js +1 -1
- package/dist/src/app-deployment-resolution.js +1 -1
- package/dist/src/app-inventory.js +1 -1
- package/dist/src/app-launch.js +2 -2
- package/dist/src/app-lifecycle.js +2 -2
- package/dist/src/app-lifecycle2.js +1 -1
- package/dist/src/app-log-files.js +1 -1
- package/dist/src/app-log-reconnect.js +1 -1
- package/dist/src/app-log-runtime2.js +3 -3
- package/dist/src/app-log-session-resource.js +1 -0
- package/dist/src/app-resolution.js +2 -2
- package/dist/src/apple-runner-platform.js +1 -1
- package/dist/src/application-lifecycle-interaction.js +1 -1
- package/dist/src/archive.js +2 -2
- package/dist/src/artifact-download.js +1 -1
- package/dist/src/auth-session.js +1 -1
- package/dist/src/auth.js +1 -1
- package/dist/src/back-mode.js +1 -1
- package/dist/src/backend-snapshot-options.js +1 -1
- package/dist/src/boot-diagnostics.js +1 -1
- package/dist/src/browser-launch.js +1 -1
- package/dist/src/cache.js +1 -1
- package/dist/src/capabilities.js +1 -1
- package/dist/src/capture.js +1 -1
- package/dist/src/cli-config.js +1 -1
- package/dist/src/cli-help.js +317 -323
- package/dist/src/cli-runner.js +1 -1
- package/dist/src/cli.js +4 -4
- package/dist/src/click-button.js +1 -1
- package/dist/src/client-metro-companion.js +1 -1
- package/dist/src/client-metro.js +1 -1
- package/dist/src/client-options.js +3 -0
- package/dist/src/client-types.d.ts +101 -6
- package/dist/src/clipboard-shell-response.js +1 -1
- package/dist/src/{scroll-command.d.ts → cloud-artifacts.d.ts} +249 -240
- package/dist/src/code-signature-cache.js +1 -1
- package/dist/src/code-signature.js +1 -1
- package/dist/src/command-schema.js +3 -3
- package/dist/src/command-tools.js +2 -2
- package/dist/src/command.js +1 -1
- package/dist/src/config.js +1 -1
- package/dist/src/connection-runtime.js +1 -1
- package/dist/src/connection.js +5 -5
- package/dist/src/contracts.d.ts +1 -1
- package/dist/src/contracts.js +1 -1
- package/dist/src/daemon-artifacts.js +1 -0
- package/dist/src/daemon-client-lease-beat.js +1 -1
- package/dist/src/daemon-client-lifecycle.js +1 -1
- package/dist/src/daemon-client-liveness-probe.js +1 -0
- package/dist/src/daemon-client-transport.js +1 -1
- package/dist/src/daemon-http.js +1 -0
- package/dist/src/daemon-policy-file.js +1 -1
- package/dist/src/daemon-registration-owner.js +1 -0
- package/dist/src/daemon-registration.js +1 -1
- package/dist/src/daemon-resolution.js +1 -1
- package/dist/src/daemon-shutdown-report.js +1 -1
- package/dist/src/daemon.js +2 -2
- package/dist/src/debug-symbols-facade.js +3 -3
- package/dist/src/device-claim-inspection.js +1 -1
- package/dist/src/device-claim-rule.js +1 -1
- package/dist/src/device-inventory-context.js +1 -1
- package/dist/src/device-readiness-runtime.js +1 -1
- package/dist/src/device-release.js +1 -1
- package/dist/src/device-rotation.js +1 -1
- package/dist/src/device-selection-resolver.js +1 -1
- package/dist/src/device-session.js +1 -1
- package/dist/src/device-shell.js +1 -1
- package/dist/src/device.js +1 -1
- package/dist/src/device2.js +1 -3
- package/dist/src/device3.js +3 -0
- package/dist/src/devicectl.js +1 -1
- package/dist/src/diagnostics.js +3 -3
- package/dist/src/dispatch-resolve.js +4 -1
- package/dist/src/display-inventory.js +1 -1
- package/dist/src/doctor-facade.js +1 -1
- package/dist/src/doctor2.js +1 -1
- package/dist/src/durable-capture-resource.js +1 -0
- package/dist/src/engine-eval-script.js +1 -1
- package/dist/src/error.js +1 -1
- package/dist/src/exec.js +1 -1
- package/dist/src/file.js +1 -1
- package/dist/src/find.js +1 -1
- package/dist/src/generic-settle.js +1 -1
- package/dist/src/generic.js +1 -1
- package/dist/src/gesture-admission.js +1 -1
- package/dist/src/gesture-plan.js +1 -1
- package/dist/src/gesture-runtime.js +1 -1
- package/dist/src/harmonyos.js +1 -1
- package/dist/src/hdc.js +1 -1
- package/dist/src/helper.js +2 -2
- package/dist/src/host-file.js +1 -1
- package/dist/src/host.js +1 -1
- package/dist/src/human-control-contract.js +1 -1
- package/dist/src/human-control.js +1 -1
- package/dist/src/index.d.ts +2 -2
- package/dist/src/index.js +1 -1
- package/dist/src/input-actions.js +1 -1
- package/dist/src/input-actions2.js +2 -2
- package/dist/src/install-artifact-facade.js +1 -1
- package/dist/src/install-source-network-transport.js +1 -1
- package/dist/src/install-source.d.ts +5 -0
- package/dist/src/install-source2.js +1 -1
- package/dist/src/instance-client.js +1 -0
- package/dist/src/interaction-positionals.js +1 -1
- package/dist/src/interaction-ref-policy.js +1 -1
- package/dist/src/interaction.js +1 -1
- package/dist/src/interaction2.js +1 -1
- package/dist/src/interactor-operation-binding.js +1 -1
- package/dist/src/interactor.js +5 -5
- package/dist/src/interactor2.js +1 -1
- package/dist/src/interactors.js +1 -1
- package/dist/src/internal/bin.js +1 -1
- package/dist/src/internal/daemon.js +1 -2
- package/dist/src/internal/png-worker.js +1 -1
- package/dist/src/internal/run-script-http-child.js +1 -1
- package/dist/src/inventory.js +4 -4
- package/dist/src/inventory2.js +1 -1
- package/dist/src/inventory3.js +1 -1
- package/dist/src/inventory5.js +1 -1
- package/dist/src/ios-client.js +4 -30
- package/dist/src/ios-settings.js +1 -0
- package/dist/src/ios-snapshot-engine.js +1 -1
- package/dist/src/ios-snapshot-runtime.js +1 -1
- package/dist/src/launch-confirmation.js +1 -0
- package/dist/src/lease-context.js +1 -1
- package/dist/src/lease-registry-scope.js +1 -0
- package/dist/src/lease-scope.js +1 -1
- package/dist/src/lease.js +1 -1
- package/dist/src/legacy-xctest-device-set.js +1 -1
- package/dist/src/limrun-download-file.js +1 -1
- package/dist/src/limrun-runtime-dependencies.js +1 -1
- package/dist/src/limrun.d.ts +78 -44
- package/dist/src/limrun.js +1 -1
- package/dist/src/linux.js +1 -1
- package/dist/src/load.js +1 -0
- package/dist/src/location-coordinates.js +1 -1
- package/dist/src/macos-facade.js +1 -1
- package/dist/src/managed-device-scope.js +1 -1
- package/dist/src/mechanics.js +16 -16
- package/dist/src/observation.js +1 -1
- package/dist/src/observe-until.js +1 -1
- package/dist/src/overlay.js +2 -2
- package/dist/src/owner-identity.js +3 -3
- package/dist/src/path-resolution.js +1 -1
- package/dist/src/perf-facade.js +1 -1
- package/dist/src/perf-runtime-operation-builder.js +1 -1
- package/dist/src/perf-runtime-plan.js +1 -1
- package/dist/src/perf-target.js +1 -1
- package/dist/src/perf.js +1 -1
- package/dist/src/physical-device-control.js +1 -1
- package/dist/src/platform-request-scope.js +1 -1
- package/dist/src/platform-runtime-android-adb-host.js +1 -1
- package/dist/src/platform-runtime-app-log-process.js +1 -1
- package/dist/src/platform-runtime-host.js +1 -1
- package/dist/src/platform-runtime-managed-owner.js +1 -1
- package/dist/src/platform-runtime-open-target.js +1 -1
- package/dist/src/platform-runtime-operation-host.js +2 -2
- package/dist/src/platform-runtime-runtime-hints.js +2 -2
- package/dist/src/platform-runtime-screen-recording-android-host.js +1 -1
- package/dist/src/platform-runtime-screen-recording-apple-runner-transport.js +1 -1
- package/dist/src/platform-runtime-screen-recording-apple-simulator-host.js +1 -1
- package/dist/src/platform-runtime-screen-recording-finalizer-host.js +1 -1
- package/dist/src/platform-runtime-screen-recording-output-host.js +1 -1
- package/dist/src/platform-runtime-screen-recording-process-host.js +1 -1
- package/dist/src/platform-runtime-unavailable.js +1 -1
- package/dist/src/platform-runtime.js +1 -1
- package/dist/src/platform-runtime2.js +1 -1
- package/dist/src/plugins.d.ts +9 -0
- package/dist/src/plugins.js +1 -0
- package/dist/src/plugins2.js +2 -0
- package/dist/src/png-crop-bytes.js +1 -1
- package/dist/src/png-size.js +1 -1
- package/dist/src/png-worker-client.js +1 -1
- package/dist/src/png.js +1 -1
- package/dist/src/prepare-kind.js +1 -1
- package/dist/src/process.js +1 -1
- package/dist/src/project-runtime.js +1 -1
- package/dist/src/provider-credential-fingerprint.js +1 -0
- package/dist/src/provider-device-admission.js +1 -1
- package/dist/src/provider-device-runtimes.js +1 -0
- package/dist/src/provider-limrun-credentials.js +1 -0
- package/dist/src/provider-profile-fields.js +1 -0
- package/dist/src/provider-session-ownership.js +2 -2
- package/dist/src/provider-webdriver.js +2 -1
- package/dist/src/providers.js +1 -1
- package/dist/src/proxy.js +1 -1
- package/dist/src/quality-warnings.js +1 -1
- package/dist/src/react-native.js +1 -1
- package/dist/src/record-runtime.js +1 -1
- package/dist/src/record-trace.js +1 -1
- package/dist/src/recording.js +1 -1
- package/dist/src/rect-center.js +1 -1
- package/dist/src/register-builtins.js +1 -1
- package/dist/src/registry.js +52 -36
- package/dist/src/remote-config2.js +1 -1
- package/dist/src/replay-divergence.js +1 -1
- package/dist/src/replay.js +2 -2
- package/dist/src/reporting.js +5 -5
- package/dist/src/request-admission.js +1 -1
- package/dist/src/request-cancel.js +1 -1
- package/dist/src/request-cancellation.js +1 -1
- package/dist/src/request-runtime-binding.js +1 -1
- package/dist/src/result-serialization.js +1 -1
- package/dist/src/retry.js +1 -1
- package/dist/src/runner-artifact-manifest.js +1 -1
- package/dist/src/runner-cache-metadata.js +3 -3
- package/dist/src/runner-client.js +1 -1
- package/dist/src/runner-dev-tools-security.js +1 -1
- package/dist/src/runner-device-readiness.js +1 -1
- package/dist/src/runner-disposal.js +1 -1
- package/dist/src/runner-error-classification.js +2 -2
- package/dist/src/runner-exchange.js +1 -1
- package/dist/src/runner-operations-facade.js +1 -1
- package/dist/src/runner-session-types.js +1 -1
- package/dist/src/runner-start-budget.js +1 -1
- package/dist/src/runner.js +1 -1
- package/dist/src/runtime-admission.js +1 -1
- package/dist/src/runtime-transport-hints.js +1 -1
- package/dist/src/runtime.js +1 -1
- package/dist/src/runtime10.js +2 -2
- package/dist/src/runtime2.js +3 -3
- package/dist/src/runtime3.js +1 -1
- package/dist/src/runtime4.js +5 -5
- package/dist/src/runtime5.js +1 -1
- package/dist/src/runtime6.js +1 -1
- package/dist/src/runtime7.js +1 -1
- package/dist/src/runtime8.js +1 -1
- package/dist/src/runtime9.js +1 -1
- package/dist/src/screen-recording-admission-ledger.js +1 -1
- package/dist/src/screen-recording-completion.js +1 -1
- package/dist/src/screen-recording-options.js +1 -1
- package/dist/src/screen-recording-resource-recovery.js +1 -1
- package/dist/src/screen-recording-transport.js +1 -1
- package/dist/src/screenshot-density.js +1 -1
- package/dist/src/screenshot-image.js +1 -1
- package/dist/src/screenshot-result.js +1 -1
- package/dist/src/screenshot-runtime.js +1 -1
- package/dist/src/screenshot.js +1 -1
- package/dist/src/screenshot3.js +1 -1
- package/dist/src/script.js +1 -1
- package/dist/src/scroll-command.js +1 -1
- package/dist/src/scroll-gesture.js +1 -1
- package/dist/src/sdk-batch-runner.js +2 -2
- package/dist/src/sdk-batch.js +2 -2
- package/dist/src/sdk-contracts.d.ts +47 -2
- package/dist/src/sdk-contracts.js +2 -2
- package/dist/src/sdk-device.js +1 -1
- package/dist/src/sdk-io.js +1 -1
- package/dist/src/sdk-remote-config.js +1 -1
- package/dist/src/sdk-selectors.d.ts +37 -8
- package/dist/src/selection.js +0 -0
- package/dist/src/selector-runtime.js +1 -1
- package/dist/src/selectors.d.ts +2 -2
- package/dist/src/selectors.js +1 -1
- package/dist/src/server.js +1 -1
- package/dist/src/session-allocation.js +1 -1
- package/dist/src/session-artifact-paths.js +1 -1
- package/dist/src/session-repair-tombstone.js +1 -1
- package/dist/src/session-routing.js +1 -1
- package/dist/src/session-runtime-admission.js +1 -1
- package/dist/src/session-snapshot.js +1 -1
- package/dist/src/session-stream.js +27 -0
- package/dist/src/session.js +1 -1
- package/dist/src/session2.js +5 -5
- package/dist/src/settings.js +1 -1
- package/dist/src/settings2.js +1 -1
- package/dist/src/simctl-settings-facade.js +1 -0
- package/dist/src/simctl-settings.js +1 -0
- package/dist/src/simctl.js +1 -1
- package/dist/src/simulator-boot.js +1 -1
- package/dist/src/simulator.js +1 -1
- package/dist/src/snapshot-diagnostics.js +1 -1
- package/dist/src/snapshot-runtime-binding.js +1 -1
- package/dist/src/snapshot-runtime.js +1 -1
- package/dist/src/snapshot-state.js +1 -1
- package/dist/src/snapshot2.js +1 -1
- package/dist/src/snapshot3.js +1 -1
- package/dist/src/snapshot4.js +1 -1
- package/dist/src/src.js +1 -1
- package/dist/src/src7.js +1 -1
- package/dist/src/src8.js +2 -2
- package/dist/src/store.js +1 -0
- package/dist/src/string-enum.js +1 -1
- package/dist/src/surface-snapshot.js +1 -1
- package/dist/src/takeover.js +1 -1
- package/dist/src/target-evidence.js +1 -1
- package/dist/src/telemetry.js +1 -1
- package/dist/src/text-entry-focus.js +1 -1
- package/dist/src/tool-provider.js +3 -3
- package/dist/src/tool-provider2.js +1 -1
- package/dist/src/tool-provider3.js +1 -1
- package/dist/src/toolchain-probe.js +2 -2
- package/dist/src/touch-runtime.js +1 -1
- package/dist/src/touch-runtime2.js +1 -1
- package/dist/src/transport.js +2 -2
- package/dist/src/tv-remote.js +1 -1
- package/dist/src/type-text-runtime.js +1 -1
- package/dist/src/update-check.js +1 -1
- package/dist/src/vars.js +1 -1
- package/dist/src/verified-file.js +1 -1
- package/dist/src/version.js +1 -1
- package/dist/src/video.js +1 -1
- package/dist/src/viewport.js +1 -1
- package/dist/src/web.js +1 -1
- package/dist/src/web2.js +1 -1
- package/dist/src/webdriver-source.js +1 -1
- package/package.json +5 -1
- package/server.json +2 -2
- package/android/ime-helper/dist/agent-device-android-ime-helper-0.21.19.apk.sha256 +0 -1
- package/android/snapshot-helper/dist/agent-device-android-snapshot-helper-0.21.19.apk +0 -0
- package/android/snapshot-helper/dist/agent-device-android-snapshot-helper-0.21.19.apk.sha256 +0 -1
- package/dist/src/api.js +0 -3
- package/dist/src/daemon-process.js +0 -1
- package/dist/src/multitouch-support.js +0 -1
- package/dist/src/parameterized-recorded-fill.js +0 -1
- package/dist/src/runner-startup-transport.js +0 -1
- package/dist/src/runner-xctestrun.js +0 -1
- package/dist/src/session-store.js +0 -4
|
@@ -1,5 +1,242 @@
|
|
|
1
|
-
import { L as SnapshotQualityVerdict, P as SnapshotNode, R as SnapshotState, T as PublicPlatform, j as ScreenshotOverlayRef, n as DaemonArtifactType } from "./sdk-contracts.js";
|
|
2
|
-
import {
|
|
1
|
+
import { B as SnapshotViewportSize, L as SnapshotQualityVerdict, P as SnapshotNode, R as SnapshotState, T as PublicPlatform, j as ScreenshotOverlayRef, n as DaemonArtifactType } from "./sdk-contracts.js";
|
|
2
|
+
import { v as SettleObservation } from "./sdk-selectors.js";
|
|
3
|
+
//#region packages/contracts/src/back-mode.d.ts
|
|
4
|
+
declare const BACK_MODES: readonly ['in-app', 'system'];
|
|
5
|
+
type BackMode = (typeof BACK_MODES)[number];
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region packages/contracts/src/device-rotation.d.ts
|
|
8
|
+
/** Single source of truth for the discriminator the Apple owner sets and the MCP schema advertises. */
|
|
9
|
+
declare const FOLD_SCREEN_COORDINATE_SPACE: 'native-panel';
|
|
10
|
+
type FoldScreenCoordinateSpace = typeof FOLD_SCREEN_COORDINATE_SPACE;
|
|
11
|
+
declare const DEVICE_ROTATIONS: readonly ['portrait', 'portrait-upside-down', 'landscape-left', 'landscape-right'];
|
|
12
|
+
type DeviceRotation = (typeof DEVICE_ROTATIONS)[number];
|
|
13
|
+
/**
|
|
14
|
+
* The three hinge poses a foldable Apple device can be put in, named after what an agent sees
|
|
15
|
+
* rather than after Apple's `UIHinge.Status` cases: `closed` lights the outer panel only,
|
|
16
|
+
* `half-open` and `open` light the inner panel. Device Hub calls them Closed, Book, and Open;
|
|
17
|
+
* `UIHinge.Status` calls them `.closed`, `.partiallyOpen`, and `.fullyOpen`.
|
|
18
|
+
*/
|
|
19
|
+
declare const FOLD_POSES: readonly ['closed', 'half-open', 'open'];
|
|
20
|
+
type FoldPose = (typeof FOLD_POSES)[number];
|
|
21
|
+
type FoldKeyframe = Readonly<{
|
|
22
|
+
atMs: number;
|
|
23
|
+
angle: number;
|
|
24
|
+
}>;
|
|
25
|
+
type SetFoldPoseInput = Readonly<{
|
|
26
|
+
pose: FoldPose;
|
|
27
|
+
keyframes?: never;
|
|
28
|
+
}> | Readonly<{
|
|
29
|
+
keyframes: readonly FoldKeyframe[];
|
|
30
|
+
pose?: never;
|
|
31
|
+
}>;
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region packages/contracts/src/scroll-gesture.d.ts
|
|
34
|
+
declare const SCROLL_INPUT_DIRECTIONS: readonly ['up', 'down', 'left', 'right', 'top', 'bottom'];
|
|
35
|
+
type ScrollInputDirection = (typeof SCROLL_INPUT_DIRECTIONS)[number];
|
|
36
|
+
declare const SCROLL_DIRECTIONS: readonly ['up', 'down', 'left', 'right'];
|
|
37
|
+
type ScrollDirection = (typeof SCROLL_DIRECTIONS)[number];
|
|
38
|
+
declare const SWIPE_PRESETS: readonly ['left', 'right', 'left-edge', 'right-edge'];
|
|
39
|
+
type SwipePreset = (typeof SWIPE_PRESETS)[number];
|
|
40
|
+
declare const SWIPE_PATTERNS: readonly ['one-way', 'ping-pong'];
|
|
41
|
+
type SwipePattern = (typeof SWIPE_PATTERNS)[number];
|
|
42
|
+
type TransformGestureParams = {
|
|
43
|
+
x: number;
|
|
44
|
+
y: number;
|
|
45
|
+
dx: number;
|
|
46
|
+
dy: number;
|
|
47
|
+
scale: number;
|
|
48
|
+
degrees: number;
|
|
49
|
+
durationMs?: number;
|
|
50
|
+
};
|
|
51
|
+
//#endregion
|
|
52
|
+
//#region packages/contracts/src/scroll-command.d.ts
|
|
53
|
+
type ScrollReleaseBehavior = 'controlled' | 'inertial';
|
|
54
|
+
/**
|
|
55
|
+
* What a directional scroll actually SAW after its gesture, which is the only evidence that can
|
|
56
|
+
* back the distance the same response reports (#2714).
|
|
57
|
+
*
|
|
58
|
+
* - `'moved'`: the post-gesture surface differs from the pre-gesture one, so content did move.
|
|
59
|
+
* - `'at-edge'`: the surface is identical and the resolved container names no hidden content in
|
|
60
|
+
* that direction — the scroll was a legitimate no-op at the end of the content.
|
|
61
|
+
* - `'unchanged'`: the surface is identical and the direction has no end-of-content signal to read
|
|
62
|
+
* (a horizontal scroll: the hidden-content analyzer only covers the vertical axis), so the
|
|
63
|
+
* response says what it measured without guessing which of the two it was.
|
|
64
|
+
* - `'unobserved'`: nothing comparable was available, so the distance rests on the gesture plan
|
|
65
|
+
* alone. Callers that need the effect confirmed ask for a capture or a `--settle` observation.
|
|
66
|
+
*
|
|
67
|
+
* A directional scroll that measures an unchanged surface WITH hidden content still in that
|
|
68
|
+
* direction does not answer at all: it fails with `scroll_no_progress`.
|
|
69
|
+
*/
|
|
70
|
+
type ScrollMovementObservation = 'moved' | 'at-edge' | 'unchanged' | 'unobserved';
|
|
71
|
+
type ScrollDistanceOptions = {
|
|
72
|
+
amount?: number;
|
|
73
|
+
pixels?: number;
|
|
74
|
+
};
|
|
75
|
+
type ScrollTimingOptions = {
|
|
76
|
+
durationMs?: number;
|
|
77
|
+
};
|
|
78
|
+
type ScrollCommandOptions = ScrollDistanceOptions & ScrollTimingOptions;
|
|
79
|
+
type ScrollExecutionOptions = ScrollCommandOptions & {
|
|
80
|
+
releaseBehavior?: ScrollReleaseBehavior;
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* `scroll` — the generic-route result built by `buildDispatchedScrollResult`
|
|
84
|
+
* (src/core/dispatch-scroll.ts): the resolved direction, the edge-pass
|
|
85
|
+
* bookkeeping for `top`/`bottom` scrolls, the honored distance/timing echo,
|
|
86
|
+
* and the success message. Platform leaves add gesture-plan coordinates
|
|
87
|
+
* (`x1`/`y1`/`x2`/`y2`, reference frame) on top; the output schema stays
|
|
88
|
+
* non-strict so those additive fields validate. The one field the dispatcher
|
|
89
|
+
* itself may add: `settle`, the opt-in `--settle` observation (#1638),
|
|
90
|
+
* attached after the command — same shape as `BackCommandResult`.
|
|
91
|
+
*/
|
|
92
|
+
type ScrollCommandResult = {
|
|
93
|
+
direction: ScrollDirection;
|
|
94
|
+
/** Set for `top`/`bottom` requests: the extreme being scrolled to. */
|
|
95
|
+
edge?: 'top' | 'bottom';
|
|
96
|
+
/** Set for `--until` requests: the selector the passes stopped on. */
|
|
97
|
+
until?: string;
|
|
98
|
+
/** Edge and until scrolls only: how many scroll-and-check passes ran. */
|
|
99
|
+
passes?: number;
|
|
100
|
+
amount?: number;
|
|
101
|
+
pixels?: number;
|
|
102
|
+
durationMs?: number;
|
|
103
|
+
message?: string;
|
|
104
|
+
settle?: SettleObservation;
|
|
105
|
+
/**
|
|
106
|
+
* The observation that gated this response's distance claim. See
|
|
107
|
+
* {@link ScrollMovementObservation}: `scroll` answers with what it measured after the gesture,
|
|
108
|
+
* and only `'moved'` and `'at-edge'` confirm the surface's fate. Absent on the tiers that verify
|
|
109
|
+
* per pass instead of per gesture (`scroll top`/`bottom` and `--until`), and on platforms whose
|
|
110
|
+
* scroll owner never dispatches a swipe (the Linux wheel).
|
|
111
|
+
*/
|
|
112
|
+
movement?: ScrollMovementObservation;
|
|
113
|
+
/**
|
|
114
|
+
* Set only when an on-screen keyboard made the owner clip the swipe into the band above it
|
|
115
|
+
* (#2500). Absent means the swipe was not clipped, which is not the same claim as `false`: a
|
|
116
|
+
* platform that never runs the clip has nothing to report. The platform leaf's `referenceHeight`
|
|
117
|
+
* names the shortened axis the reported `pixels` were planned against, and `keyboardMinY` names
|
|
118
|
+
* where the keyboard began. A surface the owner refused to swipe at all fails instead, under the
|
|
119
|
+
* `scroll_keyboard_occludes_surface` reason.
|
|
120
|
+
*/
|
|
121
|
+
keyboardAvoided?: true;
|
|
122
|
+
/** The keyboard's edge in the same unit as the gesture coordinates, when the swipe was clipped. */
|
|
123
|
+
keyboardMinY?: number;
|
|
124
|
+
};
|
|
125
|
+
//#endregion
|
|
126
|
+
//#region packages/contracts/src/tv-remote.d.ts
|
|
127
|
+
declare const TV_REMOTE_BUTTON_DEFINITIONS: {
|
|
128
|
+
readonly up: {
|
|
129
|
+
readonly aliases: readonly [];
|
|
130
|
+
readonly androidKeyevent: 'KEYCODE_DPAD_UP';
|
|
131
|
+
readonly appleRemoteButton: 'up';
|
|
132
|
+
readonly vegaKey: 'KEY_UP';
|
|
133
|
+
};
|
|
134
|
+
readonly down: {
|
|
135
|
+
readonly aliases: readonly [];
|
|
136
|
+
readonly androidKeyevent: 'KEYCODE_DPAD_DOWN';
|
|
137
|
+
readonly appleRemoteButton: 'down';
|
|
138
|
+
readonly vegaKey: 'KEY_DOWN';
|
|
139
|
+
};
|
|
140
|
+
readonly left: {
|
|
141
|
+
readonly aliases: readonly [];
|
|
142
|
+
readonly androidKeyevent: 'KEYCODE_DPAD_LEFT';
|
|
143
|
+
readonly appleRemoteButton: 'left';
|
|
144
|
+
readonly vegaKey: 'KEY_LEFT';
|
|
145
|
+
};
|
|
146
|
+
readonly right: {
|
|
147
|
+
readonly aliases: readonly [];
|
|
148
|
+
readonly androidKeyevent: 'KEYCODE_DPAD_RIGHT';
|
|
149
|
+
readonly appleRemoteButton: 'right';
|
|
150
|
+
readonly vegaKey: 'KEY_RIGHT';
|
|
151
|
+
};
|
|
152
|
+
readonly select: {
|
|
153
|
+
readonly aliases: readonly ["ok", "center", "enter"];
|
|
154
|
+
readonly androidKeyevent: 'KEYCODE_DPAD_CENTER';
|
|
155
|
+
readonly appleRemoteButton: 'select';
|
|
156
|
+
readonly vegaKey: 'KEY_ENTER';
|
|
157
|
+
};
|
|
158
|
+
readonly menu: {
|
|
159
|
+
readonly aliases: readonly [];
|
|
160
|
+
readonly androidKeyevent: 'KEYCODE_MENU';
|
|
161
|
+
readonly appleRemoteButton: 'menu';
|
|
162
|
+
readonly vegaKey: 'KEY_MENU';
|
|
163
|
+
};
|
|
164
|
+
readonly home: {
|
|
165
|
+
readonly aliases: readonly [];
|
|
166
|
+
readonly androidKeyevent: 'KEYCODE_HOME';
|
|
167
|
+
readonly appleRemoteButton: 'home';
|
|
168
|
+
readonly vegaKey: 'KEY_HOMEPAGE';
|
|
169
|
+
};
|
|
170
|
+
readonly back: {
|
|
171
|
+
readonly aliases: readonly [];
|
|
172
|
+
readonly androidKeyevent: 'KEYCODE_BACK';
|
|
173
|
+
readonly appleRemoteButton: 'menu';
|
|
174
|
+
readonly vegaKey: 'KEY_BACK';
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
declare const TV_REMOTE_BUTTONS: (keyof typeof TV_REMOTE_BUTTON_DEFINITIONS)[];
|
|
178
|
+
type TvRemoteButton = (typeof TV_REMOTE_BUTTONS)[number];
|
|
179
|
+
//#endregion
|
|
180
|
+
//#region packages/contracts/src/settings.d.ts
|
|
181
|
+
/**
|
|
182
|
+
* The `settings permission` vocabulary, declared once. These collections are what the parsers
|
|
183
|
+
* below, the public client permission types, the CLI's membership sets, and the permission-name
|
|
184
|
+
* fragments of `settings` help and its invalid-args message are built from, and their order is
|
|
185
|
+
* the order `settings` help lists the names in.
|
|
186
|
+
*
|
|
187
|
+
* Acceptance is not support: each backend keeps its own target mapping and its own support check,
|
|
188
|
+
* so a name accepted here never promises that the selected platform serves it.
|
|
189
|
+
*/
|
|
190
|
+
declare const PERMISSION_ACTIONS: readonly ['grant', 'deny', 'reset'];
|
|
191
|
+
declare const PERMISSION_MODES: readonly ['full', 'limited'];
|
|
192
|
+
/** The app-scoped targets, the only ones `parsePermissionTarget` accepts. */
|
|
193
|
+
declare const MOBILE_PERMISSION_TARGETS: readonly ['all', 'camera', 'microphone', 'photos', 'contacts', 'contacts-limited', 'notifications', 'calendar', 'location', 'location-always', 'media-library', 'motion', 'reminders', 'siri'];
|
|
194
|
+
/** The desktop targets the CLI and the public client accept; `parsePermissionTarget` refuses them. */
|
|
195
|
+
declare const MACOS_PERMISSION_TARGETS: readonly ['accessibility', 'screen-recording', 'input-monitoring'];
|
|
196
|
+
type PermissionAction = (typeof PERMISSION_ACTIONS)[number];
|
|
197
|
+
type PermissionMode = (typeof PERMISSION_MODES)[number];
|
|
198
|
+
/**
|
|
199
|
+
* The preferred-text-size ladder `settings text-size` accepts, in the order `settings` help lists
|
|
200
|
+
* it. Apple serves it natively — `simctl ui <device> content_size` reads and writes exactly these
|
|
201
|
+
* names — and Android serves it through its `system font_scale` multiplier, so this ladder is the
|
|
202
|
+
* cross-platform vocabulary and each owner maps it in its own native terms. Acceptance is not
|
|
203
|
+
* support: an owner that cannot serve the ladder refuses at admission, on its own fact.
|
|
204
|
+
*/
|
|
205
|
+
declare const TEXT_SIZE_CATEGORIES: readonly ['extra-small', 'small', 'medium', 'large', 'extra-large', 'extra-extra-large', 'extra-extra-extra-large', 'accessibility-medium', 'accessibility-large', 'accessibility-extra-large', 'accessibility-extra-extra-large', 'accessibility-extra-extra-extra-large'];
|
|
206
|
+
type TextSizeCategory = (typeof TEXT_SIZE_CATEGORIES)[number];
|
|
207
|
+
/**
|
|
208
|
+
* The settings that answer a bare `settings <setting>` with the value the target holds. This is the
|
|
209
|
+
* vocabulary every settings type and every settings owner reads it from; the matching value is
|
|
210
|
+
* `READABLE_SETTINGS` in `platform-runtime-operations.ts`, where the CLI hub can evaluate it, and
|
|
211
|
+
* that module pins the two equal in both directions at compile time.
|
|
212
|
+
*/
|
|
213
|
+
type ReadableSetting = 'text-size';
|
|
214
|
+
/**
|
|
215
|
+
* What `text-size` answers with. The ladder is shared across platforms, so a read names the
|
|
216
|
+
* category the ladder calls the device's value *and* the value the platform itself reported: an
|
|
217
|
+
* Apple content-size name, or an Android `font_scale` multiplier. The ladder is coarser than any
|
|
218
|
+
* one platform's own scale, and `platformValue` is what keeps a normalized answer auditable.
|
|
219
|
+
*/
|
|
220
|
+
type TextSizeSettingPayload = Readonly<{
|
|
221
|
+
setting: 'text-size';
|
|
222
|
+
category: TextSizeCategory;
|
|
223
|
+
platformValue: string;
|
|
224
|
+
}>;
|
|
225
|
+
/**
|
|
226
|
+
* The payload a readable setting answers with, keyed by the setting that answered. Each readable
|
|
227
|
+
* setting has its own shape — a category and a multiplier are not the same observation — so the
|
|
228
|
+
* discriminant is what lets a response be composed, recorded, and printed from one place without
|
|
229
|
+
* assuming every setting is a ladder rung. A second readable setting joins this union and supplies
|
|
230
|
+
* its own sentence in `describeSettingRead`, which is where the compiler then asks for it.
|
|
231
|
+
*/
|
|
232
|
+
type ReadSettingResult = TextSizeSettingPayload;
|
|
233
|
+
type SettingOptions = {
|
|
234
|
+
permissionTarget?: string;
|
|
235
|
+
permissionMode?: string;
|
|
236
|
+
latitude?: number;
|
|
237
|
+
longitude?: number;
|
|
238
|
+
};
|
|
239
|
+
//#endregion
|
|
3
240
|
//#region packages/contracts/src/session-surface.d.ts
|
|
4
241
|
declare const SESSION_SURFACES: readonly ['app', 'frontmost-app', 'desktop', 'menubar'];
|
|
5
242
|
type SessionSurface = (typeof SESSION_SURFACES)[number];
|
|
@@ -27,6 +264,8 @@ type ScreenshotResultData = {
|
|
|
27
264
|
logicalWidth?: number;
|
|
28
265
|
logicalHeight?: number;
|
|
29
266
|
pixelDensity?: number;
|
|
267
|
+
/** Display rotation the capture was rendered in; absent when the target reports none. */
|
|
268
|
+
displayRotation?: DeviceRotation;
|
|
30
269
|
overlayRefs?: ScreenshotOverlayRef[];
|
|
31
270
|
warnings?: string[];
|
|
32
271
|
};
|
|
@@ -38,6 +277,11 @@ type BackendSnapshotResult = {
|
|
|
38
277
|
appName?: string;
|
|
39
278
|
appBundleId?: string;
|
|
40
279
|
snapshotDiagnostics?: SnapshotDiagnosticsSummary;
|
|
280
|
+
/**
|
|
281
|
+
* The box the node rects are measured in, as the producer measured it (#3182). Absent means the
|
|
282
|
+
* producer measured no box; see {@link SnapshotViewportSize} for what each producer measures.
|
|
283
|
+
*/
|
|
284
|
+
viewport?: SnapshotViewportSize;
|
|
41
285
|
analysis?: {
|
|
42
286
|
rawNodeCount: number;
|
|
43
287
|
maxDepth: number;
|
|
@@ -88,25 +332,6 @@ type AndroidSnapshotBackendMetadata = {
|
|
|
88
332
|
};
|
|
89
333
|
type FindLocator = 'any' | 'text' | 'label' | 'value' | 'role' | 'id';
|
|
90
334
|
//#endregion
|
|
91
|
-
//#region packages/contracts/src/scroll-gesture.d.ts
|
|
92
|
-
declare const SCROLL_INPUT_DIRECTIONS: readonly ['up', 'down', 'left', 'right', 'top', 'bottom'];
|
|
93
|
-
type ScrollInputDirection = (typeof SCROLL_INPUT_DIRECTIONS)[number];
|
|
94
|
-
declare const SCROLL_DIRECTIONS: readonly ['up', 'down', 'left', 'right'];
|
|
95
|
-
type ScrollDirection = (typeof SCROLL_DIRECTIONS)[number];
|
|
96
|
-
declare const SWIPE_PRESETS: readonly ['left', 'right', 'left-edge', 'right-edge'];
|
|
97
|
-
type SwipePreset = (typeof SWIPE_PRESETS)[number];
|
|
98
|
-
declare const SWIPE_PATTERNS: readonly ['one-way', 'ping-pong'];
|
|
99
|
-
type SwipePattern = (typeof SWIPE_PATTERNS)[number];
|
|
100
|
-
type TransformGestureParams = {
|
|
101
|
-
x: number;
|
|
102
|
-
y: number;
|
|
103
|
-
dx: number;
|
|
104
|
-
dy: number;
|
|
105
|
-
scale: number;
|
|
106
|
-
degrees: number;
|
|
107
|
-
durationMs?: number;
|
|
108
|
-
};
|
|
109
|
-
//#endregion
|
|
110
335
|
//#region packages/contracts/src/cloud-artifacts.d.ts
|
|
111
336
|
declare const CLOUD_ARTIFACT_KINDS: readonly ['video', 'appium-log', 'device-log', 'automation-log', 'provider-session', 'raw'];
|
|
112
337
|
type CloudArtifactKind = (typeof CLOUD_ARTIFACT_KINDS)[number];
|
|
@@ -139,6 +364,8 @@ type DaemonArtifactInventoryEntry = {
|
|
|
139
364
|
sizeBytes: number;
|
|
140
365
|
createdAt: string;
|
|
141
366
|
expiresAt: string;
|
|
367
|
+
/** Display rotation a screenshot was rendered in; absent when the capture reported none. */
|
|
368
|
+
displayRotation?: DeviceRotation;
|
|
142
369
|
};
|
|
143
370
|
type DaemonArtifactsResult = {
|
|
144
371
|
source: 'daemon';
|
|
@@ -166,222 +393,4 @@ type CloudArtifactProvider = {
|
|
|
166
393
|
listCloudArtifacts?: (query: CloudArtifactsQuery) => Promise<CloudArtifactsResult | undefined>;
|
|
167
394
|
};
|
|
168
395
|
//#endregion
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* The `settings permission` vocabulary, declared once. These collections are what the parsers
|
|
172
|
-
* below, the public client permission types, the CLI's membership sets, and the permission-name
|
|
173
|
-
* fragments of `settings` help and its invalid-args message are built from, and their order is
|
|
174
|
-
* the order `settings` help lists the names in.
|
|
175
|
-
*
|
|
176
|
-
* Acceptance is not support: each backend keeps its own target mapping and its own support check,
|
|
177
|
-
* so a name accepted here never promises that the selected platform serves it.
|
|
178
|
-
*/
|
|
179
|
-
declare const PERMISSION_ACTIONS: readonly ['grant', 'deny', 'reset'];
|
|
180
|
-
declare const PERMISSION_MODES: readonly ['full', 'limited'];
|
|
181
|
-
/** The app-scoped targets, the only ones `parsePermissionTarget` accepts. */
|
|
182
|
-
declare const MOBILE_PERMISSION_TARGETS: readonly ['all', 'camera', 'microphone', 'photos', 'contacts', 'contacts-limited', 'notifications', 'calendar', 'location', 'location-always', 'media-library', 'motion', 'reminders', 'siri'];
|
|
183
|
-
/** The desktop targets the CLI and the public client accept; `parsePermissionTarget` refuses them. */
|
|
184
|
-
declare const MACOS_PERMISSION_TARGETS: readonly ['accessibility', 'screen-recording', 'input-monitoring'];
|
|
185
|
-
type PermissionAction = (typeof PERMISSION_ACTIONS)[number];
|
|
186
|
-
type PermissionMode = (typeof PERMISSION_MODES)[number];
|
|
187
|
-
/**
|
|
188
|
-
* The preferred-text-size ladder `settings text-size` accepts, in the order `settings` help lists
|
|
189
|
-
* it. Apple serves it natively — `simctl ui <device> content_size` reads and writes exactly these
|
|
190
|
-
* names — and Android serves it through its `system font_scale` multiplier, so this ladder is the
|
|
191
|
-
* cross-platform vocabulary and each owner maps it in its own native terms. Acceptance is not
|
|
192
|
-
* support: an owner that cannot serve the ladder refuses at admission, on its own fact.
|
|
193
|
-
*/
|
|
194
|
-
declare const TEXT_SIZE_CATEGORIES: readonly ['extra-small', 'small', 'medium', 'large', 'extra-large', 'extra-extra-large', 'extra-extra-extra-large', 'accessibility-medium', 'accessibility-large', 'accessibility-extra-large', 'accessibility-extra-extra-large', 'accessibility-extra-extra-extra-large'];
|
|
195
|
-
type TextSizeCategory = (typeof TEXT_SIZE_CATEGORIES)[number];
|
|
196
|
-
/**
|
|
197
|
-
* The settings that answer a bare `settings <setting>` with the value the target holds. This is the
|
|
198
|
-
* vocabulary every settings type and every settings owner reads it from; the matching value is
|
|
199
|
-
* `READABLE_SETTINGS` in `platform-runtime-operations.ts`, where the CLI hub can evaluate it, and
|
|
200
|
-
* that module pins the two equal in both directions at compile time.
|
|
201
|
-
*/
|
|
202
|
-
type ReadableSetting = 'text-size';
|
|
203
|
-
/**
|
|
204
|
-
* What `text-size` answers with. The ladder is shared across platforms, so a read names the
|
|
205
|
-
* category the ladder calls the device's value *and* the value the platform itself reported: an
|
|
206
|
-
* Apple content-size name, or an Android `font_scale` multiplier. The ladder is coarser than any
|
|
207
|
-
* one platform's own scale, and `platformValue` is what keeps a normalized answer auditable.
|
|
208
|
-
*/
|
|
209
|
-
type TextSizeSettingPayload = Readonly<{
|
|
210
|
-
setting: 'text-size';
|
|
211
|
-
category: TextSizeCategory;
|
|
212
|
-
platformValue: string;
|
|
213
|
-
}>;
|
|
214
|
-
/**
|
|
215
|
-
* The payload a readable setting answers with, keyed by the setting that answered. Each readable
|
|
216
|
-
* setting has its own shape — a category and a multiplier are not the same observation — so the
|
|
217
|
-
* discriminant is what lets a response be composed, recorded, and printed from one place without
|
|
218
|
-
* assuming every setting is a ladder rung. A second readable setting joins this union and supplies
|
|
219
|
-
* its own sentence in `describeSettingRead`, which is where the compiler then asks for it.
|
|
220
|
-
*/
|
|
221
|
-
type ReadSettingResult = TextSizeSettingPayload;
|
|
222
|
-
type SettingOptions = {
|
|
223
|
-
permissionTarget?: string;
|
|
224
|
-
permissionMode?: string;
|
|
225
|
-
latitude?: number;
|
|
226
|
-
longitude?: number;
|
|
227
|
-
};
|
|
228
|
-
//#endregion
|
|
229
|
-
//#region packages/contracts/src/back-mode.d.ts
|
|
230
|
-
declare const BACK_MODES: readonly ['in-app', 'system'];
|
|
231
|
-
type BackMode = (typeof BACK_MODES)[number];
|
|
232
|
-
//#endregion
|
|
233
|
-
//#region packages/contracts/src/device-rotation.d.ts
|
|
234
|
-
/** Single source of truth for the discriminator the Apple owner sets and the MCP schema advertises. */
|
|
235
|
-
declare const FOLD_SCREEN_COORDINATE_SPACE: 'native-panel';
|
|
236
|
-
type FoldScreenCoordinateSpace = typeof FOLD_SCREEN_COORDINATE_SPACE;
|
|
237
|
-
declare const DEVICE_ROTATIONS: readonly ['portrait', 'portrait-upside-down', 'landscape-left', 'landscape-right'];
|
|
238
|
-
type DeviceRotation = (typeof DEVICE_ROTATIONS)[number];
|
|
239
|
-
/**
|
|
240
|
-
* The three hinge poses a foldable Apple device can be put in, named after what an agent sees
|
|
241
|
-
* rather than after Apple's `UIHinge.Status` cases: `closed` lights the outer panel only,
|
|
242
|
-
* `half-open` and `open` light the inner panel. Device Hub calls them Closed, Book, and Open;
|
|
243
|
-
* `UIHinge.Status` calls them `.closed`, `.partiallyOpen`, and `.fullyOpen`.
|
|
244
|
-
*/
|
|
245
|
-
declare const FOLD_POSES: readonly ['closed', 'half-open', 'open'];
|
|
246
|
-
type FoldPose = (typeof FOLD_POSES)[number];
|
|
247
|
-
type FoldKeyframe = Readonly<{
|
|
248
|
-
atMs: number;
|
|
249
|
-
angle: number;
|
|
250
|
-
}>;
|
|
251
|
-
type SetFoldPoseInput = Readonly<{
|
|
252
|
-
pose: FoldPose;
|
|
253
|
-
keyframes?: never;
|
|
254
|
-
}> | Readonly<{
|
|
255
|
-
keyframes: readonly FoldKeyframe[];
|
|
256
|
-
pose?: never;
|
|
257
|
-
}>;
|
|
258
|
-
//#endregion
|
|
259
|
-
//#region packages/contracts/src/tv-remote.d.ts
|
|
260
|
-
declare const TV_REMOTE_BUTTON_DEFINITIONS: {
|
|
261
|
-
readonly up: {
|
|
262
|
-
readonly aliases: readonly [];
|
|
263
|
-
readonly androidKeyevent: 'KEYCODE_DPAD_UP';
|
|
264
|
-
readonly appleRemoteButton: 'up';
|
|
265
|
-
readonly vegaKey: 'KEY_UP';
|
|
266
|
-
};
|
|
267
|
-
readonly down: {
|
|
268
|
-
readonly aliases: readonly [];
|
|
269
|
-
readonly androidKeyevent: 'KEYCODE_DPAD_DOWN';
|
|
270
|
-
readonly appleRemoteButton: 'down';
|
|
271
|
-
readonly vegaKey: 'KEY_DOWN';
|
|
272
|
-
};
|
|
273
|
-
readonly left: {
|
|
274
|
-
readonly aliases: readonly [];
|
|
275
|
-
readonly androidKeyevent: 'KEYCODE_DPAD_LEFT';
|
|
276
|
-
readonly appleRemoteButton: 'left';
|
|
277
|
-
readonly vegaKey: 'KEY_LEFT';
|
|
278
|
-
};
|
|
279
|
-
readonly right: {
|
|
280
|
-
readonly aliases: readonly [];
|
|
281
|
-
readonly androidKeyevent: 'KEYCODE_DPAD_RIGHT';
|
|
282
|
-
readonly appleRemoteButton: 'right';
|
|
283
|
-
readonly vegaKey: 'KEY_RIGHT';
|
|
284
|
-
};
|
|
285
|
-
readonly select: {
|
|
286
|
-
readonly aliases: readonly ["ok", "center", "enter"];
|
|
287
|
-
readonly androidKeyevent: 'KEYCODE_DPAD_CENTER';
|
|
288
|
-
readonly appleRemoteButton: 'select';
|
|
289
|
-
readonly vegaKey: 'KEY_ENTER';
|
|
290
|
-
};
|
|
291
|
-
readonly menu: {
|
|
292
|
-
readonly aliases: readonly [];
|
|
293
|
-
readonly androidKeyevent: 'KEYCODE_MENU';
|
|
294
|
-
readonly appleRemoteButton: 'menu';
|
|
295
|
-
readonly vegaKey: 'KEY_MENU';
|
|
296
|
-
};
|
|
297
|
-
readonly home: {
|
|
298
|
-
readonly aliases: readonly [];
|
|
299
|
-
readonly androidKeyevent: 'KEYCODE_HOME';
|
|
300
|
-
readonly appleRemoteButton: 'home';
|
|
301
|
-
readonly vegaKey: 'KEY_HOMEPAGE';
|
|
302
|
-
};
|
|
303
|
-
readonly back: {
|
|
304
|
-
readonly aliases: readonly [];
|
|
305
|
-
readonly androidKeyevent: 'KEYCODE_BACK';
|
|
306
|
-
readonly appleRemoteButton: 'menu';
|
|
307
|
-
readonly vegaKey: 'KEY_BACK';
|
|
308
|
-
};
|
|
309
|
-
};
|
|
310
|
-
declare const TV_REMOTE_BUTTONS: (keyof typeof TV_REMOTE_BUTTON_DEFINITIONS)[];
|
|
311
|
-
type TvRemoteButton = (typeof TV_REMOTE_BUTTONS)[number];
|
|
312
|
-
//#endregion
|
|
313
|
-
//#region packages/contracts/src/scroll-command.d.ts
|
|
314
|
-
type ScrollReleaseBehavior = 'controlled' | 'inertial';
|
|
315
|
-
/**
|
|
316
|
-
* What a directional scroll actually SAW after its gesture, which is the only evidence that can
|
|
317
|
-
* back the distance the same response reports (#2714).
|
|
318
|
-
*
|
|
319
|
-
* - `'moved'`: the post-gesture surface differs from the pre-gesture one, so content did move.
|
|
320
|
-
* - `'at-edge'`: the surface is identical and the resolved container names no hidden content in
|
|
321
|
-
* that direction — the scroll was a legitimate no-op at the end of the content.
|
|
322
|
-
* - `'unchanged'`: the surface is identical and the direction has no end-of-content signal to read
|
|
323
|
-
* (a horizontal scroll: the hidden-content analyzer only covers the vertical axis), so the
|
|
324
|
-
* response says what it measured without guessing which of the two it was.
|
|
325
|
-
* - `'unobserved'`: nothing comparable was available, so the distance rests on the gesture plan
|
|
326
|
-
* alone. Callers that need the effect confirmed ask for a capture or a `--settle` observation.
|
|
327
|
-
*
|
|
328
|
-
* A directional scroll that measures an unchanged surface WITH hidden content still in that
|
|
329
|
-
* direction does not answer at all: it fails with `scroll_no_progress`.
|
|
330
|
-
*/
|
|
331
|
-
type ScrollMovementObservation = 'moved' | 'at-edge' | 'unchanged' | 'unobserved';
|
|
332
|
-
type ScrollDistanceOptions = {
|
|
333
|
-
amount?: number;
|
|
334
|
-
pixels?: number;
|
|
335
|
-
};
|
|
336
|
-
type ScrollTimingOptions = {
|
|
337
|
-
durationMs?: number;
|
|
338
|
-
};
|
|
339
|
-
type ScrollCommandOptions = ScrollDistanceOptions & ScrollTimingOptions;
|
|
340
|
-
type ScrollExecutionOptions = ScrollCommandOptions & {
|
|
341
|
-
releaseBehavior?: ScrollReleaseBehavior;
|
|
342
|
-
};
|
|
343
|
-
/**
|
|
344
|
-
* `scroll` — the generic-route result built by `buildDispatchedScrollResult`
|
|
345
|
-
* (src/core/dispatch-scroll.ts): the resolved direction, the edge-pass
|
|
346
|
-
* bookkeeping for `top`/`bottom` scrolls, the honored distance/timing echo,
|
|
347
|
-
* and the success message. Platform leaves add gesture-plan coordinates
|
|
348
|
-
* (`x1`/`y1`/`x2`/`y2`, reference frame) on top; the output schema stays
|
|
349
|
-
* non-strict so those additive fields validate. The one field the dispatcher
|
|
350
|
-
* itself may add: `settle`, the opt-in `--settle` observation (#1638),
|
|
351
|
-
* attached after the command — same shape as `BackCommandResult`.
|
|
352
|
-
*/
|
|
353
|
-
type ScrollCommandResult = {
|
|
354
|
-
direction: ScrollDirection;
|
|
355
|
-
/** Set for `top`/`bottom` requests: the extreme being scrolled to. */
|
|
356
|
-
edge?: 'top' | 'bottom';
|
|
357
|
-
/** Set for `--until` requests: the selector the passes stopped on. */
|
|
358
|
-
until?: string;
|
|
359
|
-
/** Edge and until scrolls only: how many scroll-and-check passes ran. */
|
|
360
|
-
passes?: number;
|
|
361
|
-
amount?: number;
|
|
362
|
-
pixels?: number;
|
|
363
|
-
durationMs?: number;
|
|
364
|
-
message?: string;
|
|
365
|
-
settle?: SettleObservation;
|
|
366
|
-
/**
|
|
367
|
-
* The observation that gated this response's distance claim. See
|
|
368
|
-
* {@link ScrollMovementObservation}: `scroll` answers with what it measured after the gesture,
|
|
369
|
-
* and only `'moved'` and `'at-edge'` confirm the surface's fate. Absent on the tiers that verify
|
|
370
|
-
* per pass instead of per gesture (`scroll top`/`bottom` and `--until`), and on platforms whose
|
|
371
|
-
* scroll owner never dispatches a swipe (the Linux wheel).
|
|
372
|
-
*/
|
|
373
|
-
movement?: ScrollMovementObservation;
|
|
374
|
-
/**
|
|
375
|
-
* Set only when an on-screen keyboard made the owner clip the swipe into the band above it
|
|
376
|
-
* (#2500). Absent means the swipe was not clipped, which is not the same claim as `false`: a
|
|
377
|
-
* platform that never runs the clip has nothing to report. The platform leaf's `referenceHeight`
|
|
378
|
-
* names the shortened axis the reported `pixels` were planned against, and `keyboardMinY` names
|
|
379
|
-
* where the keyboard began. A surface the owner refused to swipe at all fails instead, under the
|
|
380
|
-
* `scroll_keyboard_occludes_surface` reason.
|
|
381
|
-
*/
|
|
382
|
-
keyboardAvoided?: true;
|
|
383
|
-
/** The keyboard's edge in the same unit as the gesture coordinates, when the swipe was clipped. */
|
|
384
|
-
keyboardMinY?: number;
|
|
385
|
-
};
|
|
386
|
-
//#endregion
|
|
387
|
-
export { SessionSurface as A, SwipePreset as C, FindLocator as D, BackendSnapshotResult as E, ScreenshotResultData as O, SwipePattern as S, AndroidSnapshotBackendMetadata as T, AgentArtifactsResult as _, FoldPose as a, ScrollDirection as b, BackMode as c, PermissionAction as d, PermissionMode as f, TextSizeCategory as g, SettingOptions as h, DeviceRotation as i, SnapshotDiagnosticsSummary as k, MACOS_PERMISSION_TARGETS as l, ReadableSetting as m, ScrollExecutionOptions as n, FoldScreenCoordinateSpace as o, ReadSettingResult as p, TvRemoteButton as r, SetFoldPoseInput as s, ScrollCommandResult as t, MOBILE_PERMISSION_TARGETS as u, CloudArtifactProvider as v, TransformGestureParams as w, ScrollInputDirection as x, CloudProviderSessionResult as y };
|
|
396
|
+
export { BackMode as A, SwipePattern as C, FoldPose as D, DeviceRotation as E, FoldScreenCoordinateSpace as O, ScrollInputDirection as S, TransformGestureParams as T, TextSizeCategory as _, BackendSnapshotResult as a, ScrollExecutionOptions as b, SnapshotDiagnosticsSummary as c, MOBILE_PERMISSION_TARGETS as d, PermissionAction as f, SettingOptions as g, ReadableSetting as h, AndroidSnapshotBackendMetadata as i, SetFoldPoseInput as k, SessionSurface as l, ReadSettingResult as m, CloudArtifactProvider as n, FindLocator as o, PermissionMode as p, CloudProviderSessionResult as r, ScreenshotResultData as s, AgentArtifactsResult as t, MACOS_PERMISSION_TARGETS as u, TvRemoteButton as v, SwipePreset as w, ScrollDirection as x, ScrollCommandResult as y };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{A as e}from"./owner-identity.js";import"./file.js";import{a as t,r as n,s as r,t as i}from"./code-signature.js";import a from"node:crypto";import o from"node:fs";import s from"node:os";import c from"node:path";function l(e,a){let o=t(a),s=t(e),c=v(s,o),l=i(o,s),d=u(c,o,l);if(d)return n(d.files);let p;try{p=r(s,o)}catch{return`unknown`}return f(p.files,l)&&_(c,p),n(p.files)}function u(e,t,n){let r=p(e);if(!(!r||!f(r.files,n))){for(let[e,n,i]of r.files){let r=d(c.resolve(t,e));if(!r?.isFile()||r.size!==n||Math.trunc(r.mtimeMs)!==i)return}for(let e of r.absentPaths)if(d(c.resolve(t,e))?.isFile())return;return r}}function d(e){try{return o.statSync(e)}catch{return}}function f(e,t){return e.some(([e])=>e===t)}function p(e){let t=m(e);if(!t)return;let n=[];for(let e of t.files){let t=g(e);if(!t)return;n.push(t)}if(t.absent.every(e=>typeof e==`string`))return{files:n,absentPaths:t.absent}}function m(e){let t=h(e);if(t===void 0)return;let n;try{n=JSON.parse(t)}catch{return}if(!n||typeof n!=`object`)return;let r=n;if(r.version===2&&!(!Array.isArray(r.files)||!Array.isArray(r.absent)))return{files:r.files,absent:r.absent}}function h(e){let t;try{t=o.openSync(e,`r`)}catch{return}try{let e=process.getuid?.();return e!==void 0&&o.fstatSync(t).uid!==e?void 0:o.readFileSync(t,`utf8`)}catch{return}finally{o.closeSync(t)}}function g(e){if(!Array.isArray(e)||e.length!==3)return;let[t,n,r]=e;if(typeof t==`string`&&typeof n==`number`&&typeof r==`number`)return[t,n,r]}function _(t,n){let r={version:2,files:[...n.files],absent:[...n.absentPaths]};try{o.mkdirSync(c.dirname(t),{recursive:!0,mode:448}),e({destination:t,contents:JSON.stringify(r),mode:384})}catch{}}function v(e,t){let n=a.createHash(`sha1`).update(`${t} ${e}`).digest(`hex`),r=`agent-device-code-signature-${process.getuid?.()??`user`}`;return c.join(s.tmpdir(),r,`${n}.json`)}export{l as resolveCachedDaemonCodeSignature};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,s as t}from"./version.js";import n from"node:
|
|
1
|
+
import{r as e,s as t}from"./version.js";import n from"node:crypto";import r from"node:fs";import i from"node:path";const a=/(['"])(\.\.?\/[^'"]*)\1/g,o=/(['"])(@[^'"/\s]+\/[^'"\s]+)\1/g,s=[`.ts`,`.tsx`,`.js`,`.jsx`,`.mjs`,`.cjs`];function c(){let e=process.argv[1];return e?u(e):`unknown`}function l(n=e()){return t(n)?`checkout`:`installed`}function u(t,n=e()){try{return g(d(t,n).files)}catch{return`unknown`}}function d(e,t){let n=h(t),i=[h(e)],a=new Set,o=[],s=new Set,c={root:n,packages:new Map,absentPaths:s,stamp:e=>{if(a.has(e))return!1;a.add(e);let t=r.statSync(e);if(!t.isFile())return!1;let i=m(n,e);return o.push([i,t.size,Math.trunc(t.mtimeMs)]),!0},follow:e=>{for(let t of e.missedCandidates)s.add(m(n,t));e.filePath&&i.push(e.filePath)}};for(;i.length>0;){let e=i.pop();if(e===void 0||a.has(e)||!c.stamp(e))continue;let t=r.readFileSync(e,`utf8`);for(let n of _(t))c.follow(w(e,n));f(t,c)}return{files:o,absentPaths:[...s]}}function f(e,t){for(let n of v(e)){let{name:e,subpath:r}=y(n),i=p(e,t);if(!i)continue;let a=S(i.manifest,r);a!==void 0&&t.follow(w(i.manifestPath,a))}}function p(e,t){let n=t.packages.get(e);if(n!==void 0)return n;let r=b(t.root,e,t.absentPaths);return t.packages.set(e,r),r&&t.stamp(r.manifestPath),r}function m(e,t){let n=i.resolve(t);return i.relative(i.resolve(e),n)||n}function h(e){try{return r.realpathSync.native(e)}catch{return i.resolve(e)}}function g(e){let t=e.map(([e,t,n])=>`${e}:${t}:${n}`).sort().join(`|`),r=n.createHash(`sha1`).update(t).digest(`hex`);return`graph:${e.length}:${r}`}function _(e){let t=new Set;a.lastIndex=0;let n=null;for(;(n=a.exec(e))!==null;)t.add(n[2]);return[...t]}function v(e){let t=new Set;o.lastIndex=0;let n=null;for(;(n=o.exec(e))!==null;)t.add(n[2]);return[...t]}function y(e){let t=e.split(`/`),n=t.slice(2).join(`/`);return{name:t.slice(0,2).join(`/`),subpath:n?`./${n}`:`.`}}function b(e,t,n){let a=i.join(e,`node_modules`,t,`package.json`);if(!E(a))return n.add(m(e,a)),null;let o=h(a);if(x(e,o))return null;try{return{manifestPath:o,manifest:JSON.parse(r.readFileSync(o,`utf8`))}}catch{return null}}function x(e,t){let n=i.relative(i.join(e,`node_modules`),t);return n!==``&&!n.startsWith(`..`)&&!i.isAbsolute(n)}function S(e,t){if(!e||typeof e!=`object`)return;let n=e.exports;if(!n||typeof n!=`object`)return;let r=n[t],i=typeof r==`string`?r:C(r);return typeof i==`string`&&i.startsWith(`.`)?i:void 0}function C(e){if(!(!e||typeof e!=`object`))return e.default}function w(e,t){let n=i.resolve(i.dirname(e),t),r=[];for(let e of T(n)){if(E(e))return{filePath:e,missedCandidates:r};r.push(e)}return{filePath:null,missedCandidates:r}}function*T(e){yield e;for(let t of s)yield`${e}${t}`;for(let t of s)yield i.join(e,`index${t}`)}function E(e){try{return r.statSync(e).isFile()}catch{return!1}}export{h as a,l as i,u as n,c as o,g as r,d as s,m as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{P as e}from"./sdk-contracts.js";import{S as t,T as n,r}from"./registry.js";import{r as i}from"./command-metadata.js";const a={plugins:{text:{summary:`Manage installed provider plugins`,description:`Install, list, update, or remove npm provider plugins in AGENT_DEVICE_HOME (default ~/.agent-device). Changes take effect after restarting the local daemon. Use --json for structured results.`},usageOverride:`plugins list|add <package[@version]>|update <package>|remove <package>`,listUsageOverride:`plugins`,positionalArgs:[`list|add|update|remove`,`package?`],supportedFlags:[]},cdp:{text:{summary:`Inspect CDP targets, JS heap, and leaks`,description:`Run CDP commands for React Native diagnostics, JS heap usage, heap snapshots, and leak analysis`},usageOverride:`cdp [...args]`,listUsageOverride:`cdp`,positionalArgs:[`args?`],allowsExtraPositionals:!0,supportedFlags:t},auth:{text:{summary:`Manage cloud login state`,description:`Manage cloud login state used by remote daemon and cloud device workflows.`},usageOverride:`auth status|login|logout`,listUsageOverride:`auth`,positionalArgs:[`status|login|logout`],supportedFlags:[`remoteConfig`,`stateDir`]},daemon:{text:{summary:`Stop a local daemon and clean up resources`,description:`Stop a local daemon after verifying its PID/start-time identity. Use --clean to remove retained Apple runner processes and leases owned by that daemon.`},usageOverride:`daemon stop [--state-dir <path>]`,listUsageOverride:`daemon stop`,positionalArgs:[`stop`],allowedFlags:[`clean`],supportedFlags:[`stateDir`]},device:{text:{summary:`Inspect and recover enforced local device ownership without a daemon`,description:`Inspect enforced host-local device ownership claims without starting or contacting a daemon; status --stale only inspects proven-stale claims. release --stale settles a provably dead owner through exact-owner resource reconciliation and clears its claim last — live and uncertain owners always fail closed. Automatic reclamation still occurs during open and daemon startup.`},usageOverride:`device status|release [--platform <platform>] [--udid <udid>] [--serial <serial>]`,listUsageOverride:`device status`,positionalArgs:[`status|release`],allowedFlags:[`stale`],supportedFlags:[`platform`,`device`,`udid`,`serial`]},connect:{text:{summary:`Configure remote or provider state`,description:`Configure remote access without allocating a device. Direct providers validate credentials/resources before saving state and print the exact device/app preparation needed before open. AGENT_DEVICE_CLOUD_BASE_URL is the bridge/control-plane API origin; use AGENT_DEVICE_DAEMON_AUTH_TOKEN=adc_live_... for CI/service-token automation.`},usageOverride:`connect [cloud|proxy|limrun|browserstack|aws-device-farm] [--remote-config <path>] [--daemon-base-url <url>] [--tenant <id>] [--run-id <id>] [--lease-id <id>] [--lease-backend <backend>] [--force] [--no-login]`,usageFlags:[],listUsageOverride:`connect`,positionalArgs:[`provider?`],allowedFlags:`remoteConfig.daemonBaseUrl.tenant.runId.leaseId.leaseBackend.providerApp.providerOsVersion.providerProject.providerBuild.providerSessionName.providerDeviceOrientation.providerGeoLocation.providerTimezone.providerAppiumVersion.providerLanguage.providerLocale.providerNetworkProfile.providerCustomNetwork.providerNoResignApp.awsProjectArn.awsDeviceArn.awsAppArn.awsRegion.awsInteractionMode.force.noLogin`.split(`.`),supportedFlags:[`stateDir`,`daemonAuthToken`,`session`,`platform`,`device`,...n,`launchUrl`]},connection:{text:{summary:`Inspect the saved remote connection`,description:`Inspect active remote connection state`},usageOverride:`connection status`,listUsageOverride:`connection`,positionalArgs:[`status`],supportedFlags:[`remoteConfig`,`stateDir`,`session`]},disconnect:{text:{summary:`Clear remote connection state and release leases`,description:`Disconnect remote daemon state, stop owned Metro companion, and release lease`},listUsageOverride:`disconnect`,allowedFlags:[`shutdown`],supportedFlags:[`remoteConfig`,`stateDir`,`session`]},mcp:{text:{summary:`Start MCP server`,description:`Start the official stdio MCP server. It exposes structured command tools backed by the agent-device client.`}},proxy:{text:{summary:`Expose a local daemon through an HTTP tunnel`,description:`Expose the local daemon HTTP contract through a tunnel-friendly reverse proxy.
|
|
2
2
|
|
|
3
3
|
Run this on the host that has access to simulators/devices, expose the printed local proxy URL through a tunnel, then point another machine at the tunnel URL with connect proxy.
|
|
4
4
|
|
|
@@ -9,7 +9,7 @@ Use the /agent-device base path when connecting through cloudflared, ngrok, or a
|
|
|
9
9
|
Examples:
|
|
10
10
|
agent-device proxy --port 4310
|
|
11
11
|
cloudflared tunnel --url http://127.0.0.1:4310
|
|
12
|
-
agent-device connect proxy --daemon-base-url https://example.trycloudflare.com/agent-device --daemon-auth-token <token>`},listUsageOverride:`proxy`,allowedFlags:[`proxyHost`,`proxyPort`,`daemonAuthToken`,`stateDir`]},takeover:{text:{summary:`Pause agent interactions while a person controls a device`,description:`Temporarily hand control of the active remote lease device to a person. The foreground command pauses state-changing agent commands, renews the hold until Ctrl+C, and then releases it. Read-only diagnostics remain available. Uses the active connection and --session, with normal tenant and lease admission. status lists holds on that device; release removes a hold owned by the admitted lease. The host-only /admin/human-control/holds API uses the separate local daemon token. Holds do not survive daemon restart. Local takeover without a remote device lease is not supported.`},usageOverride:`takeover [status | release <hold-id>] [--session <name>]`,listUsageOverride:`takeover [status|release]`,positionalArgs:[`status|release?`,`hold-id?`],supportedFlags:[`stateDir`,`session`,`remoteConfig`,`daemonBaseUrl`,`daemonAuthToken`,`daemonTransport`,`tenant`,`runId`,`leaseId`,`leaseBackend`,`sessionIsolation`]},"react-devtools":{text:{summary:`Inspect components, hooks, and render profiles`,description:`Run pinned agent-react-devtools commands for React Native performance profiling, component trees, props/state/hooks, and render analysis`},usageOverride:`react-devtools [...args]`,listUsageOverride:`react-devtools`,positionalArgs:[`args?`],allowsExtraPositionals:!0,supportedFlags:
|
|
12
|
+
agent-device connect proxy --daemon-base-url https://example.trycloudflare.com/agent-device --daemon-auth-token <token>`},listUsageOverride:`proxy`,allowedFlags:[`proxyHost`,`proxyPort`,`daemonAuthToken`,`stateDir`]},takeover:{text:{summary:`Pause agent interactions while a person controls a device`,description:`Temporarily hand control of the active remote lease device to a person. The foreground command pauses state-changing agent commands, renews the hold until Ctrl+C, and then releases it. Read-only diagnostics remain available. Uses the active connection and --session, with normal tenant and lease admission. status lists holds on that device; release removes a hold owned by the admitted lease. The host-only /admin/human-control/holds API uses the separate local daemon token. Holds do not survive daemon restart. Local takeover without a remote device lease is not supported.`},usageOverride:`takeover [status | release <hold-id>] [--session <name>]`,listUsageOverride:`takeover [status|release]`,positionalArgs:[`status|release?`,`hold-id?`],supportedFlags:[`stateDir`,`session`,`remoteConfig`,`daemonBaseUrl`,`daemonAuthToken`,`daemonTransport`,`tenant`,`runId`,`leaseId`,`leaseBackend`,`sessionIsolation`]},"react-devtools":{text:{summary:`Inspect components, hooks, and render profiles`,description:`Run pinned agent-react-devtools commands for React Native performance profiling, component trees, props/state/hooks, and render analysis`},usageOverride:`react-devtools [...args]`,listUsageOverride:`react-devtools`,positionalArgs:[`args?`],allowsExtraPositionals:!0,supportedFlags:t},web:{text:{summary:`Manage web automation backend`,description:`Install and inspect the managed web automation backend used by --platform web.
|
|
13
13
|
|
|
14
14
|
First-run flow:
|
|
15
15
|
agent-device web setup
|
|
@@ -19,4 +19,4 @@ First-run flow:
|
|
|
19
19
|
|
|
20
20
|
Runtime web commands do not install the backend implicitly. If the managed backend is missing, run agent-device web setup. The backend is resolved only from the managed install in the effective agent-device state dir.
|
|
21
21
|
|
|
22
|
-
Use web setup to install or reuse the pinned backend. Use web doctor after setup to verify browser backend health.`},usageOverride:`web setup | web doctor`,listUsageOverride:`web setup|doctor`,positionalArgs:[`setup|doctor`],supportedFlags:[`stateDir`]}},o=
|
|
22
|
+
Use web setup to install or reuse the pinned backend. Use web doctor after setup to verify browser backend health.`},usageOverride:`web setup | web doctor`,listUsageOverride:`web setup|doctor`,positionalArgs:[`setup|doctor`],supportedFlags:[`stateDir`]}},o=r();function s(e){return Object.hasOwn(a,e)?a[e]:void 0}function c(e){return Object.hasOwn(o,e)?o[e]:void 0}const l=new Map(i().map(e=>[e.name,{supportedFlags:t}]));function u(e){if(e)return p(e)}function d(e){let t=p(e);if(!t)throw Error(`Missing command schema for ${e}`);return t}function f(t,n,r){let i=u(t);if(!t||!i||i.allowsExtraPositionals)return;let a=i.positionalArgs?.length??0;if(n.length<=a)return;let o=r?`${r} ${t}`:t;throw new e(`INVALID_ARGS`,`${o} accepts at most ${a} positional argument(s), received ${n.length}: ${n.join(` `)}`)}function p(e){let t=s(e);if(t)return t;let n=l.get(e),r=c(e);if(!(!n||!r))return{...n,...r}}export{d as n,u as r,f as t};
|