Skip to content

About

No description, website, or topics provided.

Resources

Contributing

Stars

15 stars

Watchers

1 watching

Forks

Repository files navigation

๐Ÿš€ Antigravity Auto Accept v5.3.6

Automatically accept supported agent approval buttons in Antigravity IDE on Windows. Windows ไธŠ่‡ชๅŠจๆŽฅๅ— Antigravity IDE ๆ”ฏๆŒ็š„ Agent ๅฎกๆ‰นๆŒ‰้’ฎ๏ผŒๆ— ้œ€่ฐƒ่ฏ•็ซฏๅฃๆˆ–ๅ‘ฝไปค็™ฝๅๅ•้…็ฝฎใ€‚

License: MIT VS Code Platform Remote

Tired of permission popups interrupting your AI workflow? This extension starts automatically in a trusted Antigravity workspace and uses Windows UIAutomation to accept supported Run, Accept, and Allow buttons. No CDP port or executable patching is required.

ๅ—ๅคŸไบ†ๆƒ้™ๅผน็ช—ๆ‰“ๆ–ญไฝ ็š„ AI ๅทฅไฝœๆต๏ผŸ ๆ’ไปถๅœจๅฏไฟก็š„ Antigravity ๅทฅไฝœๅŒบ่‡ชๅŠจๅฏๅŠจ๏ผŒ้€š่ฟ‡ Windows UIAutomation ๆŽฅๅ—ๆ”ฏๆŒ็š„ Runใ€Acceptใ€Allow ็ญ‰ๅฎกๆ‰นๆŒ‰้’ฎใ€‚ๆ— ้œ€ CDP ็ซฏๅฃ๏ผŒไนŸไธไฟฎๆ”น IDE ็จ‹ๅบใ€‚

Native permissions and scope | ๅŽŸ็”Ÿๆƒ้™ไธŽ้€‚็”จ่Œƒๅ›ด

Antigravity's IDE settings documentation describes terminal Always Proceed, with denylist exceptions. Native permission features differ by product and platform: Antigravity 2.0 and Antigravity IDE have separate release tracks. If your installed version's native controls meet your needs, they may be sufficient.

