mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
encapsulate/scope logLevels better and remove unused Zod stuff.
This commit is contained in:
parent
c46ce75b60
commit
bdc102c7ee
5 changed files with 3 additions and 15 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
import { logLevels } from "@roo-code/types"
|
||||
import { logLevels } from "../message-parsing/directives"
|
||||
import { ClineProvider } from "../webview/ClineProvider"
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue