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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ The MiniMax Code Agent communicates through the host MCP client. Business reques
| [Quota Bottle](plugins/7723qqq/quota-bottle/) | An octopus-shaped glass bottle that floats on your desktop and shows the remaining Token Plan quota from a login you configure yourself, with the liquid level and opacity following the remaining share, and a device-code login plus an opt-in local token-usage estimate as fallbacks | [7723qqq](https://github.com/7723qqq) |
| [Site QA](plugins/lonelyguy-se1/site-qa/) | Check local HTML/robots/sitemap for SEO and accessibility gaps, then ask the agent to fix them (Mini App + skill/CLI). Requires MiniMax Code 3.1.6 or later | [LonelyGuySE1](https://github.com/LonelyGuy-SE1) |
| [H3-Image-Executor](plugins/liddalidd/h3-image-executor/) | Turn one sentence into verified 4K images: it plans the shot list, searches for reference images, generates, reviews each image by looking at it, corrects colour cast, runs a bounded fix loop and delivers the result with an acceptance report; multi-image runs generate a character sheet first so the same subject stays the same subject. Needs an H3-Image endpoint and key you configure yourself. Requires MiniMax Code 3.1.6 or later | [liddalidd](https://github.com/liddalidd) |
| [Express Media](plugins/andre-1998/express-media/) | Compress a video to the size each platform accepts and report whether it fits; the bundled limits table shows where every number comes from | [Andre-1998](https://github.com/Andre-1998) |

<details>
<summary>Preview: Cutline</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 @@ -91,6 +91,7 @@ MiniMax Code Agent 通过宿主 MCP 客户端与 MiniApp 协作。业务请求
| [额度瓶](plugins/7723qqq/quota-bottle/README.zh-CN.md) | 一只悬浮在桌面上的章鱼形玻璃瓶,用你自己配置的登录读取 Token Plan 剩余额度;液面与透明度按剩余占比走,拿不到实时额度时回退到设备码登录或手填总额与可选的本机本月用量 | [7723qqq](https://github.com/7723qqq) |
| [Site QA](plugins/lonelyguy-se1/site-qa/) | 检查本地 HTML/robots/sitemap 的 SEO / 无障碍问题,再让 Agent 修复(Mini App + skill/CLI)。需要 MiniMax Code 3.1.6 或更高版本(说明文档为英文) | [LonelyGuySE1](https://github.com/LonelyGuy-SE1) |
| [H3-Image-Executor](plugins/liddalidd/h3-image-executor/README.zh-CN.md) | 把一句话需求跑成经过校验的 4K 图片:规划分镜、检索参考图、生成、看图评审、色偏校正、有限次修正,最后交付图片和验收报告;多图任务会先生成角色设定图锁定主体外观。需要自备 H3-Image 接口地址和 Key。需要 MiniMax Code 3.1.6 或更高版本 | [liddalidd](https://github.com/liddalidd) |
| [急件 · 视频投递](plugins/andre-1998/express-media/README.zh-CN.md) | 把视频压到各平台能收的体积,并如实告诉你发不发得出去;内置上限表标明每个数字的来源 | [Andre-1998](https://github.com/Andre-1998) |

<details>
<summary>预览:Cutline</summary>
Expand Down
21 changes: 21 additions & 0 deletions plugins/andre-1998/express-media/.minimax-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"schemaVersion": 1,
"name": "express-media",
"displayName": "急件 · 视频投递",
"version": "1.1.0",
"description": "在本地把视频压到各平台能收的体积,并能如实告诉你发不发得出去。用于「视频太大发不出去」「微信/Telegram/Discord/邮件限制多少」「压到 25MB」「转 GIF 表情包」「视频太长要裁一段」这类场景。全部在本机处理,文件不上传。",
"author": "Andre-1998",
"icon": "icon.png",
"darkIcon": "icon-dark.png",
"category": "Productivity",
"exampleQueries": [
"这个视频 90MB,微信发不出去,帮我压到能发的大小",
"帮我查一下这个视频发到微信、Telegram、Discord 各是什么限制",
"把这段视频转成 GIF 表情包,控制在 1MB 以内"
],
"apps": [],
"mcpServers": [],
"skills": [
"skills/express-media/SKILL.md"
]
}
21 changes: 21 additions & 0 deletions plugins/andre-1998/express-media/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 Andre-1998

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.
99 changes: 99 additions & 0 deletions plugins/andre-1998/express-media/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
# Express Media (`express-media`)

English | [简体中文](README.zh-CN.md)

A video that is too big to send is a problem you cannot solve by wishing harder. Express Media
measures your clip against the size each platform actually accepts, compresses it locally until
it fits, and tells you the truth when it cannot fit.

**Everything runs on your machine. No file is uploaded anywhere.**

## What you get

- **A Mini App that looks up the limits.** One page listing every supported platform: the size
cap, the duration cap, how trustworthy that number is, and the source it came from.
- **A bundled skill.** Ask for it in plain language: "this video is 90MB and WeChat refuses it,
shrink it to something that fits" or "what is the WeChat / Telegram / Discord video limit".
- **A local CLI.** The same work without the chat: inspect, fit, split, trim, GIF, and a delivery
card for the result.

## The Mini App

Open it from the Mini App entry in the right panel, or ask the Agent to open
"急件 · 平台限制速查". The page reads the bundled `data/platforms.json` — the same table the skill
and the CLI use — and never touches the network.

![The platform limit lookup page](docs/screenshot-limits.png)

## The skill

```text
这个视频发不到微信 / 发不出去 / 太大了
帮我压到 25MB / 20MB 以内
微信、Telegram、Discord 的视频限制是多少
视频太长,裁一段 / 切成几段
```

The skill drives the CLI under the plugin root. Every compression pass is measured with
`ffprobe` afterwards, so "it fits" means the file on disk really is that small. When the target
cannot be reached, the tool says so and offers the next step instead of handing you a file that
still fails.

## The CLI

```bash
node bin/express.mjs doctor # check ffmpeg and report broken candidates
node bin/express.mjs inspect clip.mp4 # size, duration, and what each platform accepts
node bin/express.mjs fit clip.mp4 --to wechat-chat
node bin/express.mjs split clip.mp4 --to wechat-chat
node bin/express.mjs trim clip.mp4 --start 0:10 --end 1:20
node bin/express.mjs gif clip.mp4 --width 320 --square
node bin/express.mjs card clip.mp4 --from clip.mp4
```

Exit codes: `0` fits, `1` compressed but still over the limit, `2` bad arguments or environment.

## Install

Copy this directory, including the hidden `.minimax-plugin/`, into the MiniMax Code plugins
directory as `express-media/` (`~/.minimax/plugins/express-media/` by default; see the root
README's Install section). Restart MiniMax Code, then open "急件 · 平台限制速查" from the
Mini App entry in the right panel.

From MiniMax Code 3.1.11 you can import it instead of copying it: on the Plugins page, choose
**Create**, then **Import from a Git repository** under Mini App, and paste the URL of this
directory:

```text
https://github.com/MiniMax-AI/MiniMax-Code-MiniApps/tree/main/plugins/andre-1998/express-media
```

Compressing needs Node.js 20.11 or later and an ffmpeg build with `libx264`, `aac`, `gif` and
the `sidedata` filter. The limits page needs neither.

## Tested environment

- Windows 11, Node.js 24, ffmpeg 9.0.2 (`libx264`, `aac`, `gif`, `sidedata` all reported usable
by `express doctor`).
- The CLI and the skill were exercised on real video: 96 unit tests and 63 end-to-end tests pass,
every compressed output was measured with `ffprobe`, and the split path was checked by summing
the real duration of every segment.
- The Mini App was published and opened inside the MiniMax Code Host (MiniMax Code 3.1.14 Insider,
Windows 11): the page rendered the full table of 10 platforms, typing 微信 in the search box
narrowed it to the 3 WeChat entries, and the page console reported no errors and no warnings.
The Node entry was also exercised against a stub Host context, where `/limits` and
`/api/platforms` returned the platform table and an unknown route returned 404.

## Data & access

- **Reads** the bundled `data/platforms.json`, and the video file you name. Nothing else.
- **Writes** the compressed file next to the source (or wherever `--out` points) and, unless
`--no-ledger` is given, one ledger line per run in `~/.express/ledger.jsonl`.
- **Network**: none. The plugin never uploads a file, and the limits page loads nothing remote.
- **Permissions**: the Mini App declares no agent, tool, device or host access. It reads no
microphone, camera or notification.
- **Accounts**: none. Nothing is signed in, and no usage data leaves the machine.

## License

MIT
87 changes: 87 additions & 0 deletions plugins/andre-1998/express-media/README.zh-CN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
# 急件 · 视频投递 (`express-media`)

[English](README.md) | 简体中文

视频太大发不出去,不是靠想想就能解决的。急件先量一遍你的片子在各平台到底能收多大,再在本机压到
刚好能发的大小;实在压不进去,它会直说,并给出下一步该怎么处理。

**全部在本机处理,文件不上传任何服务器。**

## 里面有什么

- **一个查上限的 Mini App**:一页列出所有支持平台的体积上限、时长上限、这个数字有多可信,以及它来自哪里。
- **一个内置 skill**:用大白话说就行 —— 「这个视频 90MB,微信发不出去,帮我压到能发的大小」、
「微信、Telegram、Discord 的视频限制分别是多少」。
- **一个本地命令行工具**:同样的活儿,不用聊天也能做 —— 体检、压、分段、裁剪、转 GIF、出投递卡。

## Mini App

在右侧面板的 Mini App 入口打开,或直接让 Agent 打开「急件 · 平台限制速查」。页面读的是插件自带的
`data/platforms.json` —— 和 skill、命令行用的是同一份表,全程不联网。

![平台限制速查页](docs/screenshot-limits.png)

## skill

```text
这个视频发不到微信 / 发不出去 / 太大了
帮我压到 25MB / 20MB 以内
微信、Telegram、Discord 的视频限制是多少
视频太长,裁一段 / 切成几段
```

skill 会驱动插件根目录下的命令行工具。每压一档都用 `ffprobe` 量真实体积,所以「达标」说的是磁盘上
那个文件真的那么大。真压不进去时,工具会明说,并给出替代方案,而不是丢一个仍然发不出去的文件给你。

## 命令行

```bash
node bin/express.mjs doctor # 体检环境(先跑这个)
node bin/express.mjs inspect clip.mp4 # 多大、多长、能不能发
node bin/express.mjs fit clip.mp4 --to wechat-chat
node bin/express.mjs split clip.mp4 --to wechat-chat
node bin/express.mjs trim clip.mp4 --start 0:10 --end 1:20
node bin/express.mjs gif clip.mp4 --width 320 --square
node bin/express.mjs card clip.mp4 --from clip.mp4
```

退出码:`0` 达标 | `1` 压了但仍超限 | `2` 参数或环境问题。

## 安装

把这个目录(含隐藏的 `.minimax-plugin/`)整个复制进 MiniMax Code 的插件目录,命名为
`express-media/`(默认是 `~/.minimax/plugins/express-media/`;见根 README 的 Install 一节)。
重启 MiniMax Code 后,在右侧面板的 Mini App 入口打开「急件 · 平台限制速查」。

MiniMax Code 3.1.11 起也可以直接导入:在插件页选 **创建** → Mini App 下的 **从 Git 仓库导入**,
粘贴本目录地址:

```text
https://github.com/MiniMax-AI/MiniMax-Code-MiniApps/tree/main/plugins/andre-1998/express-media
```

压缩需要 Node.js 20.11 及以上,以及带 `libx264`、`aac`、`gif` 和 `sidedata` 滤镜的 ffmpeg;
只查上限的话两者都不需要。

## 实测环境

- Windows 11,Node.js 24,ffmpeg 9.0.2(`express doctor` 报告 `libx264`、`aac`、`gif`、`sidedata` 均可用)。
- 命令行与 skill 用真实视频跑过:96 个单测、63 个端到端测试全过;每个产物都用 `ffprobe` 独立量过体积,
分段结果逐段核对了真实时长。
- Mini App 在 MiniMax Code 宿主里发布并打开过(Windows 11 上的 MiniMax Code 3.1.14 Insider):
页面完整渲染出 10 个平台,搜索框输入「微信」能筛到 3 条,
页面控制台没有报错也没有警告。Node 入口也用桩 Host 上下文跑过,`/limits` 与 `/api/platforms` 都正常返回
平台表,未知路由返回 404。

## 数据与权限

- **读取**:插件自带的 `data/platforms.json`,以及你指定的那个视频文件。没有别的。
- **写入**:压好的文件放在源文件旁边(或 `--out` 指定的位置);除非加 `--no-ledger`,
每次运行会在 `~/.express/ledger.jsonl` 追加一行台账。
- **网络**:无。插件不上传任何文件,上限页也不加载任何远程资源。
- **权限**:Mini App 没有声明 agent、tool、设备、宿主权限,不碰麦克风、摄像头和通知。
- **账号**:无。不需要登录,也没有任何使用数据离开本机。

## 许可

MIT
7 changes: 7 additions & 0 deletions plugins/andre-1998/express-media/bin/express.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env node
import { main } from '../src/cli.js';

main().catch((err) => {
process.stderr.write(`急件崩了:${err?.stack || err}\n`);
process.exit(1);
});
Loading
Loading