ๅฎ˜ๆ–น IDE ่ฎพ็ฝฎๆ–‡ๆกฃๆไพ›็ปˆ็ซฏ Always Proceed๏ผ›ๅŽŸ็”Ÿๆƒ้™่ƒฝๅŠ›ๅ› ไบงๅ“ใ€็‰ˆๆœฌๅ’Œๅนณๅฐ่€Œๅผ‚๏ผŒไธ่ƒฝๆŠŠ Antigravity 2.0 / CLI ็š„ Turbo ่ฏดๆ˜Ž็›ดๆŽฅๅฝ“ๆˆๆœฌๆœบ IDE 2.5.5 ๅทฒ้ชŒ่ฏ็š„่ฎพ็ฝฎใ€‚ๅฆ‚ๆžœๅฝ“ๅ‰็‰ˆๆœฌ็š„ๅŽŸ็”Ÿ่ฎพ็ฝฎๅทฒ็ปๆปก่ถณ้œ€ๆฑ‚๏ผŒๅฏไปฅ็›ดๆŽฅไฝฟ็”จใ€‚่ฟ™ไธชๆ‰ฉๅฑ•ไฟ็•™็š„ไปทๅ€ผๆ˜ฏๅ…ผๅฎนไปๆ˜พ็คบๅฎกๆ‰นๆŒ‰้’ฎ็š„ๅทฅไฝœๆตๅ’Œๆ—ง็‰ˆ IDE๏ผ›ๆœฌๆฌกๅฎžๆต‹็š„ๆ˜ฏ IDE 2.5.5 ็š„ไธ€ๆฌกๅ…่ฎธๅฎกๆ‰นๅก็‰‡ใ€‚

  • Installation enables scanning by default; a trusted workspace, local Windows host, and accessible IDE window are required. The extension does not change the IDE's permission settings.
  • Strict Mode, explicit denials, enterprise policies, sandbox restrictions, and browser denylist entries remain enforced by Antigravity. This is not a guarantee that every command can execute.
  • Workspace trust prompts and generic Save, OK, Yes, or Retry buttons are not agent approvals and are excluded. English and Chinese approval labels are supported.
  • Command permission cards select Yes, allow this time and submit the same card. Browser domain cards select Allow Once, including the menu inside More actions in a narrow sidebar. Command cards in the conversation or input area keep the same strict form checks; long cards scroll only the verified action control into view. The scanner does not select Always Allow or expand historical command records.
  • Narrow browser menus wait until the target IDE window is foreground and user input has been idle for 500ms; scanning resumes automatically when these conditions return. Direct Allow Once buttons and other supported approvals retain their background action path.
  • ๆต่งˆๅ™จ็ช„่œๅ•ๅœจๅฏนๅบ” IDE ็ช—ๅฃๅค„ไบŽๅ‰ๅฐใ€่พ“ๅ…ฅ็ฉบ้—ฒ 500ms ๅŽ่‡ชๅŠจๅค„็†๏ผ›ๅˆ‡่ตฐๆˆ–ๆญฃๅœจ่พ“ๅ…ฅๆ—ถๆš‚็ผ“๏ผŒๆ— ้œ€ๆ‰‹ๅŠจ็‚นๆ‰นๅ‡†ใ€‚ๅฎฝๆ  Allow Once ๅ’Œๅ…ถๅฎƒๆ”ฏๆŒ็š„ๅฎกๆ‰น็ปง็ปญไฝฟ็”จๅŽๅฐๅŠจไฝœ่ทฏๅพ„ใ€‚
  • InvokePattern can work without moving the cursor. Physical fallback yields to user input and only acts on a revalidated button in the foreground Antigravity window; covered or changed targets are skipped.
  • One scanner covers the desktop session's Antigravity windows from the same installation path. Other enabled windows wait to take over. Stop disables this window's scanner; another enabled window may continue scanning, including buttons in the stopped window. Workspace trust gates the scanner's host; scanning is not isolated per workspace.

้ป˜่ฎคๅฎ‰่ฃ…ๅณๅฏๅŠจๆ‰ซๆ๏ผŒไฝ†ๅ‰ๆๆ˜ฏๅฏไฟกๅทฅไฝœๅŒบใ€ๆœฌๅœฐ Windows ๅ’Œๅฏ่ฎฟ้—ฎ็š„ IDE ็ช—ๅฃใ€‚โ€œ้›ถ้…็ฝฎโ€ๆŒ‡ๆ— ้œ€้ขๅค–ๆ‰ซๆๅ™จ้…็ฝฎ๏ผŒไธไปฃ่กจ็ป•่ฟ‡ๆ‰€ๆœ‰ๆƒ้™ใ€‚ๆœช้’ˆๅฏนๆฏไธช IDE ็‰ˆๆœฌใ€่ฟœ็จ‹็Žฏๅขƒๅ’Œๅฎกๆ‰น็ฑปๅž‹่ฟ›่กŒๅฎžๆœบ้ชŒ่ฏใ€‚

Current maintenance: fhgffy, with Codex assisting fixes and tests. See CONTRIBUTING.md to help maintain the project. Historical Git commit authorship is preserved.

Window process and cross-architecture verification: docs/verification-2026-10-07-process.md. Latest user-input interference verification: docs/verification-2026-10-07-input.md. Multi-window and CI verification: docs/verification-2026-10-07.md. Earlier runtime notes remain in docs/verification-2026-10-05.md. A result on one IDE version does not establish compatibility with every permission type or future release.


