hotfix: move McpNameSchema to src/mcp/types.ts for proper module organization

This commit is contained in:
YeonGyu-Kim
2025-12-05 03:58:21 +09:00
parent 0a82787614
commit eba89a6626
3 changed files with 10 additions and 5 deletions

View File

@@ -1,4 +1,5 @@
import { z } from "zod"
import { McpNameSchema } from "../mcp/types"
const PermissionValue = z.enum(["ask", "allow", "deny"])
@@ -23,8 +24,6 @@ export const AgentNameSchema = z.enum([
"document-writer",
])
export const McpNameSchema = z.enum(["websearch_exa", "context7"])
export const AgentOverrideConfigSchema = z.object({
model: z.string().optional(),
temperature: z.number().min(0).max(2).optional(),
@@ -53,5 +52,6 @@ export const OhMyOpenCodeConfigSchema = z.object({
export type OhMyOpenCodeConfig = z.infer<typeof OhMyOpenCodeConfigSchema>
export type AgentOverrideConfig = z.infer<typeof AgentOverrideConfigSchema>
export type AgentOverrides = z.infer<typeof AgentOverridesSchema>
export type McpName = z.infer<typeof McpNameSchema>
export type AgentName = z.infer<typeof AgentNameSchema>
export { McpNameSchema, type McpName } from "../mcp/types"

View File

@@ -1,8 +1,8 @@
import type { McpName } from "../config"
import { websearch_exa } from "./websearch-exa"
import { context7 } from "./context7"
import type { McpName } from "./types"
export type { McpName }
export { McpNameSchema, type McpName } from "./types"
const allBuiltinMcps: Record<McpName, { type: "remote"; url: string; enabled: boolean }> = {
websearch_exa,

5
src/mcp/types.ts Normal file
View File

@@ -0,0 +1,5 @@
import { z } from "zod"
export const McpNameSchema = z.enum(["websearch_exa", "context7"])
export type McpName = z.infer<typeof McpNameSchema>