huaweicloud-devkit 0.1.26-dev.0 → 1.0.1
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.
- package/README.md +70 -104
- package/README.zh-CN.md +138 -0
- package/package.json +3 -2
- package/plugins/huaweicloud-core/.claude-plugin/plugin.json +43 -43
- package/plugins/huaweicloud-core/.codex-plugin/plugin.json +42 -42
- package/plugins/huaweicloud-core/.cursor-plugin/plugin.json +43 -43
- package/plugins/huaweicloud-core/.mcp.json +3 -1
- package/plugins/huaweicloud-core/.workbuddy-plugin/plugin.json +44 -0
- package/plugins/huaweicloud-core/safety/policy.json +15 -1
- package/plugins/huaweicloud-core/safety/rules/cloud-risk-rules.json +21 -0
- package/plugins/huaweicloud-core/skills/huawei-apig/SKILL.md +22 -2
- package/plugins/huaweicloud-core/skills/huawei-cloud-eye/SKILL.md +17 -0
- package/plugins/huaweicloud-core/skills/huawei-cloud-find-skills/SKILL.md +1 -1
- package/plugins/huaweicloud-core/skills/huawei-dds-dcs/SKILL.md +2 -2
- package/plugins/huaweicloud-core/skills/huawei-ecs/SKILL.md +51 -1
- package/plugins/huaweicloud-core/skills/huawei-ecs/references/create-instance.md +23 -3
- package/plugins/huaweicloud-core/skills/huawei-ecs/references/troubleshooting.md +1 -1
- package/plugins/huaweicloud-core/skills/huawei-functiongraph/SKILL.md +1 -1
- package/plugins/huaweicloud-core/skills/huawei-functiongraph/references/triggers.md +1 -1
- package/plugins/huaweicloud-core/skills/huawei-getting-started/SKILL.md +2 -2
- package/plugins/huaweicloud-core/skills/huawei-obs/SKILL.md +21 -3
- package/plugins/huaweicloud-core/skills/huawei-obs/references/single-file-share.md +40 -0
- package/plugins/huaweicloud-core/skills/huawei-rds/SKILL.md +48 -5
- package/plugins/huaweicloud-core/skills/huawei-sandbox/SKILL.md +134 -0
- package/plugins/huaweicloud-core/skills/huawei-vpc/SKILL.md +5 -2
- package/plugins/huaweicloud-core/skills/huaweicloud-cli-and-auth/SKILL.md +7 -6
- package/plugins/huaweicloud-core/skills/huaweicloud-core/SKILL.md +3 -1
- package/plugins/huaweicloud-core/skills/huaweicloud-troubleshooting/SKILL.md +1 -1
- package/plugins/huaweicloud-core/src/auth/agent-registration.mjs +87 -0
- package/plugins/huaweicloud-core/src/auth/credentials.mjs +95 -0
- package/plugins/huaweicloud-core/src/auth/service.mjs +63 -0
- package/plugins/huaweicloud-core/src/mcp-server.mjs +11 -0
- package/plugins/huaweicloud-core/src/sandbox/hdkitservice-api.mjs +87 -0
- package/plugins/huaweicloud-core/src/sandbox/hwlink-api.mjs +153 -0
- package/plugins/huaweicloud-core/src/sandbox/session-manager.mjs +105 -0
- package/plugins/huaweicloud-core/src/setup-cli.mjs +733 -74
- package/plugins/huaweicloud-core/src/tools.mjs +164 -3
- package/plugins/huaweicloud-core/src/ws-exec/hwlink-exec-client.js +427 -0
- package/plugins/huaweicloud-core/src/ws-exec/hwlink-fair-queue.js +132 -0
- package/plugins/huaweicloud-core/src/ws-exec/hwlink-multiplexer.js +227 -0
- package/plugins/huaweicloud-core/src/ws-exec/hwlink-packet.js +202 -0
- package/plugins/huaweicloud-core/src/ws-exec/hwlink-terminal-channel.js +158 -0
- package/plugins/huaweicloud-core/src/ws-exec/index.js +19 -0
- package/plugins/huaweicloud-core/src/ws-exec/ws-exec-client.js +338 -0
package/README.md
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
# HuaweiCloud DevKit
|
|
2
|
-
|
|
2
|
+
[]
|
|
3
3
|
[](LICENSE)
|
|
4
|
-
[](https://github.com/huaweicloud/HuaweiCloud-Devkit/actions/workflows/ci.yml)
|
|
5
|
+
|
|
6
|
+
**[中文](README.zh-CN.md) | English**
|
|
7
|
+
|
|
8
|
+
Help AI coding agents use Huawei Cloud safely and accurately — a single integration that gives agents cloud knowledge, CLI tooling, and safety guardrails.
|
|
9
|
+
|
|
10
|
+
Supports OpenCode, Codex, CodeArts Agent, and WorkBuddy.
|
|
5
11
|
|
|
6
|
-
|
|
12
|
+
## Prerequisites
|
|
7
13
|
|
|
8
|
-
|
|
14
|
+
- Node.js >= 22
|
|
9
15
|
|
|
10
|
-
##
|
|
16
|
+
## Quick Start
|
|
11
17
|
|
|
12
18
|
### OpenCode
|
|
13
19
|
|
|
@@ -15,13 +21,13 @@ HuaweiCloud DevKit 为 AI 编码助手提供操作华为云所需的知识、工
|
|
|
15
21
|
npx --yes huaweicloud-devkit install
|
|
16
22
|
```
|
|
17
23
|
|
|
18
|
-
|
|
24
|
+
Installs the DevKit into OpenCode automatically. **Restart the session** after installation.
|
|
19
25
|
|
|
20
26
|
```bash
|
|
21
|
-
npx --yes huaweicloud-devkit doctor
|
|
22
|
-
npx --yes huaweicloud-devkit status
|
|
23
|
-
npx --yes huaweicloud-devkit update
|
|
24
|
-
npx --yes huaweicloud-devkit uninstall #
|
|
27
|
+
npx --yes huaweicloud-devkit doctor # self-check
|
|
28
|
+
npx --yes huaweicloud-devkit status # show status
|
|
29
|
+
npx --yes huaweicloud-devkit update # update
|
|
30
|
+
npx --yes huaweicloud-devkit uninstall # uninstall
|
|
25
31
|
```
|
|
26
32
|
|
|
27
33
|
### Codex
|
|
@@ -30,143 +36,103 @@ npx --yes huaweicloud-devkit uninstall # 卸载
|
|
|
30
36
|
npx --yes huaweicloud-devkit install --target codex
|
|
31
37
|
```
|
|
32
38
|
|
|
33
|
-
>
|
|
39
|
+
> The Codex CLI must be installed first.
|
|
34
40
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
```
|
|
42
|
-
/plugin install huaweicloud-core@huaweicloud-devkit
|
|
41
|
+
```bash
|
|
42
|
+
npx --yes huaweicloud-devkit doctor # self-check
|
|
43
|
+
npx --yes huaweicloud-devkit status --target codex
|
|
44
|
+
npx --yes huaweicloud-devkit update --target codex # update
|
|
45
|
+
npx --yes huaweicloud-devkit uninstall --target codex
|
|
43
46
|
```
|
|
44
47
|
|
|
45
|
-
|
|
48
|
+
> **Codex Desktop** (Windows): use `--target codex-desktop` with the same commands.
|
|
46
49
|
|
|
47
|
-
|
|
50
|
+
### CodeArts Agent
|
|
48
51
|
|
|
49
52
|
```bash
|
|
50
53
|
npx --yes huaweicloud-devkit install --target codearts
|
|
51
54
|
```
|
|
52
55
|
|
|
53
|
-
|
|
56
|
+
**Restart the session** after installation.
|
|
54
57
|
|
|
55
58
|
```bash
|
|
56
|
-
npx --yes huaweicloud-devkit install-hcloud #
|
|
57
|
-
npx --yes huaweicloud-devkit doctor #
|
|
58
|
-
npx --yes huaweicloud-devkit status --target codearts
|
|
59
|
-
npx --yes huaweicloud-devkit
|
|
59
|
+
npx --yes huaweicloud-devkit install-hcloud # install KooCLI
|
|
60
|
+
npx --yes huaweicloud-devkit doctor # self-check
|
|
61
|
+
npx --yes huaweicloud-devkit status --target codearts
|
|
62
|
+
npx --yes huaweicloud-devkit update --target codearts
|
|
63
|
+
npx --yes huaweicloud-devkit uninstall --target codearts
|
|
60
64
|
```
|
|
61
65
|
|
|
62
|
-
>
|
|
66
|
+
> **Sandbox mode**: CodeArts defaults to sandbox mode which blocks KooCLI. `install-hcloud` detects this and shows how to resolve it — install KooCLI outside the sandbox terminal, or disable sandbox mode in CodeArts settings (Settings → Permissions → Bash mode).
|
|
63
67
|
>
|
|
64
|
-
>
|
|
68
|
+
> **Authentication**: Run `npx huaweicloud-devkit auth init` to configure unified AK/SK credentials for KooCLI, OBS, and sandbox APIs.
|
|
69
|
+
|
|
70
|
+
### WorkBuddy
|
|
65
71
|
|
|
66
|
-
|
|
72
|
+
```bash
|
|
73
|
+
npx --yes huaweicloud-devkit install --target workbuddy
|
|
74
|
+
```
|
|
67
75
|
|
|
68
|
-
|
|
76
|
+
**Restart the session** after installation.
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
npx --yes huaweicloud-devkit doctor
|
|
80
|
+
npx --yes huaweicloud-devkit status --target workbuddy
|
|
81
|
+
npx --yes huaweicloud-devkit update --target workbuddy # update
|
|
82
|
+
npx --yes huaweicloud-devkit uninstall --target workbuddy
|
|
83
|
+
```
|
|
69
84
|
|
|
70
|
-
|
|
85
|
+
> **Updating**: `update` is incremental per agent — it refreshes only the installed files and leaves your config untouched. Use `update --target all` to update every installed agent at once.
|
|
71
86
|
|
|
72
|
-
###
|
|
87
|
+
### Other Agents
|
|
73
88
|
|
|
74
|
-
|
|
89
|
+
For agents that support the Model Context Protocol (MCP):
|
|
75
90
|
|
|
76
91
|
```json
|
|
77
92
|
{
|
|
78
93
|
"mcp": {
|
|
79
94
|
"huaweicloud-devkit": {
|
|
80
95
|
"type": "local",
|
|
81
|
-
"command": ["node", "
|
|
96
|
+
"command": ["node", "<path>/plugins/huaweicloud-core/src/mcp-server.mjs"],
|
|
82
97
|
"enabled": true
|
|
83
98
|
}
|
|
84
99
|
}
|
|
85
100
|
}
|
|
86
101
|
```
|
|
87
102
|
|
|
88
|
-
|
|
103
|
+
Then install:
|
|
89
104
|
|
|
90
105
|
```bash
|
|
91
106
|
npx --yes huaweicloud-devkit install
|
|
92
107
|
```
|
|
93
108
|
|
|
94
|
-
>
|
|
95
|
-
|
|
96
|
-
## 包含内容
|
|
97
|
-
|
|
98
|
-
### 插件
|
|
99
|
-
|
|
100
|
-
`huaweicloud-core` 插件将 MCP 服务器配置、27 个 Agent 技能和安全策略打包为一次性安装。
|
|
101
|
-
|
|
102
|
-
| 插件 | 说明 |
|
|
103
|
-
|------|------|
|
|
104
|
-
| [huaweicloud-core](plugins/huaweicloud-core/) | 核心插件,含技能、MCP 服务器、安全策略。**从这里开始。** |
|
|
105
|
-
|
|
106
|
-
### 技能
|
|
107
|
-
|
|
108
|
-
Agent 技能是经过整理的指令和参考材料包,帮助 Agent 完成特定的华为云任务。技能按需加载——Agent 只发现和检索与当前任务相关的内容。
|
|
109
|
-
|
|
110
|
-
包含 6 个元技能(路由、发现、CLI/认证、API/SDK、安全、排错)和 20 个服务技能(覆盖 ECS、OBS、VPC、IAM、RDS、GaussDB、FunctionGraph、APIG、CCE、SMN/DMS、ModelArts、Cloud Eye、CTS、DEW、Billing、CBR、WAF/AAD、DDS/DCS、Deployment、Getting Started)。
|
|
111
|
-
|
|
112
|
-
浏览 [`skills/`](plugins/huaweicloud-core/skills/) 目录查看所有可用技能。
|
|
113
|
-
|
|
114
|
-
### Rules 文件
|
|
115
|
-
|
|
116
|
-
推荐的项目级配置文件,告诉 Agent 如何高效使用华为云——例如优先使用 MCP 服务器、发现可用技能、遵循最小权限 IAM 原则。
|
|
117
|
-
|
|
118
|
-
详见 [`rules/huawei-agent-rules.md`](rules/huawei-agent-rules.md)。
|
|
119
|
-
|
|
120
|
-
### MCP 服务器
|
|
121
|
-
|
|
122
|
-
本地 MCP 服务器(`plugins/huaweicloud-core/src/mcp-server.mjs`)通过 Model Context Protocol 为 Agent 提供安全的 KooCLI 访问。
|
|
123
|
-
|
|
124
|
-
- **安全优先执行** — 所有 `hcloud` 命令执行前自动分类(读/写/密钥),写操作需用户明确批准。
|
|
125
|
-
- **输出脱敏** — 凭证形态的值(AK/SK、Token、密码)自动替换为 `***REDACTED***`。
|
|
126
|
-
- **16 个结构化工具** — 技能搜索、CLI 检查、只读命令、区域发现、错误解释、Hook 风险检查等。
|
|
127
|
-
- **零运行时依赖** — 纯 Node.js(>= 20),无需 npm install。
|
|
128
|
-
|
|
129
|
-
详见 [MCP 工具表](#mcp-工具)。
|
|
109
|
+
> **Prerequisite:** Node.js >= 22. Run `npx huaweicloud-devkit auth init` for unified credentials.
|
|
130
110
|
|
|
131
|
-
##
|
|
111
|
+
## What It Does
|
|
132
112
|
|
|
133
|
-
|
|
113
|
+
- **Guided cloud operations** — agents get step-by-step guidance for 20+ Huawei Cloud services (ECS, OBS, VPC, RDS, GaussDB, FunctionGraph, APIG, CCE, and more)
|
|
114
|
+
- **Safety-first execution** — all write operations require explicit user approval; credentials and secrets are automatically redacted from output
|
|
115
|
+
- **Pre-execution risk checks** — public exposure, credential leaks, and destructive operations are caught before they run
|
|
116
|
+
- **Regional awareness** — auto-discovers available regions and checks service availability before creating resources
|
|
134
117
|
|
|
135
|
-
|
|
136
|
-
|------|------|------|
|
|
137
|
-
| 技能层 | `SKILL.md` 流程文档 | 教会 Agent 正确的行为规则和安全用法 |
|
|
138
|
-
| 钩子层 | `huaweicloud-safety.py` | PreToolUse Hook 阻断高风险工具调用(Claude Code、Cursor 可用) |
|
|
139
|
-
| MCP 层 | `safety-policy.mjs` | Node.js 安全策略包装器,在所有 Agent 环境中强制执行 |
|
|
118
|
+
## Supported Services
|
|
140
119
|
|
|
141
|
-
|
|
120
|
+
ECS, OBS, VPC, IAM, RDS, GaussDB, FunctionGraph, APIG, CCE, SMN/DMS, ModelArts, Cloud Eye, CTS, DEW, Billing, CBR, WAF/AAD, DDS/DCS, Deployment, and Getting Started guides.
|
|
142
121
|
|
|
143
|
-
##
|
|
122
|
+
## Documentation
|
|
144
123
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
| 知识发现 | `huaweicloud_get_regional_availability` | 检查目标区域的服务可用性 |
|
|
151
|
-
| CLI | `huaweicloud_check_cli` | 检查 KooCLI `hcloud` 是否已安装 |
|
|
152
|
-
| CLI | `huaweicloud_plan_cli_command` | 分类计划命令(读/写/密钥)但不执行 |
|
|
153
|
-
| CLI | `huaweicloud_list_operations` | 列出服务的可用 KooCLI 操作 |
|
|
154
|
-
| CLI | `huaweicloud_run_readonly_command` | 执行只读命令并脱敏输出 |
|
|
155
|
-
| CLI | `huaweicloud_run_approved_command` | 经用户明确批准后执行写命令 |
|
|
156
|
-
| 安全 | `huaweicloud_show_profile_redacted` | 安全查看 KooCLI 配置(凭证脱敏) |
|
|
157
|
-
| 安全 | `huaweicloud_hook_check_command` | 执行前检查 Shell/KooCLI 命令风险 |
|
|
158
|
-
| 安全 | `huaweicloud_hook_check_artifacts` | 检查生成的代码、IaC、IAM/OBS 策略和配置文件风险 |
|
|
159
|
-
| 安全 | `huaweicloud_hook_check_deploy_plan` | 检查沙箱、预览环境和云资源部署计划风险 |
|
|
160
|
-
| 路由 | `huaweicloud_service_catalog` | 返回推荐的能力来源排序 |
|
|
161
|
-
| 排错 | `huaweicloud_explain_error` | 解释错误码并建议诊断步骤 |
|
|
124
|
+
- [Architecture](docs/architecture.md)
|
|
125
|
+
- [Safety Model](docs/safety-model.md)
|
|
126
|
+
- [Hook Rule Model](docs/hook-rule-model.md)
|
|
127
|
+
- [Changelog](docs/CHANGELOG.md)
|
|
128
|
+
- [KooCLI official docs](https://support.huaweicloud.com/qs-hcli/hcli_02_003.html)
|
|
162
129
|
|
|
163
|
-
##
|
|
130
|
+
## Contributors
|
|
164
131
|
|
|
165
|
-
|
|
166
|
-
-
|
|
167
|
-
|
|
168
|
-
- [KooCLI 官方文档](https://support.huaweicloud.com/qs-hcli/hcli_02_003.html)
|
|
132
|
+
<a href="https://github.com/huaweicloud/huaweicloud-devkit/graphs/contributors">
|
|
133
|
+
<img src="https://contrib.rocks/image?repo=huaweicloud/huaweicloud-devkit" />
|
|
134
|
+
</a>
|
|
169
135
|
|
|
170
|
-
##
|
|
136
|
+
## License
|
|
171
137
|
|
|
172
|
-
|
|
138
|
+
This project is licensed under the Apache-2.0 License. See [LICENSE](LICENSE).
|
package/README.zh-CN.md
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
# HuaweiCloud DevKit
|
|
2
|
+
[]
|
|
3
|
+
[](LICENSE)
|
|
4
|
+
[](https://github.com/huaweicloud/HuaweiCloud-Devkit/actions/workflows/ci.yml)
|
|
5
|
+
|
|
6
|
+
**中文 | [English](README.md)**
|
|
7
|
+
|
|
8
|
+
帮助 AI 编码助手安全、准确地使用华为云——一站式集成云知识、CLI 工具和安全护栏。
|
|
9
|
+
|
|
10
|
+
支持 OpenCode、Codex、码道(CodeArts Agent)、WorkBuddy。
|
|
11
|
+
|
|
12
|
+
## 前置条件
|
|
13
|
+
|
|
14
|
+
- Node.js >= 22
|
|
15
|
+
|
|
16
|
+
## 快速开始
|
|
17
|
+
|
|
18
|
+
### OpenCode
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
npx --yes huaweicloud-devkit install
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
自动安装 DevKit。安装后**重启会话**。
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
npx --yes huaweicloud-devkit doctor # 自检
|
|
28
|
+
npx --yes huaweicloud-devkit status # 查看状态
|
|
29
|
+
npx --yes huaweicloud-devkit update # 更新
|
|
30
|
+
npx --yes huaweicloud-devkit uninstall # 卸载
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Codex
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
npx --yes huaweicloud-devkit install --target codex
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
> 需要先安装 Codex CLI。
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
npx --yes huaweicloud-devkit doctor # 自检
|
|
43
|
+
npx --yes huaweicloud-devkit status --target codex
|
|
44
|
+
npx --yes huaweicloud-devkit update --target codex # 更新
|
|
45
|
+
npx --yes huaweicloud-devkit uninstall --target codex
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
> **Codex Desktop**(Windows):将 `--target codex` 换成 `--target codex-desktop`,命令相同。
|
|
49
|
+
|
|
50
|
+
### CodeArts Agent(码道)
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
npx --yes huaweicloud-devkit install --target codearts
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
安装后**重启会话**。
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
npx --yes huaweicloud-devkit install-hcloud # 安装 KooCLI
|
|
60
|
+
npx --yes huaweicloud-devkit doctor # 自检
|
|
61
|
+
npx --yes huaweicloud-devkit status --target codearts
|
|
62
|
+
npx --yes huaweicloud-devkit update --target codearts
|
|
63
|
+
npx --yes huaweicloud-devkit uninstall --target codearts
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
> **沙箱模式**:码道默认沙箱模式会阻止 KooCLI 运行。`install-hcloud` 自动检测并给出指引——请在码道外终端安装使用 KooCLI,或在码道设置中关闭沙箱模式(设置 → 权限 → Bash 模式)。
|
|
67
|
+
>
|
|
68
|
+
> **认证**:执行 `npx huaweicloud-devkit auth init`,统一配置 KooCLI、OBS 和沙箱接口所需的 AK/SK。
|
|
69
|
+
|
|
70
|
+
### WorkBuddy
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
npx --yes huaweicloud-devkit install --target workbuddy
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
安装后**重启会话**。
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
npx --yes huaweicloud-devkit doctor
|
|
80
|
+
npx --yes huaweicloud-devkit status --target workbuddy
|
|
81
|
+
npx --yes huaweicloud-devkit update --target workbuddy # 更新
|
|
82
|
+
npx --yes huaweicloud-devkit uninstall --target workbuddy
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
> **更新机制**:`update` 按 agent 增量更新,只刷新必要文件、不动你的配置文件。`update --target all` 可一次更新所有已安装的 agent。
|
|
86
|
+
|
|
87
|
+
### 其他 Agent
|
|
88
|
+
|
|
89
|
+
支持 MCP 协议的 Agent,手动配置:
|
|
90
|
+
|
|
91
|
+
```json
|
|
92
|
+
{
|
|
93
|
+
"mcp": {
|
|
94
|
+
"huaweicloud-devkit": {
|
|
95
|
+
"type": "local",
|
|
96
|
+
"command": ["node", "<路径>/plugins/huaweicloud-core/src/mcp-server.mjs"],
|
|
97
|
+
"enabled": true
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
然后安装:
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
npx --yes huaweicloud-devkit install
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
> **前置条件:** Node.js >= 22。执行 `npx huaweicloud-devkit auth init` 完成统一认证。
|
|
110
|
+
|
|
111
|
+
## 功能特性
|
|
112
|
+
|
|
113
|
+
- **引导式云操作** — Agent 获得 20+ 华为云服务的分步操作指引(ECS、OBS、VPC、RDS、GaussDB、FunctionGraph、APIG、CCE 等)
|
|
114
|
+
- **安全优先执行** — 所有写操作需用户明确批准;凭证和密钥自动脱敏
|
|
115
|
+
- **执行前风险检查** — 公网暴露、凭证泄露、破坏性操作在执行前即被拦截
|
|
116
|
+
- **区域感知** — 自动发现可用区域,创建资源前检查服务可用性
|
|
117
|
+
|
|
118
|
+
## 支持的服务
|
|
119
|
+
|
|
120
|
+
ECS、OBS、VPC、IAM、RDS、GaussDB、FunctionGraph、APIG、CCE、SMN/DMS、ModelArts、Cloud Eye、CTS、DEW、Billing、CBR、WAF/AAD、DDS/DCS、Deployment,以及入门指南。
|
|
121
|
+
|
|
122
|
+
## 文档
|
|
123
|
+
|
|
124
|
+
- [架构](docs/architecture.md)
|
|
125
|
+
- [安全模型](docs/safety-model.md)
|
|
126
|
+
- [Hook 规则模型](docs/hook-rule-model.md)
|
|
127
|
+
- [变更记录](docs/CHANGELOG.md)
|
|
128
|
+
- [KooCLI 官方文档](https://support.huaweicloud.com/qs-hcli/hcli_02_003.html)
|
|
129
|
+
|
|
130
|
+
## 贡献者
|
|
131
|
+
|
|
132
|
+
<a href="https://github.com/huaweicloud/huaweicloud-devkit/graphs/contributors">
|
|
133
|
+
<img src="https://contrib.rocks/image?repo=huaweicloud/huaweicloud-devkit" />
|
|
134
|
+
</a>
|
|
135
|
+
|
|
136
|
+
## 许可证
|
|
137
|
+
|
|
138
|
+
本项目基于 Apache-2.0 许可证发布。详见 [LICENSE](LICENSE)。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "huaweicloud-devkit",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Agent toolkit that helps coding agents use Huawei Cloud Skills, KooCLI, APIs, SDKs, and future MCP capabilities safely and accurately.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"repository": {
|
|
16
16
|
"type": "git",
|
|
17
|
-
"url": "https://github.com/huaweicloud
|
|
17
|
+
"url": "https://github.com/huaweicloud/HuaweiCloud-Devkit.git"
|
|
18
18
|
},
|
|
19
19
|
"scripts": {
|
|
20
20
|
"test": "node --test",
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
"agent",
|
|
33
33
|
"codex",
|
|
34
34
|
"opencode",
|
|
35
|
+
"workbuddy",
|
|
35
36
|
"mcp",
|
|
36
37
|
"koocli",
|
|
37
38
|
"hcloud"
|
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
2
|
+
"interface": {
|
|
3
|
+
"displayName": "HuaweiCloud Devkit",
|
|
4
|
+
"shortDescription": "HuaweiCloud Devkit - Huawei Cloud guidance, CLI/API/SDK routing, MCP tools, and safety for coding agents.",
|
|
5
|
+
"longDescription": "HuaweiCloud Devkit helps coding agents choose and use Huawei Cloud Skills, KooCLI, APIs, SDKs, and MCP tools with less context, safer command execution, and more accurate cloud implementation decisions.",
|
|
6
|
+
"developerName": "HuaweiCloud Mate",
|
|
7
|
+
"category": "Cloud",
|
|
8
|
+
"capabilities": [
|
|
9
|
+
"Read",
|
|
10
|
+
"Interactive"
|
|
11
|
+
],
|
|
12
|
+
"websiteURL": "https://github.com/huaweicloud/HuaweiCloud-Devkit",
|
|
13
|
+
"brandColor": "#C7000B",
|
|
14
|
+
"defaultPrompt": [
|
|
15
|
+
"Help me choose the right Huawei Cloud capability.",
|
|
16
|
+
"Check my Huawei Cloud CLI setup safely.",
|
|
17
|
+
"Plan this Huawei Cloud API or SDK task."
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
"mcpServers": "./.mcp.json",
|
|
21
|
+
"description": "Guide coding agents to use Huawei Cloud Skills, KooCLI, APIs, SDKs, and future MCP capabilities with safer execution and less context.",
|
|
22
|
+
"skills": "./skills/",
|
|
23
|
+
"version": "1.0.1",
|
|
24
|
+
"author": {
|
|
25
|
+
"name": "HuaweiCloud Mate",
|
|
26
|
+
"url": "https://github.com/huaweicloud"
|
|
27
|
+
},
|
|
28
|
+
"hooks": "./hooks/",
|
|
29
|
+
"name": "huaweicloud-core",
|
|
30
|
+
"homepage": "https://github.com/huaweicloud/HuaweiCloud-Devkit",
|
|
31
|
+
"repository": "https://github.com/huaweicloud/HuaweiCloud-Devkit",
|
|
32
|
+
"license": "Apache-2.0",
|
|
33
|
+
"keywords": [
|
|
34
|
+
"huaweicloud",
|
|
35
|
+
"huawei-cloud",
|
|
36
|
+
"koocli",
|
|
37
|
+
"hcloud",
|
|
38
|
+
"agent",
|
|
39
|
+
"mcp",
|
|
40
|
+
"api",
|
|
41
|
+
"sdk",
|
|
42
|
+
"skills"
|
|
43
|
+
]
|
|
44
|
+
}
|
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
2
|
+
"name": "huaweicloud-core",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "Guide coding agents to use Huawei Cloud Skills, KooCLI, APIs, SDKs, and future MCP capabilities with safer execution and less context.",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "HuaweiCloud Mate",
|
|
7
|
+
"url": "https://github.com/huaweicloud"
|
|
8
|
+
},
|
|
9
|
+
"homepage": "https://github.com/huaweicloud/HuaweiCloud-Devkit",
|
|
10
|
+
"repository": "https://github.com/huaweicloud/HuaweiCloud-Devkit",
|
|
11
|
+
"license": "Apache-2.0",
|
|
12
|
+
"keywords": [
|
|
13
|
+
"huaweicloud",
|
|
14
|
+
"huawei-cloud",
|
|
15
|
+
"koocli",
|
|
16
|
+
"hcloud",
|
|
17
|
+
"agent",
|
|
18
|
+
"mcp",
|
|
19
|
+
"api",
|
|
20
|
+
"sdk",
|
|
21
|
+
"skills"
|
|
22
|
+
],
|
|
23
|
+
"skills": "./skills/",
|
|
24
|
+
"mcpServers": "./.mcp.json",
|
|
25
|
+
"interface": {
|
|
26
|
+
"displayName": "HuaweiCloud Devkit",
|
|
27
|
+
"shortDescription": "HuaweiCloud Devkit - Huawei Cloud guidance, CLI/API/SDK routing, MCP tools, and safety for coding agents.",
|
|
28
|
+
"longDescription": "HuaweiCloud Devkit helps coding agents choose and use Huawei Cloud Skills, KooCLI, APIs, SDKs, and MCP tools with less context, safer command execution, and more accurate cloud implementation decisions.",
|
|
29
|
+
"developerName": "HuaweiCloud Mate",
|
|
30
|
+
"category": "Cloud",
|
|
31
|
+
"capabilities": [
|
|
32
|
+
"Read",
|
|
33
|
+
"Interactive"
|
|
34
|
+
],
|
|
35
|
+
"websiteURL": "https://github.com/huaweicloud/HuaweiCloud-Devkit",
|
|
36
|
+
"brandColor": "#C7000B",
|
|
37
|
+
"defaultPrompt": [
|
|
38
|
+
"Help me choose the right Huawei Cloud capability.",
|
|
39
|
+
"Check my Huawei Cloud CLI setup safely.",
|
|
40
|
+
"Plan this Huawei Cloud API or SDK task."
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
}
|