Files
orca/src/shared/tui-agent-display-names.ts
T
0c0367ea88 feat(agents): native Xiaomi MiMo Code support (#6239)
* feat(agents): native Xiaomi MiMo Code support

Add mimo-code TUI agent (detect mimo, --prompt, --session resume).
Inject MIMOCODE_HOME overlay and /hook/mimo-code status plugin on mimo
launch when agent status hooks are enabled; restore via shell-ready
wrappers. Reuse OpenCode-family hook normalization in the listener.

SSH remote MiMo hook overlays are not included (local/daemon first).

Closes #6220

* fix(mimo): remirror overlay config idempotently

rmSync overlay config before mirror so a second mimo launch does not
hit EEXIST in mirrorEntry and fall back to the user MIMOCODE_HOME.

* review: harden mimo code support

Co-authored-by: Orca <help@stably.ai>

---------

Co-authored-by: Doan Bac Tam <24356000+doanbactam@users.noreply.github.com>
Co-authored-by: Jinwoo-H <jinwoo0825@gmail.com>
Co-authored-by: Orca <help@stably.ai>
2026-06-24 00:17:49 -07:00

48 lines
1.4 KiB
TypeScript

import type { TuiAgent } from './types'
/** Why: plain-English agent names for non-localized surfaces (keybinding
* titles in the shared registry, which main, renderer, and the keybindings
* file sanitizer all read). The renderer's localized agent catalog
* (`agent-catalog.tsx`) stays the source of truth for UI labels; keep these
* in sync with its `label` values when adding an agent. */
export const TUI_AGENT_DISPLAY_NAMES: Record<TuiAgent, string> = {
claude: 'Claude',
'claude-agent-teams': 'Claude Agent Teams',
openclaude: 'OpenClaude',
codex: 'Codex',
devin: 'Devin',
ante: 'Ante',
autohand: 'Autohand Code',
opencode: 'OpenCode',
'mimo-code': 'MiMo Code',
pi: 'Pi',
omp: 'OMP',
gemini: 'Gemini',
antigravity: 'Antigravity',
aider: 'Aider',
goose: 'Goose',
amp: 'Amp',
kilo: 'Kilocode',
kiro: 'Kiro',
crush: 'Charm',
aug: 'Auggie',
cline: 'Cline',
codebuff: 'Codebuff',
'command-code': 'Command Code',
continue: 'Continue',
cursor: 'Cursor',
droid: 'Droid',
kimi: 'Kimi',
'mistral-vibe': 'Mistral Vibe',
'qwen-code': 'Qwen Code',
rovo: 'Rovo Dev',
hermes: 'Hermes',
openclaw: 'OpenClaw',
copilot: 'GitHub Copilot',
grok: 'Grok'
}
/** Canonical agent id list derived from the exhaustive display-name record,
* so shared modules can enumerate agents without importing renderer code. */
export const ALL_TUI_AGENTS = Object.keys(TUI_AGENT_DISPLAY_NAMES) as readonly TuiAgent[]