โœจ How It Works | ๅทฅไฝœๅŽŸ็†

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  Extension Host (TypeScript)                    โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”      โ”‚
โ”‚  โ”‚ Spawns PowerShell background process  โ”‚      โ”‚
โ”‚  โ”‚ 500ms polling ยท 1500ms cooldown       โ”‚      โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜      โ”‚
โ”‚                  โ”‚ stdout                        โ”‚
โ”‚                  โ–ผ                               โ”‚
โ”‚  Parse ___CLICK_INVOKE___ / ___CLICK_PHYSICAL___โ”‚
โ”‚  โ†’ Log to Output Channel                       โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  PowerShell (autoClicker.ps1)                   โ”‚
โ”‚                                                 โ”‚
โ”‚  1. Scan Chrome_WidgetWin_1 windows             โ”‚
โ”‚     โ†’ Verify the owning Antigravity executable โ”‚
โ”‚                                                 โ”‚
โ”‚  2. Find all Button controls (UIAutomation)     โ”‚
โ”‚     โ†’ Match supported agent approval labels    โ”‚
โ”‚       in English and Chinese                   โ”‚
โ”‚     โ†’ Exclude: Run and Debug, Run Task,         โ”‚
โ”‚       Always run, Run Extension, ...            โ”‚
โ”‚                                                 โ”‚
โ”‚  3. Click via InvokePattern (API-level)         โ”‚
โ”‚     โ†’ Fallback: user32.dll physical mouse click โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Two-Layer Click | ๅŒๅฑ‚็‚นๅ‡ป

Layer Mechanism
InvokePattern (preferred) UIAutomation API-level invocation without explicit cursor or focus changes. Provider behavior is checked in runtime verification.
Physical Click (fallback) Requires an idle foreground target, released input keys, and a revalidated button. Sends target movement, press/release and optional cursor restoration in one input batch, after checking screen and clip bounds.

๐ŸŒ Remote Development Support | ่ฟœ็จ‹ๅผ€ๅ‘ๆ”ฏๆŒ

The extension declares extensionKind: ["ui"], forcing it to always run on your local Windows machine โ€” even in remote environments.

ๆœฌๆ’ไปถๅฃฐๆ˜Ž extensionKind: ["ui"]๏ผŒๅง‹็ปˆๅœจๆœฌๅœฐ Windows ไพง่ฟ่กŒใ€‚

Environment Status
๐Ÿ–ฅ๏ธ Local Windows Supported scanner host; see verification notes for tested IDE versions
๐Ÿง Remote - WSL Local UI extension design; remote end-to-end verification pending
๐Ÿ”— Remote - SSH Local UI extension design; remote end-to-end verification pending
๐Ÿ“ฆ Remote - Container Local UI extension design; remote end-to-end verification pending

โšก Installation | ๅฎ‰่ฃ…

Prerequisites | ๅ‰็ฝฎ้œ€ๆฑ‚

  • Windows 10/11 โ€” Uses native powershell.exe and UIAutomation
  • No CDP port, no additional setup | ๆ— ้œ€ CDP ็ซฏๅฃ๏ผŒๆ— ้œ€้ขๅค–้…็ฝฎ

Steps | ๅฎ‰่ฃ…ๆญฅ้ชค

ๆ–นๅผไธ€๏ผšๆ’ไปถๅ•†ๅบ—ๆœ็ดขๅฎ‰่ฃ…๏ผˆๆŽจ่๏ผ‰

ๅœจ VS Code / Antigravity ็š„ๆ‰ฉๅฑ•้ขๆฟ (Ctrl+Shift+X) ไธญๆœ็ดข Antigravity Auto Accept๏ผˆๅผ€ๅ‘่€…: fhgffy๏ผ‰๏ผŒ็‚นๅ‡ปๅฎ‰่ฃ…ๅณๅฏใ€‚

ๆต่งˆๅ™จๅฎกๆ‰นไฟฎๅคไฝไบŽ v5.3.1๏ผŒไผš่ฏๅค–็ปˆ็ซฏๅฎกๆ‰นไธŽ้•ฟ่กจๅ•ๆปšๅŠจไฟฎๅคไฝไบŽ v5.3.2๏ผŒ่ฏทๆ ธๅฏนๅ•†ๅบ—ๆ˜พ็คบ็š„็‰ˆๆœฌใ€‚่‹ฅๅ•†ๅบ—ไปๆ˜พ็คบๆ—ง็‰ˆๆœฌ๏ผŒ่ฏทไฝฟ็”จ GitHub Release ไธญๅฏนๅบ”็‰ˆๆœฌ็š„ VSIXใ€‚

