compshare-cli 0.5.4__tar.gz → 0.5.6__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 (75) hide show
  1. compshare_cli-0.5.6/.agents/plugins/marketplace.json +20 -0
  2. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/CHANGELOG.md +14 -0
  3. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/MANIFEST.in +2 -0
  4. {compshare_cli-0.5.4/src/compshare_cli.egg-info → compshare_cli-0.5.6}/PKG-INFO +23 -6
  5. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/README.md +22 -5
  6. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/RELEASING.md +16 -1
  7. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/connector/compshare/connector-meta.json +1 -1
  8. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/connector/compshare/mcp.json +1 -1
  9. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/connector/compshare/skills/compshare/SKILL.md +10 -2
  10. compshare_cli-0.5.6/plugin.json +32 -0
  11. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/skills/compshare-cli/SKILL.md +36 -3
  12. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/src/compshare_cli/__init__.py +1 -1
  13. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/src/compshare_cli/actions.py +8 -0
  14. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/src/compshare_cli/cli.py +1 -18
  15. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/src/compshare_cli/commands/instance.py +13 -0
  16. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/src/compshare_cli/commands/minimax.py +1 -1
  17. compshare_cli-0.5.6/src/compshare_cli/commands/storage.py +541 -0
  18. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/src/compshare_cli/i18n.py +49 -13
  19. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/src/compshare_cli/insights.py +0 -53
  20. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/src/compshare_cli/instance_templates.py +1 -1
  21. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/src/compshare_cli/mcp_server.py +16 -1
  22. {compshare_cli-0.5.4 → compshare_cli-0.5.6/src/compshare_cli.egg-info}/PKG-INFO +23 -6
  23. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/src/compshare_cli.egg-info/SOURCES.txt +4 -2
  24. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/tests/test_actions.py +3 -3
  25. compshare_cli-0.5.6/tests/test_cfs.py +282 -0
  26. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/tests/test_cli.py +28 -2
  27. compshare_cli-0.5.4/tests/test_feedback.py → compshare_cli-0.5.6/tests/test_insights.py +5 -69
  28. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/tests/test_instance_templates.py +4 -0
  29. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/tests/test_mcp_server.py +17 -0
  30. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/tests/test_minimax_media.py +3 -3
  31. compshare_cli-0.5.6/tests/test_release_version.py +50 -0
  32. compshare_cli-0.5.4/src/compshare_cli/commands/feedback.py +0 -20
  33. compshare_cli-0.5.4/src/compshare_cli/commands/storage.py +0 -257
  34. compshare_cli-0.5.4/tests/test_release_version.py +0 -19
  35. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/LICENSE +0 -0
  36. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/connector/compshare/icon.svg +0 -0
  37. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/connector/compshare/token-schema.json +0 -0
  38. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/pyproject.toml +0 -0
  39. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/setup.cfg +0 -0
  40. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/skills/compshare-cli/agents/openai.yaml +0 -0
  41. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/src/compshare_cli/__main__.py +0 -0
  42. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/src/compshare_cli/api.py +0 -0
  43. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/src/compshare_cli/commands/__init__.py +0 -0
  44. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/src/compshare_cli/commands/bandwidth.py +0 -0
  45. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/src/compshare_cli/commands/common.py +0 -0
  46. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/src/compshare_cli/commands/doctor.py +0 -0
  47. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/src/compshare_cli/commands/image.py +0 -0
  48. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/src/compshare_cli/commands/team.py +0 -0
  49. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/src/compshare_cli/config.py +0 -0
  50. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/src/compshare_cli/errors.py +0 -0
  51. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/src/compshare_cli/location.py +0 -0
  52. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/src/compshare_cli/output.py +0 -0
  53. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/src/compshare_cli/parsing.py +0 -0
  54. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/src/compshare_cli/remote_jobs.py +0 -0
  55. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/src/compshare_cli/runtime.py +0 -0
  56. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/src/compshare_cli/sdk.py +0 -0
  57. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/src/compshare_cli/ssh.py +0 -0
  58. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/src/compshare_cli/ssh_cache.py +0 -0
  59. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/src/compshare_cli.egg-info/dependency_links.txt +0 -0
  60. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/src/compshare_cli.egg-info/entry_points.txt +0 -0
  61. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/src/compshare_cli.egg-info/requires.txt +0 -0
  62. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/src/compshare_cli.egg-info/top_level.txt +0 -0
  63. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/tests/test_api.py +0 -0
  64. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/tests/test_bandwidth.py +0 -0
  65. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/tests/test_config.py +0 -0
  66. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/tests/test_location.py +0 -0
  67. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/tests/test_minimax.py +0 -0
  68. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/tests/test_output.py +0 -0
  69. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/tests/test_parsing.py +0 -0
  70. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/tests/test_remote_jobs.py +0 -0
  71. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/tests/test_sdk.py +0 -0
  72. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/tests/test_ssh.py +0 -0
  73. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/tests/test_ssh_cache.py +0 -0
  74. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/tests/test_ssh_integration.py +0 -0
  75. {compshare_cli-0.5.4 → compshare_cli-0.5.6}/tests/test_workbuddy_connector.py +0 -0
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "compshare",
3
+ "interface": {
4
+ "displayName": "CompShare"
5
+ },
6
+ "plugins": [
7
+ {
8
+ "name": "compshare-cli",
9
+ "source": {
10
+ "source": "local",
11
+ "path": "./"
12
+ },
13
+ "policy": {
14
+ "installation": "AVAILABLE",
15
+ "authentication": "ON_INSTALL"
16
+ },
17
+ "category": "Developer Tools"
18
+ }
19
+ ]
20
+ }
@@ -2,6 +2,20 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.5.6
6
+
7
+ - 移除 `compshare feedback` 命令及反馈提交功能。
8
+ - 将图片创建的默认分辨率改为 1K,避免默认请求尚未开放的 2K 档位。
9
+ - 新增 `storage cfs` 的查询、询价、创建、挂载、卸载、扩容、退费预估和删除命令,
10
+ 以及创建实例和本地模板的 `--cfs/--no-cfs` 选项;同步 MCP、Skill 和递归接口覆盖检查。
11
+ - 为容器的 CFS 挂载增加预演、费用及重启提示和确认,保留普通 US3 挂载用法。
12
+
13
+ ## 0.5.5
14
+
15
+ - 新增 Codex Plugin 和 CompShare 插件市场配置,复用现有 CLI Skill,支持从 GitHub 安装;
16
+ 将插件配置纳入源码包和发布版本一致性校验。
17
+ - 精简 README 插件说明,将 Codex Plugin 章节移到 WorkBuddy Connector 下方、SDK 上方。
18
+
5
19
  ## 0.5.4
