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.
Files changed (44) hide show
  1. package/README.md +70 -104
  2. package/README.zh-CN.md +138 -0
  3. package/package.json +3 -2
  4. package/plugins/huaweicloud-core/.claude-plugin/plugin.json +43 -43
  5. package/plugins/huaweicloud-core/.codex-plugin/plugin.json +42 -42
  6. package/plugins/huaweicloud-core/.cursor-plugin/plugin.json +43 -43
  7. package/plugins/huaweicloud-core/.mcp.json +3 -1
  8. package/plugins/huaweicloud-core/.workbuddy-plugin/plugin.json +44 -0
  9. package/plugins/huaweicloud-core/safety/policy.json +15 -1
  10. package/plugins/huaweicloud-core/safety/rules/cloud-risk-rules.json +21 -0
  11. package/plugins/huaweicloud-core/skills/huawei-apig/SKILL.md +22 -2
  12. package/plugins/huaweicloud-core/skills/huawei-cloud-eye/SKILL.md +17 -0
  13. package/plugins/huaweicloud-core/skills/huawei-cloud-find-skills/SKILL.md +1 -1
  14. package/plugins/huaweicloud-core/skills/huawei-dds-dcs/SKILL.md +2 -2
  15. package/plugins/huaweicloud-core/skills/huawei-ecs/SKILL.md +51 -1
  16. package/plugins/huaweicloud-core/skills/huawei-ecs/references/create-instance.md +23 -3
  17. package/plugins/huaweicloud-core/skills/huawei-ecs/references/troubleshooting.md +1 -1
  18. package/plugins/huaweicloud-core/skills/huawei-functiongraph/SKILL.md +1 -1
  19. package/plugins/huaweicloud-core/skills/huawei-functiongraph/references/triggers.md +1 -1
  20. package/plugins/huaweicloud-core/skills/huawei-getting-started/SKILL.md +2 -2
  21. package/plugins/huaweicloud-core/skills/huawei-obs/SKILL.md +21 -3
  22. package/plugins/huaweicloud-core/skills/huawei-obs/references/single-file-share.md +40 -0
  23. package/plugins/huaweicloud-core/skills/huawei-rds/SKILL.md +48 -5
  24. package/plugins/huaweicloud-core/skills/huawei-sandbox/SKILL.md +134 -0
  25. package/plugins/huaweicloud-core/skills/huawei-vpc/SKILL.md +5 -2
  26. package/plugins/huaweicloud-core/skills/huaweicloud-cli-and-auth/SKILL.md +7 -6
  27. package/plugins/huaweicloud-core/skills/huaweicloud-core/SKILL.md +3 -1
  28. package/plugins/huaweicloud-core/skills/huaweicloud-troubleshooting/SKILL.md +1 -1
  29. package/plugins/huaweicloud-core/src/auth/agent-registration.mjs +87 -0
  30. package/plugins/huaweicloud-core/src/auth/credentials.mjs +95 -0
  31. package/plugins/huaweicloud-core/src/auth/service.mjs +63 -0
  32. package/plugins/huaweicloud-core/src/mcp-server.mjs +11 -0
  33. package/plugins/huaweicloud-core/src/sandbox/hdkitservice-api.mjs +87 -0
  34. package/plugins/huaweicloud-core/src/sandbox/hwlink-api.mjs +153 -0
  35. package/plugins/huaweicloud-core/src/sandbox/session-manager.mjs +105 -0
  36. package/plugins/huaweicloud-core/src/setup-cli.mjs +733 -74
  37. package/plugins/huaweicloud-core/src/tools.mjs +164 -3
  38. package/plugins/huaweicloud-core/src/ws-exec/hwlink-exec-client.js +427 -0
  39. package/plugins/huaweicloud-core/src/ws-exec/hwlink-fair-queue.js +132 -0
  40. package/plugins/huaweicloud-core/src/ws-exec/hwlink-multiplexer.js +227 -0
  41. package/plugins/huaweicloud-core/src/ws-exec/hwlink-packet.js +202 -0
  42. package/plugins/huaweicloud-core/src/ws-exec/hwlink-terminal-channel.js +158 -0
  43. package/plugins/huaweicloud-core/src/ws-exec/index.js +19 -0
  44. 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
