@omdp/dsh-connector 0.1.0 → 0.1.1
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/README.md +18 -0
- package/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -38,6 +38,24 @@ pnpm install --lockfile-only --offline # 按 link 依赖重写 lockfile
|
|
|
38
38
|
|
|
39
39
|
> 安装前请先**备份** `profiles/web/cordis.patch.yml`。本插件会改写其中的 MCP 块。
|
|
40
40
|
|
|
41
|
+
### 方式一(推荐):从 npm 安装
|
|
42
|
+
|
|
43
|
+
插件已发布到 npm(GitHub Actions 自动发包,见仓库根 `docs/npm-publish.md`)。
|
|
44
|
+
在 profile 的 `package.json` 加入依赖后 `pnpm install`:
|
|
45
|
+
|
|
46
|
+
```jsonc
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"@omdp/dsh-connector": "^0.1.0"
|
|
49
|
+
}
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
```sh
|
|
53
|
+
cd ~/.dsh/profiles/web
|
|
54
|
+
pnpm install
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
更新:`pnpm update @omdp/dsh-connector`(标准 npm 语义,无 git `#path:` 问题)。
|
|
58
|
+
|
|
41
59
|
### 备选:从 GitHub 远程安装
|
|
42
60
|
|
|
43
61
|
不想本地 checkout 时,可直接从仓库装(`#path:` 指向子目录):
|
package/index.js
CHANGED
|
@@ -544,7 +544,7 @@ export function apply(ctx) {
|
|
|
544
544
|
}
|
|
545
545
|
const found = findMcpBlock(text)
|
|
546
546
|
const servers = found ? parseMcpServers(found.blockText) : []
|
|
547
|
-
return json(res, 200, { servers, exists: true })
|
|
547
|
+
return json(res, 200, { servers, exists: true, version: '0.1.1' })
|
|
548
548
|
}
|
|
549
549
|
|
|
550
550
|
// POST /api/mcp — replace server entries. Preserve env/!!js from the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omdp/dsh-connector",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Unified DeepSeek Harness connector: edit MCP servers (cordis.patch.yml) and user skills (~/.dsh/skills) from one Web UI settings page.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|