feat(ai): optimize tool loops, fix deployments, and integrate new onboarding flow

This commit is contained in:
2026-05-19 12:52:47 -07:00
parent 331312b648
commit 618f7796b2
250 changed files with 2993 additions and 24695 deletions

View File

@@ -0,0 +1,15 @@
const fs = require('fs');
const file = 'app/(onboarding)/onboarding/page.tsx';
let code = fs.readFileSync(file, 'utf8');
code = code.replace(
'const close = () => { window.location.href = "index.html"; };',
'const close = () => { if (typeof window !== "undefined") window.location.href = "/"; };'
);
code = code.replace(
'const openChat = () => { window.location.href = "index.html"; };',
'const openChat = () => { if (typeof window !== "undefined") window.location.href = "/"; };'
);
fs.writeFileSync(file, code);