feat(stealth-ui): native Vision/AX extractors, session clipboard tracking, human auto-typer & stealth enhancements - #51
Open
JenilRevaliya wants to merge 11 commits into
Open
Conversation
added 5 commits
August 24, 2026 00:32
…ing, and screen protection
…te diagrams, and sequence flows
|
Someone is attempting to deploy a commit to the csrsoftwares' projects Team on Vercel. A member of the Team first needs to authorize it. |
added 6 commits
August 24, 2026 00:37
…itecture flows into main README
…icons, and mic toggle
…phasizing SVG badges and demo videos
…tions, problems solved, and original assets in a highly visual format
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🚀 OpenCluely Architecture & UI/UX Feature Showcase
Comprehensive Deep-Dive into Stealth UI, Native Swift Text Extraction, Session Clipboard Tracking, and Auto-Typing
📐 System Architecture Overview
flowchart TD subgraph Input Layer A[Microphone Stream] -->|Audio Stream| VAD[VAD / Local Whisper Engine] B[Screen Region] -->|Native Swift API| OCR[Vision OCR / AX Text Extract] C[System Clipboard] -->|Polling Tracker| CLIP[Clipboard History Manager] end subgraph Core Processing Engine VAD --> LLM[Gemini 1.5 Pro / Flash Model Engine] OCR --> LLM CLIP --> LLM end subgraph Stealth UI Layer LLM -->|Streamed Markdown| UI[Main Glass Command Bar] LLM -->|Auto-Type Queue| TYPER[Human Typer Script] UI -->|Dynamic Opacity| BODY[Document Body Renderer] end subgraph Security & Stealth Enforcement UI -->|NSWindowSharingNone| PROTECT[Screen Capture Invisibility] UI -->|screen-saver Level 2| TOP[Always-On-Top Multi-Desktop] end🔄 End-to-End Execution Sequence
sequenceDiagram autonumber actor User participant Bar as Main Control Bar participant Target as Target Box UI participant Swift as Swift Extractor (AX / Vision) participant LLM as Gemini AI Service participant Typer as Human Auto-Typer User->>Target: Drag Selection & Click Extract Target->>Swift: Invoke vision_extract or ax_extract Swift-->>Target: Return Extracted String Target->>LLM: Send Prompt + Extracted Text Context LLM-->>Bar: Stream Response Chunk-by-Chunk User->>Bar: Trigger Auto-Type Command Bar->>Typer: Dispatch Code Payload Typer-->>User: Inject Simulated Keystrokes into Active Window🎯 Major System Features & Wireframes
1. Target Box & Native Text Extractors (Vision OCR & No-OCR AX API)
UI / UX Wireframe
Feature Overview
target-box.html) allowing users to highlight any screen section.Problem Solved
Low-Level Implementation Specs
scripts/vision_extract.swift): Invokes macOSVNRecognizeTextRequestfor fast, offline text recognition directly from screen coordinates.scripts/ax_extract.swift): Leverages macOSAXUIElementAPIs to traverse UI string trees directly without taking screenshots or running OCR.🔍 View Native Swift Extractor Implementation Details
Results Achieved
2. Session-Aware Clipboard History Manager
UI / UX Wireframe
Feature Overview
Problem Solved
Low-Level Implementation Specs
src/managers/clipboard-tracker.manager.js): Non-blocking polling manager with duplicate deduplication.#clipboardPopover): Built inline intoindex.html, eliminating separate window creation overhead.🔍 View Clipboard Session Grouping Algorithm
Results Achieved
3. Human-Simulated Auto-Type Engine
UI / UX Wireframe
Feature Overview
Problem Solved
Low-Level Implementation Specs
scripts/human_typer.py): Sends native OS keyboard events with variable delays (15ms to 65ms per keystroke) and pauses after newline characters.src/services/autotype.service.js): Handles IPC dispatch, cancellation hotkeys (Escape), and progress events.🔍 View Human Keystroke Timing Distribution
Results Achieved
Escapehalts typing immediately without lingering background processes.4. Glassmorphic UI Minimalism & Dynamic Opacity Binding
UI / UX Wireframe
Feature Overview
Problem Solved
Low-Level Implementation Specs
src/ui/main-window.js): Applies a quadratic curve (Math.pow(val / 100, 2)) todocument.body.style.opacity, providing precise control at ultra-low transparency values.🔍 View Quadratic Opacity Curve Formula
Results Achieved
5. Universal Stealth Protection & Multi-Desktop Workspace Persistence
State Machine Diagram
stateDiagram-v2 [*] --> WindowCreated WindowCreated --> ApplyStealth: setContentProtection(true) ApplyStealth --> SetAlwaysOnTop: setAlwaysOnTop(true, 'screen-saver', 2) SetAlwaysOnTop --> PinWorkspaces: setVisibleOnAllWorkspaces(true) PinWorkspaces --> ActiveState ActiveState --> BlurEvent: User switches space / window blur BlurEvent --> EnforceStealth: Trigger enforceAlwaysOnTop() EnforceStealth --> ActiveStateFeature Overview
Problem Solved
Low-Level Implementation Specs
src/managers/window.manager.js): EnablessetContentProtection(true)across all window instances (NSWindowSharingNoneon macOS,WDA_EXCLUDEFROMCAPTUREon Windows).setVisibleOnAllWorkspaces(true, { visibleOnFullScreen: true, skipTransformProcessType: true })universally.🔍 View Window Manager Stealth Implementation
Results Achieved
6. UX & Stability Bug Fixes
Feature Overview
Problem Solved
Low-Level Implementation Specs
resizeWindowToContent()inmain-window.jsto dynamically compute the total bounding box of the main toolbar plus any open popovers, resizing the Electron window seamlessly to prevent clipping.window.getPosition()) and restores the exact placement on screen instead of defaulting to center-bottom.7. Domain-Specific Prompts (MCQ & DSA Solvers)
Feature Overview
Problem Solved
Low-Level Implementation Specs
prompt-loader.js): Injects contextual system constraints forcing the Gemini LLM to output the correct multiple-choice option (A/B/C/D) immediately in bold, followed by a concise 1-2 sentence justification.📊 Before vs. After System Comparison
document.bodyquadratic opacity bindingNSWindowSharingNone🛠️ Updated File Structure