encapsulate/scope logLevels better and remove unused Zod stuff.

This commit is contained in:
Steven T. Cramer 2025-06-16 08:43:58 +07:00
parent c46ce75b60
commit bdc102c7ee
5 changed files with 3 additions and 15 deletions

View file

@ -7,7 +7,6 @@ export * from "./experiment.js"
export * from "./global-settings.js"
export * from "./history.js"
export * from "./ipc.js"
export * from "./log-message.js"
export * from "./mcp.js"
export * from "./message.js"
export * from "./mode.js"

View file

@ -1,11 +0,0 @@
import { z } from "zod"
export const logLevels = ["debug", "info", "warn", "error"] as const
export const logLevelsSchema = z.enum(logLevels).optional().default("info")
export const logMessageParamsSchema = z.object({
message: z.string(),
level: logLevelsSchema,
})
export type LogMessageParams = z.infer<typeof logMessageParamsSchema>

View file

@ -1,4 +1,4 @@
import { logLevels } from "@roo-code/types"
import { logLevels } from "../message-parsing/directives"
import { ClineProvider } from "../webview/ClineProvider"
/**

View file

@ -1,4 +1,4 @@
import { logLevels } from "@roo-code/types"
export const logLevels = ["debug", "info", "warn", "error"] as const
/**
* Represents a log message directive from the assistant to the system.

View file

@ -1,7 +1,7 @@
export type { Directive } from "./Directive"
export type { TextDirective } from "./TextDirective"
export type { ToolDirective } from "./ToolDirective"
export type { LogDirective } from "./LogDirective"
export type { ToolParamName, ToolResponse } from "./tool-directives"
export { type LogDirective, logLevels } from "./LogDirective"
export { toolParamNames } from "./tool-directives"