@max-null/dsh-skill-mcp-center 0.4.1 → 0.4.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/README.md +4 -3
- package/dist/frontmatter.js +4 -2
- package/package.json +5 -3
package/README.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# dsh-skill-mcp-center
|
|
2
2
|
|
|
3
|
+
本插件属于 **`@max-null/*` 插件系列**——这一系列共同构成 **[SSID(思灵 · Seek Soul in Darkness)](https://github.com/Max-Null/seek-soul-in-darkness)** 桌面体验。SSID 是整合它们的盒:`dsh-capture` · `dsh-chat-rail` · `dsh-chinese-thinking` · `dsh-draft-polish` · `dsh-guardian` · `dsh-habit` · `dsh-header-unify` · `dsh-memory` · `dsh-node-appearance` · `dsh-plugin-center` · `dsh-skill-mcp-center` · `dsh-ssid-panels` · `dsh-ssid-zh-ui`。
|
|
4
|
+
|
|
5
|
+
This plugin belongs to the **`@max-null/*` family** — a set of plugins that together form the **[SSID (思灵 · Seek Soul in Darkness)](https://github.com/Max-Null/seek-soul-in-darkness)** desktop experience.
|
|
6
|
+
|
|
3
7
|
Skill & MCP management center for [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) (`dsh`) — manage skills and MCP servers in Settings, with live MCP status in the sidebar.
|
|
4
8
|
|
|
5
9
|
Skill 与 MCP 管理中心:在设置里管理 skills 与 MCP 服务器,右侧边栏查看 MCP 实时状态。
|
|
@@ -34,6 +38,3 @@ pnpm build # tsc (host) + esbuild (browser bundle)
|
|
|
34
38
|
|
|
35
39
|
## SSID 系列
|
|
36
40
|
|
|
37
|
-
本插件属于 **`@max-null/*` 插件系列**——这一系列共同构成 **[SSID(思灵 · Seek Soul in Darkness)](https://github.com/Max-Null/seek-soul-in-darkness)** 桌面体验。SSID 是整合它们的盒:`dsh-chat-rail` · `dsh-chinese-thinking` · `dsh-draft-polish` · `dsh-guardian` · `dsh-habit` · `dsh-header-unify` · `dsh-memory` · `dsh-node-appearance` · `dsh-plugin-center` · `dsh-skill-mcp-center` · `dsh-ssid-panels` · `dsh-ssid-zh-ui`。
|
|
38
|
-
|
|
39
|
-
This plugin belongs to the **`@max-null/*` family** — a set of plugins that together form the **[SSID (思灵 · Seek Soul in Darkness)](https://github.com/Max-Null/seek-soul-in-darkness)** desktop experience.
|
package/dist/frontmatter.js
CHANGED
|
@@ -6,16 +6,18 @@
|
|
|
6
6
|
import { load } from 'js-yaml';
|
|
7
7
|
/** Toggle `disable-model-invocation` in SKILL.md text; creates frontmatter if absent. */
|
|
8
8
|
export function setDisableModelInvocation(text, disabled) {
|
|
9
|
+
const eol = text.includes('\r\n') ? '\r\n' : '\n';
|
|
9
10
|
const match = /^---\r?\n([\s\S]*?)\r?\n---/.exec(text);
|
|
10
11
|
if (match === null) {
|
|
11
|
-
return
|
|
12
|
+
return `---${eol}disable-model-invocation: ${disabled}${eol}---${eol}${eol}${text}`;
|
|
12
13
|
}
|
|
13
14
|
const full = match[0];
|
|
14
15
|
const body = match[1];
|
|
15
16
|
const line = /^(\s*)disable-model-invocation\s*:.*$/m;
|
|
16
17
|
const next = line.test(body)
|
|
17
18
|
? body.replace(line, `$1disable-model-invocation: ${disabled}`)
|
|
18
|
-
|
|
19
|
+
// 追加分支沿用文件现有行尾(CRLF 文件不混入 LF,防止混合行尾扩散)。
|
|
20
|
+
: body.replace(/\s*$/, `${eol}disable-model-invocation: ${disabled}`);
|
|
19
21
|
return text.replace(full, full.replace(body, next));
|
|
20
22
|
}
|
|
21
23
|
/** Parse a SKILL.md frontmatter block; null when absent or missing a name. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@max-null/dsh-skill-mcp-center",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"description": "Skill & MCP management center for DeepSeek Harness — manage skills and MCP servers in Settings, live MCP status in the sidebar",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -56,7 +56,8 @@
|
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"build": "tsc -p tsconfig.json && node build-client.mjs",
|
|
59
|
-
"typecheck": "tsc --noEmit -p tsconfig.json"
|
|
59
|
+
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
60
|
+
"test": "vitest run"
|
|
60
61
|
},
|
|
61
62
|
"dependencies": {
|
|
62
63
|
"js-yaml": "^4.1.0"
|
|
@@ -81,6 +82,7 @@
|
|
|
81
82
|
"@types/react": "~18.3.1",
|
|
82
83
|
"esbuild": "^0.24.0",
|
|
83
84
|
"react": "^18.2.0",
|
|
84
|
-
"typescript": "^5.5.0"
|
|
85
|
+
"typescript": "^5.5.0",
|
|
86
|
+
"vitest": "^4.1.11"
|
|
85
87
|
}
|
|
86
88
|
}
|