huaweicloud-devkit 2.0.0-next.6 → 2.0.1-next.0

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/README.md +1 -1
  2. package/package.json +1 -1
  3. package/plugins/huaweicloud-core/.claude-plugin/plugin.json +1 -1
  4. package/plugins/huaweicloud-core/.codex-plugin/plugin.json +1 -1
  5. package/plugins/huaweicloud-core/.cursor-plugin/plugin.json +1 -1
  6. package/plugins/huaweicloud-core/.hermes-plugin/plugin.json +1 -1
  7. package/plugins/huaweicloud-core/.workbuddy-plugin/plugin.json +1 -1
  8. package/plugins/huaweicloud-core/dist/agents/codex-config.js +5 -3
  9. package/plugins/huaweicloud-core/dist/agents/opencode-config.js +4 -2
  10. package/plugins/huaweicloud-core/dist/agents/opencode.js +11 -4
  11. package/plugins/huaweicloud-core/dist/hcloud-plan.js +3 -3
  12. package/plugins/huaweicloud-core/dist/lib/approval-mode.js +10 -11
  13. package/plugins/huaweicloud-core/dist/mcp-server.js +14 -13
  14. package/plugins/huaweicloud-core/dist/mcp-server.js.map +2 -2
  15. package/plugins/huaweicloud-core/dist/packs/auth/tools.js +2 -2
  16. package/plugins/huaweicloud-core/dist/packs/huaweicloud-cli/tools.js +2 -2
  17. package/plugins/huaweicloud-core/dist/packs/obs/tools.js +2 -2
  18. package/plugins/huaweicloud-core/dist/packs/secrets/tools.js +1 -1
  19. package/plugins/huaweicloud-core/dist/packs/update/tools.js +5 -4
  20. package/plugins/huaweicloud-core/dist/tool-definitions.js +1 -1
  21. package/plugins/huaweicloud-core/openclaw.plugin.json +1 -1
  22. package/plugins/huaweicloud-core/skills/huaweicloud-cli-and-auth/SKILL.md +3 -3
  23. package/plugins/huaweicloud-core/skills/huaweicloud-safety/SKILL.md +6 -6
  24. package/plugins/huaweicloud-core/skills/huaweicloud-safety/references/approvals.md +5 -5
  25. package/plugins/huaweicloud-core/src/agents/codex-config.ts +5 -3
  26. package/plugins/huaweicloud-core/src/agents/opencode-config.ts +6 -3
  27. package/plugins/huaweicloud-core/src/agents/opencode.ts +15 -4
  28. package/plugins/huaweicloud-core/src/hcloud-plan.ts +3 -3
  29. package/plugins/huaweicloud-core/src/lib/approval-mode.ts +10 -11
  30. package/plugins/huaweicloud-core/src/mcp-server.ts +6 -2
  31. package/plugins/huaweicloud-core/src/packs/auth/tools.ts +2 -2
  32. package/plugins/huaweicloud-core/src/packs/huaweicloud-cli/tools.ts +2 -2
  33. package/plugins/huaweicloud-core/src/packs/obs/tools.ts +2 -2
  34. package/plugins/huaweicloud-core/src/packs/secrets/tools.ts +1 -1
  35. package/plugins/huaweicloud-core/src/packs/update/tools.ts +5 -4
  36. package/plugins/huaweicloud-core/src/tool-definitions.ts +1 -1
package/README.md CHANGED
@@ -404,7 +404,7 @@ Debug logs are written to the plugin's `telemetry/telemetry-debug.log` file.
404
404
  - **Sandbox (DevStation)** — temporary cloud runtime for web app deployment with instant public URL preview
405
405
  - **Capability packs (56 MCP tools)** — the devkit ships ten packs (core 12 tools; huaweicloud-cli carries the 20 service skills plus the 7 KooCLI execution tools; sandbox, auth, obs, voucher, update, discovery, secrets, huaweicloud-open-mcp for the rest). The huaweicloud-open-mcp pack proxies Huawei Cloud's full OpenAPI catalog through the local huaweicloud-open-mcp gateway with one generic call tool (`huaweicloud_gateway_call`: search_apis → list_apis → get_api discovery, execute_api with gateway-engine-gated consent; install the gateway with pip or uv, or just have `uvx` on PATH — no persistent install needed). Discover packs with `huaweicloud_list_packs` → `huaweicloud_pack_info`, browse the effective skill catalog with `huaweicloud_list_skills` (every enabled pack's skills with name, description, version, and reference filenames in one call, plus `skillRoot` — the tree's absolute location; which skills are ENABLED is pack-gated and can change at runtime, so a `huawei-*` service skill absent from the catalog belongs to a trimmed pack — the six `huaweicloud-*` meta-skills never appear in it and are always available), read the skill files directly under `skillRoot` on a same-machine install (the stdio server instructions state the location at initialize, so no catalog call is needed just to start reading; the taught policy is action-first — attempt the direct read, the attempt itself is the reachability check), and fall back to `huaweicloud_retrieve_skill` only when the attempted read fails or is denied — the taught reaction is falling back (the loader needs no file access), never repeatedly requesting. (the gated, telemetry-bearing, portable fallback, whose stdio payload also carries `skillRoot`; the six core meta-skills are additionally installed as native skill copies on directory-loading agents for system-prompt visibility). Trim the surface with `DEVKIT_PACKS` (comma-separated pack ids, e.g. `DEVKIT_PACKS=core,sandbox`); unset means all packs, unknown ids fail fast at startup, and core (pack meta, safety and discovery surface) is always included — trimming huaweicloud-cli removes the CLI execution face and its approval tools together. In a live stdio agent session, `huaweicloud_packs_configure` enables or disables packs on the spot (session-scoped; the refreshed tool list is pushed to the agent, and restarting the session restores the operator posture; the stateless remote surface does not carry it). Manage the surface persistently after install with `npx huaweicloud-devkit packs status | enable <ids> | disable <ids> | all [--target <agent>]`: the command rewrites `DEVKIT_PACKS` inside every installed agent's MCP config (the install-time `--packs` flag never overwrites an existing value), and the change takes effect on the agent's next session restart.
406
406
 
