compshare-cli 0.5.1__tar.gz → 0.5.2__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 (70) hide show
  1. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/CHANGELOG.md +5 -0
  2. {compshare_cli-0.5.1/src/compshare_cli.egg-info → compshare_cli-0.5.2}/PKG-INFO +11 -37
  3. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/README.md +10 -36
  4. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/connector/compshare/connector-meta.json +1 -1
  5. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/connector/compshare/mcp.json +1 -1
  6. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/connector/compshare/skills/compshare/SKILL.md +1 -1
  7. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/src/compshare_cli/__init__.py +1 -1
  8. {compshare_cli-0.5.1 → compshare_cli-0.5.2/src/compshare_cli.egg-info}/PKG-INFO +11 -37
  9. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/LICENSE +0 -0
  10. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/MANIFEST.in +0 -0
  11. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/RELEASING.md +0 -0
  12. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/connector/compshare/icon.svg +0 -0
  13. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/connector/compshare/token-schema.json +0 -0
  14. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/pyproject.toml +0 -0
  15. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/setup.cfg +0 -0
  16. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/skills/compshare-cli/SKILL.md +0 -0
  17. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/skills/compshare-cli/agents/openai.yaml +0 -0
  18. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/src/compshare_cli/__main__.py +0 -0
  19. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/src/compshare_cli/actions.py +0 -0
  20. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/src/compshare_cli/api.py +0 -0
  21. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/src/compshare_cli/cli.py +0 -0
  22. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/src/compshare_cli/commands/__init__.py +0 -0
  23. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/src/compshare_cli/commands/bandwidth.py +0 -0
  24. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/src/compshare_cli/commands/common.py +0 -0
  25. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/src/compshare_cli/commands/doctor.py +0 -0
  26. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/src/compshare_cli/commands/feedback.py +0 -0
  27. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/src/compshare_cli/commands/image.py +0 -0
  28. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/src/compshare_cli/commands/instance.py +0 -0
  29. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/src/compshare_cli/commands/minimax.py +0 -0
  30. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/src/compshare_cli/commands/storage.py +0 -0
  31. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/src/compshare_cli/commands/team.py +0 -0
  32. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/src/compshare_cli/config.py +0 -0
  33. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/src/compshare_cli/errors.py +0 -0
  34. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/src/compshare_cli/i18n.py +0 -0
  35. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/src/compshare_cli/insights.py +0 -0
  36. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/src/compshare_cli/instance_templates.py +0 -0
  37. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/src/compshare_cli/location.py +0 -0
  38. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/src/compshare_cli/mcp_server.py +0 -0
  39. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/src/compshare_cli/output.py +0 -0
  40. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/src/compshare_cli/parsing.py +0 -0
  41. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/src/compshare_cli/remote_jobs.py +0 -0
  42. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/src/compshare_cli/runtime.py +0 -0
  43. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/src/compshare_cli/sdk.py +0 -0
  44. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/src/compshare_cli/ssh.py +0 -0
  45. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/src/compshare_cli/ssh_cache.py +0 -0
  46. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/src/compshare_cli.egg-info/SOURCES.txt +0 -0
  47. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/src/compshare_cli.egg-info/dependency_links.txt +0 -0
  48. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/src/compshare_cli.egg-info/entry_points.txt +0 -0
  49. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/src/compshare_cli.egg-info/requires.txt +0 -0
  50. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/src/compshare_cli.egg-info/top_level.txt +0 -0
  51. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/tests/test_actions.py +0 -0
  52. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/tests/test_api.py +0 -0
  53. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/tests/test_bandwidth.py +0 -0
  54. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/tests/test_cli.py +0 -0
  55. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/tests/test_config.py +0 -0
  56. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/tests/test_feedback.py +0 -0
  57. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/tests/test_instance_templates.py +0 -0
  58. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/tests/test_location.py +0 -0
  59. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/tests/test_mcp_server.py +0 -0
  60. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/tests/test_minimax.py +0 -0
  61. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/tests/test_minimax_media.py +0 -0
  62. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/tests/test_output.py +0 -0
  63. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/tests/test_parsing.py +0 -0
  64. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/tests/test_release_version.py +0 -0
  65. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/tests/test_remote_jobs.py +0 -0
  66. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/tests/test_sdk.py +0 -0
  67. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/tests/test_ssh.py +0 -0
  68. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/tests/test_ssh_cache.py +0 -0
  69. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/tests/test_ssh_integration.py +0 -0
  70. {compshare_cli-0.5.1 → compshare_cli-0.5.2}/tests/test_workbuddy_connector.py +0 -0
@@ -2,6 +2,11 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.5.2
6
+
7
+ - 精简 README 快速开始,移除图片、语音和文件传输示例,以及 SSH 细节和使用统计说明。
8
+ - 将 Skill 安装说明移到“安装”章节后。
9
+
5
10
  ## 0.5.1
