char-slop/ai-dots

ai dotfiles

git clone https://git.t4t.associates/char-slop/ai-dots

Charlotte Somcomputer-use: allow native-resolution monitor selection under Windows67898d2

main
6 files

files

README.md1.8 KiB
backend.ts5.1 KiB
wayland.ts10.3 KiB
windows.cs10.7 KiB
windows.ps11.5 KiB
windows.ts2.4 KiB

Desktop backends

computer-use.ts owns action sequencing, screenshot IDs/recall, and tool rendering. Each backend handles desktop actions and closes its per-call input session.

Windows screenshots include the cursor and the entire virtual desktop, scaled into 1920×1080. Pointer coordinates use that same space, including monitors with negative native origins and differing DPI settings. Unicode text is injected without modifying the clipboard; named keys retain the tool's XKB-style spelling. URLs open through the default browser, which decides whether to reuse a tab.

Run Pi in an interactive, unlocked Windows desktop session. Input cannot cross Windows integrity-level boundaries: controlling an elevated application requires Pi to be elevated too. UAC secure desktops and login/locked screens are unsupported. Do not elevate Pi unless you need that access. Enterprise policy can prevent the PowerShell helper from running. Closing stdin lets it release its held inputs; if it hangs, cleanup forcibly terminates it after five seconds.

pnpm test tests shared sequencing/recall and the Windows helper transport without interacting with the desktop. To also test real Windows capture, run in PowerShell:

$env:PI_TEST_WINDOWS_DESKTOP = '1'
pnpm test

The native smoke test only captures a screenshot in memory; it does not click, type, open a browser, or save the screenshot.