What is this about?
Problem
The capture IPC test script is out of date and won't run as-is:
- References
preload.js but the real file is preload.cjs
- Calls
capturePrimaryScreen with old { onHide, onShow } API; real signature is (win, applyStealth) per ai/capture.js
Where to look
scripts/test-capture-ipc.mjs
ai/capture.js — current API
preload.cjs — correct preload path
Acceptance criteria
Skills needed
Read existing code and align a script — good "code archaeology" starter task.
What is this about?
Problem
The capture IPC test script is out of date and won't run as-is:
preload.jsbut the real file ispreload.cjscapturePrimaryScreenwith old{ onHide, onShow }API; real signature is(win, applyStealth)perai/capture.jsWhere to look
scripts/test-capture-ipc.mjsai/capture.js— current APIpreload.cjs— correct preload pathAcceptance criteria
npx electron scripts/test-capture-ipc.mjs)Skills needed
Read existing code and align a script — good "code archaeology" starter task.