feat(config): add websearch provider schema
This commit is contained in:
parent
9f50947795
commit
4840864ed8
@ -2977,6 +2977,18 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"websearch": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"provider": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"exa",
|
||||||
|
"tavily"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"tmux": {
|
"tmux": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
|||||||
@ -340,6 +340,17 @@ export const BrowserAutomationConfigSchema = z.object({
|
|||||||
provider: BrowserAutomationProviderSchema.default("playwright"),
|
provider: BrowserAutomationProviderSchema.default("playwright"),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
export const WebsearchProviderSchema = z.enum(["exa", "tavily"])
|
||||||
|
|
||||||
|
export const WebsearchConfigSchema = z.object({
|
||||||
|
/**
|
||||||
|
* Websearch provider to use.
|
||||||
|
* - "exa": Uses Exa websearch (default, works without API key)
|
||||||
|
* - "tavily": Uses Tavily websearch (requires TAVILY_API_KEY)
|
||||||
|
*/
|
||||||
|
provider: WebsearchProviderSchema.optional(),
|
||||||
|
})
|
||||||
|
|
||||||
export const TmuxLayoutSchema = z.enum([
|
export const TmuxLayoutSchema = z.enum([
|
||||||
'main-horizontal', // main pane top, agent panes bottom stack
|
'main-horizontal', // main pane top, agent panes bottom stack
|
||||||
'main-vertical', // main pane left, agent panes right stack (default)
|
'main-vertical', // main pane left, agent panes right stack (default)
|
||||||
@ -393,6 +404,7 @@ export const OhMyOpenCodeConfigSchema = z.object({
|
|||||||
babysitting: BabysittingConfigSchema.optional(),
|
babysitting: BabysittingConfigSchema.optional(),
|
||||||
git_master: GitMasterConfigSchema.optional(),
|
git_master: GitMasterConfigSchema.optional(),
|
||||||
browser_automation_engine: BrowserAutomationConfigSchema.optional(),
|
browser_automation_engine: BrowserAutomationConfigSchema.optional(),
|
||||||
|
websearch: WebsearchConfigSchema.optional(),
|
||||||
tmux: TmuxConfigSchema.optional(),
|
tmux: TmuxConfigSchema.optional(),
|
||||||
sisyphus: SisyphusConfigSchema.optional(),
|
sisyphus: SisyphusConfigSchema.optional(),
|
||||||
})
|
})
|
||||||
@ -420,6 +432,8 @@ export type BuiltinCategoryName = z.infer<typeof BuiltinCategoryNameSchema>
|
|||||||
export type GitMasterConfig = z.infer<typeof GitMasterConfigSchema>
|
export type GitMasterConfig = z.infer<typeof GitMasterConfigSchema>
|
||||||
export type BrowserAutomationProvider = z.infer<typeof BrowserAutomationProviderSchema>
|
export type BrowserAutomationProvider = z.infer<typeof BrowserAutomationProviderSchema>
|
||||||
export type BrowserAutomationConfig = z.infer<typeof BrowserAutomationConfigSchema>
|
export type BrowserAutomationConfig = z.infer<typeof BrowserAutomationConfigSchema>
|
||||||
|
export type WebsearchProvider = z.infer<typeof WebsearchProviderSchema>
|
||||||
|
export type WebsearchConfig = z.infer<typeof WebsearchConfigSchema>
|
||||||
export type TmuxConfig = z.infer<typeof TmuxConfigSchema>
|
export type TmuxConfig = z.infer<typeof TmuxConfigSchema>
|
||||||
export type TmuxLayout = z.infer<typeof TmuxLayoutSchema>
|
export type TmuxLayout = z.infer<typeof TmuxLayoutSchema>
|
||||||
export type SisyphusTasksConfig = z.infer<typeof SisyphusTasksConfigSchema>
|
export type SisyphusTasksConfig = z.infer<typeof SisyphusTasksConfigSchema>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user