{"id":203774,"target_id":"2667a5caeb03bd64","observed_at":"2026-11-25T21:26:10Z","from_subject":"sha256-+kc+WqqKzRCPaP8Yr9ppoznyu2MQi4cs8oY5R83phJQ=","to_subject":"sha256-u8qoCxsI5keFztcBnQ3m4DCflZgfZm29FpZqJNsZEUE=","from_toolset":"sha256-fmAQ3fp0sRGNkKBaE1eyCTxy3OF2Wbqib4442mopQfA=","to_toolset":"sha256-B0A5obOAsvJeXkUn4Yx8qOgcK2B6v/oQweic3UkyThE=","summary":{"added":[],"removed":[],"modified":[{"tool":"js","fields":{"description":[["=","Run JavaScript in a persistent computer-use session. Put a whole step in one call: several actions, then one read. Top-level const/let/function/await persist across calls until js_reset (redeclaring is fine).\n\nconst calc = await ui.getApp(\"Calculator\");   // name, bundle id, or \"pid:123\"; launches if needed, does not steal focus\nawait calc.pressKey(\"Escape\");                 // xdotool syntax: Return, Tab, ctrl+a, super+c (super = Cmd)\nawait calc.typeText(\"12*3=\");                  // \"\\n\" presses Return\nawait calc.getAXState();                       // text accessibility tree; later reads return only changes\n\nReads: getAXState({disableDiffing, frames, menus, window}) returns \"<index> <role> \\\"label\\\" value=...\" lines. frames:true adds @x,y wxh in image pixels. "],["-","getScreenshot() and getAXStateAndScreenshot() are the only calls that return an image. "],["=","Every read emits its output; pass {emit:false} to just get the value. app.find({role, label, id, text}) and app.nodes() return elements as data without printing; app.text(i) gives a field's full text; app.expect(query) checks a step and stops the call with the window shown if it fails; app.scrollTo(query) scrolls until an element shows."],["+","\nToken cost, cheapest first: find()/nodes()/text() (data, nothing printed) < getAXState() diff < app.ocr() (text with clickable @x,y frames, also diffed on repeat) < getScreenshot() (an image, by far the most expensive). When a read shows only one or two elements (remote desktops, virtual machines, canvases, games), the screen is drawn, not described: use app.ocr(), not screenshots. Take a screenshot only to judge layout or visuals that text cannot convey. To collect text from a long list, loop scroll + ocr({emit:false}) inside one call and return only the text you need."],["=","\nActions: click(target, {button, count, modifiers}), doubleClick, rightClick, scroll(target, dy), drag(from, to), setValue(index, v), focus(index), selectText(index, {start, length}), performSecondaryAction(index, \"Show Menu\"), listActions(index), activate(), windows(), frame(index), center(index).\nA target is an element index from the tree, or [x, y] pixels in the window image (same space as the screenshot and frames). Prefer indices; "],["-","use pixels "],["=","when the tree has nothing "],["-","useful"],["+","useful,"],["="," "],["-","(remote"],["+","click"],["="," "],["-","desktops,"],["+","the"],["="," "],["-","canvases)."],["+","[x, y] center of an ocr() frame."],["="," Input stays in the background (focus and the user's cursor don't move); "],["-","pass {foreground: true} to"],["+","if"],["="," an action "],["-","if"],["+","fails,"],["="," "],["-","an"],["+","retry"],["="," "],["-","app"],["+","it"],["="," "],["-","ignores"],["+","once with {window: <title>} before passing {foreground: true}, and only for the step that needs"],["="," it.\nui.listApps() lists running apps. console.log adds text to the result. help() or help(\"click\") prints the full API. If a result says \"Stopped:\" the user took over (switched apps or pressed Escape): stop and ask before continuing."]]}}],"detail":"full","newAddresses":[],"newAddressesTotal":0},"label_id":"urn:uuid:6c8841cb-85b6-4e35-8d04-72d035711b3a","run_id":458454,"from_package_version":"0.5.1","to_package_version":"0.7.0","from_server_version":"0.5.1","to_server_version":"0.7.0","from_registry_version":"0.5.1","to_registry_version":"0.7.0","name":"io.github.vpatel9202/nostrings","endpoint":"npm:nostrings","title":"nostrings"}