feat(browser-automation): add playwright-cli as browser automation provider
- Add playwright-cli to BrowserAutomationProviderSchema enum - Add playwright-cli to BuiltinSkillNameSchema - Create playwrightCliSkill with official Microsoft template - Update skill selection logic to handle 3 providers - Add comprehensive tests for schema and skill selection - Regenerate JSON schema Closes #<issue-number-if-any>
This commit is contained in:
@@ -4,6 +4,7 @@ import type { BrowserAutomationProvider } from "../../config/schema"
|
||||
import {
|
||||
playwrightSkill,
|
||||
agentBrowserSkill,
|
||||
playwrightCliSkill,
|
||||
frontendUiUxSkill,
|
||||
gitMasterSkill,
|
||||
devBrowserSkill,
|
||||
@@ -17,7 +18,14 @@ export interface CreateBuiltinSkillsOptions {
|
||||
export function createBuiltinSkills(options: CreateBuiltinSkillsOptions = {}): BuiltinSkill[] {
|
||||
const { browserProvider = "playwright", disabledSkills } = options
|
||||
|
||||
const browserSkill = browserProvider === "agent-browser" ? agentBrowserSkill : playwrightSkill
|
||||
let browserSkill: BuiltinSkill
|
||||
if (browserProvider === "agent-browser") {
|
||||
browserSkill = agentBrowserSkill
|
||||
} else if (browserProvider === "playwright-cli") {
|
||||
browserSkill = playwrightCliSkill
|
||||
} else {
|
||||
browserSkill = playwrightSkill
|
||||
}
|
||||
|
||||
const skills = [browserSkill, frontendUiUxSkill, gitMasterSkill, devBrowserSkill]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user