6
11
 
7
12
  - 修复 SSH 远程命令参数中的空格、空参数、引号和 Shell 特殊字符丢失的问题,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: compshare-cli
3
- Version: 0.5.1
3
+ Version: 0.5.2
4
4
  Summary: Command-line client for CompShare GPU compute and MiniMax H3
5
5
  Author: CompShare
6
6
  License-Expression: Apache-2.0
@@ -45,6 +45,16 @@ pip install compshare-cli
45
45
  pip install --upgrade compshare-cli
46
46
  ```
47
47
 
48
+ ## Skill
49
+
50
+ 为 Codex、Claude Code、Cursor 等 AI Agent 安装 CompShare CLI Skill:
51
+
52
+ ```bash
53
+ npx skills add compshare-cn/compshare-cli --skill compshare-cli
54
+ ```
55
+
56
+ 完整说明见 [CompShare CLI Skill](skills/compshare-cli/SKILL.md)。
57
+
48
58
  ## 配置
49
59
 
50
60
  ```bash
@@ -69,9 +79,6 @@ export COMPSHARE_PRIVATE_KEY='...'
69
79
  export COMPSHARE_MINIMAX_API_KEY='sk-ml-...'
70
80
  ```
71
81
 
72
- CLI 使用统计和反馈与业务 API 一样,通过当前 profile 的凭证签名后发送到
73
- `https://api.compshare.cn/`;开发环境可使用 `COMPSHARE_INSIGHTS_URL` 覆盖网关地址。
74
-
75
82
  ## 快速开始
76
83
 
77
84
  ```bash
@@ -85,39 +92,16 @@ compshare instance ssh INSTANCE_ID
85
92
  compshare --json instance ssh INSTANCE_ID -- nvidia-smi
86
93
  compshare --json instance ssh INSTANCE_ID -- sh -lc 'cd /workspace && pwd'
87
94
 
88
- # 上传、下载文件或目录
89
- compshare --json instance cp INSTANCE_ID ./model.bin :/workspace/model.bin
90
- compshare --json instance cp INSTANCE_ID ./dataset :/workspace/dataset
91
- compshare --json instance cp INSTANCE_ID :/workspace/results ./results
92
-
93
95
  # MiniMax H3:先预演,再创建
94
96
  compshare --json minimax create '一只猫在海边奔跑' --dry-run
95
97
  compshare --json minimax create '一只猫在海边奔跑' --yes
96
98
  compshare --json minimax points
97
99
 
98
- # 图片:查看价格、创建任务、查询结果
99
- compshare --json minimax image config
100
- compshare --json minimax image create '一只戴着宇航头盔的猫' --resolution 1K --dry-run
101
- compshare --json minimax image create '一只戴着宇航头盔的猫' --resolution 1K --yes
102
- compshare --json minimax image show TASK_ID
103
-
104
- # 语音:先查询可用音色,再创建任务
105
- compshare --json minimax audio pricing
106
- compshare --json minimax audio voices
107
- compshare --json minimax audio create '你好,欢迎使用优云智算。' --voice-id VOICE_ID --dry-run
108
- compshare --json minimax audio create '你好,欢迎使用优云智算。' --voice-id VOICE_ID --yes
109
-
110
100
  # 查看帮助
111
101
  compshare -h
112
102
  compshare instance -h
113
103
  ```
114
104
 
115
- SSH 远程命令放在 `--` 后面,参数中的空格、引号和 `$` 会按原样传递;需要管道、重定向
116
- 或 `&&` 时使用 `sh -lc '脚本'`。SSH 和文件传输共用一小时有效的连接缓存,重置密码或
117
- 重装后可用 `--refresh` 强制刷新,`--no-cache` 禁用缓存。`--connect-timeout` 设置连接
118
- 建立的最长时间(默认 30 秒),`ssh --timeout` 设置等待实例运行的时间;长任务使用
119
- `instance job`。
120
-
121
105
  ## 命令概览
122
106
 
123
107
  ```text
@@ -132,16 +116,6 @@ compshare minimax MiniMax H3 视频、图片、语音、Skill 和积分
132
116
  compshare team 团队、邀请、成员额度、账单和审计
133
117
  ```
134
118
 
135
- ## Skill
136
-
137
- 为 Codex、Claude Code、Cursor 等 AI Agent 安装 CompShare CLI Skill:
138
-
139
- ```bash
140
- npx skills add compshare-cn/compshare-cli --skill compshare-cli
141
- ```
142
-
143
- 完整说明见 [CompShare CLI Skill](skills/compshare-cli/SKILL.md)。
144
-
145
119
  ## WorkBuddy Connector
146
120
 
147
121
  仓库内置符合 WorkBuddy 规范的 `MCP + Skill` Token 连接器,提交目录为
