feat: SEO web audit, URL fetching, auto web search for SEO mode (v1.6.0)

This commit is contained in:
admin
2026-03-18 20:35:14 +00:00
Unverified
parent 2158d89314
commit 5f1bce4b99
16 changed files with 817 additions and 184 deletions

17
fix_device_array.py Normal file
View File

@@ -0,0 +1,17 @@
#!/usr/bin/env python3
fp = '/home/uroma/promptarch/components/AIAssist.tsx'
with open(fp, 'r') as f:
content = f.read()
# Fix the array that lost all its quotes
old = '{([[full, Full], [desktop, Desktop], [tablet, Tablet], [mobile, Mobile]] as const).map(([size, label]) => ('
new = '{([["full", "Full"], ["desktop", "Desktop"], ["tablet", "Tablet"], ["mobile", "Mobile"]] as const).map(([size, label]) => ('
if old in content:
content = content.replace(old, new, 1)
print('Fixed array quotes')
else:
print('WARNING: Could not find array')
with open(fp, 'w') as f:
f.write(content)