+ [![Discussions](https://img.shields.io/badge/Discussions-Join the discussion-blue)]
3
3
  [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE)
4
- [![CI](https://github.com/huaweicloud-mate/huaweicloud-devkit/actions/workflows/ci.yml/badge.svg)](https://github.com/huaweicloud-mate/huaweicloud-devkit/actions/workflows/ci.yml)
4
+ [![CI](https://github.com/huaweicloud/HuaweiCloud-Devkit/actions/workflows/ci.yml/badge.svg)](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
- 帮助 AI 编码助手安全、准确地使用华为云——技能引导、KooCLI 工具、安全策略一站式集成。
12
+ ## Prerequisites
7
13
 
8
- HuaweiCloud DevKit AI 编码助手提供操作华为云所需的知识、工具和安全护栏,支持 OpenCode、Codex、Claude Code、Cursor、码道(CodeArts Agent)等主流 Agent。
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
- 自动安装 27 个技能、MCP 服务器和安全策略,并更新 OpenCode 配置。安装后**重启会话**使 MCP 工具生效。
24
+ Installs the DevKit into OpenCode automatically. **Restart the session** after installation.
19
25
 
20
26
  ```bash
21
- npx --yes huaweicloud-devkit doctor # 自检:hcloud、MCP、技能、认证
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
- > 需要先安装 Codex CLI。`--target all` 会在 Codex CLI 缺失时跳过 Codex。
39
+ > The Codex CLI must be installed first.
34
40
 
35
- ### Claude Code
36
-
37
- 通过 **设置 → 插件 → 团队市场 → 添加市场 → 从仓库导入**,指向 `huaweicloud-mate/huaweicloud-devkit`。Claude Code 会自动索引插件。
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
- ### CodeArts Agent(码道)
48
+ > **Codex Desktop** (Windows): use `--target codex-desktop` with the same commands.
46
49
 
47
- 码道没有插件市场,通过技能 + MCP 机制适配:
50
+ ### CodeArts Agent
48
51
 
49
52
  ```bash
50
53
  npx --yes huaweicloud-devkit install --target codearts
51
54
  ```
52
55
 
53
- 自动安装 27 个技能到 `~/.codeartsdoer/skills/` 与项目级 `.codeartsdoer/skills/`,MCP 服务器注册到用户级与项目级 `.codeartsdoer/mcp/mcp_settings.json`。若本机已存在 KooCLI(`~/hcloud/hcloud.exe`),会自动将 `HCLOUD_BIN` 注入 MCP 配置。安装后**重启会话**使 MCP 工具生效。
56
+ **Restart the session** after installation.
54
57
 
55
58
  ```bash
56
- npx --yes huaweicloud-devkit install-hcloud # 安装 KooCLI(自动接受隐私协议)
57
- npx --yes huaweicloud-devkit doctor # 自检:hcloud、MCP、技能、沙箱模式
58
- npx --yes huaweicloud-devkit status --target codearts # 查看码道安装状态
59
- npx --yes huaweicloud-devkit uninstall --target codearts # 卸载
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
- > **沙箱模式**:码道默认 `bash_mode: sandbox` 会阻止 KooCLI 写入配置目录(如 `~/.hcloud/root`),导致隐私协议无法持久化、KooCLI 无法运行。`install-hcloud` 会自动检测沙箱模式并给出明确指引——请在**码道外终端**安装使用 KooCLI,或在码道设置中关闭沙箱模式(设置权限 → Bash 模式)后重试。
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
- > **认证**:KooCLI 就绪后,还需在码道外终端执行 `hcloud configure init` 配置 AK/SK 与区域,然后即可在码道中描述你的华为云任务。
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
- ### Cursor
72
+ ```bash
73
+ npx --yes huaweicloud-devkit install --target workbuddy
74
+ ```
67
75
 
68
- 通过 **设置 插件 → 团队市场 → 添加市场 → 从仓库导入**,指向 `huaweicloud-mate/huaweicloud-devkit`。
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
- 然后在**插件**面板中安装 **huaweicloud-core** 插件。
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
- ### 其他 Agent
87
+ ### Other Agents
73
88
 
74
- 对于支持 Model Context Protocol (MCP) 的 Agent,手动配置 MCP 服务器:
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", "<路径>/plugins/huaweicloud-core/src/mcp-server.mjs"],
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
- > **前置条件:** 需要安装 [KooCLI](https://support.huaweicloud.com/qs-hcli/hcli_02_003.html)(`hcloud`)并完成认证。MCP 服务器需要 Node.js >= 20。如果 `hcloud` 不在 `PATH` 中,请设置 `HCLOUD_BIN` 环境变量指向完整路径。
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
- 详见 [`docs/safety-model.md`](docs/safety-model.md)。
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
- ## MCP 工具
122
+ ## Documentation
144
123
 
145
- | 类别 | 工具 | 说明 |
146
- |------|------|------|
147
- | 知识发现 | `huaweicloud_search_docs` | 跨技能文件及文档全文搜索 |
148
- | 知识发现 | `huaweicloud_retrieve_skill` | 按名称加载完整技能内容及参考文件 |
149
- | 知识发现 | `huaweicloud_list_regions` | 列出可用华为云区域 |
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
- - [系统架构设计](docs/01-系统架构设计.md)
166
- - [核心技能设计](docs/02-核心技能设计.md)
167
- - [安全模型](docs/safety-model.md)
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
- 本项目基于 Apache-2.0 许可证发布。详见 [LICENSE](LICENSE)
138
+ This project is licensed under the Apache-2.0 License. See [LICENSE](LICENSE).
@@ -0,0 +1,138 @@
1
+ # HuaweiCloud DevKit
2
+ [![Discussions](https://img.shields.io/badge/Discussions-参与讨论-blue)]
3
+ [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE)
4
+ [![CI](https://github.com/huaweicloud/HuaweiCloud-Devkit/actions/workflows/ci.yml/badge.svg)](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.26-dev.0",
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-mate/huaweicloud-devkit.git"
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
- "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-mate/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": "0.1.23",
24
- "author": {
25
- "name": "HuaweiCloud Mate",
26
- "url": "https://github.com/huaweicloud-mate"
27
- },
28
- "hooks": "./hooks/",
29
- "name": "huaweicloud-core",
30
- "homepage": "https://github.com/huaweicloud-mate/huaweicloud-devkit",
31
- "repository": "https://github.com/huaweicloud-mate/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
- }
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
- "name": "huaweicloud-core",
3
- "version": "0.1.23",
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-mate"
8
- },
9
- "homepage": "https://github.com/huaweicloud-mate/huaweicloud-devkit",
10
- "repository": "https://github.com/huaweicloud-mate/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-mate/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
- }
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
+ }