huaweicloud-devkit 1.0.2-next.9 → 1.0.2

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 (36) hide show
  1. package/.agents/plugins/marketplace.json +1 -1
  2. package/README.md +85 -51
  3. package/README.zh-CN.md +85 -49
  4. package/package.json +11 -5
  5. package/plugins/huaweicloud-core/.claude-plugin/plugin.json +4 -17
  6. package/plugins/huaweicloud-core/.codex-plugin/plugin.json +4 -17
  7. package/plugins/huaweicloud-core/.cursor-plugin/plugin.json +4 -17
  8. package/plugins/huaweicloud-core/.hermes-plugin/plugin.json +30 -0
  9. package/plugins/huaweicloud-core/.mcp.json +1 -2
  10. package/plugins/huaweicloud-core/.workbuddy-plugin/plugin.json +4 -18
  11. package/plugins/huaweicloud-core/hooks/huaweicloud-safety.py +32 -9
  12. package/plugins/huaweicloud-core/openclaw.plugin.json +20 -0
  13. package/plugins/huaweicloud-core/skills/huawei-cloud-find-skills/SKILL.md +1 -1
  14. package/plugins/huaweicloud-core/skills/huawei-sandbox/SKILL.md +67 -20
  15. package/plugins/huaweicloud-core/skills/huaweicloud-capability-discovery/SKILL.md +11 -0
  16. package/plugins/huaweicloud-core/skills/huaweicloud-cli-and-auth/SKILL.md +16 -0
  17. package/plugins/huaweicloud-core/skills/huaweicloud-core/SKILL.md +27 -24
  18. package/plugins/huaweicloud-core/skills/huaweicloud-core/references/select.md +12 -0
  19. package/plugins/huaweicloud-core/src/auth/agent-registration.mjs +103 -2
  20. package/plugins/huaweicloud-core/src/auth/credentials.mjs +65 -0
  21. package/plugins/huaweicloud-core/src/mcp-server.mjs +31 -4
  22. package/plugins/huaweicloud-core/src/proxy/proxy-agent.mjs +6 -1
  23. package/plugins/huaweicloud-core/src/sandbox/hdkitservice-api.mjs +7 -2
  24. package/plugins/huaweicloud-core/src/sandbox/hwlink-api.mjs +14 -4
  25. package/plugins/huaweicloud-core/src/sandbox/sandbox-file-server.py +45 -0
  26. package/plugins/huaweicloud-core/src/sandbox/session-manager.mjs +432 -10
  27. package/plugins/huaweicloud-core/src/setup-cli.mjs +823 -22
  28. package/plugins/huaweicloud-core/src/tools.mjs +239 -27
  29. package/plugins/huaweicloud-core/src/ws-exec/hwlink-exec-client.js +18 -4
  30. package/plugins/huaweicloud-core/src/ws-exec/hwlink-fair-queue.js +9 -0
  31. package/plugins/huaweicloud-core/src/ws-exec/hwlink-multiplexer.js +9 -0
  32. package/plugins/huaweicloud-core/src/ws-exec/hwlink-packet.js +9 -0
  33. package/plugins/huaweicloud-core/src/ws-exec/hwlink-terminal-channel.js +9 -0
  34. package/plugins/huaweicloud-core/src/ws-exec/hwlink-tunnel-channel.mjs +267 -0
  35. package/plugins/huaweicloud-core/src/ws-exec/index.js +3 -0
  36. package/plugins/huaweicloud-core/src/ws-exec/ws-exec-client.js +9 -5
@@ -5,7 +5,7 @@
5
5
  },
