@ohmygame/minimax 0.1.0 → 0.1.2

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.
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "$schema": "https://www.ohmygame.ai/schema/plugin-2.json",
3
3
  "id": "ohmygame/minimax",
4
- "version": "0.1.0",
4
+ "version": "0.1.2",
5
5
  "engines": {
6
- "ohmygame-api": "^2.7.0"
6
+ "ohmygame-api": "^2.8.0"
7
7
  },
8
8
  "displayName": "%plugin.name%",
9
9
  "description": "%plugin.description%",
package/README.md CHANGED
@@ -4,20 +4,29 @@ Optional MiniMax H3 and H3 Max video provider for OhMyGame, with independent Chi
4
4
  and Global API keys. Includes text-to-video, first/last frames and up to nine
5
5
  reference images. The provider and plugin details use the MiniMax logo.
6
6
 
7
- This is an optional beta plugin. It needs OhMyGame API 2.7 with
8
- reference-dependent video aspect ratios ([app #825](https://github.com/WhiteTowerAI/ohmygame/pull/825)).
7
+ This is an optional beta plugin. It needs OhMyGame API 2.8 with durable retry ownership
8
+ ([app #848](https://github.com/WhiteTowerAI/ohmygame/pull/848)).
9
9
  Install it from the plugin catalog in a compatible app. It is not preinstalled.
10
- Existing built-in MiniMax keys, switches, model selections and saved boards are
11
- unchanged; their migration is a later increment. The provider names include
12
- “(plugin)” to distinguish them.
10
+ Apps with MiniMax migration support can move existing keys, switches, global and
11
+ project defaults, and saved canvas selections to this plugin. Migration requires
12
+ an enabled, authorized official npm release whose exact contents the app has
13
+ reviewed. An unpacked development folder is not a migration target. Installing or
14
+ updating the plugin alone does not activate migration; see the app's
15
+ [migration and cutover guide](https://github.com/WhiteTowerAI/ohmygame/blob/dev/docs/media-provider-plugins.md#minimax-committed-profile-cutover).
13
16
 
14
- The beta release has automated adapter coverage; live video generation and
15
- quit/reopen recovery still need the local acceptance below. Publication does not
16
- activate migration or replace the built-in provider.
17
+ After migration commits, manage MiniMax credentials in this plugin. The app keeps
18
+ original keys and task history, hides the built-in connection, and does not
19
+ reactivate it if the plugin is disabled or removed. Old built-in jobs have no
20
+ recoverable vendor task ID: check their status in MiniMax before intentionally
21
+ starting a new generation. Plugin jobs retain the recovery behavior below.
22
+
23
+ 支持迁移的应用会在确认官方 npm 包、启用状态和授权后,迁移密钥、开关、默认模型和
24
+ 画布选择。迁移后在插件中管理密钥;停用或卸载插件不会恢复旧内置服务。原密钥及
25
+ 任务记录保留,旧内置任务无法安全恢复,请先在 MiniMax 确认任务状态再决定是否重新生成。
17
26
 
18
27
  ## Local testing / 本地测试
19
28
 
20
- 1. Run app `dev` including merged #825. In Plugins, install this `plugins/minimax`
29
+ 1. Use an app with OhMyGame API 2.8. In Plugins, install this `plugins/minimax`
21
30
  folder, review its three network hosts, then enable it for every project.
22
31
  在配套应用分支中,打开插件页,安装本目录并启用;检查图标和中英文说明。
23
32
  2. Set either **China API key** from [platform.minimax.cn](https://platform.minimax.cn/)
@@ -37,11 +46,16 @@ activate migration or replace the built-in provider.
37
46
  5. Stop a pending job. Local waiting should end promptly; inspect the original
38
47
  job in MiniMax yourself. **Stop does not cancel the remote job or its charges.**
39
48
  MiniMax's DELETE endpoint also deletes completed records, so this plugin does
40
- not call it. Retry after a deliberate stop is a new generation.
41
- 停止仅结束本地等待,远端任务可能继续并计费;停止后重试会创建新任务。
42
- 6. Existing built-in provider keys/switches and saved boards must still work.
43
- Disable this plugin and confirm only its two providers disappear.
44
- 禁用本插件后,原内置服务与已保存画布保持不变。
49
+ not call it. Retry checks the same task; it must not send a second create request.
50
+ 停止仅结束本地等待,远端任务可能继续并计费;重试继续查询原任务,不重复创建。
51
+ 6. For migration testing, use an isolated profile and the official npm version
52
+ reviewed by the app. Restart after enabling it for every project. Check both
53
+ regions' choices, defaults and saved boards; original keys and historical
54
+ task inputs must remain on disk. After migration, disable the plugin: its
55
+ models disappear and the old built-in provider stays retired. A profile
56
+ whose migration is deferred keeps its existing built-in connection.
57
+ 使用独立测试目录及应用已校验的官方 npm 版本验证迁移;确认密钥、开关、默认选择
58
+ 和历史任务保留。迁移后禁用插件不能回退到旧服务;尚未迁移的账户保持原行为。
45
59
 
46
60
  Automated tests use the actual sandbox adapter, host permission/network boundary,
47
61
  regional secret lookup and durable journals with mocked HTTP. They cover request
@@ -59,8 +73,10 @@ unexpected host fails visibly instead of broadening access.
59
73
  A lost create response or server error is treated as possibly accepted; retry
60
74
  cannot submit another paid job. Check the vendor console before starting a new
61
75
  one. A structured 4xx rejection allows a corrected retry. Repeated polling errors
62
- end the attempt under the host's existing retry policy; they never submit a new
63
- task automatically. Only a normal app shutdown preserves a pending job for resume.
76
+ end the local attempt and preserve its task for retry, as do local stop, timeout,
77
+ app shutdown and interrupted downloads. Retry queries the original task rather
78
+ than submitting a replacement. A definite terminal vendor error clears the task;
79
+ starting a new generation is a separate intentional action.
64
80
 
65
81
  Sources checked 2026-11-14:
66
82
  [create](https://platform.minimax.io/docs/api-reference/video-generation-v2-create),
package/locales/en.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "plugin.name": "MiniMax Video",
3
3
  "plugin.description": "Make videos with MiniMax H3 and H3 Max using your own API key.",
4
- "plugin.longDescription": "Adds separate China and Global video providers. Supports text, first/last frames and up to nine reference images. Stop ends local waiting; the remote task may continue and incur charges. Existing built-in MiniMax settings are not migrated yet.",
4
+ "plugin.longDescription": "Adds separate China and Global video providers. Supports text, first/last frames and up to nine reference images. Stop ends local waiting; the remote task may continue and incur charges. Compatible app versions can move existing MiniMax settings into this plugin.",
5
5
  "provider.cn": "MiniMax China (plugin)",
6
6
  "provider.global": "MiniMax Global (plugin)",
7
7
  "config.cn.title": "China API key",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "plugin.name": "MiniMax 视频",
3
3
  "plugin.description": "使用自己的 API 密钥,通过 MiniMax H3 和 H3 Max 生成视频。",
4
- "plugin.longDescription": "提供独立的中国区和国际区视频服务,支持文字、首尾帧和最多九张参考图。停止只结束本地等待,远端任务可能继续运行并计费。现有内置 MiniMax 设置尚未迁移。",
4
+ "plugin.longDescription": "提供独立的中国区和国际区视频服务,支持文字、首尾帧和最多九张参考图。停止只结束本地等待,远端任务可能继续运行并计费。支持迁移的应用版本可将原有 MiniMax 设置迁入本插件。",
5
5
  "provider.cn": "MiniMax 中国区(插件)",
6
6
  "provider.global": "MiniMax 国际区(插件)",
7
7
  "config.cn.title": "中国区 API 密钥",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ohmygame/minimax",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "MiniMax H3 video models for China and Global accounts.",
5
5
  "keywords": [
6
6
  "ohmygame-plugin",