@@ -18,6 +18,16 @@ pip install compshare-cli
18
18
  pip install --upgrade compshare-cli
19
19
  ```
20
20
 
21
+ ## Skill
22
+
23
+ 为 Codex、Claude Code、Cursor 等 AI Agent 安装 CompShare CLI Skill:
24
+
25
+ ```bash
26
+ npx skills add compshare-cn/compshare-cli --skill compshare-cli
27
+ ```
28
+
29
+ 完整说明见 [CompShare CLI Skill](skills/compshare-cli/SKILL.md)。
30
+
21
31
  ## 配置
22
32
 
23
33
  ```bash
@@ -42,9 +52,6 @@ export COMPSHARE_PRIVATE_KEY='...'
42
52
  export COMPSHARE_MINIMAX_API_KEY='sk-ml-...'
43
53
  ```
44
54
 
45
- CLI 使用统计和反馈与业务 API 一样,通过当前 profile 的凭证签名后发送到
46
- `https://api.compshare.cn/`;开发环境可使用 `COMPSHARE_INSIGHTS_URL` 覆盖网关地址。
47
-
48
55
  ## 快速开始
49
56
 
50
57
  ```bash
@@ -58,39 +65,16 @@ compshare instance ssh INSTANCE_ID
58
65
  compshare --json instance ssh INSTANCE_ID -- nvidia-smi
59
66
  compshare --json instance ssh INSTANCE_ID -- sh -lc 'cd /workspace && pwd'
60
67
 
61
- # 上传、下载文件或目录
62
- compshare --json instance cp INSTANCE_ID ./model.bin :/workspace/model.bin
63
- compshare --json instance cp INSTANCE_ID ./dataset :/workspace/dataset
64
- compshare --json instance cp INSTANCE_ID :/workspace/results ./results
65
-
66
68
  # MiniMax H3:先预演,再创建
67
69
  compshare --json minimax create '一只猫在海边奔跑' --dry-run
68
70
  compshare --json minimax create '一只猫在海边奔跑' --yes
69
71
  compshare --json minimax points
70
72
 
71
- # 图片:查看价格、创建任务、查询结果
72
- compshare --json minimax image config
73
- compshare --json minimax image create '一只戴着宇航头盔的猫' --resolution 1K --dry-run
74
- compshare --json minimax image create '一只戴着宇航头盔的猫' --resolution 1K --yes
75
- compshare --json minimax image show TASK_ID
76
-
77
- # 语音:先查询可用音色,再创建任务
78
- compshare --json minimax audio pricing
79
- compshare --json minimax audio voices
80
- compshare --json minimax audio create '你好,欢迎使用优云智算。' --voice-id VOICE_ID --dry-run
81
- compshare --json minimax audio create '你好,欢迎使用优云智算。' --voice-id VOICE_ID --yes
82
-
83
73
  # 查看帮助
84
74
  compshare -h
85
75
  compshare instance -h
86
76
  ```
87
77
 
88
- SSH 远程命令放在 `--` 后面,参数中的空格、引号和 `$` 会按原样传递;需要管道、重定向
89
- 或 `&&` 时使用 `sh -lc '脚本'`。SSH 和文件传输共用一小时有效的连接缓存,重置密码或
90
- 重装后可用 `--refresh` 强制刷新,`--no-cache` 禁用缓存。`--connect-timeout` 设置连接
91
- 建立的最长时间(默认 30 秒),`ssh --timeout` 设置等待实例运行的时间;长任务使用
92
- `instance job`。
93
-
94
78
  ## 命令概览
95
79
 
96
80
  ```text
@@ -105,16 +89,6 @@ compshare minimax MiniMax H3 视频、图片、语音、Skill 和积分
105
89
  compshare team 团队、邀请、成员额度、账单和审计
106
90
  ```
107
91
 
108
- ## Skill
109
-
110
- 为 Codex、Claude Code、Cursor 等 AI Agent 安装 CompShare CLI Skill:
111
-
112
- ```bash
113
- npx skills add compshare-cn/compshare-cli --skill compshare-cli
114
- ```
115
-
116
- 完整说明见 [CompShare CLI Skill](skills/compshare-cli/SKILL.md)。
117
-
118
92
  ## WorkBuddy Connector
119
93
 
120
94
  仓库内置符合 WorkBuddy 规范的 `MCP + Skill` Token 连接器,提交目录为
@@ -8,7 +8,7 @@
8
8
  "source": "compshare",
9
9
  "type": "mcp",
10
10
  "auth_mode": "token",
11
- "version": "0.5.1",
11
+ "version": "0.5.2",
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.1",
10
+ "compshare-cli[mcp]==0.5.2",
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.1"
6
+ version: "0.5.2"
7
7
  author: "CompShare"
8
8
  ---
9
9
 
