@jidekaixin2dian/dsh-toolgate 0.1.6 → 0.1.8
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/CHANGELOG.md +22 -0
- package/README.en.md +5 -3
- package/README.md +5 -3
- package/lib/client.js +7 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.8 — 2026-11-06
|
|
4
|
+
|
|
5
|
+
- 默认固定宿主升级到 DSH rc.5,兼容验证扩展到 **0.2.2-rc.1**(2026-11-04 发布;
|
|
6
|
+
其开发者侧变更——统一右键菜单、设置页图标槽、PTC/工具链重构——均不触及本
|
|
7
|
+
插件的绑定面与行为);保留 rc.2–rc.4 回归。
|
|
8
|
+
- The default pinned host moves to DSH rc.5 and verified coverage extends to
|
|
9
|
+
**0.2.2-rc.1** (released 2026-11-04; its developer-facing changes — unified
|
|
10
|
+
context menu, settings icon slot, PTC/tooling restructuring — do not touch
|
|
11
|
+
this plugin's bound surface or behavior). rc.2–rc.4 regressions are retained.
|
|
12
|
+
- `scripts/host.mjs` 按条目携带完整 tag(0.2.2 行不再复用 `dsh-v0.2.1-` 前缀拼接),
|
|
13
|
+
宿主目录缺失时给出 setup 提示而非 TypeError。
|
|
14
|
+
- `scripts/host.mjs` now carries a full tag per entry (the 0.2.2 line no longer
|
|
15
|
+
fits the `dsh-v0.2.1-<version>` prefix scheme) and reports the setup step when
|
|
16
|
+
the host checkout is missing instead of crashing.
|
|
17
|
+
|
|
18
|
+
## 0.1.7 — 2026-11-02
|
|
19
|
+
|
|
20
|
+
- 修复设置页空白:0.1.6 新增的「项目与反馈」直接读取 `ctx.locale`,而插件未声明 `locale` 服务;较新的宿主对该读取直接抛错(`cannot get property "locale" without inject`),整个 `settings.section` 条目被错误边界吞掉,点进「工具闸门」只剩空白。
|
|
21
|
+
- 在 `inject` 中声明 `locale`,并将该读取包在 `try/catch` 里回退到 `navigator.language`,与其他可选服务读取保持一致。
|
|
22
|
+
- Fix blank settings page: the 0.1.6 project/feedback block read `ctx.locale` without declaring the service. Newer hosts throw on that read, the whole `settings.section` entry is swallowed by the error boundary, and the Toolgate page renders empty. `locale` is now declared and the read falls back to `navigator.language`.
|
|
23
|
+
- 新增 3 项客户端渲染回归测试,覆盖「宿主拒绝 locale 服务」时设置页仍渲染,以及中英文文案跟随语言。
|
|
24
|
+
|
|
3
25
|
## 0.1.6 — 2026-10-31
|
|
4
26
|
|
|
5
27
|
- 设置页新增「项目与反馈」入口,在预算、MCP、Skills 页面均可打开对应 GitHub 项目或新建反馈;页面加载失败时也保留入口。
|
package/README.en.md
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
**Bring only the tools you need into the next prompt.**
|
|
4
4
|
|
|
5
|
-
[中文](README.md) · [npm](https://www.npmjs.com/package/@jidekaixin2dian/dsh-toolgate/v/0.1.
|
|
5
|
+
[中文](README.md) · [npm](https://www.npmjs.com/package/@jidekaixin2dian/dsh-toolgate/v/0.1.7) · [Marketplace](https://awesome-dsh-plugin.com/p/jidekaixin2dian/dsh-toolgate/) · [Download](https://github.com/jidekaixin2dian/dsh-toolgate/releases/latest) · [Changelog](CHANGELOG.md)
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Toolgate is an MCP server, skill and context-budget management plugin for DeepSeek Harness (DSH). Have many MCP servers installed but only a few relevant to the task? Hide tool definitions by server in one settings page and restore them when needed; configuration stays in place and MCP processes keep running.
|
|
8
8
|
|
|
9
9
|

|
|
10
10
|
|
|
@@ -16,6 +16,8 @@ Many MCP servers installed, but only a few relevant to the task? Toolgate brings
|
|
|
16
16
|
| MCP servers | Add, edit, enable, disable and remove stdio or streamable-http servers |
|
|
17
17
|
| Skills | Search, create and toggle by Session workspace; move eligible local skills to trash |
|
|
18
18
|
|
|
19
|
+
For example, hide MCP tool groups unrelated to a coding task to change the tool definitions supplied with the next prompt, then restore them when needed. The page estimates tokens from schema and description length; the estimate is not a measurement of cost or speed. Settings-page budgets apply to all sessions and subagents; permitted session overrides affect only that session.
|
|
20
|
+
|
|
19
21
|
## Downloads
|
|
20
22
|
|
|
21
23
|
| GitHub release assets · all releases | npm 0.1.5 · past 7 days |
|
|
@@ -26,7 +28,7 @@ Snapshot: **2026-10-29**. GitHub counts release-asset requests, including checks
|
|
|
26
28
|
|
|
27
29
|
## Install and update
|
|
28
30
|
|
|
29
|
-
Requires **DSH >=0.2.1-rc.2 and Node >=24**. CI verifies DSH rc.2 / rc.3 / rc.4.
|
|
31
|
+
Requires **DSH >=0.2.1-rc.2 and Node >=24**. CI verifies DSH rc.2 / rc.3 / rc.4 / rc.5 / 0.2.2-rc.1.
|
|
30
32
|
|
|
31
33
|
Search for **dsh-toolgate**, author **jidekaixin2dian**, in the marketplace. Both npm and GitHub sources support version checks. Once the catalog recognizes the npm package it prefers npm; existing users can check under installed plugins. Catalog and registry data may take time to refresh.
|
|
32
34
|
|
package/README.md
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
**让下一轮 prompt 只带需要的工具。**
|
|
4
4
|
|
|
5
|
-
[English](README.en.md) · [npm](https://www.npmjs.com/package/@jidekaixin2dian/dsh-toolgate/v/0.1.
|
|
5
|
+
[English](README.en.md) · [npm](https://www.npmjs.com/package/@jidekaixin2dian/dsh-toolgate/v/0.1.7) · [插件市场](https://awesome-dsh-plugin.com/p/jidekaixin2dian/dsh-toolgate/) · [下载](https://github.com/jidekaixin2dian/dsh-toolgate/releases/latest) · [更新记录](CHANGELOG.md)
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Toolgate 是 DeepSeek Harness(DSH)的 MCP、Skill 和上下文预算管理插件。装了很多 MCP,却只有少数工具与当前任务有关?在同一个设置页按服务器隐藏不需要的工具定义,需要时再恢复;配置保留,MCP 进程继续运行。
|
|
8
8
|
|
|
9
9
|

|
|
10
10
|
|
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
| MCP 服务器 | 新增、编辑、启停、删除服务器;支持 stdio 与 streamable-http |
|
|
17
17
|
| Skills | 按会话工作区搜索、新建、启停;可删除的本地 Skill 移到回收目录 |
|
|
18
18
|
|
|
19
|
+
例如,可以在写代码时隐藏与任务无关的 MCP 工具组,下一轮再交给模型的工具定义就会变化;需要时恢复。页面按工具 schema 和描述长度估算 token,占用与实际费用或速度不是同一指标。设置页预算作用于所有会话和子代理,允许的会话覆盖只影响当前会话。
|
|
20
|
+
|
|
19
21
|
## 下载情况
|
|
20
22
|
|
|
21
23
|
| GitHub Release 资源 · 历史累计 | npm 0.1.5 · 近 7 日 |
|
|
@@ -26,7 +28,7 @@
|
|
|
26
28
|
|
|
27
29
|
## 安装与更新
|
|
28
30
|
|
|
29
|
-
需要 **DSH >=0.2.1-rc.2、Node >=24**;持续验证 DSH rc.2 / rc.3 / rc.4。
|
|
31
|
+
需要 **DSH >=0.2.1-rc.2、Node >=24**;持续验证 DSH rc.2 / rc.3 / rc.4 / rc.5 / 0.2.2-rc.1。
|
|
30
32
|
|
|
31
33
|
在插件市场搜索 **dsh-toolgate**,确认作者为 **jidekaixin2dian**。npm 与 GitHub 来源都支持版本检查;市场识别 npm 包后优先使用 npm,可在「已安装」中检查更新。目录与 registry 数据可能有同步延迟。
|
|
32
34
|
|
package/lib/client.js
CHANGED
|
@@ -371,7 +371,12 @@ const factory = (require) => {
|
|
|
371
371
|
}
|
|
372
372
|
|
|
373
373
|
function ProjectLinks() {
|
|
374
|
-
|
|
374
|
+
// A direct read of an undeclared service throws on newer hosts
|
|
375
|
+
// ("cannot get property \"locale\" without inject"), and this component
|
|
376
|
+
// shares the settings section with the main page: one throw blanks both.
|
|
377
|
+
let language
|
|
378
|
+
try { language = pageCtx?.locale?.language?.getSnapshot?.() } catch { language = undefined }
|
|
379
|
+
language = language || (typeof navigator === 'undefined' ? 'zh' : navigator.language)
|
|
375
380
|
const zh = /^zh\b/i.test(language)
|
|
376
381
|
const title = zh ? '项目与反馈' : 'Project and feedback'
|
|
377
382
|
const icon = path => React.createElement('svg', { viewBox: '0 0 24 24', fill: 'none', stroke: 'currentColor', strokeWidth: 1.8, strokeLinecap: 'round', strokeLinejoin: 'round', 'aria-hidden': true }, React.createElement('path', { d: path }))
|
|
@@ -513,7 +518,7 @@ const factory = (require) => {
|
|
|
513
518
|
|
|
514
519
|
module.exports = {
|
|
515
520
|
name: 'dsh-toolgate-client',
|
|
516
|
-
inject: ['timer'],
|
|
521
|
+
inject: ['timer', 'locale'],
|
|
517
522
|
apply(ctx) {
|
|
518
523
|
pageCtx = ctx
|
|
519
524
|
ensureCss()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jidekaixin2dian/dsh-toolgate",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "Manage MCP servers and skills in one place; hide or restore groups of tool definitions to control what enters the next prompt.",
|
|
5
5
|
"icon": "icon.svg",
|
|
6
6
|
"type": "module",
|