Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ The MiniMax Code Agent communicates through the host MCP client. Business reques
| [心屿 / Xinyu Island](plugins/yujiachen-y/xinyu-daily/) | A cozy daily-mood island that plays like an indie game: an inspiration card shaped by your answers, mood stickers, a joy jar, a decision slot machine, a Book of Answers, and 20 hidden secrets guarded by a grumpy crab. Optionally, Xiaoyu writes you a daily letter and chats with you using your model. Requires MiniMax Code 3.1.2 or later | [yujiachen-y](https://github.com/yujiachen-y) |
| [MoMo Collab](plugins/amszuidas/momo-collab/) | A project steward that turns stray thoughts, screenshots, and links into ideas, writes clear ideas up as tasks, runs each task in its own Agent session with a full handoff, checks the result against your done criteria, and tracks everything on a board. Requires MiniMax Code 3.1.2 or later | [amszuidas](https://github.com/amszuidas) |
| [Anatomy Gallery](plugins/zch0227/anatomy-gallery/) | A gallery for interactive isometric figures made with the anatomy skill: hang them in rooms you organize, view light and dark editions full screen, keep every version, and have an Agent create or edit figures from the gallery with a per-run process log. The anatomy skill is bundled. Requires MiniMax Code 3.1.2 or later | [zch0227](https://github.com/zch0227) |
| [仓库透视 / Repo X-Ray](plugins/yujiachen-y/repo-xray/) | Understand a codebase from its Git history: a code map you can drill into, hotspots and bug magnets, high-risk files, owners and knowledge loss, commit rhythm and firefighting, and the tech stack. Works with GitHub, GitLab, and local repositories; analysis runs on your machine | [yujiachen-y](https://github.com/yujiachen-y) |
| [仓库透视 / Repo X-Ray](plugins/yujiachen-y/repo-xray/) | Understand a codebase from its Git history: a code map you can drill into, hotspots and bug magnets, high-risk files, owners and knowledge loss, commit rhythm and firefighting, and the tech stack. Works with GitHub, GitLab, and local repositories; analysis runs on your machine. The interface is in Chinese and English | [yujiachen-y](https://github.com/yujiachen-y) |
| [OpenViking Mini Studio](plugins/openviking/mini-studio/) | Browse and search your OpenViking context read-only, preview it, and add selected URIs or content to the chat | OpenViking |
| [Disk Insight](plugins/zch0227/disk-insight/) | See where disk space went on macOS and Windows with a sunburst space map, find junk files sorted into three safety tiers, large and duplicate files, and how much code repositories and Git worktrees take; ask an Agent about any item, and permanently delete what you select after a confirmation that lists every item. Requires MiniMax Code 3.1.2 or later | [zch0227](https://github.com/zch0227) |
| [A/时差保安 / Timezone Guard](plugins/liuchen19960902/timezone-guard/) | Check the other side's local time before you message: the target city's clock turns into a green "now is fine", yellow "keep it short", or red "go to sleep" verdict. Requires MiniMax Code 3.1.2 or later | [FineCat](https://github.com/LiuChen19960902) |
Expand Down
2 changes: 1 addition & 1 deletion README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ MiniMax Code Agent 通过宿主 MCP 客户端与 MiniApp 协作。业务请求
| [心屿](plugins/yujiachen-y/xinyu-daily/README.zh-CN.md) | 像独立小游戏的每日心情小岛:由你的回答决定的今日灵感卡、心情贴纸、小确幸罐子、纠结老虎机、答案之书,还有坏脾气螃蟹藏起来的 20 个秘密;可选开启小屿陪伴,借用你的模型每天写信、陪你聊天。需要 MiniMax Code 3.1.2 或更高版本 | [yujiachen-y](https://github.com/yujiachen-y) |
| [协作 · MoMo](plugins/amszuidas/momo-collab/README.zh-CN.md) | 项目管家 MoMo:把随手的想法、截图和链接攒成想法,写清后变成任务,派 Agent 会话带着完整背景去执行,按验收标准核对结果后交你审核,进展在看板上一眼可见。需要 MiniMax Code 3.1.2 或更高版本 | [amszuidas](https://github.com/amszuidas) |
| [Anatomy 画廊](plugins/zch0227/anatomy-gallery/README.zh-CN.md) | 集中展示 anatomy 技能做出的交互式等距图解:按自建展区挂墙,全屏查看明暗两版,保留全部历史版本;在画廊里让 Agent 新建或修改作品,每次运行都有过程记录。自带 anatomy 技能。需要 MiniMax Code 3.1.2 或更高版本 | [zch0227](https://github.com/zch0227) |
| [仓库透视](plugins/yujiachen-y/repo-xray/README.zh-CN.md) | 从 Git 历史看懂一个代码仓库:可逐层下钻的代码地图、热点与 Bug 磁铁、高风险文件、负责人与知识流失、提交节奏与救火记录、技术栈;支持 GitHub、GitLab 和本机仓库,全部在本机分析 | [yujiachen-y](https://github.com/yujiachen-y) |
| [仓库透视](plugins/yujiachen-y/repo-xray/README.zh-CN.md) | 从 Git 历史看懂一个代码仓库:可逐层下钻的代码地图、热点与 Bug 磁铁、高风险文件、负责人与知识流失、提交节奏与救火记录、技术栈;支持 GitHub、GitLab 和本机仓库,全部在本机分析。界面提供中文和英文,可在侧边栏切换 | [yujiachen-y](https://github.com/yujiachen-y) |
| [OpenViking Mini Studio](plugins/openviking/mini-studio/) | 只读浏览和搜索 OpenViking 上下文、预览内容,并把选中的 URI 或内容加入对话 | OpenViking |
| [磁盘透视](plugins/zch0227/disk-insight/README.zh-CN.md) | 查看 macOS 和 Windows 的磁盘空间去向:旭日图空间地图,按三档风险分类的垃圾文件,大文件和重复文件,代码仓库和 Git worktree 的占用;任何条目都可以问 Agent,选中的条目在确认框里逐一列出,确认后直接永久删除。需要 MiniMax Code 3.1.2 或更高版本 | [zch0227](https://github.com/zch0227) |
| [A/时差保安](plugins/liuchen19960902/timezone-guard/README.zh-CN.md) | 发消息前先看对方那边几点:按对方城市当地时间给出「现在可以聊 / 短聊就好 / 先睡,别发」三档判定。需要 MiniMax Code 3.1.2 或更高版本 | [FineCat](https://github.com/LiuChen19960902) |
Expand Down
6 changes: 3 additions & 3 deletions plugins/yujiachen-y/repo-xray/.minimax-plugin/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
"schemaVersion": 1,
"name": "repo-xray",
"displayName": "仓库透视",
"version": "1.0.0",
"description": "从 Git 历史看懂一个代码仓库:代码地图、热点与 bug 磁铁、高风险文件、负责人与知识流失、提交节奏和技术栈。支持 GitHub / GitLab 仓库和本地仓库,全部在本机计算。",
"version": "1.1.0",
"description": "从 Git 历史看懂一个代码仓库:代码地图、热点与 bug 磁铁、高风险文件、负责人与知识流失、提交节奏和技术栈。支持 GitHub / GitLab 仓库和本地仓库,全部在本机计算。界面提供中文和英文,可在侧边栏切换。英文界面名为 Repo X-Ray。",
"author": "yujiachen-y",
"icon": "icon.png",
"category": "Code",
"exampleQueries": ["打开仓库透视", "打开仓库透视,看看这个仓库的代码地图和高风险文件", "用仓库透视看看这个仓库主要是谁在维护"],
"exampleQueries": ["打开仓库透视", "打开仓库透视,看看这个仓库的代码地图和高风险文件", "用仓库透视看看这个仓库主要是谁在维护", "Open Repo X-Ray", "Open Repo X-Ray and show the code map and high-risk files", "Show who maintains this repository"],
"apps": [],
"mcpServers": [],
"skills": []
Expand Down
57 changes: 46 additions & 11 deletions plugins/yujiachen-y/repo-xray/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ what the project is built with.
Analysis runs locally with your own `git`. Nothing is uploaded, and the page loads no remote
resources. The metrics follow the rules of
[codebase-recon-skill](https://github.com/yujiachen-y/codebase-recon-skill), and the Markdown export
uses that skill's report format. The interface is in Chinese.
uses that skill's report format. The interface is in Chinese and English: the language button in the sidebar switches between them. Chinese is the default, and the choice is remembered for the next launch.

![Repo X-Ray code map with synthetic data](docs/preview.jpg)

Expand Down Expand Up @@ -38,6 +38,8 @@ uses that skill's report format. The interface is in Chinese.
files for you; you review the text and send it yourself.
- Suggestions of recently used local repositories, light and dark themes, keyboard shortcuts (press
`?`), and `prefers-reduced-motion` support.
- **Language**: switch the interface between Chinese and English from the sidebar. Chinese is the
default; the choice is remembered for the next launch.

## Requirements

Expand All @@ -50,8 +52,8 @@ uses that skill's report format. The interface is in Chinese.

Copy this directory, including the hidden `.minimax-plugin/`, into the MiniMax Code plugins
directory as `repo-xray/` (`~/.minimax/plugins/repo-xray/` by default; see the root README's Install
section). Restart MiniMax Code, then open 仓库透视 from the Mini App entry in the right panel or ask
the Agent to "打开仓库透视".
section). Restart MiniMax Code, then open the Mini App listed as 仓库透视 (the page itself is titled
"Repo X-Ray") from the right panel, or ask the Agent to open Repo X-Ray.

## Tested environment

Expand All @@ -61,9 +63,23 @@ the Agent to "打开仓库透视".
local repositories, including re-analysis; every tab; every code-map colouring, size, and time
option, drilling in and out with the mouse and the keyboard; the ⌘K search; the Markdown export;
light and dark themes. No console errors or failed requests.
- Not exercised: popping the page out into its own window (`surface.window`, sized 1360×900); the
append into the conversation input, which asks the Host for confirmation; `prefers-reduced-motion`;
Windows and Linux.
- Windows 11 Pro (build 26300) with Git 2.56.1 and Node 26.14.0, in MiniMax Code 3.1.21.235: the
package installs from the repository directory, `npm run check` reports the package as OK there, and
the package tests pass 22/22. Both interfaces were walked on that machine: the language control
switches the whole interface, the English interface shows `(root)` in the New files list and in the
contributors' Top directories column with no Chinese left on any of the six views, an error message
is in English, switching back to Chinese shows `(根目录)` in the same two places, the choice
survives a reload, the page pops out into its own window, a repository removed just before a language
switch still goes with its undo still on offer, and the console and network are clean.
- Not exercised: the append into the conversation input, which asks the Host for confirmation;
`prefers-reduced-motion`; Linux. The Chinese and English interfaces were both checked in
MiniMax Code on a local build: the landing page, the keyboard shortcut list, the local repository
scan, both themes, and a full analysis of a local repository read in each language, including the
language button and the choice surviving a reload. The Overview, Code Map, Contributors and Rhythm
and Firefighting panels were read in both languages, and the server was asked for both languages at
the same time. Popping the page out into its own window (`surface.window`, sized 1360×900) works on
that local build. The High-Risk Files panel, the Markdown export, the search palette and the
settings were not walked in both languages.

## Data & access

Expand Down Expand Up @@ -118,15 +134,23 @@ the Agent to "打开仓库透视".
you added; a repository that redirects (renamed or moved) has to be added again with its new
address. Tokens from `gh` and `glab` are cached in memory only. Git credential helpers and
interactive prompts are turned off for these commands.
- Agent turns: none. No `agentAccess` and no MCP endpoints. "发到对话…", "让 Agent 讲解…", and
"让 Agent 读高风险文件…" call `window.mcode.miniapp.message.append` to place a prepared prompt (a
- Agent turns: none. No `agentAccess` and no MCP endpoints. "Send to chat…", "Have the Agent
explain…", and "Send to chat — have the Agent read the high-risk files…" call
`window.mcode.miniapp.message.append` to place a prepared prompt (a
summary of the report and some file paths) in the conversation input after the Host asks you to
confirm; you decide whether to send it. Where that API is unavailable, the text is copied to the
clipboard instead.
- Clipboard: written only when you click a copy action (a SHA, a path, the Markdown report).
- Browser storage: `localStorage` keeps only the theme, the last opened repository, and the identity
merge preference.
- Reset: remove a repository with 移除 on its page; access tokens can be cleared in Settings. Deleting
- Browser storage: `localStorage` keeps only the theme, the last opened repository, the identity
merge preference, and the interface language under the key `rr-lang` (`zh` or `en`); when the
browser will not write to `localStorage`, `sessionStorage` takes the language over and the stale
`localStorage` entry is dropped so it cannot shadow the new one. `sessionStorage` also holds the
repositories whose removal is waiting out its undo window, under the key `rr-pending-removals`, so that
a reload does not cancel a removal that was already asked for. The page states that language in
the `x-rr-lang` header of every request it makes to the local server, and in the
`lang` query parameter of the event stream; the server writes its messages in that language.
- Reset: remove a repository with the Remove button on its page; access tokens can be cleared in
Settings. Deleting
the app's data directory removes everything it stored.

## Files
Expand All @@ -139,18 +163,29 @@ miniapp/client/index.html Page shell served at /dashboard
miniapp/client/app.js Page logic: routing, tabs, code map, dialogs (no dependencies)
miniapp/client/charts.js Hand-written SVG charts and the treemap layout
miniapp/client/styles.css Styles, light and dark themes
miniapp/client/i18n.js Language selection: which language, remembered in localStorage
miniapp/client/strings.js The English for every Chinese string the page shows
miniapp/client/icon.svg App icon used inside the page
miniapp/node/server.mjs Node entry: start(context) → { dispose }, routes, jobs, SSE
miniapp/node/git.mjs git runner, address parsing, clone and fetch, credentials and proxy
miniapp/node/analyze.mjs Reads the history and computes the report
miniapp/node/codemap.mjs Code map: directory tree, colourings, directory descriptions
miniapp/node/techstack.mjs Tech stack detection from manifests
miniapp/node/i18n.mjs Bilingual messages for the Node side
miniapp/node/util.mjs Date helpers, JSON read and atomic write
miniapp/node/miniapp-api.ts Type declarations for the runtime context
icon.png Plugin icon
docs/preview.jpg README preview (synthetic data)
tests/i18n.test.mjs Checks that every string the page and the Node side show has a translation
```

## Development

`node --test tests/` checks that every string the page and the Node side show has a translation, that
the two layers word the messages they share the same way, and that the queue of repositories waiting
to be deleted survives a reload. The repository CI checks the package manifest, not these tests, so
run them yourself before you open a pull request.

## License

[MIT](./LICENSE)
Loading