opencode-minimax-easy-vision 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +65 -41
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,6 +6,30 @@ Originally built for [MiniMax](https://www.minimax.io/) models, it can be config
|
|
|
6
6
|
|
|
7
7
|
It restores the "paste and ask" workflow by automatically saving image assets and routing them through the [MiniMax Coding Plan MCP](https://github.com/MiniMax-AI/MiniMax-Coding-Plan-MCP)
|
|
8
8
|
|
|
9
|
+
## Table of Contents
|
|
10
|
+
|
|
11
|
+
* [Demo](#demo)
|
|
12
|
+
* [The Problem](#the-problem)
|
|
13
|
+
* [Prerequisites](#prerequisites)
|
|
14
|
+
* [Installation](#installation)
|
|
15
|
+
* [Via npm](#via-npm)
|
|
16
|
+
* [From Local Source](#from-local-source)
|
|
17
|
+
* [What This Plugin Does](#what-this-plugin-does)
|
|
18
|
+
* [Supported Models](#supported-models)
|
|
19
|
+
* [Custom Model Configuration](#custom-model-configuration)
|
|
20
|
+
* [Locations (Priority Order)](#locations-priority-order)
|
|
21
|
+
* [Config Format](#config-format)
|
|
22
|
+
* [Pattern Syntax](#pattern-syntax)
|
|
23
|
+
* [Wildcard Rules](#wildcard-rules)
|
|
24
|
+
* [Configuration Examples](#configuration-examples)
|
|
25
|
+
* [Custom Image Analysis Tool](#custom-image-analysis-tool)
|
|
26
|
+
* [Supported Image Formats](#supported-image-formats)
|
|
27
|
+
* [Usage](#usage)
|
|
28
|
+
* [Example Interaction](#example-interaction)
|
|
29
|
+
* [Development](#development)
|
|
30
|
+
* [License](#license)
|
|
31
|
+
* [References](#references)
|
|
32
|
+
|
|
9
33
|
## Demo
|
|
10
34
|
|
|
11
35
|
See how it works:
|
|
@@ -24,6 +48,47 @@ These models expect the MiniMax Coding Plan MCP's `understand_image` tool, which
|
|
|
24
48
|
* **Manual steps**: You have to save screenshots manually, find the path, and reference it in your prompt.
|
|
25
49
|
* **Broken flow**: The "paste and ask" experience available with Claude or GPT models is lost.
|
|
26
50
|
|
|
51
|
+
## Prerequisites
|
|
52
|
+
|
|
53
|
+
The MiniMax Coding Plan MCP server must be configured in your `opencode.json`:
|
|
54
|
+
|
|
55
|
+
```json
|
|
56
|
+
{
|
|
57
|
+
"mcp": {
|
|
58
|
+
"MiniMax": {
|
|
59
|
+
"command": "uvx",
|
|
60
|
+
"args": ["minimax-coding-plan-mcp"],
|
|
61
|
+
"env": {
|
|
62
|
+
"MINIMAX_API_KEY": "your-api-key-here",
|
|
63
|
+
"MINIMAX_API_HOST": "https://api.minimax.io"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## Installation
|
|
71
|
+
|
|
72
|
+
### Via npm
|
|
73
|
+
|
|
74
|
+
Just add the plugin to the `plugin` array in your `opencode.json` file:
|
|
75
|
+
|
|
76
|
+
```json
|
|
77
|
+
{
|
|
78
|
+
"$schema": "https://opencode.ai/config.json",
|
|
79
|
+
"plugin": ["opencode-minimax-easy-vision"]
|
|
80
|
+
}
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### From Local Source
|
|
84
|
+
|
|
85
|
+
1. Clone the repository.
|
|
86
|
+
2. Build the plugin:
|
|
87
|
+
```bash
|
|
88
|
+
npm install && npm run build
|
|
89
|
+
```
|
|
90
|
+
3. Copy the built `dist/index.js` into your OpenCode plugin directory.
|
|
91
|
+
|
|
27
92
|
## What This Plugin Does
|
|
28
93
|
|
|
29
94
|
This plugin automates the vision pipeline so you don't have to think about it.
|
|
@@ -144,47 +209,6 @@ The plugin will instruct the model to use the configured tool. The tool should a
|
|
|
144
209
|
|
|
145
210
|
*(Limited by the [MiniMax Coding Plan MCP](https://github.com/MiniMax-AI/MiniMax-Coding-Plan-MCP) `understand_image` tool.)*
|
|
146
211
|
|
|
147
|
-
## Installation
|
|
148
|
-
|
|
149
|
-
### Via npm
|
|
150
|
-
|
|
151
|
-
Just add the plugin to the `plugin` array in your `opencode.json` file:
|
|
152
|
-
|
|
153
|
-
```json
|
|
154
|
-
{
|
|
155
|
-
"$schema": "https://opencode.ai/config.json",
|
|
156
|
-
"plugin": ["opencode-minimax-easy-vision"]
|
|
157
|
-
}
|
|
158
|
-
```
|
|
159
|
-
|
|
160
|
-
### From Local Source
|
|
161
|
-
|
|
162
|
-
1. Clone the repository.
|
|
163
|
-
2. Build the plugin:
|
|
164
|
-
```bash
|
|
165
|
-
npm install && npm run build
|
|
166
|
-
```
|
|
167
|
-
3. Copy the built `dist/index.js` into your OpenCode plugin directory.
|
|
168
|
-
|
|
169
|
-
## Prerequisites
|
|
170
|
-
|
|
171
|
-
The MiniMax Coding Plan MCP server must be configured in your `opencode.json`:
|
|
172
|
-
|
|
173
|
-
```json
|
|
174
|
-
{
|
|
175
|
-
"mcp": {
|
|
176
|
-
"MiniMax": {
|
|
177
|
-
"command": "uvx",
|
|
178
|
-
"args": ["minimax-coding-plan-mcp"],
|
|
179
|
-
"env": {
|
|
180
|
-
"MINIMAX_API_KEY": "your-api-key-here",
|
|
181
|
-
"MINIMAX_API_HOST": "https://api.minimax.io"
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
```
|
|
187
|
-
|
|
188
212
|
## Usage
|
|
189
213
|
|
|
190
214
|
1. Select a supported model in OpenCode.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-minimax-easy-vision",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "OpenCode plugin that enables vision support for Minimax models by saving pasted images and injecting MCP tool instructions",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|