ๆ–นๅผไบŒ๏ผšไธ‹่ฝฝ VSIX | ๆ‰‹ๅŠจๅฎ‰่ฃ…ๆญฅ้ชค

  1. Download the latest .vsix from the Releases page ไปŽ Releases ้กต้ข ไธ‹่ฝฝๆœ€ๆ–ฐ .vsix ๆ–‡ไปถ

  2. Install via Ctrl+Shift+X โ†’ ... โ†’ Install from VSIX... ้€š่ฟ‡ๆ‰ฉๅฑ•้ขๆฟ โ†’ ... โ†’ ไปŽ VSIX ๅฎ‰่ฃ…...

  3. Run Developer: Reload Window or restart the IDE | ๆ‰ง่กŒ Developer: Reload Window ๆˆ–้‡ๅฏ IDE

๐Ÿ’ก Automatic startup โ€” Scanning starts automatically in a trusted Antigravity workspace. Windows permission and workspace trust choices remain yours. ่‡ชๅŠจๅฏๅŠจ โ€” ๅœจๅฏไฟก Antigravity ๅทฅไฝœๅŒบ่‡ชๅŠจๆ‰ซๆ๏ผŒ็ณป็ปŸๆƒ้™ไธŽๅทฅไฝœๅŒบไฟกไปปไป็”ฑ็”จๆˆทๅ†ณๅฎšใ€‚

Manual Toggle | ๆ‰‹ๅŠจๅฏๅœ

Press Ctrl+Shift+P and type:

  • Start Antigravity Auto Accept โ€” ๅผ€ๅฏ
  • Stop Antigravity Auto Accept โ€” ๅ…ณ้—ญ
  • Toggle Antigravity Auto Accept ON/OFF โ€” ๅˆ‡ๆข
  • Restart Antigravity Auto Accept Scanner โ€” ้‡ๅฏๅŽๅฐๆ‰ซๆๅ™จ
  • Show Antigravity Auto Accept Logs โ€” ๆ‰“ๅผ€่พ“ๅ‡บๆ—ฅๅฟ—

Optional Settings | ๅฏ้€‰่ฎพ็ฝฎ

The defaults still work with zero configuration. Advanced users can tune these in Settings:

้ป˜่ฎคไป็„ถๆ˜ฏ้›ถ้…็ฝฎๅณ็”จใ€‚้œ€่ฆๅพฎ่ฐƒๆ—ถ๏ผŒๅฏไปฅๅœจ่ฎพ็ฝฎ้‡Œไฟฎๆ”น๏ผš

Setting Default Purpose
antigravityAutoAccept.autoStart true Start scanning automatically when the extension activates
antigravityAutoAccept.pollMs 500 UIAutomation scan interval
antigravityAutoAccept.cooldownMs 1500 Minimum delay after an approval action attempt
antigravityAutoAccept.restoreCursor true Include cursor restoration in the verified fallback input batch
antigravityAutoAccept.showNotifications false Show start/stop/restart notifications

๐Ÿ“‹ Changelog | ๆ›ดๆ–ฐๆ—ฅๅฟ—

v5.3.6 โ€” Button Filtering and Release Delivery (2026-10-07)

  • Skip unrelated button state and geometry queries after the existing name filter; preserve action-time host, input and approval checks.
  • Add production-loop regressions for ordinary buttons with throwing getters and disabled, offscreen, invalid-geometry and valid approval candidates.
  • Publish verified main CI packages to GitHub Releases after tests pass. Marketplace and Open VSX publishing use configured credentials and report missing credentials explicitly.
  • See publishing instructions for release retry and store verification.

v5.3.5 โ€” Window Process Queries (2026-10-07)

  • Query the current window's process image directly, avoiding repeated system-wide process enumeration.
  • Recognize 64-bit IDE hosts from a 32-bit scanner and recheck the full installation path before each approval action.
  • Reject exited processes on the same native handle; close query handles after success, failure or exceptions.
  • Add real process-path and controlled failure regressions to PS5 x64/x86 and PS7 x64 CI.

