File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed
Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 11import { z } from "zod"
2+ import { McpNameSchema } from "../mcp/types"
23
34const PermissionValue = z . enum ( [ "ask" , "allow" , "deny" ] )
45
@@ -23,8 +24,6 @@ export const AgentNameSchema = z.enum([
2324 "document-writer" ,
2425] )
2526
26- export const McpNameSchema = z . enum ( [ "websearch_exa" , "context7" ] )
27-
2827export const AgentOverrideConfigSchema = z . object ( {
2928 model : z . string ( ) . optional ( ) ,
3029 temperature : z . number ( ) . min ( 0 ) . max ( 2 ) . optional ( ) ,
@@ -53,5 +52,6 @@ export const OhMyOpenCodeConfigSchema = z.object({
5352export type OhMyOpenCodeConfig = z . infer < typeof OhMyOpenCodeConfigSchema >
5453export type AgentOverrideConfig = z . infer < typeof AgentOverrideConfigSchema >
5554export type AgentOverrides = z . infer < typeof AgentOverridesSchema >
56- export type McpName = z . infer < typeof McpNameSchema >
5755export type AgentName = z . infer < typeof AgentNameSchema >
56+
57+ export { McpNameSchema , type McpName } from "../mcp/types"
Original file line number Diff line number Diff line change 1- import type { McpName } from "../config"
21import { websearch_exa } from "./websearch-exa"
32import { context7 } from "./context7"
3+ import type { McpName } from "./types"
44
5- export type { McpName }
5+ export { McpNameSchema , type McpName } from "./types"
66
77const allBuiltinMcps : Record < McpName , { type : "remote" ; url : string ; enabled : boolean } > = {
88 websearch_exa,
Original file line number Diff line number Diff line change 1+ import { z } from "zod"
2+
3+ export const McpNameSchema = z . enum ( [ "websearch_exa" , "context7" ] )
4+
5+ export type McpName = z . infer < typeof McpNameSchema >
You can’t perform that action at this time.
0 commit comments