ucloud-dsh-plugin
其他 活跃维护

ucloud-dsh-plugin

ucloud/ucloud-dsh-plugin

提供UCloud CLI技能到DeepSeek Harness的完整迁移适配能力,注册全套技能包及关联引用,用户可直接在Harness中调用UCloud相关云操作能力,无需额外配置即可完成UCloud服务的快速交互。

1
Stars 标星
0
Forks 分支
1
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
22 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:ucloud/ucloud-dsh-plugin
git clone https://github.com/ucloud/ucloud-dsh-plugin.git
git clone git@github.com:ucloud/ucloud-dsh-plugin.git
README.md main

UCloud Skill for DeepSeek Harness

This package migrates the ucloud-cli skill to DeepSeek Harness 0.1.0-rc.6. It registers the complete bundled skill and its references; it does not implement a second UCloud API client or a restricted command wrapper.

How It Works

User request
  -> bundled ucloud-cli skill
  -> DSH Bash tool
  -> official ucloud CLI
  -> UCloud API

The skill retains its original ability to inspect, create, update, and delete UCloud resources, initialize OAuth profiles, deploy applications, use product commands, and fall back to ucloud api when required.

Prerequisites

  • DeepSeek Harness 0.1.0-rc.6 with its standard Skill and Bash plugins enabled.
  • Node.js 22 or newer.
  • Official ucloud CLI v0.3.1 or newer available on PATH.
  • An existing UCloud CLI profile or permission to complete ucloud auth login.
  • DSH Bash sandbox and approval settings appropriate for the requested cloud operations.

The package does not read or manage UCloud credentials. Authentication remains the responsibility of the official CLI and its existing profile/OAuth state.

Install

Install the package into the target DSH profile:

dsh plugin --profile <profile-name> add @ucloud-ai/ucloud-dsh-plugin

Add @ucloud-ai/ucloud-dsh-plugin to the profile's bundle list if the profile manager does not do so automatically. The included cordis.patch.yml registers the package as ucloud-skill.

The Skill can then be selected by the model or invoked explicitly as ucloud-cli through the DSH Skill interface.

Permissions

This plugin adds no custom execution tool. All command execution goes through DSH's existing Bash tool, so filesystem, network, mutation approval, and command permissions are controlled by the DSH profile. UCloud-side authorization is controlled by the selected CLI profile's IAM permissions.

Because the original Skill supports real mutations, requests can create billable resources, interrupt services, or delete resources. Production profiles should retain DSH approval prompts and use least-privilege UCloud IAM policies.

Development

npm test
npm run pack:dry-run

Tests only validate Skill registration, packaged references, and bundle metadata. They do not execute ucloud or access a UCloud account.