d3ro-voice/packages/core/__tests__
Yun Chan 03cd8bf890 feat(desktop): screen text capture (OCR) overlay with selectable text
A rebindable screen-ocr action (default Ctrl+Alt+O) freezes the monitor under the cursor and
covers it with a focusable overlay. Text is selected by flow drag, rectangle drag, double/triple
click, Shift+click or Ctrl+A, then copied, saved as PNG or searchable PDF, translated,
summarized, read aloud, opened as a link or searched.

- Selection, text assembly and the PDF document are pure functions in @d3ro/core/screen-ocr,
  shared by the main process and the overlay.
- Recognition uses Windows.Media.Ocr through powershell.exe -EncodedCommand with 2x upscaling;
  the capture reaches disk only as a temp PNG that is removed right after recognition.
- Capture uses GDI BitBlt for the target monitor (39 ms) because desktopCapturer captured all
  three monitors and took 2.9 s when DXGI duplication timed out.
- The accelerator is reserved only where the feature is available, so macOS does not swallow
  the key for a feature it cannot run (fails closed with a message).

Map: CAP-17 [~], GAP-OCR-01 (live hotkey journey not yet driven in the running app),
GAP-OCR-02 (macOS engine, mixed-language accuracy).
2026-11-20 15:16:37 +09:00
..
address-input.test.ts feat(desktop): built-in Han/Eng layout auto-switching, terminal/Vim support, and Unicode input 2026-10-27 10:48:07 +09:00
dictation-cleaner.test.ts feat(input,voice): instant first-word-after-focus PC layout fix and speech disfluency post-processing (INPUT-04, INPUT-19, AI-03, AI-05) 2026-10-29 19:05:01 +09:00
dictionary-limits-redteam-r3-26.test.ts fix: red-team round 3 hardening across desktop, mobile, core and server 2026-09-28 20:45:52 +09:00
dictionary-policy.test.ts fix(dictionary): let an edit clear the pronunciation and report duplicate renames 2026-09-28 00:53:46 +09:00
input-suggestion-redteam-r3-1.test.ts feat(desktop): built-in Han/Eng layout auto-switching, terminal/Vim support, and Unicode input 2026-10-27 10:48:07 +09:00
instruction-template.test.ts feat(commands): multi-select ordered command pipeline with step reordering and single-pass composition (AI-05, AI-07) 2026-10-31 02:54:54 +09:00
keybinding-altgr-redteam-r3-8.test.ts fix: red-team round 3 hardening across desktop, mobile, core and server 2026-09-28 20:45:52 +09:00
keybinding-i18n.test.ts
keybinding-redteam-r2-16.test.ts fix(keybinding): stop stealing chords on Windows, release mouse holds, keep cleared actions 2026-09-28 02:16:19 +09:00
keybinding-runtime.test.ts fix(desktop): resolve Ctrl+Alt+Enter accept drops and duplicate typo LLM checks 2026-10-31 04:45:55 +09:00
keybinding.test.ts
llm-chat.test.ts
meeting-markdown-inline-redteam-r3-27.test.ts fix: red-team round 3 hardening across desktop, mobile, core and server 2026-09-28 20:45:52 +09:00
meeting-markdown.test.ts
meeting-transcript-segments.test.ts feat: ship Wave 5-6 multi-surface hygiene, optimization, and bug fixes 2026-11-14 11:51:41 +09:00
meeting-transcript.test.ts
personal-graph-terms-multiscript.test.ts fix(core): extract personal-graph terms from any script 2026-09-28 00:54:04 +09:00
personal-graph.test.ts feat(input): upgrade graph personalization, english morphology detection, and atomic SendInput replacement 2026-10-29 08:16:26 +09:00
personal-ngram.test.ts feat(input): upgrade graph personalization, english morphology detection, and atomic SendInput replacement 2026-10-29 08:16:26 +09:00
pii-redactor.test.ts feat: ship Wave 5-6 multi-surface hygiene, optimization, and bug fixes 2026-11-14 11:51:41 +09:00
plan-catalog.test.ts chore: land in-progress workspace changes before 1.16.2 2026-11-05 21:58:44 +09:00
popup-placement.test.ts fix(suggestion): place overlay in DIPs, size it to content, and harden suggestion sessions 2026-09-28 02:16:15 +09:00
ports.test.ts feat: ship Wave 5-6 multi-surface hygiene, optimization, and bug fixes 2026-11-14 11:51:41 +09:00
screen-ocr.test.ts feat(desktop): screen text capture (OCR) overlay with selectable text 2026-11-20 15:16:37 +09:00
shared-utilities.test.ts feat: ship Wave 5-6 multi-surface hygiene, optimization, and bug fixes 2026-11-14 11:51:41 +09:00
suggestion-confidence.test.ts feat(desktop): built-in Han/Eng layout auto-switching, terminal/Vim support, and Unicode input 2026-10-27 10:48:07 +09:00
suggestion-continuation.test.ts feat(desktop): built-in Han/Eng layout auto-switching, terminal/Vim support, and Unicode input 2026-10-27 10:48:07 +09:00
suggestion-redteam-r1-1.test.ts
suggestion-redteam-r2-3.test.ts fix(suggestion): place overlay in DIPs, size it to content, and harden suggestion sessions 2026-09-28 02:16:15 +09:00
template-field-policy.test.ts fix: red-team round 3 hardening across desktop, mobile, core and server 2026-09-28 20:45:52 +09:00
terminal-prompt.test.ts fix(desktop): prevent modifier key buffer resets, clipboard race on terminal accept, and redundant UIA settle snapshots 2026-10-31 04:19:53 +09:00
transcript-chunking-redteam-r3-3.test.ts fix: red-team round 3 hardening across desktop, mobile, core and server 2026-09-28 20:45:52 +09:00
transcript-correction-hardening.test.ts fix(meeting): keep polish from inventing markers or dropping qualifiers 2026-11-06 23:24:30 +09:00
transcript-correction.test.ts feat(meeting): ground AI transcript correction in learned vocabulary 2026-11-06 17:22:54 +09:00
typo-correction.test.ts fix(input,core): fix live punctuation typo triggers, expected insert cleanup, and ngram scan 2026-11-14 15:26:18 +09:00
url-policy-redteam-r2-9.test.ts fix(security): trust file: URLs only inside the app renderer directory 2026-09-28 02:16:18 +09:00
url-policy.test.ts
voice-llm-route.test.ts fix(voice): stop mic-test ref stealing, unblock action queue, keep tail audio, and move context/LLM routing behind ports and pure policies 2026-09-28 02:16:16 +09:00
write-policies-redteam-r2-1.test.ts fix(desktop): harden session, meeting, caption and LLM lifecycles; route LLM calls through the gateway 2026-09-28 02:16:15 +09:00
writing-context.test.ts feat(desktop): typo auto-correct and context-aware sentence prediction 2026-10-03 21:48:28 +09:00