compshare-cli 0.5.6__tar.gz → 0.5.7__tar.gz

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.
Files changed (72) hide show
  1. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/CHANGELOG.md +7 -0
  2. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/PKG-INFO +1 -1
  3. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/connector/compshare/connector-meta.json +1 -1
  4. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/connector/compshare/mcp.json +1 -1
  5. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/connector/compshare/skills/compshare/SKILL.md +14 -1
  6. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/plugin.json +2 -2
  7. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/skills/compshare-cli/SKILL.md +26 -7
  8. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/src/compshare_cli/__init__.py +1 -1
  9. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/src/compshare_cli/commands/minimax.py +1 -3
  10. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/src/compshare_cli/i18n.py +0 -3
  11. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/src/compshare_cli.egg-info/PKG-INFO +1 -1
  12. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/tests/test_minimax.py +44 -2
  13. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/tests/test_minimax_media.py +29 -2
  14. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/.agents/plugins/marketplace.json +0 -0
  15. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/LICENSE +0 -0
  16. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/MANIFEST.in +0 -0
  17. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/README.md +0 -0
  18. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/RELEASING.md +0 -0
  19. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/connector/compshare/icon.svg +0 -0
  20. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/connector/compshare/token-schema.json +0 -0
  21. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/pyproject.toml +0 -0
  22. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/setup.cfg +0 -0
  23. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/skills/compshare-cli/agents/openai.yaml +0 -0
  24. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/src/compshare_cli/__main__.py +0 -0
  25. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/src/compshare_cli/actions.py +0 -0
  26. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/src/compshare_cli/api.py +0 -0
  27. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/src/compshare_cli/cli.py +0 -0
  28. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/src/compshare_cli/commands/__init__.py +0 -0
  29. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/src/compshare_cli/commands/bandwidth.py +0 -0
  30. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/src/compshare_cli/commands/common.py +0 -0
  31. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/src/compshare_cli/commands/doctor.py +0 -0
  32. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/src/compshare_cli/commands/image.py +0 -0
  33. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/src/compshare_cli/commands/instance.py +0 -0
  34. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/src/compshare_cli/commands/storage.py +0 -0
  35. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/src/compshare_cli/commands/team.py +0 -0
  36. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/src/compshare_cli/config.py +0 -0
  37. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/src/compshare_cli/errors.py +0 -0
  38. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/src/compshare_cli/insights.py +0 -0
  39. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/src/compshare_cli/instance_templates.py +0 -0
  40. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/src/compshare_cli/location.py +0 -0
  41. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/src/compshare_cli/mcp_server.py +0 -0
  42. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/src/compshare_cli/output.py +0 -0
  43. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/src/compshare_cli/parsing.py +0 -0
  44. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/src/compshare_cli/remote_jobs.py +0 -0
  45. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/src/compshare_cli/runtime.py +0 -0
  46. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/src/compshare_cli/sdk.py +0 -0
  47. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/src/compshare_cli/ssh.py +0 -0
  48. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/src/compshare_cli/ssh_cache.py +0 -0
  49. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/src/compshare_cli.egg-info/SOURCES.txt +0 -0
  50. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/src/compshare_cli.egg-info/dependency_links.txt +0 -0
  51. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/src/compshare_cli.egg-info/entry_points.txt +0 -0
  52. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/src/compshare_cli.egg-info/requires.txt +0 -0
  53. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/src/compshare_cli.egg-info/top_level.txt +0 -0
  54. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/tests/test_actions.py +0 -0
  55. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/tests/test_api.py +0 -0
  56. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/tests/test_bandwidth.py +0 -0
  57. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/tests/test_cfs.py +0 -0
  58. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/tests/test_cli.py +0 -0
  59. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/tests/test_config.py +0 -0
  60. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/tests/test_insights.py +0 -0
  61. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/tests/test_instance_templates.py +0 -0
  62. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/tests/test_location.py +0 -0
  63. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/tests/test_mcp_server.py +0 -0
  64. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/tests/test_output.py +0 -0
  65. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/tests/test_parsing.py +0 -0
  66. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/tests/test_release_version.py +0 -0
  67. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/tests/test_remote_jobs.py +0 -0
  68. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/tests/test_sdk.py +0 -0
  69. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/tests/test_ssh.py +0 -0
  70. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/tests/test_ssh_cache.py +0 -0
  71. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/tests/test_ssh_integration.py +0 -0
  72. {compshare_cli-0.5.6 → compshare_cli-0.5.7}/tests/test_workbuddy_connector.py +0 -0