6
20
 
7
21
  - 修复 Windows 下 PowerShell 5.1/7 使用 GBK 代码页时中文 JSON 乱码或无法解析的问题,保持 UTF-8
@@ -1,4 +1,6 @@
1
1
  include CHANGELOG.md
2
2
  include RELEASING.md
3
+ include plugin.json
4
+ include .agents/plugins/marketplace.json
3
5
  recursive-include connector/compshare *.json *.md *.svg
4
6
  recursive-include skills *.md *.yaml
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: compshare-cli
3
- Version: 0.5.4
3
+ Version: 0.5.6
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 挂载、独享带宽、团队资源和 MiniMax H3 视频、图片、语音任务。
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 云盘和 US3 挂载
111
+ compshare storage 云盘、US3 挂载和 CFS 文件存储
114
112
  compshare bandwidth 独享带宽和实例 EIP 带宽归属
115
113
  compshare minimax MiniMax H3 视频、图片、语音、Skill 和积分
116
114
  compshare team 团队、邀请、成员额度、账单和审计
@@ -133,6 +131,25 @@ compshare-mcp
133
131
  正式 Connector 使用 `uvx` 从 PyPI 安装固定版本,并将只读、预演和需要明确确认的写操作
134
132
  分开暴露。MiniMax H3 使用表单中可选的独立模型 API Key。
135
133
 
