|
@@ -15,6 +15,7 @@ test("agent color parsed from project config", async () => {
|
|
|
$schema: "https://opencode.ai/config.json",
|
|
$schema: "https://opencode.ai/config.json",
|
|
|
agent: {
|
|
agent: {
|
|
|
build: { color: "#FFA500" },
|
|
build: { color: "#FFA500" },
|
|
|
|
|
+ plan: { color: "primary" },
|
|
|
},
|
|
},
|
|
|
}),
|
|
}),
|
|
|
)
|
|
)
|
|
@@ -25,6 +26,7 @@ test("agent color parsed from project config", async () => {
|
|
|
fn: async () => {
|
|
fn: async () => {
|
|
|
const cfg = await Config.get()
|
|
const cfg = await Config.get()
|
|
|
expect(cfg.agent?.["build"]?.color).toBe("#FFA500")
|
|
expect(cfg.agent?.["build"]?.color).toBe("#FFA500")
|
|
|
|
|
+ expect(cfg.agent?.["plan"]?.color).toBe("primary")
|
|
|
},
|
|
},
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
@@ -38,6 +40,7 @@ test("Agent.get includes color from config", async () => {
|
|
|
$schema: "https://opencode.ai/config.json",
|
|
$schema: "https://opencode.ai/config.json",
|
|
|
agent: {
|
|
agent: {
|
|
|
plan: { color: "#A855F7" },
|
|
plan: { color: "#A855F7" },
|
|
|
|
|
+ build: { color: "accent" },
|
|
|
},
|
|
},
|
|
|
}),
|
|
}),
|
|
|
)
|
|
)
|
|
@@ -48,6 +51,8 @@ test("Agent.get includes color from config", async () => {
|
|
|
fn: async () => {
|
|
fn: async () => {
|
|
|
const plan = await AgentSvc.get("plan")
|
|
const plan = await AgentSvc.get("plan")
|
|
|
expect(plan?.color).toBe("#A855F7")
|
|
expect(plan?.color).toBe("#A855F7")
|
|
|
|
|
+ const build = await AgentSvc.get("build")
|
|
|
|
|
+ expect(build?.color).toBe("accent")
|
|
|
},
|
|
},
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|