feat: i18n + MCP + AGENTS.md enhancements#307
Open
WqyJh wants to merge 18 commits into
Open
Conversation
bat 使用 --cwd 覆盖了工作目录,导致 cd /d 失效。 将 %WORK_DIR% 作为位置参数传递给 src/index.ts,CLI 的 [project] 命令会执行 process.chdir() 切换到正确目录。
- Add retry i18n keys to en/zh/zht/ja/fr/es/ru (prompt retry display) - Convert hardcoded retry string to use t() in prompt component - Fix missing UI zh translations: sessionReview diffs/showAll/showLess/more - Add repo structure and architecture docs to AGENTS.md
- Add 6 missing UI keys to zht (sessionReview diffs) - Add 30 missing TUI keys to zht (login/provider dialogs) - All 4 locale files now have 100% key coverage (UI 147, TUI 349)
- autocomplete: 'No matching items' → t() - prompt: '(click to expand)', 'exit shell mode' → t() - app: toast messages for fork/update/heap/snapshot/model → t() - app: dialog titles for update complete → t() - app: interactive bash description → t() - Add zh/zht translations for all new keys
…o provider
Root cause: MimoFreeAuthPlugin.config() used \input.provider.mimo ??= { ... }\
which skips the ENTIRE provider setup when user's dev-home config already defines
a \mimo\ entry (e.g. with deepseek-v4-flash-free model only). Since ??= checks
for null/undefined, a partial config entry is enough to block all plugin defaults.
This also explains why after Xiaomi login + logout, 'MiMo Auto (free) 通道未加载'
still appears: bootstrap() rebuilds provider list, hits same ??= issue, and
mimo-auto is never merged into the provider's model list.
Fix: Replace bulk \??=\ with individual \??=\ per field (name, npm, api, options,
models[mimo-auto]). This lets the plugin's defaults merge correctly with any
user-defined partial config, ensuring mimo-auto is always available.
There are two .dev-home directories: - .dev-home/ (correct, already gitignored) - .dev-home / (with trailing space in name, NOT gitignored) The stray directory is likely from a copy/paste mishap and contains logs and other runtime data that should never be committed.
Replace hardcoded English strings in permission.tsx with t() calls:
- 'This will allow {permission} until MiMoCode is restarted.'
- 'This will allow the following patterns until MiMoCode is restarted'
- 'Confirm' / 'Cancel' buttons
Add translations to zh.ts and zht.ts. Other languages fall back to English.
Configure @playwright/mcp v0.0.76 as a local MCP server with: - Chromium browser (already installed) - PLAYWRIGHT_BROWSERS_PATH pointing to existing install - 120s timeout for browser operations
…stion.tsx permission.tsx: replace all hardcoded English UI strings with t() calls - Permission titles for edit/read/glob/grep/list/bash/task/webfetch/websearch/codesearch/ext_dir/doom_loop - Label text (Path/Pattern/URL/Query/Tool/Patterns) - Error text (No diff provided) - Button labels (Confirm/Cancel) - Keyboard hints (select/confirm/minimize/fullscreen) question.tsx: replace hardcoded strings with t() calls - Tab label (Confirm/Review) - Multi-select hint, custom answer text, not-answered placeholder - All keyboard hints (tab/select/submit/toggle/confirm/dismiss) Add zh.ts and zht.ts Chinese translations, en.ts as fallback.
Add chrome-devtools-mcp for Chrome DevTools Protocol access: - DOM/CSS inspection, network/performance profiling - Automatically launched via npx when MiMoCode starts
ReasoningHeader: 'Thinking' -> tui.reasoning.thinking, 'Thought' -> tui.reasoning.thought GenericTool/Bash/Write/ApplyPatch: all 'Click to expand/collapse' -> tui.tool.* Write: 'N line(s)' -> tui.tool.line/lines with count ApplyPatch: 'N change(s)' -> tui.tool.click_to_expand_changes Add zh.ts/zht.ts Chinese translations
…ent and skill extraction AGENTS.md: add comprehensive Chinese language rules, dev standards, and command reference section initialize.txt: add zh.ts language mode header, mandatory Chinese enforcement section, and command reference template review.txt: add language constraint header and 'Extract Repeated Workflows As Skills' phase to auto-create .mimocode/skills/ from diff patterns distill.txt: add language header, explicit stop condition, and /goal clear auto-cleanup on completion
…inese Add retryMessageMap in prompt/index.tsx to translate server-side error messages (Too Many Requests / Provider is overloaded / Rate Limited / Transient network error) via i18n keys. Also translate 'Retry Error' dialog title. Add keys to en.ts/zh.ts/zht.ts.
- 更新 AGENTS.md 中的包描述,新增 storybook、slack、enterprise、extensions 等包的说明 - 添加子包 AGENTS.md 约束摘要 - 移除 packages/web 及其相关依赖 - 将各包版本号从 1.14.19 降至 0.1.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
新增功能
Bug 修复
国际化
文档与维护
Mirrored from XiaomiMiMo/MiMo-Code#547 — original author @dxdw2021.