@@ -2,6 +2,13 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.5.7
6
+
7
+ - 对齐最新 H3 API,允许仅用参考音频创建视频,可省略文本提示词。
8
+ - 将 IndexTTS 2.5 语音生成的参考音频上传时长上限调整为 30 秒;H3 视频参考音频仍为
9
+ 单段 2~15.08 秒,同类合计不超过 15.08 秒。
10
+ - 同步 CLI 和 WorkBuddy Skill 的素材限制、提示词优化及参考视频费用和语音结果保留说明。
11
+
5
12
  ## 0.5.6
6
13
 
7
14
  - 移除 `compshare feedback` 命令及反馈提交功能。
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: compshare-cli
3
- Version: 0.5.6
3
+ Version: 0.5.7
4
4
  Summary: Command-line client for CompShare GPU compute and MiniMax H3
5
5
  Author: CompShare
6
6
  License-Expression: Apache-2.0
@@ -8,7 +8,7 @@
8
8
  "source": "compshare",
9
9
  "type": "mcp",
10
10
  "auth_mode": "token",
11
- "version": "0.5.6",
11
+ "version": "0.5.7",
12
12
  "minWorkbuddyVersion": "5.0.0",
13
13
  "examples_zh": [
14
14
  "查询上海可用的 RTX 4090 GPU 规格、库存和价格",
@@ -7,7 +7,7 @@
7
7
  "--python",
8
8
  "3.11",
9
9
  "--from",
10
- "compshare-cli[mcp]==0.5.6",
10
+ "compshare-cli[mcp]==0.5.7",
11
11
  "compshare-mcp"
12
12
  ],
13
13
  "env": {
@@ -3,7 +3,7 @@ name: compshare
3
3
  description: Manage CompShare GPU cloud resources and MiniMax H3 media tasks through the controlled CompShare MCP bridge.
4
4
  description_zh: 通过受控 CompShare MCP 桥接查询和管理优云智算 GPU 云资源及 MiniMax H3 视频、图片和语音任务。
5
5
  description_en: Manage CompShare GPU cloud resources and MiniMax H3 media tasks through the controlled CompShare MCP bridge.
6
- version: "0.5.6"
6
+ version: "0.5.7"
7
7
  author: "CompShare"
8
8
  ---
9
9
 
@@ -175,10 +175,23 @@ MiniMax 使用 Token 表单中的独立 `COMPSHARE_MINIMAX_API_KEY`。缺失时
175
175
 
176
176
  图片默认使用 1K;2K 以配置接口返回的价格是否存在为准,价格为 `null` 时不要提交。
177
177
 
178
+ 视频 4~30 秒均一次生成,包括带参考视频的任务。`--context-ir` 默认关闭,所有时长均
179
+ 强烈建议开启,每条任务另收 5 积分;使用 `--skill-id` 时必须同时开启。
180
+ 全能参考允许仅用音频,最多 9 张图片、3 段视频、3 段音频,合计最多 12 个;不能与首尾帧混用。
181
+ 图片宽高均为 256~5760 像素,宽高比为 0.4~2.5,单张最多 30 MiB。
182
+ 参考视频单段最多 50 MiB,参考音频单段最多 15 MiB;单段时长均为 2~15.08 秒,
183
+ 视频和音频分别累计,各自合计不超过 15.08 秒。参考视频合计时长向上取整到秒后收费,
184
+ 480P 为每秒 5 积分,其他分辨率为每秒 10 积分;图片和音频参考不另收输入费。
185
+
178
186
  视频素材支持公开 URL 或 Data URL;图片和语音参考素材通过 `image upload`、
179
187
  `audio upload` 登记后使用资产 ID。生成结果 URL 默认脱敏;不要为了显示它而绕过连接器
180
188
  的敏感输出限制。
181
189
 
190
+ `audio upload --duration-ms` 用于语音参考素材,时长为 500~30000 毫秒,文件最多 15 MiB,
191
+ 与视频生成中的参考音频限制不同。语音生成结果由组织媒体库管理,自动清理默认关闭,
192
+ 开启后按组织的保留时长或容量设置清理。未使用的语音参考素材默认保留 7 天;
193
+ 保存的自定义音色单独保留。删除已完成任务会同时删除结果文件。
194
+
182
195
  ## 故障恢复
183
196
 
184
197
  - `authentication` 或 `configuration_error`:让用户在 WorkBuddy Connector 设置中更新两把
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
3
  "name": "compshare-cli",
4
- "version": "0.5.6",
4
+ "version": "0.5.7",
5
5
  "description": "Manage CompShare GPU cloud resources and MiniMax H3 media tasks through the compshare CLI.",
6
6
  "author": {
7
7
  "name": "CompShare"
@@ -25,7 +25,7 @@
25
25
  ]
26
26
  },
