mirror of
https://github.com/software-mansion/argent.git
synced 2026-09-14 19:27:14 +08:00
06bab6c357
The tool's docstring promises "At least one of className, identifier, label, tag, or nativeID must be provided" but every filter was `.optional()` in zod with no runtime guard. Empty calls slipped through to ViewHierarchy.findViews which returned an empty matches array, leading agents to misread "no matches" as "view does not exist". Add a runtime check at the top of execute and a vitest contract suite covering the rejection, the no-RPC short-circuit, and the single-filter happy path.