mirror of
https://github.com/software-mansion/argent.git
synced 2026-09-14 19:27:14 +08:00
66ef490eb7
The previous fix(describe) commit changed the describe contract from
DescribeNode to a pretty-printed string and added a cross-platform
filter/format step. That solved the Android-only readability problem
(uiautomator dumps every LinearLayout the agent has to scroll past) but
also rewrote iOS's output, which this branch is not supposed to touch —
iOS already filters at the AX-service layer and was fine.
Roll the contract back to `tree: DescribeNode`, revert iOS's describe
handler to its main-branch shape, and have Android return the parser
output directly. The clickable-layout-to-Button promotion and
descendant-text hoisting from the parser-level commit (4f8bd4b) stay in
place — those are pure parser improvements that produce a useful
DescribeNode without crossing into iOS territory. format.ts is removed
since neither platform calls it anymore.
Tests: describe-tool.test.ts goes back to asserting on DescribeNode
shape; all 620 tool-server tests pass.