27
27
  "publication": {
28
- "release_notes": "Adds CFS storage workflows and instance template options, confirms container storage purchases and restarts, defaults image creation to 1K, and removes the feedback command."
28
+ "release_notes": "Allows audio-only references for MiniMax H3 video, extends IndexTTS speech reference uploads to 30 seconds, and updates media limits, fees, and retention guidance."
29
29
  }
30
30
  }
31
31
  }
@@ -340,10 +340,24 @@ compshare --json minimax create 'A sailboat crossing a golden sea' \
340
340
 
341
341
  Use `--first-frame` and `--last-frame` for frame-driven video, or repeat
342
342
  `--reference-image`, `--reference-video` and `--reference-audio` for reference-driven video.
343
- Video supports 480P, 768P, 1080P, 2K and 4K and durations from 4 to 30 seconds. Use
344
- `minimax skill list` to find a Skill, then pass both `--context-ir` and `--skill-id`.
345
- Video inputs may use publicly accessible URLs or Data URLs. For callbacks, pass `--callback-url` and set
346
- `COMPSHARE_MINIMAX_CALLBACK_TOKEN` if the receiver validates a token.
343
+ Audio references can be used alone, with or without a text prompt. Frame inputs cannot be
344
+ combined with reference inputs. Reference inputs allow up to 9 images, 3 videos and 3 audio
345
+ clips, with at most 12 in total.
346
+
347
+ Video supports 480P, 768P, 1080P, 2K and 4K and durations from 4 to 30 seconds, generated in
348
+ one pass even with video references. `--context-ir` is optional for every duration and off by
349
+ default; it is strongly recommended and adds 5 points per task. Use `minimax skill list` to
350
+ find a Skill, then pass both `--context-ir` and `--skill-id`.
351
+
352
+ Video inputs may use publicly accessible URLs or Data URLs. Images must be at most 30 MiB,
353
+ with each dimension between 256 and 5760 pixels and a width/height ratio between 0.4 and 2.5.
354
+ Reference videos allow at most 50 MiB per file; reference audio allows 15 MiB. Each video or
355
+ audio clip must be 2-15.08 seconds long, and each media type has a separate total duration
356
+ limit of 15.08 seconds. Input limits are independent of the output video duration.
357
+ Video references add 5 points per input second at 480P or 10 at higher resolutions, with
358
+ durations summed before rounding up to whole seconds. Image and audio references add no
359
+ input fee. For callbacks, pass `--callback-url` and set `COMPSHARE_MINIMAX_CALLBACK_TOKEN`
360
+ if the receiver validates a token.
347
361
  Generated video URLs stay redacted unless the user explicitly needs them and `--show-sensitive`