v5.3.4 โ€” User Input and Approval Identity (2026-10-07)

  • Yield physical fallback to active typing, dragging, held keys, covered targets and changed approval controls.
  • Submit movement, press/release and optional restoration in one verified input batch; validate pixel normalization, screen/clip bounds and x86/x64 input layouts.
  • Recheck browser permission target identity and menu ownership; support precisely linked menus already opened by the user.
  • Add production-method input regressions to Windows CI for PS5 x64/x86 and PS7 x64.

v5.3.3 โ€” Multi-window Reliability (2026-10-07)

  • Rotate approval attempts across IDE windows so a busy first window does not delay others indefinitely.
  • Isolate stale window/control failures, recheck action state after host lookups, and avoid a second physical click after an Invoke error.
  • Keep the scanner running when notification preferences change; preserve a deliberate OFF during a workspace-trust transition.
  • Validate both PowerShell engines, concurrent scanner ownership and handoff, source encoding, and VSIX contents in GitHub CI.
  • Permission forms require a readable SelectionItem selection; unsupported legacy-only controls are skipped.

v5.3.2 โ€” Terminal Approval Form Placement (2026-10-06)

  • Recognize dedicated command permission forms rendered outside the conversation.
  • Scroll the verified one-time option and same-form Submit into view for long commands.
  • Recheck the permission target, selection, form identity and owning host before acting; keep ordinary questions excluded.

v5.3.1 โ€” Browser Approval Cards (2026-10-06)

  • Recognize the browser domain permission card and choose Allow Once.
  • Handle the narrow sidebar where Allow Once is folded into More actions.
  • Keep browser approval scoped to the active card and preserve command one-time approvals.

v5.3.0 โ€” Compatibility and Lifecycle Repair (2026-10-05)

  • Support the current one-time permission card and its scoped Submit button; exclude completed Run tool records.
  • Support the current Antigravity IDE.exe and legacy Antigravity host names; verify window process ownership.
  • Repair stop/start races, cancel delayed restarts, and let waiting windows take over scanner ownership.
  • Support Chinese approval labels; exclude generic dialog actions and allow negative multi-monitor coordinates.
  • Verify the physical click target, handle hidden windows conservatively, and stop when the owning extension host exits.
  • Add lifecycle and scanner regression tests, Windows CI, and public contributor instructions.
  • Explain native Always Proceed and the limits of automatic approval.

v5.2.0 โ€” Safer Matching + Cleaner Controls (2026-07-28)

  • ๐Ÿ›ก๏ธ ่ฏฏ็‚นไฟฎๅค๏ผšๆ”ถ็ดงๅ‰็ผ€ๅŒน้…่พน็•Œ๏ผŒApplication Settingsใ€Continuous Integration ่ฟ™็ฑปๆ™ฎ้€šๆŒ‰้’ฎไธๅ†่ขซ Apply / Continue ่ฏฏๅˆค
  • ๐Ÿ–ฑ๏ธ ้ผ ๆ ‡ไฝ“้ชŒไผ˜ๅŒ–๏ผš็‰ฉ็†็‚นๅ‡ปๅ›ž้€€ๅŽ้ป˜่ฎคๆขๅค้ผ ๆ ‡ๅŽŸไฝ็ฝฎ๏ผŒๅ‡ๅฐ‘ๆŠข้ผ ๆ ‡ๆ„Ÿ
  • โš™๏ธ ๆ–ฐๅขž่ฎพ็ฝฎ๏ผšๆ”ฏๆŒ้…็ฝฎ่‡ชๅŠจๅฏๅŠจใ€ๆ‰ซๆ้—ด้š”ใ€็‚นๅ‡ปๅ†ทๅดใ€้ผ ๆ ‡ๆขๅคๅ’Œ้€š็Ÿฅๅผ€ๅ…ณ
  • ๐Ÿงญ ๆ–ฐๅขžๅ‘ฝไปค๏ผšๆ”ฏๆŒๅ‘ฝไปค้ขๆฟ้‡ๅฏๆ‰ซๆๅ™จใ€ๆ‰“ๅผ€ๆ‰ฉๅฑ•ๆ—ฅๅฟ—
  • ๐Ÿงช ๆต‹่ฏ•้“พไฟฎๅค๏ผšnpm run lint ไธๅ†ไพ่ต–็ผบๅคฑ็š„ ESLint๏ผŒๆ–ฐๅขž PowerShell ๅŒน้…่ง„ๅˆ™่‡ชๆต‹
  • ๐Ÿ”’ ไพ่ต–ๆธ…็†๏ผš็งป้™ค v5.0 CDP ๅฎž้ชŒ้—็•™็š„ ws ไพ่ต–๏ผŒnpm audit ๅ›žๅˆฐ 0 ๆผๆดž

