Skip to content

Commit ad11b9d

Browse files
committed
style: format agent.ts and config.ts (anomalyco#4825)
1 parent fce8f10 commit ad11b9d

2 files changed

Lines changed: 15 additions & 5 deletions

File tree

‎packages/opencode/src/agent/agent.ts‎

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,20 @@ export namespace Agent {
183183
tools: {},
184184
builtIn: false,
185185
}
186-
const { name, model, prompt, tools, description, short_description, temperature, top_p, mode, permission, color, ...extra } = value
186+
const {
187+
name,
188+
model,
189+
prompt,
190+
tools,
191+
description,
192+
short_description,
193+
temperature,
194+
top_p,
195+
mode,
196+
permission,
197+
color,
198+
...extra
199+
} = value
187200
item.options = {
188201
...item.options,
189202
...extra,

‎packages/opencode/src/config/config.ts‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -369,10 +369,7 @@ export namespace Config {
369369
tools: z.record(z.string(), z.boolean()).optional(),
370370
disable: z.boolean().optional(),
371371
description: z.string().optional().describe("Description of when to use the agent"),
372-
short_description: z
373-
.string()
374-
.optional()
375-
.describe("Short description for display in agent listings"),
372+
short_description: z.string().optional().describe("Short description for display in agent listings"),
376373
mode: z.enum(["subagent", "primary", "all"]).optional(),
377374
color: z
378375
.string()

0 commit comments

Comments
 (0)