compshare-cli 0.5.1__py3-none-any.whl → 0.5.2__py3-none-any.whl

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/__init__.py CHANGED
@@ -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 连接器,提交目录为
@@ -1,4 +1,4 @@
1
- compshare_cli/__init__.py,sha256=r2p7cyHcre8VZUNIZyhxvENpbMEwPaQUOy0FHU1VUWU,60
1
+ compshare_cli/__init__.py,sha256=vkxM7_X9GIc6Ffyh9YEIwMWKJbI3JnPE6RcQ576ciS4,60
2
2
  compshare_cli/__main__.py,sha256=ftkB0R9jLZejzr717131qktgfFhTe12noFeGqQsVZMc,74
3
3
  compshare_cli/actions.py,sha256=DWIXXrUHru_mT6DNnrV5VhkfRhgyBGsu73uQk-7o8Mc,3633
4
4
  compshare_cli/api.py,sha256=S4hUvkbG0l7qUqQaAf7trX29GteF1yVnOGgjcJj99jc,9286
@@ -27,9 +27,9 @@ compshare_cli/commands/instance.py,sha256=CO9TJdL0FQWup_j0B3Pv6ubbh5JJa3UdPgwJcq
27
27
  compshare_cli/commands/minimax.py,sha256=ng0X09NcDTidYtA14O9nnJu5wEamvx-HkTmV4ifxeD8,43034
28
28
  compshare_cli/commands/storage.py,sha256=eUmX2KWx-aYr3ea6GVHVjffq0-58cjsEzINxLOrspyI,8975
29
29
  compshare_cli/commands/team.py,sha256=weVCgFPOoDDl03LWmVGhXNR0BPkUvyOUwUHlxUOWyKY,23651
30
- compshare_cli-0.5.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
31
- compshare_cli-0.5.1.dist-info/METADATA,sha256=bYQPpQsEnYlDhNXUvFyJoMaIWq5CceuQVzdofA4dSjc,6403
32
- compshare_cli-0.5.1.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
33
- compshare_cli-0.5.1.dist-info/entry_points.txt,sha256=GGv28Bsp3CfBKbcoG6nr2ceqPWYR_XIk0HxxN02olsU,149
34
- compshare_cli-0.5.1.dist-info/top_level.txt,sha256=ROBw509DOLNt7Z-xwrArjK066G7s4IH0jTcGiaKyMNw,14
35
- compshare_cli-0.5.1.dist-info/RECORD,,
30
+ compshare_cli-0.5.2.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
31
+ compshare_cli-0.5.2.dist-info/METADATA,sha256=TGjMQ3rCHVQHxX_Q3rSoLA--CDHJyXARFr8kh9mQXME,4824
32
+ compshare_cli-0.5.2.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
33
+ compshare_cli-0.5.2.dist-info/entry_points.txt,sha256=GGv28Bsp3CfBKbcoG6nr2ceqPWYR_XIk0HxxN02olsU,149
34
+ compshare_cli-0.5.2.dist-info/top_level.txt,sha256=ROBw509DOLNt7Z-xwrArjK066G7s4IH0jTcGiaKyMNw,14
35
+ compshare_cli-0.5.2.dist-info/RECORD,,