v5.1.0 โ€” Back to Basics: UIAutomation Revival (2026-03-29)

  • ๐Ÿ”„ ๆžถๆž„ๅ›žๅฝ’๏ผšไปŽ CDP ๆ–นๆกˆๅ›žๅฝ’ UIAutomation ็›ดๆŽฅๆŒ‰้’ฎๆฃ€ๆต‹ใ€‚UIAutomation ่ƒฝ็œ‹ๅˆฐ Antigravity ็š„ๆƒ้™ๆŒ‰้’ฎๅนถๆ”ฏๆŒ InvokePattern๏ผŒๆ— ้œ€ CDP ็ซฏๅฃ
  • ๐Ÿงน ๆž็ฎ€้‡ๅ†™๏ผšextension.ts ไป… ~150 ่กŒ๏ผŒautoClicker.ps1 ไป… ~120 ่กŒใ€‚ๅŽป้™คๆ‰€ๆœ‰ Oracle/็Šถๆ€ๆฃ€ๆต‹/ๆŒ‡็บนๅŽป้‡็ญ‰ๅคๆ‚้€ป่พ‘
  • ๐ŸŽฏ ๆ™บ่ƒฝๅŒน้…๏ผšๅ‰็ผ€ๅŒน้… + ็ฒพ็กฎๅŒน้… + ๆŽ’้™คๅˆ—่กจ๏ผŒ่ฆ†็›– 12 ็ฑปๆƒ้™ๅ…ณ้”ฎ่ฏ๏ผŒๆŽ’้™ค IDE ่œๅ•่ฏฏ่งฆ
  • โšก ๅŒๅฑ‚็‚นๅ‡ป๏ผšไผ˜ๅ…ˆ InvokePattern๏ผˆๆ— ็„ฆ็‚นๆŠขๅ ๏ผ‰๏ผŒๅคฑ่ดฅๆ—ถๅ›ž้€€ user32.dll ็‰ฉ็†็‚นๅ‡ป
  • ๐Ÿ”„ Architecture revert: Back to UIAutomation from CDP. UIAutomation can see Antigravity's permission buttons with InvokePattern support โ€” no CDP port needed
  • ๐Ÿงน Minimal rewrite: ~150 lines extension.ts, ~120 lines autoClicker.ps1. Removed Oracle/state detection/fingerprint dedup complexity
  • ๐ŸŽฏ Smart matching: Prefix + exact match + exclusion list covering 12 permission keyword categories
  • โšก Two-layer click: InvokePattern first (no focus stealing), user32.dll physical click fallback

