chore(ext): refine MultiPageAgent api and clean up

This commit is contained in:
Simon
2026-01-28 13:36:46 +08:00
parent 55ffbb8f08
commit dd593f77e9
5 changed files with 15 additions and 26 deletions

View File

@@ -8,8 +8,7 @@ import { createTabTools } from './tabTools'
export class MultiPageAgent extends PageAgentCore {
constructor(config: Omit<PageAgentConfig, 'pageController'>) {
const tabsController = new TabsController()
const pageController = new RemotePageController()
pageController.tabsController = tabsController
const pageController = new RemotePageController(tabsController)
const customTools = createTabTools(tabsController)
super({