6
6
  "plugins": [
7
7
  {
8
- "name": "huaweicloud-core",
8
+ "name": "huaweicloud-devkit",
9
9
  "source": {
10
10
  "source": "local",
11
11
  "path": "./plugins/huaweicloud-core"
package/README.md CHANGED
@@ -8,46 +8,32 @@
8
8
 
9
9
  Help AI coding agents use Huawei Cloud safely and accurately — a single integration that gives agents cloud knowledge, CLI tooling, and safety guardrails.
10
10
 
11
- Supports OpenCode, Codex, CodeArts Agent, WorkBuddy, and DeepSeek Harness (DSH).
11
+ Supports OpenCode, CodeArts Agent, WorkBuddy, DeepSeek Harness (DSH), OfficeAce, and OpenClaw.
12
12
 
13
13
  ## Prerequisites
14
14
 
15
- - Node.js >= 20
15
+ - Node.js >= 22
16
16
 
17
17
  ## Quick Start
18
18
 
19
- ### OpenCode
20
-
21
- ```bash
22
- npx --yes huaweicloud-devkit install
23
- ```
24
-
25
- Installs the DevKit into OpenCode automatically. **Restart the session** after installation.
19
+ > If `--target` is omitted, the installer auto-detects agents on your machine. When multiple agents are detected, **all of them** will be installed. Specify `--target` to control which agent receives the install.
26
20
 
27
- ```bash
28
- npx --yes huaweicloud-devkit doctor # self-check
29
- npx --yes huaweicloud-devkit status # show status
30
- npx --yes huaweicloud-devkit update # update
31
- npx --yes huaweicloud-devkit uninstall # uninstall
32
- ```
33
-
34
- ### Codex
21
+ ### OpenCode
35
22
 
36
23
  ```bash
37
- npx --yes huaweicloud-devkit install --target codex
24
+ npx --yes huaweicloud-devkit install --target opencode
38
25
  ```
39
26
 
40
- > The Codex CLI must be installed first.
27
+ **Restart the session** after installation.
41
28
 
42
29
  ```bash
43
- npx --yes huaweicloud-devkit doctor # self-check
44
- npx --yes huaweicloud-devkit status --target codex
45
- npx --yes huaweicloud-devkit update --target codex # update
46
- npx --yes huaweicloud-devkit uninstall --target codex
30
+ npx --yes huaweicloud-devkit doctor --target opencode
31
+ npx --yes huaweicloud-devkit status --target opencode
32
+ npx --yes huaweicloud-devkit update --target opencode
33
+ npx --yes huaweicloud-devkit uninstall --target opencode
34
+ rm -rf ~/.npm/_npx/ # Linux/macOS only; Windows path TBD
47
35
  ```
48
36
 
49
- > **Codex Desktop** (Windows): use `--target codex-desktop` with the same commands.
50
-
51
37
  ### CodeArts Agent
52
38
 
53
39
  ```bash
@@ -57,16 +43,13 @@ npx --yes huaweicloud-devkit install --target codearts
57
43
  **Restart the session** after installation.
58
44
 
59
45
  ```bash
60
- npx --yes huaweicloud-devkit install-hcloud # install KooCLI
61
- npx --yes huaweicloud-devkit doctor # self-check
46
+ npx --yes huaweicloud-devkit doctor --target codearts
62
47
  npx --yes huaweicloud-devkit status --target codearts
63
48
  npx --yes huaweicloud-devkit update --target codearts
64
49
  npx --yes huaweicloud-devkit uninstall --target codearts
65
50
  ```
66
51
 
67
- > **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 → PermissionsBash mode).
68
- >
69
- > **Authentication**: Run `npx huaweicloud-devkit auth init` to configure unified AK/SK credentials for KooCLI, OBS, and sandbox APIs.
52
+ > **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 → ChatsAgents Terminal Command Running Mode → Auto Running).
70
53
 
71
54
  ### WorkBuddy
72
55
 
@@ -77,60 +60,110 @@ npx --yes huaweicloud-devkit install --target workbuddy
77
60
  **Restart the session** after installation.
78
61
 
79
62
  ```bash
80
- npx --yes huaweicloud-devkit doctor
63
+ npx --yes huaweicloud-devkit doctor --target workbuddy
81
64
  npx --yes huaweicloud-devkit status --target workbuddy
82
- npx --yes huaweicloud-devkit update --target workbuddy # update
65
+ npx --yes huaweicloud-devkit update --target workbuddy
83
66
  npx --yes huaweicloud-devkit uninstall --target workbuddy
84
67
  ```
85
68
 
86
- > **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.
87
-
88
69
  ### DeepSeek Harness (DSH)
89
70
 
90
71
  ```bash
91
72
  npx --yes huaweicloud-devkit install --target dsh
92
73
  ```
93
74
 
94
- The installer copies Skills to `$DSH_HOME/skills`, installs the MCP server and
95
- safety policy under `$DSH_HOME/huaweicloud-plugins`, and maintains
96
- `$DSH_HOME/profiles/web/cordis.patch.yml`. **Restart the DSH session** after
97
- installation.
75
+ **Restart the DSH session** after installation.
98
76
 
99
77
  ```bash
100
- npx --yes huaweicloud-devkit doctor
78
+ npx --yes huaweicloud-devkit doctor --target dsh
101
79
  npx --yes huaweicloud-devkit status --target dsh
102
80
  npx --yes huaweicloud-devkit update --target dsh
103
81
  npx --yes huaweicloud-devkit uninstall --target dsh
104
82
  ```
105
83
 
106
- > DSH V1 reuses the existing MCP server through
107
- > `@deepseek-ai/dsh-mcp-client`. If the installer reports that the DSH MCP
108
- > client is not detected, run:
109
- > `npx @deepseek-ai/dsh plugin --profile web add @deepseek-ai/dsh-mcp-client`.
84
+ > DSH V1 reuses the existing MCP server through `@deepseek-ai/dsh-mcp-client`. If the installer reports that the client is not detected, run: `npx @deepseek-ai/dsh plugin --profile web add @deepseek-ai/dsh-mcp-client`.
85
+
86
+ ### OfficeAce
87
+
88
+ ```bash
89
+ npx --yes huaweicloud-devkit install --target officeace
90
+ ```
91
+
92
+ **Restart OfficeAce** after installation.
93
+
94
+ ```bash
95
+ npx --yes huaweicloud-devkit doctor --target officeace
96
+ npx --yes huaweicloud-devkit status --target officeace
97
+ npx --yes huaweicloud-devkit update --target officeace
98
+ npx --yes huaweicloud-devkit uninstall --target officeace
99
+ ```
100
+
101
+ ### OpenClaw
102
+
103
+ ```bash
104
+ # Recommended (ClawHub)
105
+ openclaw plugins install clawhub:huaweicloud-devkit
106
+ openclaw plugins uninstall huaweicloud-devkit
107
+ openclaw plugins update huaweicloud-devkit
108
+ ```
109
+
110
+ **Restart OpenClaw** after installation. If prompted for security risk acknowledgment, add `--acknowledge-clawhub-risk`.
111
+
112
+ ```bash
113
+ # Or via npx
114
+ npx --yes huaweicloud-devkit install --target openclaw
115
+ npx --yes huaweicloud-devkit status --target openclaw
116
+ npx --yes huaweicloud-devkit update --target openclaw
117
+ npx --yes huaweicloud-devkit uninstall --target openclaw
118
+ rm -rf ~/.npm/_npx/ # Linux/macOS only; Windows path TBD
119
+ ```
110
120
 
111
121
  ### Other Agents
112
122
 
113
- For agents that support the Model Context Protocol (MCP):
123
+ Any agent that supports MCP can use the standard config:
114
124
 
115
125
  ```json
116
126
  {
117
- "mcp": {
127
+ "mcpServers": {
118
128
  "huaweicloud-devkit": {
119
- "type": "local",
120
- "command": ["node", "<path>/plugins/huaweicloud-core/src/mcp-server.mjs"],
121
- "enabled": true
129
+ "command": "npx",
130
+ "args": ["-y", "-p", "huaweicloud-devkit", "huaweicloud-devkit-mcp"]
122
131
  }
123
132
  }
124
133
  }
125
134
  ```
126
135
 
127
- Then install:
136
+ No installation required — `npx` handles everything.
137
+
138
+ > Set `HW_ACCESS_KEY`/`HW_SECRET_KEY` in the MCP config `env` field for project-level credentials.
139
+
140
+ ### Install KooCLI
141
+
142
+ ```bash
143
+ npx --yes huaweicloud-devkit install-hcloud
144
+ ```
145
+
146
+ ### Configure Credentials
147
+
148
+ ```bash
149
+ npx --yes huaweicloud-devkit auth init
150
+ ```
151
+
152
+ Synchronizes AK/SK to KooCLI, OBS, and sandbox APIs in one step.
153
+
154
+ ### Install All Agents
155
+
156
+ ```bash
157
+ npx --yes huaweicloud-devkit install --target all
158
+ ```
159
+
160
+ ### Update All Agents
128
161
 
129
162
  ```bash
130
- npx --yes huaweicloud-devkit install
163
+ npx --yes huaweicloud-devkit update --target all
131
164
  ```
132
165
 
133
- > **Prerequisite:** Node.js >= 20. Run `npx huaweicloud-devkit auth init` for unified credentials.
166
+ `update` is incremental it refreshes installed files without touching your config.
134
167
 
135
168
  ## What It Does
136
169
 
@@ -138,6 +171,7 @@ npx --yes huaweicloud-devkit install
138
171
  - **Safety-first execution** — all write operations require explicit user approval; credentials and secrets are automatically redacted from output
139
172
  - **Pre-execution risk checks** — public exposure, credential leaks, and destructive operations are caught before they run
140
173
  - **Regional awareness** — auto-discovers available regions and checks service availability before creating resources
174
+ - **Sandbox (DevStation)** — temporary cloud runtime for web app deployment with instant public URL preview
141
175
 
142
176
  ## Supported Services
143
177
 
package/README.zh-CN.md CHANGED
@@ -8,46 +8,32 @@
8
8
 
9
9
  帮助 AI 编码助手安全、准确地使用华为云——一站式集成云知识、CLI 工具和安全护栏。
10
10
 
11
- 支持 OpenCode、Codex、码道(CodeArts Agent)、WorkBuddy、DeepSeek Harness(DSH)。
11
+ 支持 OpenCode、码道(CodeArts Agent)、WorkBuddy、DeepSeek Harness(DSH)、OfficeAce、OpenClaw。
12
12
 
13
13
  ## 前置条件
14
14
 
15
- - Node.js >= 20
15
+ - Node.js >= 22
16
16
 
17
17
  ## 快速开始
18
18
 
19
- ### OpenCode
20
-
21
- ```bash
22
- npx --yes huaweicloud-devkit install
23
- ```
24
-
25
- 自动安装 DevKit。安装后**重启会话**。
19
+ > 省略 `--target` 时,安装器会自动检测机器上的 agent,检测到多个时**全部安装**。建议始终指定 `--target` 以明确安装目标。
26
20
 
27
- ```bash
28
- npx --yes huaweicloud-devkit doctor # 自检
29
- npx --yes huaweicloud-devkit status # 查看状态
30
- npx --yes huaweicloud-devkit update # 更新
31
- npx --yes huaweicloud-devkit uninstall # 卸载
32
- ```
33
-
34
- ### Codex
21
+ ### OpenCode
35
22
 
36
23
  ```bash
37
- npx --yes huaweicloud-devkit install --target codex
24
+ npx --yes huaweicloud-devkit install --target opencode
38
25
  ```
39
26
 
40
- > 需要先安装 Codex CLI。
27
+ 安装后**重启会话**。
41
28
 
42
29
  ```bash
43
- npx --yes huaweicloud-devkit doctor # 自检
44
- npx --yes huaweicloud-devkit status --target codex
45
- npx --yes huaweicloud-devkit update --target codex # 更新
46
- npx --yes huaweicloud-devkit uninstall --target codex
30
+ npx --yes huaweicloud-devkit doctor --target opencode
31
+ npx --yes huaweicloud-devkit status --target opencode
32
+ npx --yes huaweicloud-devkit update --target opencode
33
+ npx --yes huaweicloud-devkit uninstall --target opencode
34
+ rm -rf ~/.npm/_npx/ # 仅 Linux/macOS;Windows 路径待确认
47
35
  ```
48
36
 
49
- > **Codex Desktop**(Windows):将 `--target codex` 换成 `--target codex-desktop`,命令相同。
50
-
51
37
  ### CodeArts Agent(码道)
52
38
 
53
39
  ```bash
@@ -57,16 +43,13 @@ npx --yes huaweicloud-devkit install --target codearts
57
43
  安装后**重启会话**。
58
44
 
59
45
  ```bash
60
- npx --yes huaweicloud-devkit install-hcloud # 安装 KooCLI
61
- npx --yes huaweicloud-devkit doctor # 自检
46
+ npx --yes huaweicloud-devkit doctor --target codearts
62
47
  npx --yes huaweicloud-devkit status --target codearts
63
48
  npx --yes huaweicloud-devkit update --target codearts
64
49
  npx --yes huaweicloud-devkit uninstall --target codearts
65
50
  ```
66
51
 
67
- > **沙箱模式**:码道默认沙箱模式会阻止 KooCLI 运行。`install-hcloud` 自动检测并给出指引——请在码道外终端安装使用 KooCLI,或在码道设置中关闭沙箱模式(设置 → 权限Bash 模式)。
68
- >
69
- > **认证**:执行 `npx huaweicloud-devkit auth init`,统一配置 KooCLI、OBS 和沙箱接口所需的 AK/SK。
52
+ > **沙箱模式**:码道默认沙箱模式会阻止 KooCLI 运行。`install-hcloud` 自动检测并给出指引——请在码道外终端安装使用 KooCLI,或在码道设置中关闭沙箱模式(设置 → 对话流智能体 终端命令运行模式 → 自动运行)。
70
53
 
71
54
  ### WorkBuddy
72
55
 
@@ -77,58 +60,110 @@ npx --yes huaweicloud-devkit install --target workbuddy
77
60
  安装后**重启会话**。
78
61
 
79
62
  ```bash
80
- npx --yes huaweicloud-devkit doctor
63
+ npx --yes huaweicloud-devkit doctor --target workbuddy
81
64
  npx --yes huaweicloud-devkit status --target workbuddy
82
- npx --yes huaweicloud-devkit update --target workbuddy # 更新
65
+ npx --yes huaweicloud-devkit update --target workbuddy
83
66
  npx --yes huaweicloud-devkit uninstall --target workbuddy
84
67
  ```
85
68
 
86
- > **更新机制**:`update` 按 agent 增量更新,只刷新必要文件、不动你的配置文件。`update --target all` 可一次更新所有已安装的 agent。
87
-
88
69
  ### DeepSeek Harness(DSH)
89
70
 
90
71
  ```bash
91
72
  npx --yes huaweicloud-devkit install --target dsh
92
73
  ```
93
74
 
94
- 安装器会把 Skills 写入 `$DSH_HOME/skills`,把 MCP Server 和安全策略写入
95
- `$DSH_HOME/huaweicloud-plugins`,并自动维护
96
- `$DSH_HOME/profiles/web/cordis.patch.yml`。安装后**重启 DSH 会话**。
75
+ 安装后**重启 DSH 会话**。
97
76
 
98
77
  ```bash
99
- npx --yes huaweicloud-devkit doctor
78
+ npx --yes huaweicloud-devkit doctor --target dsh
100
79
  npx --yes huaweicloud-devkit status --target dsh
101
80
  npx --yes huaweicloud-devkit update --target dsh
102
81
  npx --yes huaweicloud-devkit uninstall --target dsh
103
82
  ```
104
83
 
105
- > DSH V1 通过 `@deepseek-ai/dsh-mcp-client` 复用现有 MCP Server
106
- > 如果安装器提示 DSH MCP 客户端未检测到,请按提示执行
107
- > `npx @deepseek-ai/dsh plugin --profile web add @deepseek-ai/dsh-mcp-client`。
84
+ > DSH V1 通过 `@deepseek-ai/dsh-mcp-client` 复用现有 MCP Server。如果安装器提示客户端未检测到,请执行:`npx @deepseek-ai/dsh plugin --profile web add @deepseek-ai/dsh-mcp-client`。
85
+
86
+ ### OfficeAce
87
+
88
+ ```bash
89
+ npx --yes huaweicloud-devkit install --target officeace
90
+ ```
91
+
92
+ 安装后**重启 OfficeAce**。
93
+
94
+ ```bash
95
+ npx --yes huaweicloud-devkit doctor --target officeace
96
+ npx --yes huaweicloud-devkit status --target officeace
97
+ npx --yes huaweicloud-devkit update --target officeace
98
+ npx --yes huaweicloud-devkit uninstall --target officeace
99
+ ```
100
+
101
+ ### OpenClaw
102
+
103
+ ```bash
104
+ # 推荐方式 (ClawHub)
105
+ openclaw plugins install clawhub:huaweicloud-devkit
106
+ openclaw plugins uninstall huaweicloud-devkit
107
+ openclaw plugins update huaweicloud-devkit
108
+ ```
109
+
110
+ 安装后**重启 OpenClaw**。如提示安全风险确认,加 `--acknowledge-clawhub-risk`。
111
+
112
+ ```bash
113
+ # 或通过 npx
114
+ npx --yes huaweicloud-devkit install --target openclaw
115
+ npx --yes huaweicloud-devkit status --target openclaw
116
+ npx --yes huaweicloud-devkit update --target openclaw
117
+ npx --yes huaweicloud-devkit uninstall --target openclaw
118
+ rm -rf ~/.npm/_npx/ # 仅 Linux/macOS;Windows 路径待确认
119
+ ```
108
120
 
109
121
  ### 其他 Agent
110
122
 
111
- 支持 MCP 协议的 Agent,手动配置:
123
+ 任何支持 MCP 协议的 Agent,直接使用标准 MCP 配置:
112
124
 
113
125
  ```json
114
126
  {
115
- "mcp": {
127
+ "mcpServers": {
116
128
  "huaweicloud-devkit": {
117
- "type": "local",
118
- "command": ["node", "<路径>/plugins/huaweicloud-core/src/mcp-server.mjs"],
119
- "enabled": true
129
+ "command": "npx",
130
+ "args": ["-y", "-p", "huaweicloud-devkit", "huaweicloud-devkit-mcp"]
120
131
  }
121
132
  }
122
133
  }
123
134
  ```
124
135
 
125
- 然后安装:
136
+ 无需预安装 — `npx` 自动处理一切。
137
+
138
+ > 项目级 AK/SK 可通过 MCP 配置的 `env` 字段设置 `HW_ACCESS_KEY`/`HW_SECRET_KEY`。
139
+
140
+ ### 安装 KooCLI
141
+
142
+ ```bash
143
+ npx --yes huaweicloud-devkit install-hcloud
144
+ ```
145
+
146
+ ### 配置凭据
147
+
148
+ ```bash
149
+ npx --yes huaweicloud-devkit auth init
150
+ ```
151
+
152
+ 一步同步 AK/SK 到 KooCLI、OBS 和沙箱接口。
153
+
154
+ ### 安装所有 Agent
155
+
156
+ ```bash
157
+ npx --yes huaweicloud-devkit install --target all
158
+ ```
159
+
160
+ ### 更新所有 Agent
126
161
 
127
162
  ```bash
128
- npx --yes huaweicloud-devkit install
163
+ npx --yes huaweicloud-devkit update --target all
129
164
  ```
130
165
 
131
- > **前置条件:** Node.js >= 20。执行 `npx huaweicloud-devkit auth init` 完成统一认证。
166
+ `update` 是增量更新——只刷新已安装的文件,不动配置文件。
132
167
 
133
168
  ## 功能特性
134
169
 
@@ -136,6 +171,7 @@ npx --yes huaweicloud-devkit install
136
171
  - **安全优先执行** — 所有写操作需用户明确批准;凭证和密钥自动脱敏
137
172
  - **执行前风险检查** — 公网暴露、凭证泄露、破坏性操作在执行前即被拦截
138
173
  - **区域感知** — 自动发现可用区域,创建资源前检查服务可用性
174
+ - **沙箱(DevStation)** — 临时云端运行环境,部署 Web 应用并即刻获得公网预览地址
139
175
 
140
176
  ## 支持的服务
141
177
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "huaweicloud-devkit",
3
- "version": "1.0.2-next.9",
3
+ "version": "1.0.2",
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": [
@@ -10,11 +10,12 @@
10
10
  "integrations/opencode"
11
11
  ],
12
12
  "bin": {
13
- "huaweicloud-devkit": "./bin/setup.cjs"
13
+ "huaweicloud-devkit": "./bin/setup.cjs",
14
+ "huaweicloud-devkit-mcp": "./plugins/huaweicloud-core/src/mcp-server.mjs"
14
15
  },
15
16
  "repository": {
16
17
  "type": "git",
17
- "url": "https://github.com/huaweicloud/HuaweiCloud-Devkit.git"
18
+ "url": "https://github.com/huaweicloud/huaweicloud-devkit.git"
18
19
  },
19
20
  "scripts": {
20
21
  "test": "node --test",
@@ -27,7 +28,10 @@
27
28
  "pack:verify": "node ./scripts/pack-verify.mjs",
28
29
  "postinstall": "node -e \"console.log('\\nHuaweiCloud DevKit installed. Run: npx huaweicloud-devkit install\\n')\""
29
30
  },
30
- "dependencies": {},
31
+ "dependencies": {
32
+ "better-sqlite3": "^13.0.3",
33
+ "undici": "^8.10.0"
34
+ },
31
35
  "devDependencies": {
32
36
  "@eslint/js": "^10.0.1",
33
37
  "eslint": "^10.8.1",
@@ -43,6 +47,8 @@
43
47
  "agent",
44
48
  "codex",
45
49
  "opencode",
50
+ "officeace",
51
+ "office-claw",
46
52
  "workbuddy",
47
53
  "dsh",
48
54
  "deepseek-harness",
@@ -52,6 +58,6 @@
52
58
  ],
53
59
  "license": "Apache-2.0",
54
60
  "engines": {
55
- "node": ">=20"
61
+ "node": ">=22"
56
62
  }
57
63
  }
@@ -5,10 +5,7 @@
5
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
6
  "developerName": "HuaweiCloud Mate",
7
7
  "category": "Cloud",
8
- "capabilities": [
9
- "Read",
10
- "Interactive"
11
- ],
8
+ "capabilities": ["Read", "Interactive"],
12
9
  "websiteURL": "https://github.com/huaweicloud/HuaweiCloud-Devkit",
13
10
  "brandColor": "#C7000B",
14
11
  "defaultPrompt": [
@@ -20,25 +17,15 @@
20
17
  "mcpServers": "./.mcp.json",
21
18
  "description": "Guide coding agents to use Huawei Cloud Skills, KooCLI, APIs, SDKs, and future MCP capabilities with safer execution and less context.",
22
19
  "skills": "./skills/",
23
- "version": "1.0.2-next.9",
20
+ "version": "1.0.2",
24
21
  "author": {
25
22
  "name": "HuaweiCloud Mate",
26
23
  "url": "https://github.com/huaweicloud"
27
24
  },
28
25
  "hooks": "./hooks/",
29
- "name": "huaweicloud-core",
26
+ "name": "huaweicloud-devkit",
30
27
  "homepage": "https://github.com/huaweicloud/HuaweiCloud-Devkit",
31
28
  "repository": "https://github.com/huaweicloud/HuaweiCloud-Devkit",
32
29
  "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
- ]
30
+ "keywords": ["huaweicloud", "huawei-cloud", "koocli", "hcloud", "agent", "mcp", "api", "sdk", "skills"]
44
31
  }
@@ -1,6 +1,6 @@
1
1
  {
2
- "name": "huaweicloud-core",
3
- "version": "1.0.2-next.9",
2
+ "name": "huaweicloud-devkit",
3
+ "version": "1.0.2",
4
4
  "description": "Guide coding agents to use Huawei Cloud Skills, KooCLI, APIs, SDKs, and future MCP capabilities with safer execution and less context.",
5
5
  "author": {
6
6
  "name": "HuaweiCloud Mate",
@@ -9,17 +9,7 @@
9
9
  "homepage": "https://github.com/huaweicloud/HuaweiCloud-Devkit",
10
10
  "repository": "https://github.com/huaweicloud/HuaweiCloud-Devkit",
11
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
- ],
12
+ "keywords": ["huaweicloud", "huawei-cloud", "koocli", "hcloud", "agent", "mcp", "api", "sdk", "skills"],
23
13
  "skills": "./skills/",
24
14
  "mcpServers": "./.mcp.json",
25
15
  "interface": {
@@ -28,10 +18,7 @@
28
18
  "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
19
  "developerName": "HuaweiCloud Mate",
30
20
  "category": "Cloud",
31
- "capabilities": [
32
- "Read",
33
- "Interactive"
34
- ],
21
+ "capabilities": ["Read", "Interactive"],
35
22
  "websiteURL": "https://github.com/huaweicloud/HuaweiCloud-Devkit",
36
23
  "brandColor": "#C7000B",
37
24
  "defaultPrompt": [
@@ -5,10 +5,7 @@
5
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
6
  "developerName": "HuaweiCloud Mate",
7
7
  "category": "Cloud",
8
- "capabilities": [
9
- "Read",
10
- "Interactive"
11
- ],
8
+ "capabilities": ["Read", "Interactive"],
12
9
  "websiteURL": "https://github.com/huaweicloud/HuaweiCloud-Devkit",
13
10
  "brandColor": "#C7000B",
14
11
  "defaultPrompt": [
@@ -20,25 +17,15 @@
20
17
  "mcpServers": "./.mcp.json",
21
18
  "description": "Guide coding agents to use Huawei Cloud Skills, KooCLI, APIs, SDKs, and future MCP capabilities with safer execution and less context.",
22
19
  "skills": "./skills/",
23
- "version": "1.0.2-next.9",
20
+ "version": "1.0.2",
24
21
  "author": {
25
22
  "name": "HuaweiCloud Mate",
26
23
  "url": "https://github.com/huaweicloud"
27
24
  },
28
25
  "hooks": "./hooks/",
29
- "name": "huaweicloud-core",
26
+ "name": "huaweicloud-devkit",
30
27
  "homepage": "https://github.com/huaweicloud/HuaweiCloud-Devkit",
31
28
  "repository": "https://github.com/huaweicloud/HuaweiCloud-Devkit",
32
29
  "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
- ]
30
+ "keywords": ["huaweicloud", "huawei-cloud", "koocli", "hcloud", "agent", "mcp", "api", "sdk", "skills"]
44
31
  }
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "huaweicloud-devkit",
3
+ "version": "1.0.2",
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": ["huaweicloud", "huawei-cloud", "koocli", "hcloud", "agent", "mcp", "api", "sdk", "skills"],
13
+ "skills": "./skills/",
14
+ "mcpServers": "./.mcp.json",
15
+ "interface": {
16
+ "displayName": "HuaweiCloud Devkit",
17
+ "shortDescription": "HuaweiCloud Devkit - Huawei Cloud guidance, CLI/API/SDK routing, MCP tools, and safety for coding agents.",
18
+ "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.",
19
+ "developerName": "HuaweiCloud Mate",
20
+ "category": "Cloud",
21
+ "capabilities": ["Read", "Interactive"],
22
+ "websiteURL": "https://github.com/huaweicloud/HuaweiCloud-Devkit",
23
+ "brandColor": "#C7000B",
24
+ "defaultPrompt": [
25
+ "Help me choose the right Huawei Cloud capability.",
26
+ "Check my Huawei Cloud CLI setup safely.",
27
+ "Plan this Huawei Cloud API or SDK task."
28
+ ]
29
+ }
30
+ }
@@ -5,8 +5,7 @@
5
5
  "args": ["./src/mcp-server.mjs"],
6
6
  "cwd": ".",
7
7
  "env": {
8
- "HUAWEICLOUD_AGENT_TOOLKIT_MODE": "local",
9
- "HDKITSERVICE_ENDPOINT": ""
8
+ "HUAWEICLOUD_AGENT_TOOLKIT_MODE": "local"
10
9
  }
11
10
  }
12
11
  }