v5.0.0 โ€” The CDP Experiment (2026-03-29)

  • ๐Ÿ”ง CDP ๆžถๆž„ๅฎž้ชŒ๏ผšๅ…จ้ข่ฟ็งปๅˆฐ Chrome DevTools Protocol๏ผŒ้€š่ฟ‡ WebSocket ่ฟžๆŽฅ Antigravity ็š„ Chromium ่ฐƒ่ฏ•็ซฏๅฃ๏ผŒๅœจ webview ๅ†…ๆ‰ง่กŒ JS ๆฃ€ๆต‹ๆŒ‰้’ฎ + Input.dispatchMouseEvent ๆจกๆ‹Ÿ็‚นๅ‡ป
  • ๐Ÿ“ฆ ๆ–ฐๅขžๆจกๅ—๏ผšcdpClient.ts๏ผˆWebSocket CDP ๅฎขๆˆท็ซฏ๏ผ‰ใ€buttonDetector.ts๏ผˆDOM ๆŒ‰้’ฎๆ‰ซๆ่„šๆœฌ๏ผ‰ใ€shortcutPatcher.ts๏ผˆ่‡ชๅŠจไฟฎ่กฅๅฟซๆทๆ–นๅผๆทปๅŠ  --remote-debugging-port=9222๏ผ‰
  • โŒ ๅทฒๅบŸๅผƒ๏ผš็กฎ่ฎค UIAutomation ไป่ƒฝ็ฉฟ้€ๆœ€ๆ–ฐ็‰ˆ Antigravity ๅŽ๏ผŒv5.1.0 ๅ›žๅฝ’ UIAutomation
  • ๐Ÿ”ง CDP architecture experiment: Full migration to Chrome DevTools Protocol โ€” WebSocket connection to Chromium debug port, JS injection for button detection + Input.dispatchMouseEvent for clicks
  • ๐Ÿ“ฆ New modules: cdpClient.ts, buttonDetector.ts, shortcutPatcher.ts
  • โŒ Superseded: Reverted to UIAutomation in v5.1.0 after confirming it still works with latest Antigravity

v2.1.3 โ€” Fingerprint Dedup: Click Once, Never Spam (2026-03-26)

  • ๐Ÿง  ๆŒ‡็บนๅŽป้‡็ผ“ๅญ˜๏ผšๆฏไธชๆŒ‰้’ฎ็‚นๅ‡ปๅŽ่ฎฐๅฝ•ไฝ็ฝฎๆŒ‡็บน๏ผˆName + X/Y ๅ–ๆ•ดๅˆฐ 10px๏ผ‰๏ผŒๅŒไธ€ๆŒ‰้’ฎไธๅ†้‡ๅค็‚นๅ‡ปใ€‚่งฃๅ†ณ v2.1.2 Legacy ๆจกๅผไธ‹็–ฏ็‹‚็‚นๅ‡ปๅކๅฒ "Always run" ๅฏผ่‡ดๆŠข็„ฆ็‚น็š„้—ฎ้ข˜
  • ๐Ÿ”„ ๅ››ๆ€ๅ†ณ็ญ–้‡ๆž„๏ผšโ–  ่ฟ่กŒไธญ โ†’ ๅ…จ้‡็‚นๅ‡ป๏ผˆๆ— ้œ€ๅŽป้‡๏ผ‰ | ้”™่ฏฏ้ขๆฟ โ†’ ไป… Retry | Antigravity ็ฉบ้—ฒ โ†’ ๅŽป้‡็‚นๅ‡ป | ้ž Antigravity โ†’ ๅ…จ้‡ + ๅŽป้‡
  • โฑ๏ธ TTL ่‡ชๅŠจๆธ…็ฉบ๏ผšๆŒ‡็บน็ผ“ๅญ˜ 120 ็ง’ๅŽ่‡ชๅŠจๆธ…็ฉบ๏ผŒ้€‚ๅบ”ๆ–ฐไธ€่ฝฎๅฏน่ฏ/UI ๅˆทๆ–ฐ
  • ๐Ÿง  Fingerprint dedup cache: After clicking a button, records its position fingerprint (Name + X/Y rounded to 10px). Same button is never re-clicked
  • ๐Ÿ”„ Four-state logic: โ–  running โ†’ click all | error panel โ†’ Retry only | Antigravity idle โ†’ dedup click | non-Antigravity โ†’ click all + dedup
  • โฑ๏ธ TTL auto-clear: Fingerprint cache auto-clears every 120s for new conversations/UI refreshes

