fix(extension): adapt DOM observer to Native Agent panel and Tailwind migration (v0.5.21)

This commit is contained in:
Variet Worker
2026-04-09 21:56:29 +09:00
parent d2023321bd
commit 75762964e3
10 changed files with 171 additions and 10 deletions

18
trigger_capture.py Normal file
View File

@@ -0,0 +1,18 @@
import urllib.request, time
print("Waiting 3 seconds for UI to render...")
time.sleep(3)
name = 'gravity_control'
h = 0
for c in name:
h = ((h << 5) - h + ord(c)) & 0xFFFFFFFF
if h > 0x7FFFFFFF: h -= 0x100000000
port = 10000 + (abs(h) % 50000)
print(f"Triggering deep-inspect on port {port}...")
try:
urllib.request.urlopen(urllib.request.Request(f'http://127.0.0.1:{port}/deep-inspect'), timeout=12)
print("Trigger signal sent successfully")
except Exception as e:
print("Trigger failed:", e)