Skip to content

noracu 0.2.5

Choose a tag to compare

@sgInnora sgInnora released this 07 Nov 01:40
· 7 commits to main since this release

noracu 0.2.5

mac_paste now sends a real ⌘V; the check of which window is on top reads the Dock and notification banners correctly; and iPhone results claim only what the screen shows. SECURITY.md opens with what noracu hands to your model and what it can reach.

Fixed

  • mac_paste sends ⌘V as the V key (key code 9) with ⌘ held, posted by the accessibility engine, instead of cliclick's kd:cmd t:v ku:cmd. On macOS 27.2 with the Pinyin keyboard layout cliclick's version reached TextEdit as nothing, or as a plain "v" typed into the document, so the text was never pasted (reported delivered_unverified). Under a Dvorak layout, where key code 9 is K, mac_paste refuses (not_delivered) instead of sending ⌘K; "Dvorak - QWERTY ⌘" layouts are fine. mac_paste no longer needs cliclick.
  • A point under the Dock no longer counts as the window behind it. On macOS 27.2 the Dock is one full-display window that lets clicks through, and the on-top check skipped it, so mac_scroll scrolled a window whose center was under the Dock and a mac_click at x,y there would have been sent. The strip each display keeps for the Dock now counts as covered by the Dock (occluded, nothing sent). The same check guards physical clicks and drags on an element.
  • While a notification banner shows, a point away from it is no longer occluded by Notification Center, which on macOS 27.2 then keeps a full-display window above everything. Only a banner's or alert's own frame counts as covered; when those frames cannot be read, or the notification list is open, the whole screen still counts as covered.

Changed

  • mac_scroll without element_index scrolls at the center of the frontmost app's front window, and only when that app's window is on top at that point — otherwise occluded (or no_window) and nothing is scrolled.
  • phone_type is delivered_verified only when OCR sees the typed text, within its 2.5 s check, at a spot where it was not before the paste, below the strip where the status bar and notification banners are drawn. Text that shows up only later is delivered_unverified, and the result says OCR cannot tell the paste from a line repeating it (such as a search result). A text of one to three characters (spaces and case aside) is never confirmed by a sighting and never puts the clipboard back.
  • phone_scroll that changed the screen is delivered_unverified: a notification or an animation changes the screen too.
  • phone_open taps nothing when Spotlight's Top Hit card shows the app name at two or more spots: open_not_confirmed, back on the Home Screen.

Docs

  • SECURITY.md: a new section on what noracu hands to your model and what it can reach — text returned to the model, the clipboard, privacy-consent and authorization dialogs, secrets an app displays, browser cookies, the iPhone Mirroring session — and its boundaries (macOS permissions belong to the host app; noracu does not constrain the host's own shell; tool annotations restrict nothing). New threat 18: the clipboard on the phone path.

Tested

  • macOS 27.2, Node 26.10.0, one iPhone on iOS 27 (English) through iPhone Mirroring.
  • With hardware cases: 153/153 in the repository and again from the packed tarball installed in an empty directory. Without hardware (NORACU_CI=1): 137/137. Engine unit tests: 156/156. iPhone driver smoke tests: 49/49.
  • The fixes above came from attended device runs on this Mac and iPhone.

Known limits

  • mac_key still sends chords on a character key (such as cmd-c) through cliclick. On the tested Mac (Pinyin layout) the same cliclick call that mac_key "cmd-v" makes typed a plain "v" into TextEdit, while cmd-a selected all; use mac_paste to paste.
  • Otherwise unchanged from 0.2.4.