348
362
  is added as a root option.
349
363
 
@@ -385,11 +399,16 @@ compshare --json minimax audio show TASK_ID
385
399
  ```
386
400
 
387
401
  For an authorized reference recording, `minimax audio upload FILE --duration-ms MS --yes`
388
- returns an asset ID. Use `--voice-source asset --asset-id ASSET_ID`, or save it with
402
+ accepts 500-30000 milliseconds and at most 15 MiB, and returns an asset ID. These speech
403
+ reference limits differ from the audio references used for video generation above.
404
+ Use `--voice-source asset --asset-id ASSET_ID`, or save it with
389
405
  `minimax audio voice-create ASSET_ID NAME --yes` and then use `--voice-source custom --voice-id VOICE_ID`.
390
406
  Generated image and speech URLs stay redacted unless the user explicitly needs them and
391
- `--show-sensitive` is added as a root option. Download speech output promptly; the API retains
392
- it for seven days. Deleting a finished task also removes its output.
407
+ `--show-sensitive` is added as a root option. Speech output is managed in the organization's
408
+ media library; automatic cleanup is off by default and follows organization retention or
409
+ capacity settings when enabled. Download output promptly. Unused speech reference assets
410
+ are retained for seven days by default; saved custom voices are kept separately.
411
+ Deleting a finished task also removes its output.
393
412
 
394
413
  ## Diagnostics
395
414
 
@@ -1,3 +1,3 @@
1
1
  """CompShare command-line client."""
2
2
 
3
- __version__ = "0.5.6"
3
+ __version__ = "0.5.7"
@@ -190,8 +190,6 @@ def _content(
190
190
  raise UsageError(tr("Prompt cannot be empty."))
191
191
  if sum(map(len, (reference_images, reference_videos, reference_audio))) > 12:
192
192
  raise UsageError(tr("At most 12 reference inputs are allowed."))
193
- if reference_audio and not (reference_images or reference_videos):
194
- raise UsageError(tr("Reference audio requires a reference image or video."))
195
193
  limits = (
196
194
  (reference_images, 9, "--reference-image"),
197
195
  (reference_videos, 3, "--reference-video"),
@@ -960,7 +958,7 @@ def audio_upload(
960
958
  ctx: typer.Context,
961
959
  file: Path = typer.Argument(..., exists=True, dir_okay=False, readable=True),
962
960
  duration_ms: int = typer.Option(
963
- ..., min=500, max=15000, help="Actual duration in milliseconds."
961
+ ..., min=500, max=30000, help="Actual duration in milliseconds."
964
962
  ),
965
963
  yes: bool = typer.Option(False, "--yes", "-y"),
966
964
  ) -> None:
@@ -120,9 +120,6 @@ ZH_TRANSLATIONS: Dict[str, str] = {
120
120
  ),
121
121
  "{option} may be specified at most {maximum} times.": ("{option} 最多可指定 {maximum} 次。"),
122
122
  "At most 12 reference inputs are allowed.": "参考素材合计最多 12 个。",
123
- "Reference audio requires a reference image or video.": (
124
- "参考音频需要同时指定参考图片或视频。"
125
- ),
126
123
  "Unsupported video model: {model}.": "不支持的视频模型:{model}。",
127
124
  "--resolution must be 480P, 768P, 1080P, 2K, or 4K.": (
128
125
  "--resolution 必须是 480P、768P、1080P、2K 或 4K。"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: compshare-cli
3
- Version: 0.5.6
3
+ Version: 0.5.7
4
4
  Summary: Command-line client for CompShare GPU compute and MiniMax H3
5
5
  Author: CompShare
6
6
  License-Expression: Apache-2.0
@@ -116,8 +116,50 @@ def test_video_media_only_and_reference_limits() -> None:
116
116
  ]
117
117
  with pytest.raises(UsageError, match="12"):
118
118
  minimax._content("prompt", None, None, ["image"] * 9, ["video"] * 3, ["audio"])
119
- with pytest.raises(UsageError):
120
- minimax._content("prompt", None, None, [], [], ["audio"])
119
+ with pytest.raises(UsageError, match="3"):
120
+ minimax._content("prompt", None, None, [], [], ["audio"] * 4)
121
+
122
+
123
+ @pytest.mark.parametrize("prompt", ["", "参考音频的海浪声生成海边画面"])
124
+ @pytest.mark.parametrize("context_options", [[], ["--no-context-ir"]])
125
+ def test_create_accepts_audio_only_reference_without_context_ir(
126
+ monkeypatch, prompt, context_options
127
+ ) -> None:
128
+ captured = {}
129
+
130
+ def fake_urlopen(req, timeout):
131
+ captured.update(json.loads(req.data))
132
+ return FakeResponse({"task_id": "task-audio-reference"})
133
+
134
+ monkeypatch.setattr(minimax.request, "urlopen", fake_urlopen)
135
+ result = runner.invoke(
136
+ cli.app,
137
+ [
138
+ "--json",
139
+ "minimax",
140
+ "create",
141
+ *([prompt] if prompt else []),
142
+ "--reference-audio",
143
+ "https://example.com/ocean.wav",
144
+ "--duration",
145
+ "30",
146
+ *context_options,
147
+ "--yes",
148
+ ],
149
+ )
150
+
151
+ assert result.exit_code == 0, result.output
152
+ expected_content = [{"type": "text", "text": prompt}] if prompt else []
153
+ expected_content.append(
154
+ {
155
+ "type": "audio_url",
156
+ "audio_url": {"url": "https://example.com/ocean.wav"},
157
+ "role": "reference_audio",
158
+ }
159
+ )
160
+ assert captured["content"] == expected_content
161
+ assert captured["duration"] == 30
162
+ assert "use_context_ir" not in captured
121
163
 
122
164
 
123
165
  def test_video_new_options_follow_api_contract() -> None:
@@ -186,7 +186,7 @@ def test_audio_create_rejects_invalid_options(args):
186
186
  (
187
187
  "audio",
188
188
  "reference.wav",
189
- ["--duration-ms", "5000"],
189
+ ["--duration-ms", "30000"],
190
190
  {
191
191
  "upload_url": "https://upload.example.com/reference.wav?signature=secret",
192
192
  "object_key": "audio-key",
@@ -230,7 +230,34 @@ def test_reference_upload_uses_signed_url_then_registers(
230
230
  assert registered["height"] == 20
231
231
  else:
232
232
  assert "Authorization" not in calls[1][2]
233
- assert registered["duration_ms"] == 5000
233
+ assert registered["duration_ms"] == 30000
234
+
235
+
236
+ @pytest.mark.parametrize("duration_ms", [499, 30001])
237
+ def test_audio_upload_rejects_out_of_range_duration(monkeypatch, tmp_path, duration_ms):
238
+ file = tmp_path / "reference.wav"
239
+ file.write_bytes(b"test-data")
240
+ monkeypatch.setattr(
241
+ minimax.request,
242
+ "urlopen",
243
+ lambda *args, **kwargs: pytest.fail("invalid duration called the API"),
244
+ )
245
+
246
+ result = runner.invoke(
247
+ cli.app,
248
+ [
249
+ "--json",
250
+ "minimax",
251
+ "audio",
252
+ "upload",
253
+ str(file),
254
+ "--duration-ms",
255
+ str(duration_ms),
256
+ "--yes",
257
+ ],
258
+ )
259
+
260
+ assert result.exit_code == 2
234
261
 
235
262
 
236
263
  def test_video_skill_create_uses_documented_endpoint(monkeypatch):
File without changes
File without changes
File without changes
File without changes