feat!: PageAgent with UI by default

This commit is contained in:
Simon
2026-01-19 16:07:17 +08:00
parent c9f049a733
commit b217e6a2ca
11 changed files with 280 additions and 11 deletions

View File

@@ -1,5 +1,4 @@
/* eslint-disable react-dom/no-dangerously-set-innerhtml */
import { Panel } from '@page-agent/ui'
import { Bot, Box, MessageSquare, PlayCircle, Shield, Sparkles, Users, Zap } from 'lucide-react'
import { useEffect, useState } from 'react'
import { useTranslation } from 'react-i18next'
@@ -95,10 +94,6 @@ export default function HomePage() {
// promptForNextTask: false,
// enablePanel: false,
})
// Create and bind Panel
const panel = new Panel(win.pageAgent, { language: i18n.language as any })
panel.show()
}
const result = await win.pageAgent.execute(task)