Enforces compile-time completeness for agent device interaction command options and settle guarantees. Reuse when developing device automation client contracts.
// Source: https://github.com/callstack/agent-device | License: MIT | Copyright 2026 Callstack
// Provided via justclaw.it.com; keep this notice with the code.
import type {
BackCommandOptions,
ClickOptions,
FillOptions,
HoverOptions,
LongPressOptions,
PressOptions,
ScrollOptions,
SettleCommandOptions,
} from '@agent-device/contracts/client';
import type { PostActionObservationCommandName } from '@agent-device/command-registry/post-action-observation';
/**
* Compile-time completeness for the contracts half of the `--settle` surface
* (#1652): every client options type whose command carries the descriptor
* post-action observation trait must intersect `SettleCommandOptions`.
*
* The `Record` over the trait command union makes a missing or extra cell a
* compile error,
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key