fix(omo): use lowercase keys for builtin agent definitions

OMO config schema expects all agent keys to be lowercase.
Updated OMO_BUILTIN_AGENTS keys (Sisyphus → sisyphus, Hephaestus →
hephaestus, etc.) and aligned Rust test fixtures accordingly.
This commit is contained in:
YoVinchen
2026-02-10 23:47:43 +08:00
parent 0fcb1b01e2
commit 300abc31a7
2 changed files with 10 additions and 10 deletions
+3 -3
View File
@@ -400,7 +400,7 @@ mod tests {
..Default::default()
};
let agents = Some(serde_json::json!({
"Sisyphus": { "model": "claude-opus-4-5" }
"sisyphus": { "model": "claude-opus-4-5" }
}));
let categories = None;
let other_fields = None;
@@ -411,7 +411,7 @@ mod tests {
assert_eq!(obj["$schema"], "https://example.com/schema.json");
assert_eq!(obj["disabled_agents"], serde_json::json!(["explore"]));
assert!(obj.contains_key("agents"));
assert_eq!(obj["agents"]["Sisyphus"]["model"], "claude-opus-4-5");
assert_eq!(obj["agents"]["sisyphus"]["model"], "claude-opus-4-5");
}
#[test]
@@ -422,7 +422,7 @@ mod tests {
..Default::default()
};
let agents = Some(serde_json::json!({
"Sisyphus": { "model": "claude-opus-4-5" }
"sisyphus": { "model": "claude-opus-4-5" }
}));
let categories = None;
let other_fields = None;
+7 -7
View File
@@ -43,7 +43,7 @@ export interface OmoCategoryDef {
export const OMO_BUILTIN_AGENTS: OmoAgentDef[] = [
{
key: "Sisyphus",
key: "sisyphus",
display: "Sisyphus",
descZh: "主编排者",
descEn: "Main orchestrator",
@@ -51,7 +51,7 @@ export const OMO_BUILTIN_AGENTS: OmoAgentDef[] = [
group: "main",
},
{
key: "Hephaestus",
key: "hephaestus",
display: "Hephaestus",
descZh: "自主深度工作者",
descEn: "Autonomous deep worker",
@@ -59,7 +59,7 @@ export const OMO_BUILTIN_AGENTS: OmoAgentDef[] = [
group: "main",
},
{
key: "Prometheus",
key: "prometheus",
display: "Prometheus",
descZh: "战略规划者",
descEn: "Strategic planner",
@@ -67,7 +67,7 @@ export const OMO_BUILTIN_AGENTS: OmoAgentDef[] = [
group: "main",
},
{
key: "Atlas",
key: "atlas",
display: "Atlas",
descZh: "任务管理者",
descEn: "Task manager",
@@ -107,7 +107,7 @@ export const OMO_BUILTIN_AGENTS: OmoAgentDef[] = [
group: "sub",
},
{
key: "Metis",
key: "metis",
display: "Metis",
descZh: "规划前分析顾问",
descEn: "Pre-plan analysis advisor",
@@ -115,7 +115,7 @@ export const OMO_BUILTIN_AGENTS: OmoAgentDef[] = [
group: "sub",
},
{
key: "Momus",
key: "momus",
display: "Momus",
descZh: "计划审查者",
descEn: "Plan reviewer",
@@ -123,7 +123,7 @@ export const OMO_BUILTIN_AGENTS: OmoAgentDef[] = [
group: "sub",
},
{
key: "Sisyphus-Junior",
key: "sisyphus-junior",
display: "Sisyphus-Junior",
descZh: "委托任务执行器",
descEn: "Delegated task executor",