@dotdance/dsh-skill-scope 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.en.md +1 -1
- package/README.md +1 -1
- package/lib/client.js +62 -62
- package/package.json +9 -9
package/README.en.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
[](https://www.npmjs.com/package/@dotdance/dsh-skill-scope)
|
|
7
7
|
[](https://www.npmjs.com/package/@dotdance/dsh-skill-scope)
|
|
8
8
|
[](https://github.com/dotdance/dsh-skill-scope)
|
|
9
|
-
[](#installation)
|
|
10
10
|

|
|
11
11
|
|
|
12
12
|
**Lighten the load on your agent: one-click toggles for skills and MCP, so the context holds only what this turn actually needs. Skills and MCP servers you switch off are no longer injected into the model context — cleaner, and lighter on tokens.**
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
[](https://www.npmjs.com/package/@dotdance/dsh-skill-scope)
|
|
7
7
|
[](https://www.npmjs.com/package/@dotdance/dsh-skill-scope)
|
|
8
8
|
[](https://github.com/dotdance/dsh-skill-scope)
|
|
9
|
-
[](#安装)
|
|
10
10
|

|
|
11
11
|
|
|
12
12
|
**给你的 Agent 减负:Skill 与 MCP 一键启停,让上下文只装这一轮真正要用的能力。关掉的 skill / MCP 不再进入模型上下文,更干净,更省 token。**
|
package/lib/client.js
CHANGED
|
@@ -137,8 +137,8 @@ window.__ModuleLoader__.load({
|
|
|
137
137
|
return `网络请求失败:${String(error)}`;
|
|
138
138
|
}
|
|
139
139
|
//#endregion
|
|
140
|
-
//#region \0dsh-css-module:/
|
|
141
|
-
const css = ".
|
|
140
|
+
//#region \0dsh-css-module:/home/runner/work/dsh-skill-scope/dsh-skill-scope/src/client/styles.module.css?dsh-css-module
|
|
141
|
+
const css = ".Jg-IJa_panel{box-sizing:border-box;flex-direction:column;gap:16px;height:100%;padding:20px 24px 32px;display:flex;overflow-y:auto}.Jg-IJa_overlay{pointer-events:auto;background:var(--dsw-alias-bg-mask-1,#00000073);z-index:60;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.Jg-IJa_modal{z-index:1;background:var(--dsw-alias-bg-layer-1,Canvas);width:min(760px,100vw - 48px);max-width:calc(100vw - 48px);height:min(680px,100vh - 48px);color:var(--dsw-alias-label-primary,CanvasText);border-radius:24px;flex-direction:column;display:flex;position:relative;overflow:hidden;box-shadow:0 24px 64px #00000052}.Jg-IJa_panelHead{flex-direction:column;gap:16px;padding:24px 24px 16px;display:flex}.Jg-IJa_header{justify-content:space-between;align-items:center;gap:12px;display:flex}.Jg-IJa_title{margin:0;font-size:17px;font-weight:600;line-height:1.3}.Jg-IJa_intro{color:var(--dsw-alias-label-secondary,currentColor);margin:0;font-size:13px;line-height:1.55}.Jg-IJa_introWarn{color:var(--dsw-alias-state-warn-primary,currentColor);font-weight:600}.Jg-IJa_closeButton{width:28px;height:28px;color:var(--dsw-alias-label-secondary,currentColor);cursor:pointer;background:0 0;border:0;border-radius:8px;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.Jg-IJa_closeButton:hover{background:var(--dsw-alias-interactive-bg-hover,transparent);color:var(--dsw-alias-label-primary,currentColor)}.Jg-IJa_searchRow{align-items:center;display:flex;position:relative}.Jg-IJa_searchIcon{color:var(--dsw-alias-label-tertiary,currentColor);pointer-events:none;display:inline-flex;position:absolute;left:12px}.Jg-IJa_search{border:1px solid var(--dsw-alias-border-l2,currentColor);background:var(--dsw-alias-bg-layer-3,transparent);width:100%;color:var(--dsw-alias-label-primary,currentColor);font:inherit;border-radius:10px;padding:9px 12px 9px 36px;font-size:13px}.Jg-IJa_search::placeholder{color:var(--dsw-alias-label-tertiary,currentColor)}.Jg-IJa_search:focus-visible{outline:2px solid var(--dsw-alias-brand-primary,currentColor);outline-offset:1px}.Jg-IJa_panelBody{flex:1;min-height:0;padding:4px 24px 24px;overflow-y:auto}.Jg-IJa_body{flex-direction:column;gap:14px;width:100%;display:flex}.Jg-IJa_section{flex-direction:column;gap:10px;min-width:0;display:flex}.Jg-IJa_sectionHead{align-items:center;gap:8px;min-width:0;display:flex}.Jg-IJa_sectionToggle{min-width:0;color:var(--dsw-alias-label-primary,currentColor);font:inherit;cursor:pointer;text-align:left;background:0 0;border:0;flex:1;align-items:center;gap:8px;padding:2px 0;display:flex}.Jg-IJa_sectionTitle{margin:0;font-size:14px;font-weight:600}.Jg-IJa_sectionCount{color:var(--dsw-alias-label-secondary,currentColor);font-size:13px}.Jg-IJa_sectionChevron{color:var(--dsw-alias-label-secondary,currentColor);margin-left:auto;transition:transform .14s;display:inline-flex}.Jg-IJa_sectionChevronOpen{transform:rotate(180deg)}.Jg-IJa_cards{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:12px;margin:0;padding:0;list-style:none;display:grid}.Jg-IJa_groups{flex-direction:column;gap:14px;display:flex}.Jg-IJa_group{border-left:2px solid var(--dsw-alias-border-1,#00000014);flex-direction:column;gap:8px;min-width:0;padding-left:10px;display:flex}.Jg-IJa_groupToggle{min-width:0;color:var(--dsw-alias-label-secondary,currentColor);font:inherit;cursor:pointer;text-align:left;background:0 0;border:0;align-items:center;gap:6px;padding:2px 0;font-size:13px;font-weight:600;display:flex}.Jg-IJa_groupToggle:hover{color:var(--dsw-alias-label-primary,currentColor)}.Jg-IJa_groupChevron{flex:none;transition:transform .14s;display:inline-flex}.Jg-IJa_groupChevron[data-open=true]{transform:rotate(180deg)}.Jg-IJa_groupTitle{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.Jg-IJa_groupCount{color:var(--dsw-alias-label-tertiary,var(--dsw-alias-label-secondary,currentColor));font-variant-numeric:tabular-nums;flex:none;font-weight:400}@media (width<=640px){.Jg-IJa_cards{grid-template-columns:minmax(0,1fr)}}.Jg-IJa_card{border:1px solid var(--dsw-alias-border-l2,currentColor);background:var(--dsw-alias-bg-layer-3,transparent);border-radius:10px;min-width:0;overflow:hidden}.Jg-IJa_cardHead{align-items:center;gap:10px;min-width:0;padding:11px 12px;display:flex}.Jg-IJa_cardMain{flex:1;align-items:center;gap:10px;min-width:0;display:flex}.Jg-IJa_cardName{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-size:13px;font-weight:600;overflow:hidden}.Jg-IJa_overridden{align-items:center;display:inline-flex}.Jg-IJa_cardDisabled .Jg-IJa_cardName{color:var(--dsw-alias-label-secondary,currentColor)}.Jg-IJa_cardTail{flex:0 3 auto;align-items:center;gap:6px;min-width:0;display:inline-flex}.Jg-IJa_expandButton{width:20px;height:20px;color:var(--dsw-alias-label-secondary,currentColor);cursor:pointer;background:0 0;border:0;border-radius:6px;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.Jg-IJa_expandButton:hover{background:var(--dsw-alias-interactive-bg-hover,transparent)}.Jg-IJa_expandChevron{transition:transform .14s;display:inline-flex}.Jg-IJa_expandChevronOpen{transform:rotate(180deg)}.Jg-IJa_cardBody{border-top:1px solid var(--dsw-alias-border-l2,currentColor);color:var(--dsw-alias-label-secondary,currentColor);padding:10px;font-size:12px;line-height:1.55}.Jg-IJa_cardDescription{overflow-wrap:anywhere;margin:0}.Jg-IJa_detailRow{gap:10px;margin-top:8px;display:flex}.Jg-IJa_detailKey{width:56px;color:var(--dsw-alias-label-secondary,currentColor);flex:none}.Jg-IJa_detailValue{min-width:0;color:var(--dsw-alias-label-primary,currentColor);overflow-wrap:anywhere}.Jg-IJa_detailOrigin{min-width:0;color:var(--dsw-alias-label-primary,currentColor);overflow-wrap:anywhere;word-break:break-all;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;line-height:1.5}.Jg-IJa_toolList{min-width:0;max-height:120px;margin:0;padding:0;list-style:none;overflow-y:auto}.Jg-IJa_toolName{color:var(--dsw-alias-label-primary,currentColor);overflow-wrap:anywhere;word-break:break-all;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.Jg-IJa_switch{cursor:pointer;background:0 0;border:0;border-radius:999px;flex:none;align-items:center;padding:0;display:inline-flex}.Jg-IJa_switch:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary,currentColor);outline-offset:2px}.Jg-IJa_switchTrack{background:var(--dsw-alias-border-l2,currentColor);border-radius:999px;width:28px;height:16px;transition:background-color .12s ease-in-out;display:inline-block;position:relative}.Jg-IJa_switchOn .Jg-IJa_switchTrack{background:var(--dsw-alias-state-business-primary,currentColor)}.Jg-IJa_switchThumb{background:var(--dsw-alias-bg-layer-1,currentColor);border-radius:50%;width:12px;height:12px;transition:transform .12s ease-in-out;position:absolute;top:2px;left:2px}.Jg-IJa_switchOn .Jg-IJa_switchThumb{transform:translate(12px)}.Jg-IJa_switch:disabled{cursor:not-allowed;opacity:.5}.Jg-IJa_alert{border:1px solid var(--dsw-alias-state-error-primary,currentColor);color:var(--dsw-alias-state-error-primary,currentColor);border-radius:8px;justify-content:space-between;align-items:center;gap:8px;padding:8px 10px;font-size:12px;display:flex}.Jg-IJa_modeRow{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.Jg-IJa_modeButton{border:1px solid var(--dsw-alias-border-l2,currentColor);color:var(--dsw-alias-label-secondary,currentColor);font:inherit;cursor:pointer;background:0 0;border-radius:999px;padding:4px 12px;font-size:12px}.Jg-IJa_modeButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover,transparent)}.Jg-IJa_modeButtonActive{border-color:var(--dsw-alias-brand-primary,currentColor);background:var(--dsw-alias-interactive-bg-active,transparent);color:var(--dsw-alias-brand-primary,currentColor)}.Jg-IJa_modeButton:disabled{cursor:not-allowed;opacity:.5}.Jg-IJa_modeRowTrailing{align-items:center;margin-left:auto;display:flex}.Jg-IJa_toggleRow{color:var(--dsw-alias-label-secondary,currentColor);align-items:center;gap:8px;font-size:12px;display:flex}.Jg-IJa_toggleLabel{cursor:default;user-select:none}.Jg-IJa_button{border:1px solid var(--dsw-alias-border-l2,currentColor);color:var(--dsw-alias-label-secondary,currentColor);font:inherit;cursor:pointer;background:0 0;border-radius:8px;padding:4px 10px;font-size:12px}.Jg-IJa_button:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover,transparent)}.Jg-IJa_button:disabled{cursor:not-allowed;opacity:.5}.Jg-IJa_empty{color:var(--dsw-alias-label-secondary,currentColor);padding:4px 2px;font-size:12px}.Jg-IJa_chip{border:1px solid var(--dsw-alias-border-l2,currentColor);color:var(--dsw-alias-label-secondary,currentColor);font:inherit;cursor:pointer;background:0 0;border-radius:999px;align-items:center;gap:5px;padding:3px 9px;font-size:12px;display:inline-flex}.Jg-IJa_chip:hover{background:var(--dsw-alias-interactive-bg-hover,transparent)}";
|
|
142
142
|
const tagId = "@dotdance/dsh-skill-scope/styles.module.css";
|
|
143
143
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === null) {
|
|
144
144
|
const tag = document.createElement("style");
|
|
@@ -148,66 +148,66 @@ window.__ModuleLoader__.load({
|
|
|
148
148
|
document.head.appendChild(tag);
|
|
149
149
|
}
|
|
150
150
|
var styles_module_default = {
|
|
151
|
-
"
|
|
152
|
-
"
|
|
153
|
-
"
|
|
154
|
-
"
|
|
155
|
-
"
|
|
156
|
-
"
|
|
157
|
-
"
|
|
158
|
-
"
|
|
159
|
-
"searchRow": "
|
|
160
|
-
"
|
|
161
|
-
"
|
|
162
|
-
"section": "
|
|
163
|
-
"
|
|
164
|
-
"
|
|
165
|
-
"
|
|
166
|
-
"
|
|
167
|
-
"
|
|
168
|
-
"
|
|
169
|
-
"
|
|
170
|
-
"
|
|
171
|
-
"
|
|
172
|
-
"
|
|
173
|
-
"
|
|
174
|
-
"
|
|
175
|
-
"
|
|
176
|
-
"
|
|
177
|
-
"
|
|
178
|
-
"
|
|
179
|
-
"
|
|
180
|
-
"
|
|
181
|
-
"
|
|
182
|
-
"
|
|
183
|
-
"
|
|
184
|
-
"
|
|
185
|
-
"alert": "
|
|
186
|
-
"
|
|
187
|
-
"
|
|
188
|
-
"
|
|
189
|
-
"
|
|
190
|
-
"
|
|
191
|
-
"
|
|
192
|
-
"
|
|
193
|
-
"
|
|
194
|
-
"
|
|
195
|
-
"
|
|
196
|
-
"
|
|
197
|
-
"groupToggle": "
|
|
198
|
-
"
|
|
199
|
-
"
|
|
200
|
-
"
|
|
201
|
-
"
|
|
202
|
-
"
|
|
203
|
-
"
|
|
204
|
-
"
|
|
205
|
-
"
|
|
206
|
-
"
|
|
207
|
-
"
|
|
208
|
-
"
|
|
209
|
-
"
|
|
210
|
-
"
|
|
151
|
+
"cardMain": "Jg-IJa_cardMain",
|
|
152
|
+
"cardDisabled": "Jg-IJa_cardDisabled",
|
|
153
|
+
"chip": "Jg-IJa_chip",
|
|
154
|
+
"switchThumb": "Jg-IJa_switchThumb",
|
|
155
|
+
"intro": "Jg-IJa_intro",
|
|
156
|
+
"sectionHead": "Jg-IJa_sectionHead",
|
|
157
|
+
"cards": "Jg-IJa_cards",
|
|
158
|
+
"cardName": "Jg-IJa_cardName",
|
|
159
|
+
"searchRow": "Jg-IJa_searchRow",
|
|
160
|
+
"modeRowTrailing": "Jg-IJa_modeRowTrailing",
|
|
161
|
+
"detailValue": "Jg-IJa_detailValue",
|
|
162
|
+
"section": "Jg-IJa_section",
|
|
163
|
+
"sectionChevron": "Jg-IJa_sectionChevron",
|
|
164
|
+
"search": "Jg-IJa_search",
|
|
165
|
+
"cardDescription": "Jg-IJa_cardDescription",
|
|
166
|
+
"modeRow": "Jg-IJa_modeRow",
|
|
167
|
+
"expandChevronOpen": "Jg-IJa_expandChevronOpen",
|
|
168
|
+
"sectionChevronOpen": "Jg-IJa_sectionChevronOpen",
|
|
169
|
+
"sectionTitle": "Jg-IJa_sectionTitle",
|
|
170
|
+
"group": "Jg-IJa_group",
|
|
171
|
+
"switchOn": "Jg-IJa_switchOn",
|
|
172
|
+
"toggleRow": "Jg-IJa_toggleRow",
|
|
173
|
+
"panel": "Jg-IJa_panel",
|
|
174
|
+
"switchTrack": "Jg-IJa_switchTrack",
|
|
175
|
+
"panelBody": "Jg-IJa_panelBody",
|
|
176
|
+
"closeButton": "Jg-IJa_closeButton",
|
|
177
|
+
"groups": "Jg-IJa_groups",
|
|
178
|
+
"groupTitle": "Jg-IJa_groupTitle",
|
|
179
|
+
"detailRow": "Jg-IJa_detailRow",
|
|
180
|
+
"expandChevron": "Jg-IJa_expandChevron",
|
|
181
|
+
"header": "Jg-IJa_header",
|
|
182
|
+
"searchIcon": "Jg-IJa_searchIcon",
|
|
183
|
+
"cardBody": "Jg-IJa_cardBody",
|
|
184
|
+
"overridden": "Jg-IJa_overridden",
|
|
185
|
+
"alert": "Jg-IJa_alert",
|
|
186
|
+
"empty": "Jg-IJa_empty",
|
|
187
|
+
"panelHead": "Jg-IJa_panelHead",
|
|
188
|
+
"body": "Jg-IJa_body",
|
|
189
|
+
"overlay": "Jg-IJa_overlay",
|
|
190
|
+
"sectionCount": "Jg-IJa_sectionCount",
|
|
191
|
+
"sectionToggle": "Jg-IJa_sectionToggle",
|
|
192
|
+
"detailKey": "Jg-IJa_detailKey",
|
|
193
|
+
"toggleLabel": "Jg-IJa_toggleLabel",
|
|
194
|
+
"toolName": "Jg-IJa_toolName",
|
|
195
|
+
"cardTail": "Jg-IJa_cardTail",
|
|
196
|
+
"cardHead": "Jg-IJa_cardHead",
|
|
197
|
+
"groupToggle": "Jg-IJa_groupToggle",
|
|
198
|
+
"introWarn": "Jg-IJa_introWarn",
|
|
199
|
+
"groupChevron": "Jg-IJa_groupChevron",
|
|
200
|
+
"modeButton": "Jg-IJa_modeButton",
|
|
201
|
+
"button": "Jg-IJa_button",
|
|
202
|
+
"modal": "Jg-IJa_modal",
|
|
203
|
+
"expandButton": "Jg-IJa_expandButton",
|
|
204
|
+
"toolList": "Jg-IJa_toolList",
|
|
205
|
+
"detailOrigin": "Jg-IJa_detailOrigin",
|
|
206
|
+
"title": "Jg-IJa_title",
|
|
207
|
+
"groupCount": "Jg-IJa_groupCount",
|
|
208
|
+
"card": "Jg-IJa_card",
|
|
209
|
+
"switch": "Jg-IJa_switch",
|
|
210
|
+
"modeButtonActive": "Jg-IJa_modeButtonActive"
|
|
211
211
|
};
|
|
212
212
|
//#endregion
|
|
213
213
|
//#region src/client/parts.tsx
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dotdance/dsh-skill-scope",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"description": "Skill and MCP visibility manager for DeepSeek Harness: the global layer sets a default, and each workspace can override any name both ways, with a sidebar panel and an input-card entry.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
],
|
|
16
16
|
"engines": {
|
|
17
17
|
"node": "^22.19.0 || >=24.0.0",
|
|
18
|
-
"dsh": ">=0.2.2-rc.1 <0.
|
|
18
|
+
"dsh": ">=0.2.2-rc.1 <0.4.0-0"
|
|
19
19
|
},
|
|
20
20
|
"scripts": {
|
|
21
21
|
"build": "tsdown",
|
|
@@ -38,17 +38,17 @@
|
|
|
38
38
|
"url": "git+https://github.com/dotdance/dsh-skill-scope.git"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@deepseek-ai/dsh-atomic-write": ">=0.2.2-rc.1 <0.
|
|
42
|
-
"@deepseek-ai/dsh-home-paths": ">=0.2.2-rc.1 <0.
|
|
41
|
+
"@deepseek-ai/dsh-atomic-write": ">=0.2.2-rc.1 <0.4.0-0",
|
|
42
|
+
"@deepseek-ai/dsh-home-paths": ">=0.2.2-rc.1 <0.4.0-0",
|
|
43
43
|
"zod": "^4.6.6"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"@deepseek-ai/cordis": "4.0.6-alpha.1 || 4.1.0",
|
|
47
|
-
"@deepseek-ai/dsh-agent": ">=0.2.2-rc.1 <0.
|
|
48
|
-
"@deepseek-ai/dsh-client-connection": ">=0.2.2-rc.1 <0.
|
|
49
|
-
"@deepseek-ai/dsh-host-webserver": ">=0.2.2-rc.1 <0.
|
|
50
|
-
"@deepseek-ai/dsh-skill": ">=0.2.2-rc.1 <0.
|
|
51
|
-
"@deepseek-ai/dsh-tools": ">=0.2.2-rc.1 <0.
|
|
47
|
+
"@deepseek-ai/dsh-agent": ">=0.2.2-rc.1 <0.4.0-0",
|
|
48
|
+
"@deepseek-ai/dsh-client-connection": ">=0.2.2-rc.1 <0.4.0-0",
|
|
49
|
+
"@deepseek-ai/dsh-host-webserver": ">=0.2.2-rc.1 <0.4.0-0",
|
|
50
|
+
"@deepseek-ai/dsh-skill": ">=0.2.2-rc.1 <0.4.0-0",
|
|
51
|
+
"@deepseek-ai/dsh-tools": ">=0.2.2-rc.1 <0.4.0-0",
|
|
52
52
|
"react": "^18.2.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|