compshare-cli 0.5.5__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.
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/CHANGELOG.md +15 -0
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/PKG-INFO +4 -6
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/README.md +3 -5
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/connector/compshare/connector-meta.json +1 -1
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/connector/compshare/mcp.json +1 -1
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/connector/compshare/skills/compshare/SKILL.md +23 -2
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/plugin.json +2 -2
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/skills/compshare-cli/SKILL.md +62 -10
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/src/compshare_cli/__init__.py +1 -1
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/src/compshare_cli/actions.py +8 -0
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/src/compshare_cli/cli.py +1 -18
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/src/compshare_cli/commands/instance.py +13 -0
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/src/compshare_cli/commands/minimax.py +2 -4
- compshare_cli-0.5.7/src/compshare_cli/commands/storage.py +541 -0
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/src/compshare_cli/i18n.py +49 -16
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/src/compshare_cli/insights.py +0 -53
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/src/compshare_cli/instance_templates.py +1 -1
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/src/compshare_cli/mcp_server.py +16 -1
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/src/compshare_cli.egg-info/PKG-INFO +4 -6
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/src/compshare_cli.egg-info/SOURCES.txt +2 -2
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/tests/test_actions.py +3 -3
- compshare_cli-0.5.7/tests/test_cfs.py +282 -0
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/tests/test_cli.py +28 -2
- compshare_cli-0.5.5/tests/test_feedback.py → compshare_cli-0.5.7/tests/test_insights.py +5 -69
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/tests/test_instance_templates.py +4 -0
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/tests/test_mcp_server.py +17 -0
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/tests/test_minimax.py +44 -2
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/tests/test_minimax_media.py +32 -5
- compshare_cli-0.5.5/src/compshare_cli/commands/feedback.py +0 -20
- compshare_cli-0.5.5/src/compshare_cli/commands/storage.py +0 -257
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/.agents/plugins/marketplace.json +0 -0
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/LICENSE +0 -0
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/MANIFEST.in +0 -0
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/RELEASING.md +0 -0
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/connector/compshare/icon.svg +0 -0
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/connector/compshare/token-schema.json +0 -0
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/pyproject.toml +0 -0
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/setup.cfg +0 -0
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/skills/compshare-cli/agents/openai.yaml +0 -0
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/src/compshare_cli/__main__.py +0 -0
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/src/compshare_cli/api.py +0 -0
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/src/compshare_cli/commands/__init__.py +0 -0
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/src/compshare_cli/commands/bandwidth.py +0 -0
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/src/compshare_cli/commands/common.py +0 -0
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/src/compshare_cli/commands/doctor.py +0 -0
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/src/compshare_cli/commands/image.py +0 -0
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/src/compshare_cli/commands/team.py +0 -0
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/src/compshare_cli/config.py +0 -0
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/src/compshare_cli/errors.py +0 -0
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/src/compshare_cli/location.py +0 -0
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/src/compshare_cli/output.py +0 -0
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/src/compshare_cli/parsing.py +0 -0
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/src/compshare_cli/remote_jobs.py +0 -0
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/src/compshare_cli/runtime.py +0 -0
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/src/compshare_cli/sdk.py +0 -0
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/src/compshare_cli/ssh.py +0 -0
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/src/compshare_cli/ssh_cache.py +0 -0
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/src/compshare_cli.egg-info/dependency_links.txt +0 -0
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/src/compshare_cli.egg-info/entry_points.txt +0 -0
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/src/compshare_cli.egg-info/requires.txt +0 -0
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/src/compshare_cli.egg-info/top_level.txt +0 -0
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/tests/test_api.py +0 -0
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/tests/test_bandwidth.py +0 -0
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/tests/test_config.py +0 -0
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/tests/test_location.py +0 -0
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/tests/test_output.py +0 -0
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/tests/test_parsing.py +0 -0
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/tests/test_release_version.py +0 -0
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/tests/test_remote_jobs.py +0 -0
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/tests/test_sdk.py +0 -0
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/tests/test_ssh.py +0 -0
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/tests/test_ssh_cache.py +0 -0
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/tests/test_ssh_integration.py +0 -0
- {compshare_cli-0.5.5 → compshare_cli-0.5.7}/tests/test_workbuddy_connector.py +0 -0
|
@@ -2,6 +2,21 @@
|
|
|
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
|
+
|
|
12
|
+
## 0.5.6
|
|
13
|
+
|
|
14
|
+
- 移除 `compshare feedback` 命令及反馈提交功能。
|
|
15
|
+
- 将图片创建的默认分辨率改为 1K,避免默认请求尚未开放的 2K 档位。
|
|
16
|
+
- 新增 `storage cfs` 的查询、询价、创建、挂载、卸载、扩容、退费预估和删除命令,
|
|
17
|
+
以及创建实例和本地模板的 `--cfs/--no-cfs` 选项;同步 MCP、Skill 和递归接口覆盖检查。
|
|
18
|
+
- 为容器的 CFS 挂载增加预演、费用及重启提示和确认,保留普通 US3 挂载用法。
|
|
19
|
+
|
|
5
20
|
## 0.5.5
|
|
6
21
|
|
|
7
22
|
- 新增 Codex Plugin 和 CompShare 插件市场配置,复用现有 CLI Skill,支持从 GitHub 安装;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: compshare-cli
|
|
3
|
-
Version: 0.5.
|
|
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
|
|
@@ -27,16 +27,15 @@ Dynamic: license-file
|
|
|
27
27
|
|
|
28
28
|
# CompShare CLI
|
|
29
29
|
|
|
30
|
-
在终端管理优云智算 GPU 实例、镜像、云盘、US3
|
|
30
|
+
在终端管理优云智算 GPU 实例、镜像、云盘、US3 / CFS 存储、独享带宽、团队资源和 MiniMax H3 视频、图片、语音任务。
|
|
31
31
|
|
|
32
32
|
- 交互式创建实例,实时查询规格、库存和价格
|
|
33
33
|
- 支持批量生命周期操作、等待状态和跨地域查询
|
|
34
34
|
- 支持可断线恢复的远程任务、状态查询和增量日志读取
|
|
35
|
-
-
|
|
35
|
+
- 支持社区/自定义镜像、云盘、CFS 文件存储、团队额度与账单
|
|
36
36
|
- 支持独享带宽询价、购买、改配、退款预估及实例 EIP 切换
|
|
37
37
|
- 支持 MiniMax H3 视频、Qwen-Image 图片和 IndexTTS 2.5 语音任务,以及素材上传、视频 Skill 和积分查询
|
|
38
38
|
- 默认中文帮助,可切换英文;所有命令支持 JSON 输出
|
|
39
|
-
- 可通过 `compshare feedback` 反馈 CLI 问题和建议
|
|
40
39
|
|
|
41
40
|
## 安装
|
|
42
41
|
|
|
@@ -106,11 +105,10 @@ compshare instance -h
|
|
|
106
105
|
|
|
107
106
|
```text
|
|
108
107
|
compshare config API 凭证配置
|
|
109
|
-
compshare feedback 反馈 CLI 问题或建议
|
|
110
108
|
compshare doctor 配置、鉴权、网络与 SSH 环境诊断
|
|
111
109
|
compshare instance GPU 实例、规格、库存、价格和生命周期
|
|
112
110
|
compshare image 平台、自定义、社区及共享镜像
|
|
113
|
-
compshare storage
|
|
111
|
+
compshare storage 云盘、US3 挂载和 CFS 文件存储
|
|
114
112
|
compshare bandwidth 独享带宽和实例 EIP 带宽归属
|
|
115
113
|
compshare minimax MiniMax H3 视频、图片、语音、Skill 和积分
|
|
116
114
|
compshare team 团队、邀请、成员额度、账单和审计
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
# CompShare CLI
|
|
2
2
|
|
|
3
|
-
在终端管理优云智算 GPU 实例、镜像、云盘、US3
|
|
3
|
+
在终端管理优云智算 GPU 实例、镜像、云盘、US3 / CFS 存储、独享带宽、团队资源和 MiniMax H3 视频、图片、语音任务。
|
|
4
4
|
|
|
5
5
|
- 交互式创建实例,实时查询规格、库存和价格
|
|
6
6
|
- 支持批量生命周期操作、等待状态和跨地域查询
|
|
7
7
|
- 支持可断线恢复的远程任务、状态查询和增量日志读取
|
|
8
|
-
-
|
|
8
|
+
- 支持社区/自定义镜像、云盘、CFS 文件存储、团队额度与账单
|
|
9
9
|
- 支持独享带宽询价、购买、改配、退款预估及实例 EIP 切换
|
|
10
10
|
- 支持 MiniMax H3 视频、Qwen-Image 图片和 IndexTTS 2.5 语音任务,以及素材上传、视频 Skill 和积分查询
|
|
11
11
|
- 默认中文帮助,可切换英文;所有命令支持 JSON 输出
|
|
12
|
-
- 可通过 `compshare feedback` 反馈 CLI 问题和建议
|
|
13
12
|
|
|
14
13
|
## 安装
|
|
15
14
|
|
|
@@ -79,11 +78,10 @@ compshare instance -h
|
|
|
79
78
|
|
|
80
79
|
```text
|
|
81
80
|
compshare config API 凭证配置
|
|
82
|
-
compshare feedback 反馈 CLI 问题或建议
|
|
83
81
|
compshare doctor 配置、鉴权、网络与 SSH 环境诊断
|
|
84
82
|
compshare instance GPU 实例、规格、库存、价格和生命周期
|
|
85
83
|
compshare image 平台、自定义、社区及共享镜像
|
|
86
|
-
compshare storage
|
|
84
|
+
compshare storage 云盘、US3 挂载和 CFS 文件存储
|
|
87
85
|
compshare bandwidth 独享带宽和实例 EIP 带宽归属
|
|
88
86
|
compshare minimax MiniMax H3 视频、图片、语音、Skill 和积分
|
|
89
87
|
compshare team 团队、邀请、成员额度、账单和审计
|
|
@@ -3,13 +3,13 @@ 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
|
+
version: "0.5.7"
|
|
7
7
|
author: "CompShare"
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# CompShare 优云智算
|
|
11
11
|
|
|
12
|
-
通过本 Connector 提供的 MCP 工具查询和管理 GPU 实例、镜像、云盘、US3、独享带宽、
|
|
12
|
+
通过本 Connector 提供的 MCP 工具查询和管理 GPU 实例、镜像、云盘、US3、CFS、独享带宽、
|
|
13
13
|
团队资源与 MiniMax H3 视频、图片和语音任务。凭证由 WorkBuddy Token 表单注入;不要要求用户在对话中
|
|
14
14
|
发送公钥、私钥或模型 API Key。
|
|
15
15
|
|
|
@@ -151,6 +151,12 @@ JSON 创建至少提供 GPU、每实例 GPU 数、CPU、内存、镜像、Region
|
|
|
151
151
|
收藏变更为写操作。发布社区镜像前确认其中不含密钥、密码或用户数据。
|
|
152
152
|
- 云盘 `list/price` 为只读;创建、挂载、卸载、扩容和删除为写操作。卸载前提醒用户先在
|
|
153
153
|
实例内卸载文件系统;云盘只能扩容,不能缩容。
|
|
154
|
+
- CFS 使用 `storage cfs`:`list/show/price/resize-price/refund` 为只读;创建、扩容、删除、
|
|
155
|
+
挂载和卸载为写操作,对应的 `--dry-run` 走只读工具。购买容量为 50-2048 GiB,先预演询价。
|
|
156
|
+
给 `cpod-` 实例挂载时,如可用区内尚无 CFS,会自动购买 50 GiB、按月计费 1 个周期的存储;
|
|
157
|
+
运行中的实例挂载或卸载可能重启。现有 `storage us3 attach` 对容器也有相同行为,必须先告知
|
|
158
|
+
费用与中断影响、获得用户同意,再使用 `--yes`。创建实例的 `--cfs` 只挂载已有 CFS,不自动购买。
|
|
159
|
+
- CFS 删除前先备份并卸载实例;`delete --recycle` 只允许自动卸载已停止实例,仍拒绝运行中的挂载。
|
|
154
160
|
- 独享带宽 `list/instances` 为只读。购买、改配和删除先通过 `--dry-run` 询价或查看退款,
|
|
155
161
|
再确认执行。购买后已有实例不会自动切换带宽。
|
|
156
162
|
- 团队列表、详情、成员、账单和审计为只读;团队、邀请、成员备注和额度变更为写操作。
|
|
@@ -167,10 +173,25 @@ MiniMax 使用 Token 表单中的独立 `COMPSHARE_MINIMAX_API_KEY`。缺失时
|
|
|
167
173
|
素材及费用影响后确认,使用相同幂等键调用写工具正式创建。重试不确定请求时必须复用
|
|
168
174
|
原幂等键。取消、删除任务和上传参考素材也属于写操作。
|
|
169
175
|
|
|
176
|
+
图片默认使用 1K;2K 以配置接口返回的价格是否存在为准,价格为 `null` 时不要提交。
|
|
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
|
+
|
|
170
186
|
视频素材支持公开 URL 或 Data URL;图片和语音参考素材通过 `image upload`、
|
|
171
187
|
`audio upload` 登记后使用资产 ID。生成结果 URL 默认脱敏;不要为了显示它而绕过连接器
|
|
172
188
|
的敏感输出限制。
|
|
173
189
|
|
|
190
|
+
`audio upload --duration-ms` 用于语音参考素材,时长为 500~30000 毫秒,文件最多 15 MiB,
|
|
191
|
+
与视频生成中的参考音频限制不同。语音生成结果由组织媒体库管理,自动清理默认关闭,
|
|
192
|
+
开启后按组织的保留时长或容量设置清理。未使用的语音参考素材默认保留 7 天;
|
|
193
|
+
保存的自定义音色单独保留。删除已完成任务会同时删除结果文件。
|
|
194
|
+
|
|
174
195
|
## 故障恢复
|
|
175
196
|
|
|
176
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.
|
|
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": "
|
|
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
|
}
|
|
@@ -268,6 +268,7 @@ Discover subcommands first, then inspect the exact operation:
|
|
|
268
268
|
compshare --json image --help
|
|
269
269
|
compshare --json storage --help
|
|
270
270
|
compshare --json storage disk --help
|
|
271
|
+
compshare --json storage cfs --help
|
|
271
272
|
compshare --json bandwidth --help
|
|
272
273
|
compshare --json team --help
|
|
273
274
|
```
|
|
@@ -278,12 +279,42 @@ Common entry points:
|
|
|
278
279
|
image list/show/create/progress/update/delete/share/unshare/publish
|
|
279
280
|
storage disk list/create/attach/detach/price/resize/delete
|
|
280
281
|
storage us3 attach
|
|
282
|
+
storage cfs list/show/price/create/resize-price/resize/refund/delete/attach/detach
|
|
281
283
|
team list/joined/show/create/update/delete/audit
|
|
282
284
|
team invite/member/quota/billing
|
|
283
285
|
```
|
|
284
286
|
|
|
285
287
|
Treat image deletion, disk deletion, disk detach/resize, quota changes and team mutations as state-changing operations. Read the current resource and request confirmation before adding `--yes` where supported.
|
|
286
288
|
|
|
289
|
+
### CFS file storage
|
|
290
|
+
|
|
291
|
+
CFS is available in container zones reported by `instance zones` (`IsPod=true`). Each account
|
|
292
|
+
can have one CFS resource per zone, shared by its container instances. Capacity is 50-2048 GiB;
|
|
293
|
+
new purchases support `Month`, `Year`, `Day` and `Dynamic`, and expansion cannot shrink storage.
|
|
294
|
+
|
|
295
|
+
```bash
|
|
296
|
+
compshare --json storage cfs list
|
|
297
|
+
compshare --json storage cfs show CFS_ID
|
|
298
|
+
compshare --json storage cfs create --name training --size 100GiB \
|
|
299
|
+
--region cn-bj2 --zone cn-bj2-03 --dry-run
|
|
300
|
+
compshare --json storage cfs resize CFS_ID --size 200GiB \
|
|
301
|
+
--region cn-bj2 --zone cn-bj2-03 --dry-run
|
|
302
|
+
compshare --json storage cfs delete CFS_ID \
|
|
303
|
+
--region cn-bj2 --zone cn-bj2-03 --dry-run
|
|
304
|
+
compshare --json storage cfs attach --instance CPOD_ID --dry-run
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
Review the quote or operation plan before replacing `--dry-run` with `--yes`. Prices are in
|
|
308
|
+
CNY. Resource queries and purchases accept `--project ID` when a non-default project is needed.
|
|
309
|
+
Attaching CFS may automatically purchase 50 GiB for one month if none exists in the zone.
|
|
310
|
+
Attaching or detaching CFS on a running instance can restart it; save work before confirming.
|
|
311
|
+
The existing `storage us3 attach` command has the same behavior for `cpod-` instances.
|
|
312
|
+
|
|
313
|
+
`instance create --cfs` and `instance template create --cfs` enable attachment of an existing
|
|
314
|
+
CFS in that zone. They do not purchase CFS if none exists. Use `--no-cfs` to override a template.
|
|
315
|
+
Back up data and detach instances before deleting CFS. `delete --recycle` may detach stopped
|
|
316
|
+
instances first; it still refuses to delete storage mounted by a running instance.
|
|
317
|
+
|
|
287
318
|
## MiniMax H3 media tasks
|
|
288
319
|
|
|
289
320
|
Inspect points and existing work before creating a task:
|
|
@@ -309,10 +340,24 @@ compshare --json minimax create 'A sailboat crossing a golden sea' \
|
|
|
309
340
|
|
|
310
341
|
Use `--first-frame` and `--last-frame` for frame-driven video, or repeat
|
|
311
342
|
`--reference-image`, `--reference-video` and `--reference-audio` for reference-driven video.
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
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.
|
|
316
361
|
Generated video URLs stay redacted unless the user explicitly needs them and `--show-sensitive`
|
|
317
362
|
is added as a root option.
|
|
318
363
|
|
|
@@ -324,6 +369,9 @@ compshare --json minimax cancel TASK_ID --yes
|
|
|
324
369
|
|
|
325
370
|
For images, inspect current pricing before creating a task. Each request creates one image:
|
|
326
371
|
|
|
372
|
+
The default resolution is 1K. 2K requests are accepted only when that tier is enabled in
|
|
373
|
+
`minimax image config`; a `null` price means the tier is unavailable.
|
|
374
|
+
|
|
327
375
|
```bash
|
|
328
376
|
compshare --json minimax image config
|
|
329
377
|
compshare --json minimax image list --status queued
|
|
@@ -351,20 +399,24 @@ compshare --json minimax audio show TASK_ID
|
|
|
351
399
|
```
|
|
352
400
|
|
|
353
401
|
For an authorized reference recording, `minimax audio upload FILE --duration-ms MS --yes`
|
|
354
|
-
|
|
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
|
|
355
405
|
`minimax audio voice-create ASSET_ID NAME --yes` and then use `--voice-source custom --voice-id VOICE_ID`.
|
|
356
406
|
Generated image and speech URLs stay redacted unless the user explicitly needs them and
|
|
357
|
-
`--show-sensitive` is added as a root option.
|
|
358
|
-
|
|
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.
|
|
359
412
|
|
|
360
|
-
## Diagnostics
|
|
413
|
+
## Diagnostics
|
|
361
414
|
|
|
362
415
|
```bash
|
|
363
416
|
compshare --json doctor
|
|
364
|
-
compshare feedback bug '创建实例时发生错误'
|
|
365
417
|
```
|
|
366
418
|
|
|
367
|
-
Use `doctor` for local configuration, authentication, network and SSH environment checks.
|
|
419
|
+
Use `doctor` for local configuration, authentication, network and SSH environment checks.
|
|
368
420
|
|
|
369
421
|
## JSON contract
|
|
370
422
|
|
|
@@ -58,10 +58,18 @@ STORAGE_ACTIONS = frozenset(
|
|
|
58
58
|
"AttachCompshareDisk",
|
|
59
59
|
"AttachUS3",
|
|
60
60
|
"CreateAndAttachCompshareDisk",
|
|
61
|
+
"CreateCFS",
|
|
62
|
+
"DeleteCFS",
|
|
61
63
|
"DeleteCompshareDisk",
|
|
64
|
+
"DescribeCFS",
|
|
62
65
|
"DescribeCompshareDisk",
|
|
66
|
+
"DetachCFS",
|
|
63
67
|
"DetachCompshareDisk",
|
|
64
68
|
"GetCompShareAttachedDiskUpgradePrice",
|
|
69
|
+
"GetCompShareCFSPrice",
|
|
70
|
+
"GetCompShareCFSRefundPrice",
|
|
71
|
+
"GetCompShareCFSUpgradePrice",
|
|
72
|
+
"ResizeCFS",
|
|
65
73
|
"ResizeCompShareDisk",
|
|
66
74
|
}
|
|
67
75
|
)
|
|
@@ -12,7 +12,6 @@ from typer.main import get_command
|
|
|
12
12
|
from compshare_cli import __version__
|
|
13
13
|
from compshare_cli.commands import bandwidth, image, instance, minimax, storage, team
|
|
14
14
|
from compshare_cli.commands import doctor as doctor_command
|
|
15
|
-
from compshare_cli.commands import feedback as feedback_command
|
|
16
15
|
from compshare_cli.commands.common import confirm
|
|
17
16
|
from compshare_cli.config import DEFAULT_PROFILE, ConfigStore, Profile
|
|
18
17
|
from compshare_cli.errors import CLIError, ConfigError, UsageError
|
|
@@ -36,7 +35,7 @@ completion_init()
|
|
|
36
35
|
class RootGroup(typer_core.TyperGroup):
|
|
37
36
|
def list_commands(self, ctx):
|
|
38
37
|
names = super().list_commands(ctx)
|
|
39
|
-
preferred = ("config", "
|
|
38
|
+
preferred = ("config", "doctor")
|
|
40
39
|
return [
|
|
41
40
|
*(name for name in preferred if name in names),
|
|
42
41
|
*(name for name in names if name not in preferred),
|
|
@@ -307,22 +306,6 @@ def doctor(ctx: typer.Context) -> None:
|
|
|
307
306
|
doctor_command.run(ctx.find_root().obj)
|
|
308
307
|
|
|
309
308
|
|
|
310
|
-
@app.command("feedback")
|
|
311
|
-
def feedback(
|
|
312
|
-
ctx: typer.Context,
|
|
313
|
-
category: feedback_command.FeedbackCategory = typer.Argument(
|
|
314
|
-
...,
|
|
315
|
-
help="Feedback category: bug or suggest.",
|
|
316
|
-
),
|
|
317
|
-
message: str = typer.Argument(
|
|
318
|
-
...,
|
|
319
|
-
help="Feedback message; limited to 2000 characters.",
|
|
320
|
-
),
|
|
321
|
-
) -> None:
|
|
322
|
-
"""Send feedback about the CLI."""
|
|
323
|
-
feedback_command.run(ctx.find_root().obj, category, message)
|
|
324
|
-
|
|
325
|
-
|
|
326
309
|
def _global_flag_requested(argv: List[str], option: str) -> bool:
|
|
327
310
|
for token in argv:
|
|
328
311
|
if token == "--":
|
|
@@ -942,6 +942,11 @@ def create_template(
|
|
|
942
942
|
"--us3/--no-us3",
|
|
943
943
|
help="Attach US3 during container creation.",
|
|
944
944
|
),
|
|
945
|
+
cfs: Optional[bool] = typer.Option(
|
|
946
|
+
None,
|
|
947
|
+
"--cfs/--no-cfs",
|
|
948
|
+
help="Attach existing CFS during container creation; does not purchase storage.",
|
|
949
|
+
),
|
|
945
950
|
force: bool = typer.Option(False, "--force", help="Replace an existing template."),
|
|
946
951
|
) -> None:
|
|
947
952
|
if memory is not None:
|
|
@@ -971,6 +976,7 @@ def create_template(
|
|
|
971
976
|
"firewall": firewall,
|
|
972
977
|
"max_count": max_count,
|
|
973
978
|
"us3": us3,
|
|
979
|
+
"cfs": cfs,
|
|
974
980
|
}
|
|
975
981
|
)
|
|
976
982
|
state = runtime(ctx)
|
|
@@ -1339,6 +1345,11 @@ def create(
|
|
|
1339
1345
|
"--us3/--no-us3",
|
|
1340
1346
|
help="Attach US3 during container creation.",
|
|
1341
1347
|
),
|
|
1348
|
+
cfs: Optional[bool] = typer.Option(
|
|
1349
|
+
None,
|
|
1350
|
+
"--cfs/--no-cfs",
|
|
1351
|
+
help="Attach existing CFS during container creation; does not purchase storage.",
|
|
1352
|
+
),
|
|
1342
1353
|
dry_run: bool = typer.Option(
|
|
1343
1354
|
False,
|
|
1344
1355
|
"--dry-run",
|
|
@@ -1384,6 +1395,7 @@ def create(
|
|
|
1384
1395
|
firewall = firewall if firewall is not None else template_parameters.get("firewall")
|
|
1385
1396
|
max_count = max_count if max_count is not None else template_parameters.get("max_count")
|
|
1386
1397
|
us3 = us3 if us3 is not None else template_parameters.get("us3")
|
|
1398
|
+
cfs = cfs if cfs is not None else template_parameters.get("cfs")
|
|
1387
1399
|
|
|
1388
1400
|
resolved_quantity = int(quantity if quantity is not None else 1)
|
|
1389
1401
|
resolved_platform = str(platform if platform is not None else "Auto")
|
|
@@ -1519,6 +1531,7 @@ def create(
|
|
|
1519
1531
|
"SecurityGroupId": firewall,
|
|
1520
1532
|
"MaxCount": resolved_max_count,
|
|
1521
1533
|
"EnableUS3": resolved_us3 if resolved_us3 else None,
|
|
1534
|
+
"EnableCfs": cfs,
|
|
1522
1535
|
}
|
|
1523
1536
|
)
|
|
1524
1537
|
)
|
|
@@ -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"),
|
|
@@ -613,7 +611,7 @@ def image_config(ctx: typer.Context) -> None:
|
|
|
613
611
|
def image_create(
|
|
614
612
|
ctx: typer.Context,
|
|
615
613
|
prompt: str = typer.Argument(..., help="Image prompt; at most 7000 characters."),
|
|
616
|
-
resolution: str = typer.Option("
|
|
614
|
+
resolution: str = typer.Option("1K", help="Image resolution: 1K or 2K."),
|
|
617
615
|
ratio: str = typer.Option("1:1", help="Image aspect ratio."),
|
|
618
616
|
reference_assets: Optional[List[str]] = typer.Option(
|
|
619
617
|
None, "--reference-asset", help="Registered reference image asset ID; repeatable."
|
|
@@ -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=
|
|
961
|
+
..., min=500, max=30000, help="Actual duration in milliseconds."
|
|
964
962
|
),
|
|
965
963
|
yes: bool = typer.Option(False, "--yes", "-y"),
|
|
966
964
|
) -> None:
|