feat!: redo Panel; decouple Panel from Agent

BREAKING CHANGES: Agent and Panel API Changes
This commit is contained in:
Simon
2026-01-17 23:14:26 +08:00
parent 8abe3afed9
commit 1ede1d9911
13 changed files with 565 additions and 466 deletions

View File

@@ -1,4 +1,5 @@
/* 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'
@@ -94,6 +95,10 @@ 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)