fix(migration): remove auto model-to-category conversion (#764)

* chore(deps): upgrade @opencode-ai/plugin and sdk to 1.1.19

* docs(prometheus): add Question tool usage reminder

* fix(migration): remove auto model-to-category conversion

- Remove migrateAgentConfigToCategory call from migrateConfigFile
- User's explicit model/category settings are now preserved as-is
- No more unwanted deletion of agent configs (e.g., multimodal-looker)
- Add BUILTIN_AGENT_NAMES constant for future reference
- Update tests to reflect new behavior

* ci(sisyphus): add mandatory 'new branch + PR' todos for implementation tasks

---------

Co-authored-by: justsisyphus <justsisyphus@users.noreply.github.com>
This commit is contained in:
justsisyphus
2026-01-14 11:57:08 +09:00
committed by GitHub
parent 000a61c961
commit 22619d137e
6 changed files with 55 additions and 116 deletions
+16 -15
View File
@@ -22,6 +22,21 @@ export const AGENT_NAME_MAP: Record<string, string> = {
"multimodal-looker": "multimodal-looker",
}
export const BUILTIN_AGENT_NAMES = new Set([
"Sisyphus",
"oracle",
"librarian",
"explore",
"frontend-ui-ux-engineer",
"document-writer",
"multimodal-looker",
"Metis (Plan Consultant)",
"Momus (Plan Reviewer)",
"Prometheus (Planner)",
"orchestrator-sisyphus",
"build",
])
// Migration map: old hook names → new hook names (for backward compatibility)
export const HOOK_NAME_MAP: Record<string, string> = {
// Legacy names (backward compatibility)
@@ -117,21 +132,7 @@ export function migrateConfigFile(configPath: string, rawConfig: Record<string,
}
}
if (rawConfig.agents && typeof rawConfig.agents === "object") {
const agents = rawConfig.agents as Record<string, Record<string, unknown>>
for (const [name, config] of Object.entries(agents)) {
const { migrated, changed } = migrateAgentConfigToCategory(config)
if (changed) {
const category = migrated.category as string
if (shouldDeleteAgentConfig(migrated, category)) {
delete agents[name]
} else {
agents[name] = migrated
}
needsWrite = true
}
}
}
if (rawConfig.omo_agent) {
rawConfig.sisyphus_agent = rawConfig.omo_agent