134
+ ## Codex Plugin
135
+
136
+ 仓库内置符合 [OpenAI 插件规范](https://developers.openai.com/plugins/build/plugins) 的
137
+ Skill 插件,直接复用 `skills/compshare-cli`,通过本地 `compshare` 命令管理资源。
138
+ 先安装 CLI 并按「配置」说明设置凭证,再在仓库根目录执行:
139
+
140
+ ```bash
141
+ codex plugin marketplace add .
142
+ codex plugin add compshare-cli@compshare
143
+ codex plugin list --marketplace compshare --json
144
+ ```
145
+
146
+ 也可以从任意目录通过 GitHub 安装:
147
+
148
+ ```bash
149
+ codex plugin marketplace add compshare-cn/compshare-cli
150
+ codex plugin add compshare-cli@compshare
151
+ ```
152
+
136
153
  ## SDK
137
154
 
138
155
  如需通过 SDK 集成 CompShare API,可参考独立的
@@ -1,15 +1,14 @@
1
1
  # CompShare CLI
2
2
 
3
- 在终端管理优云智算 GPU 实例、镜像、云盘、US3 挂载、独享带宽、团队资源和 MiniMax H3 视频、图片、语音任务。
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 云盘和 US3 挂载
84
+ compshare storage 云盘、US3 挂载和 CFS 文件存储
87
85
  compshare bandwidth 独享带宽和实例 EIP 带宽归属
88
86
  compshare minimax MiniMax H3 视频、图片、语音、Skill 和积分
89
87
  compshare team 团队、邀请、成员额度、账单和审计
@@ -106,6 +104,25 @@ compshare-mcp
106
104
  正式 Connector 使用 `uvx` 从 PyPI 安装固定版本,并将只读、预演和需要明确确认的写操作
107
105
  分开暴露。MiniMax H3 使用表单中可选的独立模型 API Key。
108
106
 
107
+ ## Codex Plugin
108
+
109
+ 仓库内置符合 [OpenAI 插件规范](https://developers.openai.com/plugins/build/plugins) 的
110
+ Skill 插件,直接复用 `skills/compshare-cli`,通过本地 `compshare` 命令管理资源。
111
+ 先安装 CLI 并按「配置」说明设置凭证,再在仓库根目录执行:
112
+
113
+ ```bash
114
+ codex plugin marketplace add .
115
+ codex plugin add compshare-cli@compshare
116
+ codex plugin list --marketplace compshare --json
117
+ ```
118
+
119
+ 也可以从任意目录通过 GitHub 安装:
120
+
121
+ ```bash
122
+ codex plugin marketplace add compshare-cn/compshare-cli
123
+ codex plugin add compshare-cli@compshare
124
+ ```
125
+
109
126
  ## SDK
110
127
 
111
128
  如需通过 SDK 集成 CompShare API,可参考独立的
@@ -16,7 +16,7 @@ PyPI Trusted Publishing 自动上传。仓库不需要保存 PyPI Token。
16
16
 
17
17
  ## 发布新版本
18
18
 
19
- 1. 更新 `src/compshare_cli/__init__.py` 中的版本和 `CHANGELOG.md`。
19
+ 1. 更新 `src/compshare_cli/__init__.py`、`plugin.json` 中的版本和 `CHANGELOG.md`。
20
20
  2. 运行 `ruff check .`、`ruff format --check .` 和 `pytest`。
21
21
  3. 创建与包版本一致的标签,例如 `v0.2.2`。
22
22
  4. 发布对应的 GitHub Release。
@@ -27,3 +27,18 @@ PyPI;失败时应发布新版本,不能覆盖已有文件。
27
27
  如果 GitHub Release 早于自动发布工作流,可以在 Actions 中手动运行
28
28
  `Publish to PyPI`,输入已有的 Release 标签补发。工作流会从该标签构建,避免同一版本
29
29
  混入标签之后的改动。
30
+
31
+ ## 公共插件市场
32
+
33
+ 确认插件改动已提交并推送到 GitHub 后,在仓库根目录创建上传包:
34
+
35
+ ```bash
36
+ mkdir -p dist
37
+ git archive --format=zip --output=dist/compshare-cli-plugin.zip HEAD \
38
+ plugin.json skills/compshare-cli connector/compshare/icon.svg LICENSE
39
+ ```
40
+
41
+ 上传包包含插件清单、Skill、图标和许可证。到
42
+ [OpenAI Plugins](https://platform.openai.com/plugins) 选择已验证的开发者身份,上传 ZIP,
43
+ 等待元数据和 Skill 检查完成后提交审核。审核通过后再选择 `Publish plugin` 公开发布。
44
+ 完整流程见 [官方提交说明](https://developers.openai.com/plugins/deploy/submission)。
@@ -8,7 +8,7 @@
8
8
  "source": "compshare",
9
9
  "type": "mcp",
10
10
  "auth_mode": "token",
11
- "version": "0.5.4",
11
+ "version": "0.5.6",
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.4",
10
+ "compshare-cli[mcp]==0.5.6",
11
11
  "compshare-mcp"
12
12
  ],
13
13
  "env": {
@@ -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.4"
6
+ version: "0.5.6"
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,6 +173,8 @@ MiniMax 使用 Token 表单中的独立 `COMPSHARE_MINIMAX_API_KEY`。缺失时
167
173
  素材及费用影响后确认,使用相同幂等键调用写工具正式创建。重试不确定请求时必须复用
168
174
  原幂等键。取消、删除任务和上传参考素材也属于写操作。
169
175
 
176
+ 图片默认使用 1K;2K 以配置接口返回的价格是否存在为准,价格为 `null` 时不要提交。
177
+
170
178
  视频素材支持公开 URL 或 Data URL;图片和语音参考素材通过 `image upload`、
171
179
  `audio upload` 登记后使用资产 ID。生成结果 URL 默认脱敏;不要为了显示它而绕过连接器
172
180
  的敏感输出限制。
@@ -0,0 +1,32 @@
1
+ {
2
+ "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
+ "name": "compshare-cli",
4
+ "version": "0.5.6",
5
+ "description": "Manage CompShare GPU cloud resources and MiniMax H3 media tasks through the compshare CLI.",
6
+ "author": {
7
+ "name": "CompShare"
8
+ },
9
+ "repository": "https://github.com/compshare-cn/compshare-cli",
10
+ "license": "Apache-2.0",
11
+ "extensions": {
12
+ "com.openai": {
13
+ "interface": {
14
+ "displayName": "CompShare CLI",
15
+ "shortDescription": "GPU and AI media workflows",
16
+ "longDescription": "Manage CompShare GPU instances, images, disks, networking and teams. Connect over SSH, transfer files and run durable remote jobs. Create and inspect MiniMax H3 video, image and speech tasks. Requires Python 3.9 or later, the locally installed compshare-cli package and your own CompShare API credentials; media generation uses a separate model API key. Inspect prices and dry runs, and approve resource changes before execution.",
17
+ "developerName": "CompShare",
18
+ "category": "Developer Tools",
19
+ "websiteURL": "https://github.com/compshare-cn/compshare-cli",
20
+ "supportURL": "https://github.com/compshare-cn/compshare-cli/issues",
21
+ "composerIcon": "./connector/compshare/icon.svg",
22
+ "logo": "./connector/compshare/icon.svg",
23
+ "defaultPrompt": [
24
+ "Use $compshare-cli:compshare-cli to manage CompShare GPU or MiniMax H3 resources safely."
25
+ ]
26
+ },
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."
29
+ }
30
+ }
31
+ }
32
+ }
@@ -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:
@@ -324,6 +355,9 @@ compshare --json minimax cancel TASK_ID --yes
324
355
 
325
356
  For images, inspect current pricing before creating a task. Each request creates one image:
326
357
 
358
+ The default resolution is 1K. 2K requests are accepted only when that tier is enabled in
359
+ `minimax image config`; a `null` price means the tier is unavailable.
360
+
327
361
  ```bash
328
362
  compshare --json minimax image config
329
363
  compshare --json minimax image list --status queued
@@ -357,14 +391,13 @@ Generated image and speech URLs stay redacted unless the user explicitly needs t
357
391
  `--show-sensitive` is added as a root option. Download speech output promptly; the API retains
358
392
  it for seven days. Deleting a finished task also removes its output.
359
393
 
360
- ## Diagnostics and feedback
394
+ ## Diagnostics
361
395
 
362
396
  ```bash
363
397
  compshare --json doctor
364
- compshare feedback bug '创建实例时发生错误'
365
398
  ```
366
399
 
367
- Use `doctor` for local configuration, authentication, network and SSH environment checks. Use `feedback` only when the user asks to send feedback; it performs an external write.
400
+ Use `doctor` for local configuration, authentication, network and SSH environment checks.
368
401
 
369
402
  ## JSON contract
370
403
 
@@ -1,3 +1,3 @@
1
1
  """CompShare command-line client."""
2
2
 
3
- __version__ = "0.5.4"
3
+ __version__ = "0.5.6"
@@ -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", "feedback", "doctor")
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
  )
@@ -613,7 +613,7 @@ def image_config(ctx: typer.Context) -> None:
613
613
  def image_create(
614
614
  ctx: typer.Context,
615
615
  prompt: str = typer.Argument(..., help="Image prompt; at most 7000 characters."),
616
- resolution: str = typer.Option("2K", help="Image resolution: 1K or 2K."),
616
+ resolution: str = typer.Option("1K", help="Image resolution: 1K or 2K."),
617
617
  ratio: str = typer.Option("1:1", help="Image aspect ratio."),
618
618
  reference_assets: Optional[List[str]] = typer.Option(
619
619
  None, "--reference-asset", help="Registered reference image asset ID; repeatable."