Repository navigation
feat(tools): add Xiaomi MiMo (mimocode) tool support - #2301
Open
fujufutong wants to merge 1 commit into
Open
fujufutong wants to merge 1 commit into
fujufutong wants to merge 1 commit into
Conversation
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
Add built-in tool support for Xiaomi MiMo (
mimocode, package@teamai/tool-mimocode), syncing skills and subagent definitions in both user scope (~/.config/mimocode/{skills,agents}, relocating with$MIMOCODE_HOME/configand$XDG_CONFIG_HOME/mimocode) and project scope (<root>/.mimocode/{skills,agents}). Subagents render and reverse as path-named Markdown files (witheffortmapped tovariantand dotted agent stems preserved, as MiMoCode strips only.md), while unsupported channels (rules,blocks,mcp,hooks,sessions,launch,tokens) are explicitly declared asNONE/'none'.Type of Change
Test Plan
npx tsc --noEmitpasses (npm run typecheck)npm run lintpasses (oxlint --type-aware --deny-warnings --report-unused-disable-directives && node scripts/check-docs.mjs)npx vitest run packages/tool-mimocode oxlint-plugin-teamai/rules/family-facts.test.ts oxlint-plugin-teamai/rules/tool-home-env.test.ts oxlint-plugin-teamai/rules/shipped-tool-ids.test.ts src/__tests__/tools.test.ts src/__tests__/tools-channels.test.ts src/__tests__/tool-home-env-variables.test.ts src/__tests__/locate.test.ts src/__tests__/locate-matrix.test.ts src/__tests__/locate-agents.test.ts src/__tests__/locate-mcp.test.ts src/__tests__/agent-format.test.ts src/__tests__/self-mode-agents.test.ts src/__tests__/self-mode-prompt.test.ts src/__tests__/uninstall.test.ts— 15 files, 2,803 tests passed; full suite and extra providers/OS legs deferred to CI)dist/index.jsat7e080be4,teamai-cli@0.22.0) in isolated temp sandboxes across both project and relocated user (MIMOCODE_HOME) scopes. (npm run verify:worldcould not pack on this host because localnpm 12.0.2emits an object map{ "teamai-cli": { files } }fromnpm pack --dry-run --jsonwherescripts/verify/world.tsexpects an array.)Related Issues
N/A
Notes for Reviewers
absolute-env-child): MiMoCode resolves its config directory from$MIMOCODE_HOME/config(only when$MIMOCODE_HOMEis an absolute path), falling back to$XDG_CONFIG_HOME/mimocodeand~/.config/mimocode. Added theabsolute-env-childHomeMovevariant to model this at the descriptor boundary without per-tool branching in shared locate code..agent.mdsuffix, MiMoCode derives agent IDs by stripping.mdonly (sobackend.agent.mdnamesbackend.agent).agentStemFromFilenametakes the optional tool format soagentsdelivery anduninstallpreserve dotted MiMoCode agent names.mimocode; existing tool descriptors and channels unchanged.launch: 'none'(skill driver workflows reach MiMoCode via deliveredskills; local/sandbox step launchers do not spawn MiMoCode).user(~/.config/mimocode,$MIMOCODE_HOME/config,$XDG_CONFIG_HOME/mimocode) andworkspace(<root>/.mimocode, gated oninstalledBy: 'home-edition').git,http, and self mode (SELF_MODE_AGENT_CHOICESanddetectHomeInstalledAgentsupdated forhome-edition).locateworkspaceUnderproject reads and standardSkillsHandler/AgentsHandlerlayer resolution.init,pull(first and second runs), anduninstallall locate and clean up delivered skills and dotted/plain subagent.mdfiles.host.path(absoluteEnv+host.path.join); Windows CI leg deferred to GitHub Actions (verified on macOS locally).skill-data/: Regenerateddocs/guide/tool-support.mdanddocs/guide/zh-CN/tool-support.md, and updated allREADME*.mdcapability matrices.