|
@@ -16,6 +16,7 @@ export namespace Agent {
|
|
|
builtIn: z.boolean(),
|
|
builtIn: z.boolean(),
|
|
|
topP: z.number().optional(),
|
|
topP: z.number().optional(),
|
|
|
temperature: z.number().optional(),
|
|
temperature: z.number().optional(),
|
|
|
|
|
+ color: z.string().optional(),
|
|
|
permission: z.object({
|
|
permission: z.object({
|
|
|
edit: Config.Permission,
|
|
edit: Config.Permission,
|
|
|
bash: z.record(z.string(), Config.Permission),
|
|
bash: z.record(z.string(), Config.Permission),
|
|
@@ -147,7 +148,7 @@ export namespace Agent {
|
|
|
tools: {},
|
|
tools: {},
|
|
|
builtIn: false,
|
|
builtIn: false,
|
|
|
}
|
|
}
|
|
|
- const { name, model, prompt, tools, description, temperature, top_p, mode, permission, ...extra } = value
|
|
|
|
|
|
|
+ const { name, model, prompt, tools, description, temperature, top_p, mode, permission, color, ...extra } = value
|
|
|
item.options = {
|
|
item.options = {
|
|
|
...item.options,
|
|
...item.options,
|
|
|
...extra,
|
|
...extra,
|
|
@@ -167,6 +168,7 @@ export namespace Agent {
|
|
|
if (temperature != undefined) item.temperature = temperature
|
|
if (temperature != undefined) item.temperature = temperature
|
|
|
if (top_p != undefined) item.topP = top_p
|
|
if (top_p != undefined) item.topP = top_p
|
|
|
if (mode) item.mode = mode
|
|
if (mode) item.mode = mode
|
|
|
|
|
+ if (color) item.color = color
|
|
|
// just here for consistency & to prevent it from being added as an option
|
|
// just here for consistency & to prevent it from being added as an option
|
|
|
if (name) item.name = name
|
|
if (name) item.name = name
|
|
|
|
|
|