Skip to content

Commit cfcaa0f

Browse files
authored
refactor(an-bot-team): drop the vendor prefix, bring our own icon, and let the package see its own tools (#149)
This package is not the official MiniMax Bot, and it should not look like one. Three things change here. ## 1. The name The package is now `an-bot-team`. The directory, the manifest name, package.json, the MCP server name, the `/mcp` route and the two READMEs all carry the new name, and the version moves to 1.1.0. This renames the package, so the listing and the install path change. If you would rather keep the old name and take only the icon, say so and I will split it. ## 2. The icon The icon this package carried was the official package's file, byte for byte - the same blob. A package that is not the official product should not wear the official product's face, so it carries its own now: three octopuses in three forms - the glass one, the gold one and the pixel one - in a small pyramid on a deep teal field. The shapes are the skins the package itself ships in `miniapp/client/skins`, so the icon and the avatars a user picks in the panel are one family. The glass octopus sits on top and the other two below: one chief Bot and its members. ## 3. The package could not recognize its own tools Four places in the package still carried the name of the plugin it was built from: - `miniapp/node/engine.mjs` checked for `mcp__minimax-bot-pro__`, while the package's MCP server is registered under the package name - so `isPluginTool()` never recognized the package's own tools, and the group rule at engine.mjs:847 treated them as foreign tools and cut them off; - `miniapp/node/strings.mjs` told the model that its tools come from an MCP server named after the plugin - a server that does not exist in this package; - `miniapp/client/app.js` recognized team tools by the same wrong name; - `miniapp/client/core.js` used it as the key of the page preferences. The builder now writes the identity of the package everywhere it is written: the manifest, package.json, the MCP server name, the route, the tool prefix the engine recognizes, the prompt tags the relay guard matches, the strings that name the product, and the panel title. The engine now checks for `mcp__an-bot-team__` against a server named `an-bot-team`. Two guards keep it that way. The build fails when a file of the package - generated or hand-written - carries a `minimax-` prefix (the Host's own `.minimax-plugin` directory excepted), and it fails when a file calls the product `MiniMax Bot`. The MIT attribution to the MiniMax Bot Mini App stays in the README and in the LICENSE, where it belongs. ## Checks - `npm run validate` - this package: 0 errors, 1 warning (`ENTRY_STDOUT` in `miniapp/node/memory-bridge.mjs`, the helper's own output channel - unchanged) - `npm run check` - 92/92 - `node --test plugins/antianqi/an-bot-team/tests/chat-delete-atomicity.test.mjs` - 2/2 Both guards were falsified before this pull request: a `minimax-` prefix in the plugin source and one in the package README each make the build fail, and the build is green again after the restore.
1 parent c311ff6 commit cfcaa0f

68 files changed

Lines changed: 78 additions & 79 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎README.md‎

Lines changed: 1 addition & 1 deletion

‎README.zh-CN.md‎

Lines changed: 1 addition & 1 deletion

plugins/antianqi/minimax-bot-team/.minimax-plugin/plugin.json renamed to plugins/antianqi/an-bot-team/.minimax-plugin/plugin.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"schemaVersion": 1,
3-
"name": "minimax-bot-team",
4-
"displayName": "MiniMax Bot Team / MiniMax Bot 团队",
5-
"version": "1.0.1",
6-
"description": "现在的 bot 像一个人轮流带着几个面具跟你聊天。MiniMax Bot Team 给你的是一支真正各有能力、各有性格的团队,各自守着一个领域,也能围坐一起,从不同角度讨论同一个问题。 / Today's bot is one person wearing several masks, taking turns with you. MiniMax Bot Team gives you a team instead: members with different skills and different temperaments, each guarding one field, and they can sit down together and argue about the same question from different angles.",
3+
"name": "an-bot-team",
4+
"displayName": "An-bot-team / An Bot 团队",
5+
"version": "1.1.0",
6+
"description": "现在的 bot 像一个人轮流带着几个面具跟你聊天。An-bot-team 给你的是一支真正各有能力、各有性格的团队,各自守着一个领域,也能围坐一起,从不同角度讨论同一个问题。 / Today's bot is one person wearing several masks, taking turns with you. An-bot-team gives you a team instead: members with different skills and different temperaments, each guarding one field, and they can sit down together and argue about the same question from different angles.",
77
"author": "antianqi",
88
"icon": "icon.png",
99
"category": "Productivity",

plugins/antianqi/minimax-bot-team/README.md renamed to plugins/antianqi/an-bot-team/README.md

Lines changed: 8 additions & 9 deletions

plugins/antianqi/minimax-bot-team/README.zh-CN.md renamed to plugins/antianqi/an-bot-team/README.zh-CN.md

Lines changed: 8 additions & 8 deletions
276 KB

plugins/antianqi/minimax-bot-team/miniapp/client/app.css renamed to plugins/antianqi/an-bot-team/miniapp/client/app.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* MiniMax Bot — visual language follows DS Bot's team surface, adapted to MiniMax Code. */
1+
/* An-bot-team — visual language follows DS Bot's team surface, adapted to MiniMax Code. */
22
:root,
33
[data-theme='light'] {
44
--bg: #fcfcfc;

plugins/antianqi/minimax-bot-team/miniapp/client/app.js renamed to plugins/antianqi/an-bot-team/miniapp/client/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const TOOL_PHRASES = [
6666
[/image|video|audio|music|speech/i, 'tool.media'],
6767
];
6868
const baseToolName = (name) => String(name ?? '').replace(/^mcp__.*?__/, '');
69-
const isTeamTool = (name) => String(name).includes('minimax-bot-pro') || TEAM_TOOLS.has(baseToolName(name));
69+
const isTeamTool = (name) => String(name).includes('an-bot-team') || TEAM_TOOLS.has(baseToolName(name));
7070
/** What a tool call does, in words; `bare` drops the "use" wrapper for unknown tools. */
7171
const toolPhrase = (name, bare = false) => {
7272
const key = TOOL_PHRASES.find(([re]) => /** @type {RegExp} */ (re).test(baseToolName(name)))?.[1];

plugins/antianqi/minimax-bot-team/miniapp/client/client-api.ts renamed to plugins/antianqi/an-bot-team/miniapp/client/client-api.ts

File renamed without changes.

0 commit comments

Comments
 (0)