407
- Harness permission notes (skill-tree reads outside the workspace): the taught reaction above is universal — when a direct read fails or is denied, fall back to `huaweicloud_retrieve_skill`, never repeatedly request. The OpenCode installer writes a persistent permission seam (external_directory allow + edit deny over the tree globs, plus an edit-only deny over the plugin payload root so the edit tools cannot rewrite the deployed classifier the in-process gate imports); on other harnesses the operator can pre-allow the tree in the harness's own config if prompts bother them. Honest semantics for the seam: the allow covers every path-taking tool including bash (an allowed external directory inherits workspace defaults), so shell-mediated writes to the tree stop asking too — the edit deny governs only the edit tools; the tree is regenerated on every install/update, and the devkit's PreToolUse hook still denies hcloud writes. On opencode at or above 1.19.0 the installer additionally writes the ASK approval posture as a pair — one exact `allow` entry per roster tool on the `huaweicloud-devkit_<tool>` action (a top-level `permissions` array entry on 2.0+, a `permission`-object key on 1.19–1.x; the two generations name the rule identically) plus `DEVKIT_APPROVAL_MODE=ask` in the mcp entry's environment. Ask mode means the server-run gate: the confirmation is raised inside the tool call, and the client `allow` rule only yields the client's own redundant popup to it. On opencode 2.x the gate raises an elicitation form, so the form is the single confirmation; on 1.19–1.x the client cannot render forms, so the yield hands the confirmation to the chat round-trip — the envelope answered in chat and retried with `approvedByUser: true`, which the consent ledger records as posture trust (the user's word as the agent reports it, no mechanical proof a human answered). No terminal approve trip, no token UUID; below the floor neither half is written, and an install or update still removes the legacy ask rules. The allow rules are written only when the server half is present or established this run; a user-set `DEVKIT_APPROVAL_MODE` value wins, no client rules are kept, and rules a past install wrote are removed value-exact so the user's mechanical posture stays clean. A client `allow` rule can no longer fail anything open, while a `deny` rule still blocks the call in the client — which is why `npx huaweicloud-devkit doctor` fails one, fails a leftover devkit-written ask rule (the migration missed it), and warns when allow rules are present without the server env or the client half is unverifiable. Ownership follows the skills-tree seam's doctrine — add-only-if-absent per rule and value-exact removal — including its accepted edge: a user-authored rule of the identical shape that predates the install is removed together with the devkit's own. Residual from pre-yield installs: a saved "Always allow" row in OpenCode's permission store is a stale grant — the gate never consults it, and the yield rules mean the popup no longer appears to recreate it. `npx huaweicloud-devkit doctor` reports it as a `[WARN]` naming the row and the store; clean it up with `opencode api GET /api/permission/saved` (list) and `opencode api DELETE /api/permission/saved/<id>` (remove). See the huaweicloud-safety skill's approvals reference.
407
+ Harness permission notes (skill-tree reads outside the workspace): the taught reaction above is universal — when a direct read fails or is denied, fall back to `huaweicloud_retrieve_skill`, never repeatedly request. The OpenCode installer writes a persistent permission seam (external_directory allow + edit deny over the tree globs, plus an edit-only deny over the plugin payload root so the edit tools cannot rewrite the deployed classifier the in-process gate imports); on other harnesses the operator can pre-allow the tree in the harness's own config if prompts bother them. Honest semantics for the seam: the allow covers every path-taking tool including bash (an allowed external directory inherits workspace defaults), so shell-mediated writes to the tree stop asking too — the edit deny governs only the edit tools; the tree is regenerated on every install/update, and the devkit's PreToolUse hook still denies hcloud writes. On opencode at or above 1.19.0 the installer additionally writes the ASK approval posture as a pair — one exact `allow` entry per roster tool on the `huaweicloud-devkit_<tool>` action (a top-level `permissions` array entry on 2.0+, a `permission`-object key on 1.19–1.x; the two generations name the rule identically) plus `DEVKIT_APPROVAL_MODE=ask` in the mcp entry's environment. Ask mode is the devkit-wide default (an env-less install runs it too); the explicit env half pins the posture and anchors doctor's drift check, and the client `allow` rule only yields the client's own redundant popup to the server-run gate. On opencode 2.x the gate raises an elicitation form, so the form is the single confirmation; on 1.19–1.x the client cannot render forms, so the yield hands the confirmation to the chat round-trip — the envelope answered in chat and retried with `approvedByUser: true`, which the consent ledger records as posture trust (the user's word as the agent reports it, no mechanical proof a human answered). No terminal approve trip, no token UUID (`DEVKIT_APPROVAL_MODE=token` opts back into the PIN-checked terminal gate); below the floor neither half is written — the server still runs its env-unset ask default, just without the client yield — and an install or update still removes the legacy ask rules. The allow rules are written only when the server half is present or established this run; a user-set `DEVKIT_APPROVAL_MODE` value wins, no client rules are kept, and rules a past install wrote are removed value-exact so the user's mechanical posture stays clean. A client `allow` rule can no longer fail anything open, while a `deny` rule still blocks the call in the client — which is why `npx huaweicloud-devkit doctor` fails one, fails a leftover devkit-written ask rule (the migration missed it), and warns when allow rules are present without the server env or the client half is unverifiable. Ownership follows the skills-tree seam's doctrine — add-only-if-absent per rule and value-exact removal — including its accepted edge: a user-authored rule of the identical shape that predates the install is removed together with the devkit's own. Residual from pre-yield installs: a saved "Always allow" row in OpenCode's permission store is a stale grant — the gate never consults it, and the yield rules mean the popup no longer appears to recreate it. `npx huaweicloud-devkit doctor` reports it as a `[WARN]` naming the row and the store; clean it up with `opencode api GET /api/permission/saved` (list) and `opencode api DELETE /api/permission/saved/<id>` (remove). See the huaweicloud-safety skill's approvals reference.
408
408
 
409
409
  Harness tool-routing note (Codex with a custom OpenAI-compatible provider): codex presents MCP tools as namespace-type tools and dispatches only through the `namespace` field on function_call items, with no flat-name fallback. A provider that drops that field (request history and/or generated calls) turns every regenerated call namespace-less, so codex answers `unsupported call: <huaweicloud tool>` without the call ever reaching the devkit — measured 2026-11-13 on codex 0.167.2 with an OpenAI-compatible gateway (a live session: 690 of 692 huaweicloud calls failed this way, only the fresh-history first call dispatched; reproduced with a two-call `codex exec` against the same provider). Nothing devkit-side can observe or fix these calls. Do not retry — the identical call cannot succeed. Remediation is gateway-side: round-trip the `namespace` field on function_call items in both directions (or use a provider that preserves it). Measured non-fix: codex's `non_prefixed_mcp_tool_names` feature only renames the namespace; regenerated calls still arrive namespace-less. The huaweicloud-troubleshooting skill and the server's initialize instructions teach the signature so agents stop retrying and report it instead.