v2.1.2 โ€” Arrow Button False Positive Fix (2026-03-26)

  • ๐Ÿ› ไฟฎๅค็ฎญๅคดๆŒ‰้’ฎ่ฏฏๅˆค๏ผšAdd context / Cancel ็ญ‰ๅŠŸ่ƒฝๆŒ‰้’ฎ็š„ CSS class ๅซ opacity-70 + rounded-full๏ผŒ่ขซ่ฏฏ่ฏ†ๅˆซไธบ่Šๅคฉๅทฅๅ…ทๆ ็ฐ่‰ฒ็ฎญๅคด โ†’ ๆ‰€ๆœ‰ๆƒ้™ๆŒ‰้’ฎๆ‰ซๆ่ขซ่ทณ่ฟ‡
  • ๐Ÿ”ง ไฟฎๅคๆ–นๅผ๏ผš็ฐ่‰ฒ็ฎญๅคดๅˆคๅฎšๅขžๅŠ  Name ๅฟ…้กปไธบ็ฉบ ็บฆๆŸ๏ผˆ็œŸๆญฃ็š„็ฐ่‰ฒ็ฎญๅคดๆ˜ฏ็บฏๅ›พๆ ‡ๆ— ๆ–‡ๅญ—๏ผ‰
  • ๐Ÿ› Fix arrow button false positive: Add context / Cancel buttons matched the gray arrow fingerprint โ€” caused all permission button scanning to be skipped
  • ๐Ÿ”ง Fix: Added Name must be empty constraint for gray arrow detection

v2.1.1 โ€” Universal Compatibility (2026-03-26)

  • ๐ŸŒ ้ž Antigravity IDE ๅ›ž้€€๏ผšๆฃ€ๆต‹ๅˆฐ่Šๅคฉๅทฅๅ…ทๆ ๏ผˆโ†’ / โ– ๏ผ‰ๆ—ถไฝฟ็”จ Oracle ๆ™บ่ƒฝๆจกๅผ๏ผ›ๆœชๆฃ€ๆต‹ๅˆฐๆ—ถ๏ผˆVS Code / Cursor / ๅ…ถไป– IDE๏ผ‰่‡ชๅŠจๅ›ž้€€ไผ ็ปŸๆจกๅผ๏ผŒ็›ฒ็‚นๆ‰€ๆœ‰ๆƒ้™ๆŒ‰้’ฎ
  • ๐ŸŒ Non-Antigravity fallback: Oracle mode when chat toolbar detected; legacy mode for VS Code / Cursor / other IDEs โ€” click all permission buttons unconditionally

โš ๏ธ Pro Tip | ไฝฟ็”จๆŠ€ๅทง

Don't minimize the IDE! Chromium suspends the accessibility tree when minimized. Keep the IDE window available. API invocation may work in the background; physical fallback skips points covered by another app.

ไธ่ฆๆœ€ๅฐๅŒ– IDE๏ผ Chromium ๆœ€ๅฐๅŒ–ๅŽไผšๆ–ญๅผ€ๆ— ้šœ็ขๆ ‘ใ€‚ ไฟๆŒ IDE ็ช—ๅฃๅฏ่ฎฟ้—ฎใ€‚API ่ฐƒ็”จๅฏ่ƒฝๆ”ฏๆŒๅŽๅฐๅฎกๆ‰น๏ผ›็‰ฉ็†็‚นๅ‡ปๅ›ž้€€ไผš่ทณ่ฟ‡่ขซๅ…ถๅฎƒๅบ”็”จ้ฎๆŒก็š„็›ฎๆ ‡ใ€‚


โ˜• Support | ่ตž่ตๆ”ฏๆŒ

If this extension saved your sanity and your mouse, consider buying me a coffee! ๅฆ‚ๆžœ่ฟ™ไธชๆ’ไปถๆ‹ฏๆ•‘ไบ†ไฝ ็š„้ผ ๆ ‡ๅ’Œ็ฒพ็ฅž็Šถๆ€๏ผŒๆฌข่ฟŽๆŠ•ๅ–‚ไธ€ๆฏๅ’–ๅ•ก๏ผ

่ตž่ต็  / Sponsor QR Code


Built with pure rage against permission popups.
ๅ‡บไบŽๅฏนๆƒ้™ๅผน็ช—็š„็บฏ็ฒนๆ„คๆ€’่€Œๅผ€ๅ‘ใ€‚

About

No description, website, or topics provided.

Resources

Contributing

Stars

15 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages