dsh-plugin-workspace-capabilities 0.0.0-stage → 1.3.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.
- package/LICENSE +21 -0
- package/README.en.md +97 -0
- package/README.md +96 -2
- package/client.js +488 -0
- package/cordis.patch.yml +3 -0
- package/discovery.js +129 -0
- package/http-api.js +113 -0
- package/index.js +64 -0
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/locales.js +258 -0
- package/package.json +96 -4
- package/policy.js +52 -0
- package/runtime.js +180 -0
- package/skill-provider.js +16 -0
- package/store.js +45 -0
- package/translation-target.js +20 -0
- package/translations.js +119 -0
- package/workspaces.js +16 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 osiqwq
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.en.md
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# DSH Capability Desk
|
|
2
|
+
|
|
3
|
+
[简体中文](https://github.com/ousiqwq/dsh-capability-desk/blob/main/README.md) | **English**
|
|
4
|
+
|
|
5
|
+
A Skill and MCP manager for DeepSeek Harness. Control available capabilities globally or per workspace, discover configured Skills and MCP servers, and translate names and descriptions using the current model.
|
|
6
|
+
|
|
7
|
+
Open **Settings → Skills & MCP**. Package: `dsh-plugin-workspace-capabilities`.
|
|
8
|
+
|
|
9
|
+
The interface uses DSH native i18n and follows language changes immediately. Chinese and English dictionaries are included; other interface languages use the native English fallback.
|
|
10
|
+
|
|
11
|
+
## Features
|
|
12
|
+
|
|
13
|
+
- **Global and workspace rules:** inherit, enable, or disable individual capabilities. Workspace labels follow sidebar renames in real time.
|
|
14
|
+
- **Discovery:** scan DSH by default; optionally include CC Switch's shared Skills and Codex, Claude, or Cursor configurations.
|
|
15
|
+
- **Skill controls:** manage catalog visibility and content loading. Disabled items remain visible in settings.
|
|
16
|
+
- **MCP controls:** native stdio and Streamable HTTP clients, tools, resources, related prompts, connection status, and tool descriptions.
|
|
17
|
+
- **Capability translations:** choose a target language or follow the interface, translate with the selected model, cache results, skip matching languages, or force an individual translation.
|
|
18
|
+
- **Persistent updates:** apply rules to subsequent calls with revision checks, hot-reload support, light/dark themes, and responsive layouts.
|
|
19
|
+
|
|
20
|
+
### Workspace rules and Skill translations
|
|
21
|
+
|
|
22
|
+
Select a scope, change each capability's rule, and toggle translated text using the bottom-right icon.
|
|
23
|
+
|
|
24
|
+

|
|
25
|
+
|
|
26
|
+
### MCP connections and tool descriptions
|
|
27
|
+
|
|
28
|
+
Inspect sources, connection status, and tool lists, and configure availability for each server.
|
|
29
|
+
|
|
30
|
+

|
|
31
|
+
|
|
32
|
+
## One-command installation
|
|
33
|
+
|
|
34
|
+
Compatible with DeepSeek Harness **0.2.1-rc.3 / 0.2.1-rc.5 / 0.2.2-rc.2** and Node.js **26**.
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
dsh plugin --profile web add dsh-plugin-workspace-capabilities
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Enable the plugin in DSH's plugin manager, restart DSH, refresh the page, and open **Settings → Skills & MCP**.
|
|
41
|
+
|
|
42
|
+
## Usage
|
|
43
|
+
|
|
44
|
+
1. Choose **Global default** to configure defaults and individual capability rules.
|
|
45
|
+
2. Select a workspace and choose **Inherit global / Enable / Disable**.
|
|
46
|
+
3. Enable **Scan other applications’ Skills / MCP (global)** when additional sources are needed.
|
|
47
|
+
4. Select **Approve configuration and enable connection** for newly discovered external MCP servers. Changed configurations require approval again.
|
|
48
|
+
5. Set **Translate into** and choose **Save language**, or leave the target blank to follow the interface.
|
|
49
|
+
6. Choose **Translate this list** to translate in batches. Matching languages stay unchanged; individual translation buttons can force a fresh translation. Use **Retranslate** to refresh a cached result.
|
|
50
|
+
|
|
51
|
+
Subagents use the root session's workspace rules. Changes do not require a new conversation, but cannot retract content already loaded into the model context. Ordinary file and terminal tools continue to follow DSH's own permissions.
|
|
52
|
+
|
|
53
|
+
## Discovery sources
|
|
54
|
+
|
|
55
|
+
Skills come from DSH's native providers. MCP sources include DSH configuration, `~/.dsh/mcp.json`, workspace `.dsh/mcp.json`, and the active tool registry. Example MCP JSON:
|
|
56
|
+
|
|
57
|
+
```json
|
|
58
|
+
{
|
|
59
|
+
"mcpServers": {
|
|
60
|
+
"example": {
|
|
61
|
+
"command": "your-mcp-command",
|
|
62
|
+
"args": []
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Discovery reads source configurations; rules affect DSH. Turning off additional sources removes the associated Skill watchers and stops external MCP connections managed by this plugin. SSE and other applications' private OAuth state are not imported.
|
|
69
|
+
|
|
70
|
+
## Translation and storage
|
|
71
|
+
|
|
72
|
+
Enter a target in **Translate into**, or leave it blank to follow the DSH interface. The preference is persisted through native DSH settings. Source languages are detected automatically. Same-language items retain their original text by default; item translation and retranslation buttons force a fresh translation. The first classification uses the selected model; decisions and translations are cached by target, model, and source content. Opening settings and discovering capabilities do not call a model. Translated labels and descriptions only affect presentation, preserving Skill/MCP identifiers and calls.
|
|
73
|
+
|
|
74
|
+
Translations use capability names and descriptions while retaining original identifiers and Agent calls. Viewing cached text does not trigger translation. Failed retranslations retain the previous result.
|
|
75
|
+
|
|
76
|
+
Data is stored in `$DSH_HOME/workspace-capabilities/`, or `~/.dsh/workspace-capabilities/` by default:
|
|
77
|
+
|
|
78
|
+
| File | Purpose |
|
|
79
|
+
| --- | --- |
|
|
80
|
+
| `policy.json` | Global/workspace rules, discovery options, and configuration approvals |
|
|
81
|
+
| `policy.json.bak` | Previous policy revision |
|
|
82
|
+
| `translations.json` | Translation cache |
|
|
83
|
+
|
|
84
|
+
## Development
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
npm ci --ignore-scripts
|
|
88
|
+
npm run check
|
|
89
|
+
npm test
|
|
90
|
+
npm pack
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
The plugin uses JavaScript ES Modules and needs no build step. See [TESTING.md](https://github.com/ousiqwq/dsh-capability-desk/blob/main/docs/TESTING.md) for browser checks.
|
|
94
|
+
|
|
95
|
+
## License
|
|
96
|
+
|
|
97
|
+
[MIT](https://github.com/ousiqwq/dsh-capability-desk/blob/main/LICENSE) © 2026 osiqwq
|
package/README.md
CHANGED
|
@@ -1,3 +1,97 @@
|
|
|
1
|
-
#
|
|
1
|
+
# DSH Capability Desk
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**简体中文** | [English](https://github.com/ousiqwq/dsh-capability-desk/blob/main/README.en.md)
|
|
4
|
+
|
|
5
|
+
DeepSeek Harness 的 Skill 与 MCP 管理插件。按全局或工作区设置可用能力,发现已配置的 Skill/MCP,并使用当前模型翻译名称和说明。
|
|
6
|
+
|
|
7
|
+
入口:**设置 → Skill 与 MCP** · 插件包:`dsh-plugin-workspace-capabilities`
|
|
8
|
+
|
|
9
|
+
界面接入 DSH 原生 i18n,实时跟随 DSH 的语言设置。内置中英文词典;其他界面语言按 DSH 的规则回退到英文。
|
|
10
|
+
|
|
11
|
+
## 功能
|
|
12
|
+
|
|
13
|
+
- **全局与工作区规则**:为每项能力选择继承、启用或禁用;工作区名称随侧边栏重命名实时更新。
|
|
14
|
+
- **能力发现**:默认扫描 DSH 自身;可选读取 CC Switch 共享 Skill 目录及 Codex、Claude、Cursor 配置。
|
|
15
|
+
- **Skill 控制**:管理能力目录与正文加载;禁用的项目仍保留在设置列表中。
|
|
16
|
+
- **MCP 控制**:支持原生 stdio / Streamable HTTP 客户端,管理工具、资源及相关提示词,查看连接状态和工具说明。
|
|
17
|
+
- **能力翻译**:目标语言可自定义,默认跟随界面;使用当前模型翻译并缓存,支持同语跳过和单项强制翻译。
|
|
18
|
+
- **即时保存**:规则用于后续调用,支持修订检查、热更新、深浅主题与窄屏。
|
|
19
|
+
|
|
20
|
+
### 工作区规则与 Skill 翻译
|
|
21
|
+
|
|
22
|
+
选择规则范围,单独调整能力状态,在卡片右下角切换译文。
|
|
23
|
+
|
|
24
|
+

|
|
25
|
+
|
|
26
|
+
### MCP 连接与工具说明
|
|
27
|
+
|
|
28
|
+
查看来源、连接状态与工具列表,为每个 MCP 设置可用规则。
|
|
29
|
+
|
|
30
|
+

|
|
31
|
+
|
|
32
|
+
## 一键安装
|
|
33
|
+
|
|
34
|
+
兼容 DeepSeek Harness **0.2.1-rc.3 / 0.2.1-rc.5 / 0.2.2-rc.2**,Node.js **26**。
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
dsh plugin --profile web add dsh-plugin-workspace-capabilities
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
在插件管理中启用插件,重启 DSH 并刷新页面,打开 **设置 → Skill 与 MCP**。
|
|
41
|
+
|
|
42
|
+
## 使用
|
|
43
|
+
|
|
44
|
+
1. 选择 **全局默认**,设定新能力默认状态及各项能力的规则。
|
|
45
|
+
2. 选择工作区,设置 **继承全局 / 启用 / 禁用**。
|
|
46
|
+
3. 需要额外来源时,开启 **扫描其他应用的 Skill / MCP**。
|
|
47
|
+
4. 对新发现的外部 MCP 点击 **批准配置并启用连接**;配置发生变化后重新批准。
|
|
48
|
+
5. 在 **翻译成** 设置目标语言并点击 **保存语言**,留空跟随界面。
|
|
49
|
+
6. 点击 **翻译当前列表** 批量翻译,同语默认保留原文;单项翻译按钮可强制翻译,**重新翻译** 会更新缓存。
|
|
50
|
+
|
|
51
|
+
子 Agent 沿用根会话的工作区规则。修改不需要新建对话;已加载到模型上下文中的内容不会被撤回。普通文件与终端工具仍遵循 DSH 自身权限。
|
|
52
|
+
|
|
53
|
+
## 发现来源
|
|
54
|
+
|
|
55
|
+
Skill 由 DSH 的原生提供器发现。MCP 来源包括 DSH 配置、`~/.dsh/mcp.json`、工作区 `.dsh/mcp.json` 与当前工具注册表。MCP JSON 示例:
|
|
56
|
+
|
|
57
|
+
```json
|
|
58
|
+
{
|
|
59
|
+
"mcpServers": {
|
|
60
|
+
"example": {
|
|
61
|
+
"command": "your-mcp-command",
|
|
62
|
+
"args": []
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
扫描读取来源配置;规则只影响 DSH。关闭额外来源会移除相关 Skill 监听,并停止本插件管理的外部 MCP 连接。SSE 与其他应用的私有 OAuth 状态不在导入范围内。
|
|
69
|
+
|
|
70
|
+
## 翻译与存储
|
|
71
|
+
|
|
72
|
+
在“翻译成”填写目标语言,留空跟随 DSH 界面;设置通过 DSH 原生配置接口持久保存。原语言自动判断。同语内容默认保留原文,单项翻译与重新翻译按钮可强制生成译文。首次同语判断使用当前模型,结果和译文均按目标语言、模型及原文内容缓存;打开设置或发现列表不会自动调用模型。名称和说明的译文仅用于显示,Skill/MCP 标识符和调用保持原样。
|
|
73
|
+
|
|
74
|
+
翻译使用能力名称与说明,保留原始标识符和 Agent 调用方式。已有缓存时切换显示不发起新的翻译;重新翻译失败会保留旧译文。
|
|
75
|
+
|
|
76
|
+
数据位于 `$DSH_HOME/workspace-capabilities/`,默认 `~/.dsh/workspace-capabilities/`:
|
|
77
|
+
|
|
78
|
+
| 文件 | 用途 |
|
|
79
|
+
| --- | --- |
|
|
80
|
+
| `policy.json` | 全局与工作区规则、来源选项、配置批准记录 |
|
|
81
|
+
| `policy.json.bak` | 上一版策略 |
|
|
82
|
+
| `translations.json` | 译文缓存 |
|
|
83
|
+
|
|
84
|
+
## 开发
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
npm ci --ignore-scripts
|
|
88
|
+
npm run check
|
|
89
|
+
npm test
|
|
90
|
+
npm pack
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
项目使用 JavaScript ES Modules,无需编译。浏览器检查命令见 [TESTING.md](https://github.com/ousiqwq/dsh-capability-desk/blob/main/docs/TESTING.md)。
|
|
94
|
+
|
|
95
|
+
## 许可证
|
|
96
|
+
|
|
97
|
+
[MIT](https://github.com/ousiqwq/dsh-capability-desk/blob/main/LICENSE) © 2026 osiqwq
|