410
410
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "huaweicloud-devkit",
3
3
  "mcpName": "io.github.huaweicloud/huaweicloud-devkit",
4
- "version": "2.0.0-next.6",
4
+ "version": "2.0.1-next.0",
5
5
  "kooCliVersion": "7.3.12",
6
6
  "description": "Agent toolkit that helps coding agents use Huawei Cloud Skills, KooCLI, APIs, SDKs, and future MCP capabilities safely and accurately.",
7
7
  "type": "module",
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "mcpServers": "./.mcp.json",
18
18
  "description": "Guide coding agents to use Huawei Cloud Skills, KooCLI, APIs, SDKs, and future MCP capabilities with safer execution and less context.",
19
- "version": "2.0.0-next.6",
19
+ "version": "2.0.1-next.0",
20
20
  "author": {
21
21
  "name": "HuaweiCloud Mate",
22
22
  "url": "https://github.com/huaweicloud"
@@ -19,7 +19,7 @@
19
19
  },
20
20
  "mcpServers": "./.mcp.json",
21
21
  "description": "Agent toolkit that helps coding agents use Huawei Cloud Skills, KooCLI, APIs, SDKs, and future MCP capabilities safely and accurately.",
22
- "version": "2.0.0-next.6",
22
+ "version": "2.0.1-next.0",
23
23
  "author": {
24
24
  "name": "HuaweiCloud Mate",
25
25
  "url": "https://github.com/huaweicloud"
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "mcpServers": "./.mcp.json",
18
18
  "description": "Guide coding agents to use Huawei Cloud Skills, KooCLI, APIs, SDKs, and future MCP capabilities with safer execution and less context.",
19
- "version": "2.0.0-next.6",
19
+ "version": "2.0.1-next.0",
20
20
  "author": {
21
21
  "name": "HuaweiCloud Mate",
22
22
  "url": "https://github.com/huaweicloud"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "huaweicloud-devkit",
3
- "version": "2.0.0-next.6",
3
+ "version": "2.0.1-next.0",
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",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "huaweicloud-devkit",
3
- "version": "2.0.0-next.6",
3
+ "version": "2.0.1-next.0",
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",
@@ -272,11 +272,13 @@ function payloadDriftWarns(payloadPaths) {
272
272
  continue;
273
273
  }
274
274
  // The env half: a copy that carries our server entry but not the ask env
275
- // runs the devkit in token mode (a stale pre-ask payload) — drift,
276
- // healable by the same re-run.
275
+ // is a stale pre-ask payload — drift, healable by the same re-run. The
276
+ // default mode is ask, so a stale copy degrades to the env-unset default
277
+ // (still the server-run gate), but the drift itself stays WARN-worthy:
278
+ // the payload no longer matches what this install would write.
277
279
  if (asRecord(asRecord(asRecord(config.mcpServers)[APPROVAL_MCP_SERVER]).env).DEVKIT_APPROVAL_MODE !==
278
280
  CODEX_APPROVAL_MODE_ENV) {
279
- warns.push(`${path} does not set DEVKIT_APPROVAL_MODE="${CODEX_APPROVAL_MODE_ENV}" in the server env, so the devkit runs its default token mode under codex (${RERUN})`);
281
+ warns.push(`${path} does not set DEVKIT_APPROVAL_MODE="${CODEX_APPROVAL_MODE_ENV}" in the server env (a stale pre-ask payload; the env-unset default is ask, but the drift means this copy no longer matches the current install) (${RERUN})`);
280
282
  }
281
283
  if (states.every((state) => state === 'approve'))
282
284
  continue;
@@ -245,7 +245,9 @@ export function updateOpenCodeConfig(pluginDir) {
245
245
  // install wrote are removed value-exact, both shapes independently (a
246
246
  // config can carry both). Without this, the doctor's mixed-state WARN
247
247
  // could never heal — re-running install would reproduce it forever.
248
- // After the removal the user's posture (token mode) is fully mechanical.
248
+ // After the removal the user's posture is fully mechanical — their own
249
+ // env value (token, or an explicit ask) owns the gate with no client
250
+ // rules layered on top.
249
251
  const removedV2 = removeAllowPermissionRules(config);
250
252
  const removedV1 = removeAllowPermissionRulesV1(config);
251
253
  clientRemoved = removedV2 || removedV1;
@@ -265,7 +267,7 @@ export function updateOpenCodeConfig(pluginDir) {
265
267
  }
266
268
  }
267
269
  else if (!askOn) {
268
- console.log(' \x1b[33m[INFO]\x1b[0m opencode not verifiably at or above 1.19.0 — keeping the terminal token approval gate; no client allow rules or DEVKIT_APPROVAL_MODE is written.');
270
+ console.log(' \x1b[33m[INFO]\x1b[0m opencode not verifiably at or above 1.19.0 — writing neither half of the ASK pair; the server still runs the env-unset ask default (the chat round-trip), and no client allow rules are written.');
269
271
  }
270
272
  if (rebuilt || entryChanged) {
271
273
  const mcpMap = asRecord(config.mcp);
@@ -48,8 +48,10 @@ export function opencodeDoctorMcpConfigured() {
48
48
  // WARN is honest, not a FAIL);
49
49
  // - a user-owned rule on a roster action is surfaced by name with the skip
50
50
  // recorded, never silently dropped.
51
- // A gate-off opencode is a SKIP — token mode is that install's legitimate
52
- // posture, and the migration still removes the legacy ask rules.
51
+ // A gate-off opencode is a SKIP — an env-less install below the floor runs
52
+ // the default ask posture with no client yield rules, which is that
53
+ // install's legitimate state, and the migration still removes the legacy
54
+ // ask rules.
53
55
  export function opencodeDoctorAskRule(ctx) {
54
56
  const gate = openCodeAskGate();
55
57
  if (gate === 'off') {
@@ -88,9 +90,14 @@ function askPostureCheck(ctx, gate) {
88
90
  const foreign = actionsIn('foreign');
89
91
  const userOther = actionsIn('user-other');
90
92
  const residue = reading.rules.filter((rule) => rule.askResidue).map((rule) => rule.action);
91
- // Token mode with no client rules at all is the legitimate default posture.
93
+ // No client rules and a non-ask env is the legitimate env-owned posture:
94
+ // unset means the ask default (server-run gate, no yield rules), an
95
+ // explicit 'token' means the operator's opt-in terminal gate. The label
96
+ // names which one it is.
92
97
  if (!gateOn && absent.length === reading.rules.length) {
93
- ctx.check('ASK approval posture (token mode)', true, '');
98
+ ctx.check(env.DEVKIT_APPROVAL_MODE === 'token'
99
+ ? 'ASK approval posture (token mode)'
100
+ : 'ASK approval posture (env-unset ask default; no client yield rules)', true, '');
94
101
  return;
95
102
  }
96
103
  const fails = [];
@@ -6,12 +6,12 @@
6
6
  // src/lib/approval-tokens.ts.
7
7
  //
8
8
  // The plan's approval posture is mode-dependent (HcloudPlanOptions.
9
- // approvalMode): 'ask' (DEVKIT_APPROVAL_MODE=ask) plans for the SERVER-run
9
+ // approvalMode): 'ask' (the default) plans for the SERVER-run
10
10
  // confirmation — the approval gate raises an elicitation form, or the T3
11
11
  // chat round-trip on a client that cannot render one — so no token is
12
12
  // minted and userConfirmation carries the ask note instead of a terminal
13
- // approve line; 'token' (the default) keeps the mint + approve line
14
- // contract above.
13
+ // approve line; 'token' (opt-in, and forced on the remote transport)
14
+ // keeps the mint + approve line contract above.
15
15
  import { classifyHcloudArgs, redactSecrets, stripExecutable } from "./safety-policy.js";
16
16
  import { isHcloudToken } from "./safety/tokens.js";
17
17
  import { createApprovalToken } from "./lib/approval-tokens.js";
@@ -1,22 +1,21 @@
1
1
  // The hcloud write-approval posture, resolved from DEVKIT_APPROVAL_MODE.
2
2
  //
3
- // 'token' (the default) is the out-of-band terminal gate: the plan mints
4
- // an approval token, the user confirms it in their own terminal
5
- // (`npx huaweicloud-devkit approve <uuid>`), and run_approved_command
6
- // consumes the token before executing. 'ask' moves the confirmation onto
7
- // the SERVER (PR-1.5): the operator opts in via the env var (normally
8
- // written by the installer together with the client's ask rule), and the
9
- // approval gate runs the confirmation itself inside the run call — an
10
- // elicitation form on a client that declared the form capability, or the
3
+ // 'ask' (the default) is the server-run confirmation: the approval gate
4
+ // runs the confirmation itself inside the run call — an elicitation form
5
+ // on a client that declared the form capability, or the
11
6
  // ASK_CONFIRMATION_REQUIRED chat round-trip whose retry carries
12
7
  // approvedByUser. No terminal trip and no UUID in the model's context; the
13
- // plan mints nothing.
8
+ // plan mints nothing. 'token' is the opt-in out-of-band terminal gate
9
+ // (and the only channel on the stateless remote transport, which forces
10
+ // it back): the plan mints an approval token, the user confirms it in
11
+ // their own terminal (`npx huaweicloud-devkit approve <uuid>`), and
12
+ // run_approved_command consumes the token before executing.
14
13
  //
15
14
  // Resolution is exact-match and fail-loud, mirroring the DEVKIT_PACKS
16
15
  // unknown-id doctrine: a typo'd mode must not silently fall back to the
17
16
  // weaker gate, so anything but 'ask' or 'token' throws with the env name
18
17
  // and the bad value (case included — 'ASK' throws). Unset or empty keeps
19
- // 'token'. The resolver is pure and takes the env as a parameter; every
18
+ // 'ask'. The resolver is pure and takes the env as a parameter; every
20
19
  // reader re-resolves from process.env (the mode is process-stable for the
21
20
  // life of the process), so there is deliberately no cached module state
22
21
  // to disagree with a fresh read. The module imports nothing: it feeds
@@ -25,7 +24,7 @@ export const APPROVAL_MODE_ENV = 'DEVKIT_APPROVAL_MODE';
25
24
  export function approvalModeFromEnv(env) {
26
25
  const raw = env[APPROVAL_MODE_ENV];
27
26
  if (raw === undefined || raw === '')
28
- return 'token';
27
+ return 'ask';
29
28
  if (raw === 'ask' || raw === 'token')
30
29
  return raw;
31
30
  throw new Error(`DEVKIT_APPROVAL_MODE must be "ask" or "token" (got "${raw}")`);
@@ -51934,10 +51934,11 @@ var init_tools = __esm({
51934
51934
  {
51935
51935
  name: "huaweicloud_upgrade",
51936
51936
  // The mechanical approval gate enforces the consent this line used to
51937
- // only ask for (PR-3c): token mode runs the approve command from the
51938
- // gate's rejection envelope in the user's own terminal, ask mode lets
51939
- // the server raise the confirmation itself.
51940
- description: '\u5347\u7EA7 huaweicloud-devkit \u5230\u6700\u65B0\u7248\u672C\u3002\u5347\u7EA7\u4F1A\u6539\u5199\u78C1\u76D8\u4E0A\u7684\u63D2\u4EF6\u672C\u4F53\uFF0C\u56E0\u6B64\u7531\u5BA1\u6279\u95E8\u673A\u68B0\u628A\u5173\uFF1A\u9ED8\u8BA4 token \u6A21\u5F0F\u4E0B\uFF0C\u65E0 token \u8C03\u7528\u4F1A\u8FD4\u56DE USER_CONFIRMATION_REQUIRED \u4E0E approve \u547D\u4EE4\u884C\uFF0C\u7528\u6237\u5728\u81EA\u5DF1\u7684\u7EC8\u7AEF\u786E\u8BA4\u540E\u624D\u53EF\u91CD\u8BD5\uFF1BDEVKIT_APPROVAL_MODE=ask \u65F6\u7531\u670D\u52A1\u5668\u5728\u8C03\u7528\u5185\u5F39\u51FA\u786E\u8BA4\uFF08\u8868\u5355\u6216\u804A\u5929\u5F80\u8FD4\uFF09\u3002version \u4EC5\u652F\u6301 "latest"\u3002\u5B8C\u6210\u540E\u9700\u91CD\u542F\u4F1A\u8BDD\u751F\u6548\u3002',
51937
+ // only ask for (PR-3c): ask mode (the default) lets the server raise
51938
+ // the confirmation itself, token mode (opt-in) runs the approve
51939
+ // command from the gate's rejection envelope in the user's own
51940
+ // terminal.
51941
+ description: '\u5347\u7EA7 huaweicloud-devkit \u5230\u6700\u65B0\u7248\u672C\u3002\u5347\u7EA7\u4F1A\u6539\u5199\u78C1\u76D8\u4E0A\u7684\u63D2\u4EF6\u672C\u4F53\uFF0C\u56E0\u6B64\u7531\u5BA1\u6279\u95E8\u673A\u68B0\u628A\u5173\uFF1A\u9ED8\u8BA4\u7531\u670D\u52A1\u5668\u5728\u8C03\u7528\u5185\u5F39\u51FA\u786E\u8BA4\uFF08\u8868\u5355\u6216\u804A\u5929\u5F80\u8FD4\uFF09\uFF1BDEVKIT_APPROVAL_MODE=token\uFF08opt-in\uFF09\u65F6\uFF0C\u65E0 token \u8C03\u7528\u4F1A\u8FD4\u56DE USER_CONFIRMATION_REQUIRED \u4E0E approve \u547D\u4EE4\u884C\uFF0C\u7528\u6237\u5728\u81EA\u5DF1\u7684\u7EC8\u7AEF\u786E\u8BA4\u540E\u624D\u53EF\u91CD\u8BD5\u3002version \u4EC5\u652F\u6301 "latest"\u3002\u5B8C\u6210\u540E\u9700\u91CD\u542F\u4F1A\u8BDD\u751F\u6548\u3002',
51941
51942
  schema: upgradeSchema,
51942
51943
  handler: handleUpgrade
51943
51944
  }
@@ -60181,13 +60182,13 @@ var init_tools3 = __esm({
60181
60182
  },
60182
60183
  {
60183
60184
  name: "huaweicloud_auth_init",
60184
- description: "Set or clear runtime Huawei Cloud credentials (AK/SK) for this MCP session. Runtime credentials take highest priority over environment variables and config files for all subsequent API calls. Use when switching accounts within the same Agent session \u2014 call with AK/SK to switch, or with clear=true to fall back to env/file credentials. Approval-gated: the account switch requires the user\u2019s explicit confirmation, and the confirmation view names the target account fingerprint \u2014 in the default token mode the first call returns USER_CONFIRMATION_REQUIRED with an approvalToken the user confirms in their own terminal (npx huaweicloud-devkit approve <token>); under DEVKIT_APPROVAL_MODE=ask the server raises the confirmation itself (an elicitation form, or the ASK_CONFIRMATION_REQUIRED chat round-trip). Vendor-gated (vendorConfirmed): call only when the vendor is established \u2014 see the vendorConfirmed parameter description; when unknown, ask which cloud the user means first.",
60185
+ description: "Set or clear runtime Huawei Cloud credentials (AK/SK) for this MCP session. Runtime credentials take highest priority over environment variables and config files for all subsequent API calls. Use when switching accounts within the same Agent session \u2014 call with AK/SK to switch, or with clear=true to fall back to env/file credentials. Approval-gated: the account switch requires the user\u2019s explicit confirmation, and the confirmation view names the target account fingerprint \u2014 the server raises the confirmation itself (an elicitation form, or the ASK_CONFIRMATION_REQUIRED chat round-trip); under DEVKIT_APPROVAL_MODE=token (opt-in) the first call instead returns USER_CONFIRMATION_REQUIRED with an approvalToken the user confirms in their own terminal (npx huaweicloud-devkit approve <token>). Vendor-gated (vendorConfirmed): call only when the vendor is established \u2014 see the vendorConfirmed parameter description; when unknown, ask which cloud the user means first.",
60185
60186
  schema: authInitSchema,
60186
60187
  handler: handleAuthInit
60187
60188
  },
60188
60189
  {
60189
60190
  name: "huaweicloud_auth_switch",
60190
- description: "Switch Huawei Cloud credentials within the current session. action=temporary keeps AK/SK in memory only (restart loses them; hcloud commands are unaffected and an A+C warning will be raised). action=persist writes S1 (single source of truth) with configuredBySession flag and propagates to S2 (KooCLI current profile) and S3 (OBS). action=clear resets runtime credentials. mode=import reads AK/SK from ~/.config/huaweicloud/creds-import.json then wipes it (SK never enters conversation). mode=memory passes AK/SK as tool arguments (SK is visible to model - prefer import). mode=mcp-config reads the injected mcp_settings environment. Approval-gated: the switch requires the user\u2019s explicit confirmation, and the confirmation view names the target account fingerprint and the credential source \u2014 in the default token mode the first call returns USER_CONFIRMATION_REQUIRED with an approvalToken the user confirms in their own terminal (npx huaweicloud-devkit approve <token>); under DEVKIT_APPROVAL_MODE=ask the server raises the confirmation itself (an elicitation form, or the ASK_CONFIRMATION_REQUIRED chat round-trip). Vendor-gated (vendorConfirmed): call only when the vendor is established \u2014 see the vendorConfirmed parameter description; when unknown, ask which cloud the user means first.",
60191
+ description: "Switch Huawei Cloud credentials within the current session. action=temporary keeps AK/SK in memory only (restart loses them; hcloud commands are unaffected and an A+C warning will be raised). action=persist writes S1 (single source of truth) with configuredBySession flag and propagates to S2 (KooCLI current profile) and S3 (OBS). action=clear resets runtime credentials. mode=import reads AK/SK from ~/.config/huaweicloud/creds-import.json then wipes it (SK never enters conversation). mode=memory passes AK/SK as tool arguments (SK is visible to model - prefer import). mode=mcp-config reads the injected mcp_settings environment. Approval-gated: the switch requires the user\u2019s explicit confirmation, and the confirmation view names the target account fingerprint and the credential source \u2014 the server raises the confirmation itself (an elicitation form, or the ASK_CONFIRMATION_REQUIRED chat round-trip); under DEVKIT_APPROVAL_MODE=token (opt-in) the first call instead returns USER_CONFIRMATION_REQUIRED with an approvalToken the user confirms in their own terminal (npx huaweicloud-devkit approve <token>). Vendor-gated (vendorConfirmed): call only when the vendor is established \u2014 see the vendorConfirmed parameter description; when unknown, ask which cloud the user means first.",
60191
60192
  schema: authSwitchSchema,
60192
60193
  handler: handleAuthSwitch
60193
60194
  },
@@ -60585,7 +60586,7 @@ var init_tools4 = __esm({
60585
60586
  },
60586
60587
  {
60587
60588
  name: "huaweicloud_obs_set_website_config",
60588
- description: "\u914D\u7F6E OBS \u6876\u7684\u9759\u6001\u7F51\u7AD9\u6258\u7BA1\uFF08\u63A8\u8350\u8DEF\u5F84\uFF1A\u65E0\u9700\u624B\u5199 XML\uFF0C\u6B64\u5DE5\u5177\u5185\u90E8\u5B9E\u73B0 AWS4 \u7B7E\u540D\u8C03\u7528 OBS REST API\uFF0C\u5C4F\u853D\u7B7E\u540D\u7EC6\u8282\uFF09\u3002\u652F\u6301 set\uFF08\u914D\u7F6E\uFF09\u3001get\uFF08\u67E5\u8BE2\uFF09\u3001delete\uFF08\u5220\u9664\uFF09\u4E09\u79CD\u64CD\u4F5C\u3002\u5BA1\u6279\u95E8\u628A\u5173\uFF08PR-3c\uFF09\uFF1Aset \u4E0E delete \u662F\u5BF9\u7EBF\u4E0A\u6876\u7684\u7B7E\u540D PUT/DELETE\uFF0C\u65E0 token \u8C03\u7528\u8FD4\u56DE USER_CONFIRMATION_REQUIRED \u4F9B\u7528\u6237\u5728\u7EC8\u7AEF\u786E\u8BA4\uFF0CDEVKIT_APPROVAL_MODE=ask \u65F6\u7531\u670D\u52A1\u5668\u5F39\u51FA\u786E\u8BA4\uFF1Bget \u662F\u7B7E\u540D\u53EA\u8BFB\uFF0C\u4ECE\u4E0D\u786E\u8BA4\u3001\u76F4\u63A5\u6267\u884C\u3002KooCLI 7.3.12+ \u53E6\u6709 `hcloud OBS website -method=put -localfile=<xml>`\uFF08XML \u6587\u4EF6\u65B9\u5F0F\uFF1B7.2.x \u65E0\u6B64 CLI \u547D\u4EE4\uFF09\u3002\u64CD\u4F5C\u524D\u9700\u786E\u4FDD\u6876\u5DF2\u521B\u5EFA\u4E14\u5DF2\u8BBE\u7F6E public-read ACL\u3002",
60589
+ description: "\u914D\u7F6E OBS \u6876\u7684\u9759\u6001\u7F51\u7AD9\u6258\u7BA1\uFF08\u63A8\u8350\u8DEF\u5F84\uFF1A\u65E0\u9700\u624B\u5199 XML\uFF0C\u6B64\u5DE5\u5177\u5185\u90E8\u5B9E\u73B0 AWS4 \u7B7E\u540D\u8C03\u7528 OBS REST API\uFF0C\u5C4F\u853D\u7B7E\u540D\u7EC6\u8282\uFF09\u3002\u652F\u6301 set\uFF08\u914D\u7F6E\uFF09\u3001get\uFF08\u67E5\u8BE2\uFF09\u3001delete\uFF08\u5220\u9664\uFF09\u4E09\u79CD\u64CD\u4F5C\u3002\u5BA1\u6279\u95E8\u628A\u5173\uFF08PR-3c\uFF09\uFF1Aset \u4E0E delete \u662F\u5BF9\u7EBF\u4E0A\u6876\u7684\u7B7E\u540D PUT/DELETE\uFF0C\u9ED8\u8BA4\u7531\u670D\u52A1\u5668\u5F39\u51FA\u786E\u8BA4\uFF08\u8868\u5355\u6216\u804A\u5929\u5F80\u8FD4\uFF09\uFF1BDEVKIT_APPROVAL_MODE=token\uFF08opt-in\uFF09\u65F6\u65E0 token \u8C03\u7528\u8FD4\u56DE USER_CONFIRMATION_REQUIRED \u4F9B\u7528\u6237\u5728\u7EC8\u7AEF\u786E\u8BA4\uFF1Bget \u662F\u7B7E\u540D\u53EA\u8BFB\uFF0C\u4ECE\u4E0D\u786E\u8BA4\u3001\u76F4\u63A5\u6267\u884C\u3002KooCLI 7.3.12+ \u53E6\u6709 `hcloud OBS website -method=put -localfile=<xml>`\uFF08XML \u6587\u4EF6\u65B9\u5F0F\uFF1B7.2.x \u65E0\u6B64 CLI \u547D\u4EE4\uFF09\u3002\u64CD\u4F5C\u524D\u9700\u786E\u4FDD\u6876\u5DF2\u521B\u5EFA\u4E14\u5DF2\u8BBE\u7F6E public-read ACL\u3002",
60589
60590
  schema: obsWebsiteConfigSchema,
60590
60591
  handler: handleObsWebsiteConfig
60591
60592
  },
@@ -60597,7 +60598,7 @@ var init_tools4 = __esm({
60597
60598
  // claimed the CLI lacks it, measured on its 7.2.x sandbox. The tool stays
60598
60599
  // the recommended path (no XML file, no --noproxy traps); the CLI is the
60599
60600
  // scripted alternative for 7.3.12+ environments.
60600
- description: "\u914D\u7F6E OBS \u6876\u7684 CORS \u89C4\u5219\uFF08\u6D4F\u89C8\u5668\u76F4\u4F20\u524D\u7F6E\u6761\u4EF6\uFF1B\u63A8\u8350\u8DEF\u5F84\uFF1A\u6B64\u5DE5\u5177\u5185\u90E8\u5B9E\u73B0 AWS4 \u7B7E\u540D\u8C03\u7528 OBS REST API\uFF08PUT/GET/DELETE /?cors\uFF09\uFF0C\u65E0\u9700\u624B\u5199 XML\uFF0C\u5C4F\u853D\u7B7E\u540D\u7EC6\u8282\uFF09\u3002\u652F\u6301 set\uFF08\u914D\u7F6E\uFF09\u3001get\uFF08\u67E5\u8BE2\uFF09\u3001delete\uFF08\u5220\u9664\uFF09\u4E09\u79CD\u64CD\u4F5C\u3002\u5BA1\u6279\u95E8\u628A\u5173\uFF08PR-3c\uFF09\uFF1Aset \u4E0E delete \u662F\u5BF9\u7EBF\u4E0A\u6876\u7684\u7B7E\u540D PUT/DELETE\uFF0C\u65E0 token \u8C03\u7528\u8FD4\u56DE USER_CONFIRMATION_REQUIRED \u4F9B\u7528\u6237\u5728\u7EC8\u7AEF\u786E\u8BA4\uFF0CDEVKIT_APPROVAL_MODE=ask \u65F6\u7531\u670D\u52A1\u5668\u5F39\u51FA\u786E\u8BA4\uFF1Bget \u662F\u7B7E\u540D\u53EA\u8BFB\uFF0C\u4ECE\u4E0D\u786E\u8BA4\u3001\u76F4\u63A5\u6267\u884C\u3002allowedMethod \u5FC5\u987B\u542B HEAD\uFF08BrowserJS SDK \u6BCF\u6B21\u64CD\u4F5C\u524D\u53D1 HEAD ?apiversion \u63A2\u6D4B\uFF0C\u7F3A HEAD \u65F6\u6D4F\u89C8\u5668\u541E\u6389\u63A2\u6D4B\u8BF7\u6C42\u62A5 Network Error\uFF09\u3002KooCLI 7.3.12+ \u53E6\u6709 `hcloud OBS cors obs://<bucket> -method=put -localfile=<xml>`\uFF08XML \u6587\u4EF6\u65B9\u5F0F\uFF1B7.2.x \u65E0\u6B64 CLI \u547D\u4EE4\uFF09\u3002\u914D\u7F6E\u6210\u529F\u540E\u7528\u8FD4\u56DE\u4F53\u4E2D\u7684 verify \u547D\u4EE4\u505A OPTIONS \u9884\u68C0\u9A8C\u8BC1\uFF08200 + Access-Control-Allow-Origin \u624D\u7B97\u6210\u529F\uFF09\u3002",
60601
+ description: "\u914D\u7F6E OBS \u6876\u7684 CORS \u89C4\u5219\uFF08\u6D4F\u89C8\u5668\u76F4\u4F20\u524D\u7F6E\u6761\u4EF6\uFF1B\u63A8\u8350\u8DEF\u5F84\uFF1A\u6B64\u5DE5\u5177\u5185\u90E8\u5B9E\u73B0 AWS4 \u7B7E\u540D\u8C03\u7528 OBS REST API\uFF08PUT/GET/DELETE /?cors\uFF09\uFF0C\u65E0\u9700\u624B\u5199 XML\uFF0C\u5C4F\u853D\u7B7E\u540D\u7EC6\u8282\uFF09\u3002\u652F\u6301 set\uFF08\u914D\u7F6E\uFF09\u3001get\uFF08\u67E5\u8BE2\uFF09\u3001delete\uFF08\u5220\u9664\uFF09\u4E09\u79CD\u64CD\u4F5C\u3002\u5BA1\u6279\u95E8\u628A\u5173\uFF08PR-3c\uFF09\uFF1Aset \u4E0E delete \u662F\u5BF9\u7EBF\u4E0A\u6876\u7684\u7B7E\u540D PUT/DELETE\uFF0C\u9ED8\u8BA4\u7531\u670D\u52A1\u5668\u5F39\u51FA\u786E\u8BA4\uFF08\u8868\u5355\u6216\u804A\u5929\u5F80\u8FD4\uFF09\uFF1BDEVKIT_APPROVAL_MODE=token\uFF08opt-in\uFF09\u65F6\u65E0 token \u8C03\u7528\u8FD4\u56DE USER_CONFIRMATION_REQUIRED \u4F9B\u7528\u6237\u5728\u7EC8\u7AEF\u786E\u8BA4\uFF1Bget \u662F\u7B7E\u540D\u53EA\u8BFB\uFF0C\u4ECE\u4E0D\u786E\u8BA4\u3001\u76F4\u63A5\u6267\u884C\u3002allowedMethod \u5FC5\u987B\u542B HEAD\uFF08BrowserJS SDK \u6BCF\u6B21\u64CD\u4F5C\u524D\u53D1 HEAD ?apiversion \u63A2\u6D4B\uFF0C\u7F3A HEAD \u65F6\u6D4F\u89C8\u5668\u541E\u6389\u63A2\u6D4B\u8BF7\u6C42\u62A5 Network Error\uFF09\u3002KooCLI 7.3.12+ \u53E6\u6709 `hcloud OBS cors obs://<bucket> -method=put -localfile=<xml>`\uFF08XML \u6587\u4EF6\u65B9\u5F0F\uFF1B7.2.x \u65E0\u6B64 CLI \u547D\u4EE4\uFF09\u3002\u914D\u7F6E\u6210\u529F\u540E\u7528\u8FD4\u56DE\u4F53\u4E2D\u7684 verify \u547D\u4EE4\u505A OPTIONS \u9884\u68C0\u9A8C\u8BC1\uFF08200 + Access-Control-Allow-Origin \u624D\u7B97\u6210\u529F\uFF09\u3002",
60601
60602
  schema: obsCorsConfigSchema,
60602
60603
  handler: handleObsCorsConfig
60603
60604
  }
@@ -61662,7 +61663,7 @@ var init_pack6 = __esm({
61662
61663
  function approvalModeFromEnv(env) {
61663
61664
  const raw = env[APPROVAL_MODE_ENV];
61664
61665
  if (raw === void 0 || raw === "")
61665
- return "token";
61666
+ return "ask";
61666
61667
  if (raw === "ask" || raw === "token")
61667
61668
  return raw;
61668
61669
  throw new Error(`DEVKIT_APPROVAL_MODE must be "ask" or "token" (got "${raw}")`);
@@ -62002,7 +62003,7 @@ var init_tools7 = __esm({
62002
62003
  },
62003
62004
  {
62004
62005
  name: "huaweicloud_plan_cli_command",
62005
- description: "Classify and plan a Huawei Cloud hcloud command without executing it. When the result's userConfirmation.needed is true, the command waits on user confirmation before huaweicloud_run_approved_command will accept it: in the default token mode the USER runs the userConfirmation.command line (npx huaweicloud-devkit approve <approvalToken>) in their own terminal, and under DEVKIT_APPROVAL_MODE=ask the server raises the confirmation itself on the run call (an elicitation form, or an ASK_CONFIRMATION_REQUIRED chat round-trip) \u2014 no token is needed. Vendor-gated (vendorConfirmed): call only when the vendor is established \u2014 see the vendorConfirmed parameter description; when unknown, ask which cloud the user means first.",
62006
+ description: "Classify and plan a Huawei Cloud hcloud command without executing it. When the result's userConfirmation.needed is true, the command waits on user confirmation before huaweicloud_run_approved_command will accept it: the server raises the confirmation itself on the run call (an elicitation form, or an ASK_CONFIRMATION_REQUIRED chat round-trip) \u2014 no token is needed; under DEVKIT_APPROVAL_MODE=token (opt-in, and the forced posture on the remote transport) the USER instead runs the userConfirmation.command line (npx huaweicloud-devkit approve <approvalToken>) in their own terminal. Vendor-gated (vendorConfirmed): call only when the vendor is established \u2014 see the vendorConfirmed parameter description; when unknown, ask which cloud the user means first.",
62006
62007
  schema: planCliCommandSchema,
62007
62008
  handler: handlePlanCliCommand
62008
62009
  },
@@ -62020,7 +62021,7 @@ var init_tools7 = __esm({
62020
62021
  },
62021
62022
  {
62022
62023
  name: "huaweicloud_run_approved_command",
62023
- description: "Run a write-capable hcloud command only after the exact command has been shown and explicitly approved by the user. In the default token mode the user must also confirm the plan token in their own terminal (npx huaweicloud-devkit approve <token>) \u2014 a non-read command without that terminal confirmation is rejected with USER_CONFIRMATION_REQUIRED and the token stays usable. Under DEVKIT_APPROVAL_MODE=ask the confirmation runs on the server: on a client that supports MCP elicitation the devkit raises a form during this call (approve runs it once; dismiss, decline, or the timeout cancels it), and on any other client the call returns ASK_CONFIRMATION_REQUIRED, whose envelope carries the command line \u2014 show it to the user in chat, then retry the same call with approvedByUser: true, which is model-relayed posture trust. In both modes always send command: it is the line the user reads, and the server rejects a line that does not match args (COMMAND_ARGS_MISMATCH). Vendor-gated (vendorConfirmed): call only when the vendor is established \u2014 see the vendorConfirmed parameter description; when unknown, ask which cloud the user means first.",
62024
+ description: "Run a write-capable hcloud command only after the exact command has been shown and explicitly approved by the user. By default the confirmation runs on the server: on a client that supports MCP elicitation the devkit raises a form during this call (approve runs it once; dismiss, decline, or the timeout cancels it), and on any other client the call returns ASK_CONFIRMATION_REQUIRED, whose envelope carries the command line \u2014 show it to the user in chat, then retry the same call with approvedByUser: true, which is model-relayed posture trust. Under DEVKIT_APPROVAL_MODE=token (opt-in, and the forced posture on the remote transport) the user must also confirm the plan token in their own terminal (npx huaweicloud-devkit approve <token>) \u2014 a non-read command without that terminal confirmation is rejected with USER_CONFIRMATION_REQUIRED and the token stays usable. In both modes always send command: it is the line the user reads, and the server rejects a line that does not match args (COMMAND_ARGS_MISMATCH). Vendor-gated (vendorConfirmed): call only when the vendor is established \u2014 see the vendorConfirmed parameter description; when unknown, ask which cloud the user means first.",
62024
62025
  schema: runApprovedCommandSchema,
62025
62026
  handler: handleRunApprovedCommand
62026
62027
  },
@@ -62797,7 +62798,7 @@ var init_tools9 = __esm({
62797
62798
  },
62798
62799
  {
62799
62800
  name: "huaweicloud_secret_delete",
62800
- description: "Delete one secret from the local vault by ref. Destructive with no version history, so the approval gate mediates every call: in the default token mode a no-token call returns USER_CONFIRMATION_REQUIRED with the approve command line for the user\u2019s own terminal, and under DEVKIT_APPROVAL_MODE=ask the server raises the confirmation itself (form, or an ASK_CONFIRMATION_REQUIRED chat round-trip). Deleting a ref that S1 credentials.json points at breaks those credential reads until the operator re-stores it (the strict vault seam fails closed on the unresolvable ref). Idempotent: removed=1 when a secret was deleted, removed=0 when the ref was not stored (usually a typo in the ref \u2014 check with huaweicloud_secret_list).",
62801
+ description: "Delete one secret from the local vault by ref. Destructive with no version history, so the approval gate mediates every call: the server raises the confirmation itself (form, or an ASK_CONFIRMATION_REQUIRED chat round-trip); under DEVKIT_APPROVAL_MODE=token (opt-in) a no-token call instead returns USER_CONFIRMATION_REQUIRED with the approve command line for the user\u2019s own terminal. Deleting a ref that S1 credentials.json points at breaks those credential reads until the operator re-stores it (the strict vault seam fails closed on the unresolvable ref). Idempotent: removed=1 when a secret was deleted, removed=0 when the ref was not stored (usually a typo in the ref \u2014 check with huaweicloud_secret_list).",
62801
62802
  schema: secretDeleteSchema,
62802
62803
  handler: handleSecretDelete
62803
62804
  }
@@ -63966,7 +63967,7 @@ var init_tool_definitions = __esm({
63966
63967
  },
63967
63968
  {
63968
63969
  name: "huaweicloud_packs_configure",
63969
- description: "Enable or disable capability packs for THIS session, or reset to the operator posture. Session-scoped: the change lives in this server process only and the next session restart restores the DEVKIT_PACKS posture the operator configured. Takes enable (pack ids to add), disable (pack ids to remove; core cannot be disabled), and reset (drop the session override). The refreshed tool list is pushed to the agent immediately. Approval-gated in every mode because widening the disclosure face is the consequence: the no-token call returns USER_CONFIRMATION_REQUIRED naming the pack ids with the approve line for the user\u2019s own terminal (token mode), and under DEVKIT_APPROVAL_MODE=ask the server raises the confirmation itself (a form on a capable client, else an ASK_CONFIRMATION_REQUIRED chat round-trip). Stdio agent sessions only \u2014 surfaces with no session state are refused outright. The persistent equivalent is the operator CLI (npx huaweicloud-devkit packs enable <ids> --target <agent>); ask the operator to run it and restart the agent."
63970
+ description: "Enable or disable capability packs for THIS session, or reset to the operator posture. Session-scoped: the change lives in this server process only and the next session restart restores the DEVKIT_PACKS posture the operator configured. Takes enable (pack ids to add), disable (pack ids to remove; core cannot be disabled), and reset (drop the session override). The refreshed tool list is pushed to the agent immediately. Approval-gated in every mode because widening the disclosure face is the consequence: the server raises the confirmation itself (a form on a capable client, else an ASK_CONFIRMATION_REQUIRED chat round-trip), and under DEVKIT_APPROVAL_MODE=token (opt-in) the no-token call instead returns USER_CONFIRMATION_REQUIRED naming the pack ids with the approve line for the user\u2019s own terminal. Stdio agent sessions only \u2014 surfaces with no session state are refused outright. The persistent equivalent is the operator CLI (npx huaweicloud-devkit packs enable <ids> --target <agent>); ask the operator to run it and restart the agent."
63970
63971
  },
63971
63972
  {
63972
63973
  name: "huaweicloud_gateway_list_tools",