Skip to content
Open
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ The MiniMax Code Agent communicates through the host MCP client. Business reques
| [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) |
| [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) |
| [Regex Lab](plugins/lym308758/regex-lab/) | A live regular-expression workbench: test patterns against sample text, inspect every match with capture groups and named groups, and preview replacements — computed entirely in the Mini App, so nothing leaves your machine. | [lym308758](https://github.com/lym308758) |

<details>
<summary>Preview: Token Usage Board</summary>
Expand Down
1 change: 1 addition & 0 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ MiniMax Code Agent 通过宿主 MCP 客户端与 MiniApp 协作。业务请求
| [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/zch0227/disk-insight/README.zh-CN.md) | 查看 macOS 和 Windows 的磁盘空间去向:旭日图空间地图,按三档风险分类的垃圾文件,大文件和重复文件,代码仓库和 Git worktree 的占用;任何条目都可以问 Agent,选中的条目在确认框里逐一列出,确认后直接永久删除。需要 MiniMax Code 3.1.2 或更高版本 | [zch0227](https://github.com/zch0227) |
| [Regex Lab](plugins/lym308758/regex-lab/) | 实时正则工作台:用样例文本测试正则,逐条查看匹配与捕获组 / 命名组,并预览替换结果;计算全部在 Mini App 内完成,数据不出本机 | [lym308758](https://github.com/lym308758) |

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: the other rows link to the plugin's README.zh-CN.md. Please use plugins/lym308758/regex-lab/README.zh-CN.md.


<details>
<summary>预览:Token 用量看板</summary>
Expand Down
17 changes: 17 additions & 0 deletions plugins/lym308758/regex-lab/.minimax-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"schemaVersion": 1,
"name": "regex-lab",
"displayName": "Regex Lab · 正则实验室",
"version": "1.0.0",
"description": "A live regular-expression workbench inside MiniMax Code: test patterns against sample text, inspect every match with capture groups and named groups, and preview replacements. Runs entirely in the Mini App — no data leaves your machine.",
"author": "lym308758",
"icon": "icon.png",
"category": "Code",
"exampleQueries": [
"打开 Regex Lab 正则测试器",
"Open Regex Lab"
],
"apps": [],
"mcpServers": [],
"skills": []
}
21 changes: 21 additions & 0 deletions plugins/lym308758/regex-lab/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 lym308758

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
63 changes: 63 additions & 0 deletions plugins/lym308758/regex-lab/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Regex Lab (`regex-lab`)

A live regular-expression workbench that runs inside MiniMax Code. Type a pattern and some
sample text, watch every match appear with its capture groups and named groups, and preview a
replacement — all computed by the Mini App's own Node backend. Nothing is sent anywhere; the text
never leaves the app.

## What it does

- **Live matching** against the sample text, with match position (`index`–`end`), the matched
substring, numbered capture groups, and named capture groups.
- **Replacement preview** using the standard `$1`, `$<name>`, `$$`, `$&`, `` $` ``, `$'` tokens.
- **Flag toggles** for `g` / `i` / `m` / `s` / `u` / `y`, with a plain-text flag box if you prefer
to type them.
- **Invalid-pattern feedback** — a bad regex shows the engine's error instead of failing silently.

The computation lives in `miniapp/node/regex-engine.mjs` (pure functions, no DOM), shared by the
Node HTTP API and the unit tests, so the logic you see is the logic that runs.

## Install

Copy this directory, including the hidden `.minimax-plugin/`, into the MiniMax Code plugins
directory as `regex-lab/` (`~/.minimax/plugins/regex-lab/` by default). Restart MiniMax Code and
ask the Agent to "Open Regex Lab" (or "打开 Regex Lab 正则测试器").

## Tested environment

- Validated locally with Node.js 22: `node scripts/validate.mjs plugins/lym308758/regex-lab` reports
no errors, and `node --test plugins/lym308758/regex-lab/tests/` passes (engine + HTTP handler).
- **Not verified in the MiniMax Code host UI**: this environment has no MiniMax Code desktop client,
so the page was not opened inside the side panel and the in-app rendering/click-through was not
exercised end to end. The Node backend (page serving + `/api/match` + `/api/replace`) is covered
by `tests/server.test.mjs` against a real `node:http` server, and the regex engine by
`tests/regex-engine.test.mjs`.

## Data & access

- **Files:** reads only its own `miniapp/client/index.html` to serve the page. Writes nothing.
- **Network:** none beyond the Host loopback that serves the page and the JSON API to the page.
- **Processes:** none spawned.
- **Agent turns:** none; the Mini App declares no `agentAccess`.
- **State:** none stored. Each evaluation runs on the text you paste into the page.

## Files

```text
.minimax-plugin/plugin.json Plugin manifest
package.json Mini App declaration
miniapp/miniapp.json Payload roots, Node entry, page route
miniapp/client/index.html The page served at /dashboard
miniapp/node/server.mjs Node entry: start(context) -> { dispose } and the JSON API
miniapp/node/regex-engine.mjs Pure regex functions (match / replace), shared with the tests
icon.png Plugin icon
tests/regex-engine.test.mjs Engine unit tests
tests/server.test.mjs HTTP handler + start() lifecycle tests
README.md This file
README.zh-CN.md Chinese README
LICENSE MIT
```

## License

[MIT](./LICENSE)
40 changes: 40 additions & 0 deletions plugins/lym308758/regex-lab/README.zh-CN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Regex Lab · 正则实验室(`regex-lab`)

运行在 MiniMax Code 内部的实时正则工作台。输入正则和样例文本,逐条查看匹配结果及其捕获组、
命名组,并预览替换效果——全部由 Mini App 自带的 Node 后端完成,文本不会发往任何外部地址。

## 功能

- **实时匹配**:显示每处匹配的位置(`index`–`end`)、匹配内容、编号捕获组与命名捕获组。
- **替换预览**:支持标准 `$1`、`$<name>`、`$$`、`$&`、`` $` ``、`$'` 等替换符。
- **修饰符开关**:`g` / `i` / `m` / `s` / `u` / `y`,也可在文本框直接输入。
- **非法正则提示**:正则无效时显示引擎报错,而不是静默失败。

计算逻辑位于 `miniapp/node/regex-engine.mjs`(纯函数、无 DOM),同时被 Node 接口与单元测试复用,
所见即所跑。

## 安装

将本目录(含隐藏目录 `.minimax-plugin/`)整体复制到 MiniMax Code 的插件目录,命名为
`regex-lab/`(`~/.minimax/plugins/regex-lab/`)。重启 MiniMax Code,请 Agent 打开
「Regex Lab 正则测试器」。

## 验证环境

- 本机使用 Node.js 22 校验通过:`node scripts/validate.mjs plugins/lym308758/regex-lab` 无错误,
`node --test plugins/lym308758/regex-lab/tests/` 全部通过(引擎 + HTTP 接口)。
- **未在 MiniMax Code 宿主界面内验证**:当前环境没有 MiniMax Code 桌面端,因此未把页面真正在侧边栏
中打开,也未做端到端的界面点击验证。Node 后端(页面托管 + `/api/match` + `/api/replace`)由
`tests/server.test.mjs` 在真实 `node:http` 服务上覆盖,正则引擎由 `tests/regex-engine.test.mjs` 覆盖。

## 数据访问

- **文件**:仅读取自身的 `miniapp/client/index.html` 以托管页面,不写入任何文件。
- **网络**:除宿主回环(页面与 JSON 接口)外无任何外部网络访问。
- **进程**:不创建子进程。
- **Agent 回合**:无;本 Mini App 未声明 `agentAccess`。
- **状态**:不存储任何状态,每次计算仅针对你粘贴的文本。

## 许可证

[MIT](./LICENSE)
Binary file added plugins/lym308758/regex-lab/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading