Repository navigation
noracu 0.2.4
noracu 0.2.4
Text writes on the Mac are reported as delivered_verified only when the field changed into exactly what the write should leave; every tool now reports MCP tool annotations; and the iPhone layer gets fixes for phone_open, Home Screen page swipes and the pyobjc install hint.
Changed
- A text write counts as
delivered_verifiedonly when the field changed into exactly what the write should leave: formac_set_value, the value given (line endings unified, leading and trailing white space ignored); formac_type, the text over the selection that was there, the old value plus the text, or — withreplace— the text itself; formac_paste, the focused field's value becoming the text pasted over the selection that was there. A field that merely contains the text somewhere no longer counts: the text may have been there before. When the insertion point cannot be read, a changed value that shows the text isdelivered_unverified(insertion_point_unreadable), and one that shows it elsewhere isdelivered_unverified(not_at_insertion_point). mac_set_valuewith the value the field already shows, andmac_typewithreplaceand the text already there, send nothing and reportnot_delivered(already, retry safe).- A paste over a selection that already held the same text leaves the value unchanged and is
delivered_unverified(value_unchanged): a moved caret is no proof that ⌘V was handled. mac_typeinto a field that takes text only by rewriting its whole value refuses (not_delivered) when that value cannot be read, instead of replacing what is there with the text.
Fixed
phone_openfinds Spotlight's search field where iOS 27 now draws it. The field floats about a fifth of the way up from the bottom on some screens (it was looked for only at the very bottom), and a long name may differ from what OCR reads there by a letter or two. A name the Top Hit card does not show is reported asapp not foundagain, instead ofopen_not_confirmed: … never showed up on the phoneafter a 15 s wait (on the test iPhone, iOS 27: about 9–11 s per call, down from about 26 s).phone_openwith a one- or two-letter name such asXno longer runs into its time limit (about 31 s, reported as "the Mac may be under heavy load"). It reportsopen_not_confirmedinstead (about 15 s on the test iPhone): OCR could not read the name, nothing was tapped, and the app may still be installed — open it from its Home Screen icon.- The pyobjc install command in the
imctl unavailable …message and in the READMEs named a package that does not exist on PyPI (pyobjc-framework-AppKit), so pip stopped without installing anything. It now namespyobjc-framework-Cocoa, which provides AppKit; the iPhone driver's ownpyproject.tomlhad the same wrong dependency. - Home Screen page swipes from the iPhone driver (
imctl page left|right) start in the empty strip just above the Dock instead of the middle of the screen. iPhone Mirroring delivers a drag as pointer input, so a swipe that starts on an app icon picks the icon up: on the test iPhone two such swipes dropped an icon on another one and made a folder.phone_swipe's description and the READMEs now say where to start a page swipe. mac_set_valuewith an empty or blank value on a numeric field (a stepper or a number field) wrote the number 0, and counted a field already at 0 as set. Only a written-out decimal number is compared and written as a number now; anything else is sent as text.
Added
- Every tool reports the four MCP tool annotations —
readOnlyHint,destructiveHint,idempotentHint,openWorldHint— set by what the tool does (docs/tools.mdlists them). They are hints for the client, not permissions:NORACU_READ_ONLY=1is unchanged and still decides what is refused.browser_launch,browser_fill,phone_launchandphone_homeare marked not idempotent until measured otherwise.
Tests
- The iPhone driver's smoke tests run all 48 cases when run as a script (
npm run test:imctl); a hand-kept list ran 28 of them. CI installs pyobjc and runs them. - The local "gap" cases count only an attempt whose click was actually sent; a click refused before sending is repeated (up to 5 attempts), any
delivered_verifiedfails at once, and every attempt's full result is printed. A local case this Mac cannot run — the notification banner case while a Focus mode holds banners back — is reported as not run.
Tested
- macOS 27.2, cliclick 5.1, Node 26.10.0, one iPhone on iOS 27 (English) through iPhone Mirroring.
- With hardware cases: 151/151 in the repository and again from the packed tarball installed in an empty directory. Without hardware (
NORACU_CI=1): 136/136. Engine unit tests: 151/151. iPhone driver smoke tests: 48/48. - On the device,
phone_open:X→open_not_confirmedafter 16 s; a name that is not installed andPinduoduo→app not foundafter 10–11 s;Settingsand拼多多reportedopened … delivery=delivered_verified.
Known limits
- Unchanged from 0.2.3.