@@ -1,3 +1,3 @@
1
1
  """CompShare command-line client."""
2
2
 
3
- __version__ = "0.5.1"
3
+ __version__ = "0.5.2"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: compshare-cli
3
- Version: 0.5.1
3
+ Version: 0.5.2
4
4
  Summary: Command-line client for CompShare GPU compute and MiniMax H3
5
5
  Author: CompShare
6
6
  License-Expression: Apache-2.0
@@ -45,6 +45,16 @@ pip install compshare-cli
45
45
  pip install --upgrade compshare-cli
46
46
  ```
47
47
 
48
+ ## Skill
49
+
50
+ 为 Codex、Claude Code、Cursor 等 AI Agent 安装 CompShare CLI Skill:
51
+
52
+ ```bash
53
+ npx skills add compshare-cn/compshare-cli --skill compshare-cli
54
+ ```
55
+
56
+ 完整说明见 [CompShare CLI Skill](skills/compshare-cli/SKILL.md)。
57
+
48
58
  ## 配置
49
59
 
50
60
  ```bash
@@ -69,9 +79,6 @@ export COMPSHARE_PRIVATE_KEY='...'
69
79
  export COMPSHARE_MINIMAX_API_KEY='sk-ml-...'
70
80
  ```
71
81
 
72
- CLI 使用统计和反馈与业务 API 一样,通过当前 profile 的凭证签名后发送到
73
- `https://api.compshare.cn/`;开发环境可使用 `COMPSHARE_INSIGHTS_URL` 覆盖网关地址。
74
-
75
82
  ## 快速开始
76
83
 
77
84
  ```bash
@@ -85,39 +92,16 @@ compshare instance ssh INSTANCE_ID
85
92
  compshare --json instance ssh INSTANCE_ID -- nvidia-smi
86
93
  compshare --json instance ssh INSTANCE_ID -- sh -lc 'cd /workspace && pwd'
87
94
 
88
- # 上传、下载文件或目录
89
- compshare --json instance cp INSTANCE_ID ./model.bin :/workspace/model.bin
90
- compshare --json instance cp INSTANCE_ID ./dataset :/workspace/dataset
91
- compshare --json instance cp INSTANCE_ID :/workspace/results ./results
92
-
93
95
  # MiniMax H3:先预演,再创建
94
96
  compshare --json minimax create '一只猫在海边奔跑' --dry-run
95
97
  compshare --json minimax create '一只猫在海边奔跑' --yes
96
98
  compshare --json minimax points
97
99
 
98
- # 图片:查看价格、创建任务、查询结果
99
- compshare --json minimax image config
100
- compshare --json minimax image create '一只戴着宇航头盔的猫' --resolution 1K --dry-run
101
- compshare --json minimax image create '一只戴着宇航头盔的猫' --resolution 1K --yes
102
- compshare --json minimax image show TASK_ID
103
-
104
- # 语音:先查询可用音色,再创建任务
105
- compshare --json minimax audio pricing
106
- compshare --json minimax audio voices
107
- compshare --json minimax audio create '你好,欢迎使用优云智算。' --voice-id VOICE_ID --dry-run
108
- compshare --json minimax audio create '你好,欢迎使用优云智算。' --voice-id VOICE_ID --yes
109
-
110
100
  # 查看帮助
111
101
  compshare -h
112
102
  compshare instance -h
113
103
  ```
114
104
 
115
- SSH 远程命令放在 `--` 后面,参数中的空格、引号和 `$` 会按原样传递;需要管道、重定向
116
- 或 `&&` 时使用 `sh -lc '脚本'`。SSH 和文件传输共用一小时有效的连接缓存,重置密码或
117
- 重装后可用 `--refresh` 强制刷新,`--no-cache` 禁用缓存。`--connect-timeout` 设置连接
118
- 建立的最长时间(默认 30 秒),`ssh --timeout` 设置等待实例运行的时间;长任务使用
119
- `instance job`。
120
-
121
105
  ## 命令概览
122
106
 
123
107
  ```text
@@ -132,16 +116,6 @@ compshare minimax MiniMax H3 视频、图片、语音、Skill 和积分
132
116
  compshare team 团队、邀请、成员额度、账单和审计
133
117
  ```
134
118
 
135
- ## Skill
136
-
137
- 为 Codex、Claude Code、Cursor 等 AI Agent 安装 CompShare CLI Skill:
138
-
139
- ```bash
140
- npx skills add compshare-cn/compshare-cli --skill compshare-cli
141
- ```
142
-
143
- 完整说明见 [CompShare CLI Skill](skills/compshare-cli/SKILL.md)。
144
-
145
119
  ## WorkBuddy Connector
146
120
 
147
121
  仓库内置符合 WorkBuddy 规范的 `MCP + Skill` Token 连接器,提交目录为
File without changes
File without changes
File without changes