mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
Add enum support to configuration schema (#9247)
This commit is contained in:
parent
8d14e90d8a
commit
ad1e9a82f9
2 changed files with 13 additions and 0 deletions
|
|
@ -100,6 +100,12 @@ describe("generatePackageJson", () => {
|
|||
default: "",
|
||||
description: "%settings.customStoragePath.description%",
|
||||
},
|
||||
"roo-cline.toolProtocol": {
|
||||
type: "string",
|
||||
enum: ["xml", "native"],
|
||||
default: "xml",
|
||||
description: "%settings.toolProtocol.description%",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
@ -213,6 +219,12 @@ describe("generatePackageJson", () => {
|
|||
default: "",
|
||||
description: "%settings.customStoragePath.description%",
|
||||
},
|
||||
"roo-code-nightly.toolProtocol": {
|
||||
type: "string",
|
||||
enum: ["xml", "native"],
|
||||
default: "xml",
|
||||
description: "%settings.toolProtocol.description%",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
|||
|
|
@ -86,6 +86,7 @@ const configurationPropertySchema = z.object({
|
|||
})
|
||||
.optional(),
|
||||
properties: z.record(z.string(), z.any()).optional(),
|
||||
enum: z.array(z.any()).optional(),
|
||||
default: z.any().optional(),
|
||||
description: z.string(),
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue