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

18
fix_reviewcode2.py Normal file
View File

@@ -0,0 +1,18 @@
#!/usr/bin/env python3
fp = '/home/uroma/promptarch/components/AIAssist.tsx'
with open(fp, 'r') as f:
lines = f.readlines()
bt = chr(96) # backtick character
nl = chr(92) + 'n' # \n
for i, line in enumerate(lines):
if 'const reviewPrompt' in line and 'review this generated code' in line:
new_line = ' const reviewPrompt = "Please review this generated code for bugs, security issues, performance problems, and best practices. Provide specific improvements:" + "' + nl + '" + "' + nl + '" + "' + bt*3 + '" + (previewData.language || "code") + "' + nl + '" + previewData.data + "' + nl + '" + "' + bt*3 + '";\n'
lines[i] = new_line
print(f'Fixed line {i+1}')
print(repr(new_line))
break
with open(fp, 'w') as f:
f.writelines(lines)