@jiyr0119/dsh-service-console 0.3.2 → 0.5.0
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 -4
- package/README.zh.md +4 -4
- package/dsh.plugin.json +2 -2
- package/lib/client.js +70 -55
- package/package.json +8 -10
package/README.md
CHANGED
|
@@ -9,6 +9,10 @@
|
|
|
9
9
|
[](https://github.com/Jiyr0119/dsh-service-console)
|
|
10
10
|
[](https://github.com/Jiyr0119/dsh-service-console/stargazers)
|
|
11
11
|
|
|
12
|
+
<p align="center">
|
|
13
|
+
⭐ Drop a Star if it helped — it makes the author's day · <a href="https://github.com/Jiyr0119/dsh-service-console">★ Give a Star</a>
|
|
14
|
+
</p>
|
|
15
|
+
|
|
12
16
|
> A local development service console for DSH: discover listening ports, identify services related to the current conversation or workspace, and safely inspect, stop, or restart them.
|
|
13
17
|
|
|
14
18
|
Single-purpose plugin for the DeepSeek Harness web UI. When the model (or you) starts a local dev server (`npm run dev`, Vite, Next.js, Uvicorn, Express, Rust, …), Service Console shows it in one place: which ports it listens on, which command and working directory started it, whether it belongs to this conversation or workspace, and whether it is safe to stop or restart.
|
|
@@ -79,10 +83,6 @@ npm run build && node --test test/process-inspector.test.mjs # run a single fi
|
|
|
79
83
|
|
|
80
84
|
Unit tests import the built output under `lib/`, so the sources must be compiled first — `npm test` handles this automatically.
|
|
81
85
|
|
|
82
|
-
## Star
|
|
83
|
-
|
|
84
|
-
If you find this plugin useful, please consider giving it a ⭐ star on [GitHub](https://github.com/Jiyr0119/dsh-service-console). Your support helps keep the project alive and motivates further development.
|
|
85
|
-
|
|
86
86
|
## License
|
|
87
87
|
|
|
88
88
|
MIT
|
package/README.zh.md
CHANGED
|
@@ -9,6 +9,10 @@
|
|
|
9
9
|
[](https://github.com/Jiyr0119/dsh-service-console)
|
|
10
10
|
[](https://github.com/Jiyr0119/dsh-service-console/stargazers)
|
|
11
11
|
|
|
12
|
+
<p align="center">
|
|
13
|
+
⭐ 顺手留颗 Star,作者能高兴一整天 · <a href="https://github.com/Jiyr0119/dsh-service-console">行,给你一颗 Star</a>
|
|
14
|
+
</p>
|
|
15
|
+
|
|
12
16
|
> A local development service console for DSH: discover listening ports, identify services related to the current conversation or workspace, and safely inspect, stop, or restart them.
|
|
13
17
|
>
|
|
14
18
|
> **DSH 本地开发服务控制台:发现监听端口,识别与当前对话或工作区相关的服务,并安全地查看、停止和重启。**
|
|
@@ -81,10 +85,6 @@ npm run build && node --test test/process-inspector.test.mjs # 单独运行某
|
|
|
81
85
|
|
|
82
86
|
单元测试直接 import 构建产物(`lib/`),因此需要先编译源码——`npm test` 会自动完成。
|
|
83
87
|
|
|
84
|
-
## Star
|
|
85
|
-
|
|
86
|
-
如果觉得这个插件好用,欢迎在 [GitHub](https://github.com/Jiyr0119/dsh-service-console) 上给一个 ⭐ Star,你的支持是持续维护的动力!
|
|
87
|
-
|
|
88
88
|
## 许可证
|
|
89
89
|
|
|
90
90
|
MIT
|
package/dsh.plugin.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "dsh-external/dsh-service-console",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"description": "本地开发服务控制台:发现监听端口,识别服务归属,安全查看/停止/重启。Local development service console for DSH.",
|
|
6
6
|
"engines": {
|
|
7
|
-
"dsh": ">=0.
|
|
7
|
+
"dsh": ">=0.1.5-rc.2"
|
|
8
8
|
},
|
|
9
9
|
"contributes": {
|
|
10
10
|
"tools": [],
|
package/lib/client.js
CHANGED
|
@@ -39,71 +39,71 @@ window.__ModuleLoader__.load({
|
|
|
39
39
|
document.head.appendChild(tag);
|
|
40
40
|
}
|
|
41
41
|
var service_console_module_css_default = {
|
|
42
|
-
"setFooter": "PuSt5a_setFooter",
|
|
43
|
-
"liveDot": "PuSt5a_liveDot",
|
|
44
|
-
"setInput": "PuSt5a_setInput",
|
|
45
|
-
"filter": "PuSt5a_filter",
|
|
46
|
-
"noteWarn": "PuSt5a_noteWarn",
|
|
47
|
-
"setCap": "PuSt5a_setCap",
|
|
48
|
-
"rowAct": "PuSt5a_rowAct",
|
|
49
|
-
"rowMain": "PuSt5a_rowMain",
|
|
50
|
-
"spacer": "PuSt5a_spacer",
|
|
51
|
-
"rowDot": "PuSt5a_rowDot",
|
|
52
|
-
"tabOn": "PuSt5a_tabOn",
|
|
53
42
|
"popupOn": "PuSt5a_popupOn",
|
|
43
|
+
"rowAct": "PuSt5a_rowAct",
|
|
44
|
+
"confirmRow": "PuSt5a_confirmRow",
|
|
54
45
|
"head": "PuSt5a_head",
|
|
55
|
-
"
|
|
56
|
-
"tabInd": "PuSt5a_tabInd",
|
|
57
|
-
"sc-spin": "PuSt5a_sc-spin",
|
|
58
|
-
"row": "PuSt5a_row",
|
|
59
|
-
"rowName": "PuSt5a_rowName",
|
|
60
|
-
"evidenceArrow": "PuSt5a_evidenceArrow",
|
|
61
|
-
"starSection": "PuSt5a_starSection",
|
|
62
|
-
"confirmTxt": "PuSt5a_confirmTxt",
|
|
63
|
-
"evidenceItem": "PuSt5a_evidenceItem",
|
|
46
|
+
"detailHead": "PuSt5a_detailHead",
|
|
64
47
|
"tabBody": "PuSt5a_tabBody",
|
|
65
|
-
"spin": "PuSt5a_spin",
|
|
66
|
-
"empty": "PuSt5a_empty",
|
|
67
|
-
"setInfo": "PuSt5a_setInfo",
|
|
68
|
-
"starRow": "PuSt5a_starRow",
|
|
69
|
-
"starLabel": "PuSt5a_starLabel",
|
|
70
|
-
"setSection": "PuSt5a_setSection",
|
|
71
|
-
"setRow": "PuSt5a_setRow",
|
|
72
|
-
"confirmCancel": "PuSt5a_confirmCancel",
|
|
73
|
-
"filterClear": "PuSt5a_filterClear",
|
|
74
|
-
"okText": "PuSt5a_okText",
|
|
75
|
-
"detailLabel": "PuSt5a_detailLabel",
|
|
76
|
-
"starInfo": "PuSt5a_starInfo",
|
|
77
|
-
"rowBtn": "PuSt5a_rowBtn",
|
|
78
|
-
"starLink": "PuSt5a_starLink",
|
|
79
48
|
"detailGrid": "PuSt5a_detailGrid",
|
|
80
|
-
"
|
|
49
|
+
"sc-spin": "PuSt5a_sc-spin",
|
|
50
|
+
"setRow": "PuSt5a_setRow",
|
|
51
|
+
"starRow": "PuSt5a_starRow",
|
|
52
|
+
"setInput": "PuSt5a_setInput",
|
|
53
|
+
"switch": "PuSt5a_switch",
|
|
54
|
+
"setLabel": "PuSt5a_setLabel",
|
|
55
|
+
"filter": "PuSt5a_filter",
|
|
81
56
|
"headTitle": "PuSt5a_headTitle",
|
|
57
|
+
"headIco": "PuSt5a_headIco",
|
|
58
|
+
"note": "PuSt5a_note",
|
|
59
|
+
"spacer": "PuSt5a_spacer",
|
|
60
|
+
"starInfo": "PuSt5a_starInfo",
|
|
61
|
+
"spin": "PuSt5a_spin",
|
|
62
|
+
"setSection": "PuSt5a_setSection",
|
|
82
63
|
"popup": "PuSt5a_popup",
|
|
83
|
-
"
|
|
84
|
-
"setLabel": "PuSt5a_setLabel",
|
|
85
|
-
"headerBtnOn": "PuSt5a_headerBtnOn",
|
|
86
|
-
"detailAccent": "PuSt5a_detailAccent",
|
|
87
|
-
"prevBtn": "PuSt5a_prevBtn",
|
|
88
|
-
"detailBox": "PuSt5a_detailBox",
|
|
64
|
+
"rowName": "PuSt5a_rowName",
|
|
89
65
|
"errText": "PuSt5a_errText",
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
66
|
+
"setCap": "PuSt5a_setCap",
|
|
67
|
+
"evidenceItem": "PuSt5a_evidenceItem",
|
|
68
|
+
"rowSub": "PuSt5a_rowSub",
|
|
69
|
+
"detailLabel": "PuSt5a_detailLabel",
|
|
70
|
+
"detailAccent": "PuSt5a_detailAccent",
|
|
95
71
|
"tab": "PuSt5a_tab",
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"headIco": "PuSt5a_headIco",
|
|
99
|
-
"badge": "PuSt5a_badge",
|
|
72
|
+
"starSection": "PuSt5a_starSection",
|
|
73
|
+
"setNote": "PuSt5a_setNote",
|
|
100
74
|
"noteErr": "PuSt5a_noteErr",
|
|
75
|
+
"noteWarn": "PuSt5a_noteWarn",
|
|
76
|
+
"detailBox": "PuSt5a_detailBox",
|
|
101
77
|
"setPage": "PuSt5a_setPage",
|
|
102
|
-
"
|
|
78
|
+
"rowMain": "PuSt5a_rowMain",
|
|
79
|
+
"rowDot": "PuSt5a_rowDot",
|
|
80
|
+
"tabOn": "PuSt5a_tabOn",
|
|
81
|
+
"prevBtn": "PuSt5a_prevBtn",
|
|
82
|
+
"headerBtnOn": "PuSt5a_headerBtnOn",
|
|
83
|
+
"icoBtn": "PuSt5a_icoBtn",
|
|
84
|
+
"tabs": "PuSt5a_tabs",
|
|
85
|
+
"setFooter": "PuSt5a_setFooter",
|
|
86
|
+
"filterClear": "PuSt5a_filterClear",
|
|
87
|
+
"starLink": "PuSt5a_starLink",
|
|
88
|
+
"filterRow": "PuSt5a_filterRow",
|
|
89
|
+
"confirmCancel": "PuSt5a_confirmCancel",
|
|
90
|
+
"liveDot": "PuSt5a_liveDot",
|
|
91
|
+
"layer": "PuSt5a_layer",
|
|
92
|
+
"rowMeta": "PuSt5a_rowMeta",
|
|
93
|
+
"okText": "PuSt5a_okText",
|
|
94
|
+
"rowBtn": "PuSt5a_rowBtn",
|
|
95
|
+
"empty": "PuSt5a_empty",
|
|
103
96
|
"headerBtn": "PuSt5a_headerBtn",
|
|
104
|
-
"
|
|
97
|
+
"tabInd": "PuSt5a_tabInd",
|
|
98
|
+
"setInfo": "PuSt5a_setInfo",
|
|
99
|
+
"evidenceArrow": "PuSt5a_evidenceArrow",
|
|
105
100
|
"confirmOk": "PuSt5a_confirmOk",
|
|
106
|
-
"
|
|
101
|
+
"row": "PuSt5a_row",
|
|
102
|
+
"confirmTxt": "PuSt5a_confirmTxt",
|
|
103
|
+
"badge": "PuSt5a_badge",
|
|
104
|
+
"hintLine": "PuSt5a_hintLine",
|
|
105
|
+
"evidenceBlock": "PuSt5a_evidenceBlock",
|
|
106
|
+
"starLabel": "PuSt5a_starLabel"
|
|
107
107
|
};
|
|
108
108
|
//#endregion
|
|
109
109
|
//#region src/client/ServiceConsole.tsx
|
|
@@ -868,6 +868,7 @@ window.__ModuleLoader__.load({
|
|
|
868
868
|
* 与 dsh-workspace-explorer 共享设计语言:flat key → template string with {vars}
|
|
869
869
|
*/
|
|
870
870
|
const ZH_DICT = {
|
|
871
|
+
"plugin.name": "服务控制台",
|
|
871
872
|
"panel.title": "Service Console",
|
|
872
873
|
"panel.subtitle": "本机监听服务",
|
|
873
874
|
"entry.label": "服务",
|
|
@@ -929,6 +930,7 @@ window.__ModuleLoader__.load({
|
|
|
929
930
|
"star.cta": "行,给你一颗 Star"
|
|
930
931
|
};
|
|
931
932
|
const EN_DICT = {
|
|
933
|
+
"plugin.name": "Service Console",
|
|
932
934
|
"panel.title": "Service Console",
|
|
933
935
|
"panel.subtitle": "Listening services on this machine",
|
|
934
936
|
"entry.label": "Services",
|
|
@@ -1001,6 +1003,7 @@ window.__ModuleLoader__.load({
|
|
|
1001
1003
|
* - 注册 shell.overlay 抽屉面板 + header 入口按钮
|
|
1002
1004
|
*/
|
|
1003
1005
|
const NS = "dsh-service-console";
|
|
1006
|
+
let labelFn = (k) => k;
|
|
1004
1007
|
//#endregion
|
|
1005
1008
|
module.exports = {
|
|
1006
1009
|
inject: ["slots", "timer"],
|
|
@@ -1019,6 +1022,18 @@ window.__ModuleLoader__.load({
|
|
|
1019
1022
|
};
|
|
1020
1023
|
});
|
|
1021
1024
|
bindLocale(locale);
|
|
1025
|
+
const bound = locale.bind(NS);
|
|
1026
|
+
labelFn = (key) => {
|
|
1027
|
+
const s = bound(key);
|
|
1028
|
+
return typeof s === "string" && s !== key ? s : key;
|
|
1029
|
+
};
|
|
1030
|
+
locale.subscribe(() => {
|
|
1031
|
+
const b = locale.bind(NS);
|
|
1032
|
+
labelFn = (key) => {
|
|
1033
|
+
const s = b(key);
|
|
1034
|
+
return typeof s === "string" && s !== key ? s : key;
|
|
1035
|
+
};
|
|
1036
|
+
});
|
|
1022
1037
|
} catch (err) {
|
|
1023
1038
|
console.warn("[dsh-sc] locale init failed, fallback zh", String(err));
|
|
1024
1039
|
}
|
|
@@ -1026,7 +1041,7 @@ window.__ModuleLoader__.load({
|
|
|
1026
1041
|
name: "conversation.session.header.utilities",
|
|
1027
1042
|
id: "dsh-service-console",
|
|
1028
1043
|
order: 25,
|
|
1029
|
-
label: () => "
|
|
1044
|
+
label: () => labelFn("plugin.name")
|
|
1030
1045
|
}, () => react.createElement(ServiceConsoleEntry)));
|
|
1031
1046
|
slots.inject("shell.overlay", () => slots.register({
|
|
1032
1047
|
name: "shell.overlay",
|
|
@@ -1036,7 +1051,7 @@ window.__ModuleLoader__.load({
|
|
|
1036
1051
|
name: "settings.section",
|
|
1037
1052
|
id: "dsh-service-console",
|
|
1038
1053
|
order: 35,
|
|
1039
|
-
label: () => "
|
|
1054
|
+
label: () => labelFn("plugin.name")
|
|
1040
1055
|
}, () => react.createElement(ServiceConsoleSettings)));
|
|
1041
1056
|
}
|
|
1042
1057
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jiyr0119/dsh-service-console",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "DeepSeek Harness 本地开发服务控制台(原生插件):发现监听端口,识别服务归属,安全查看/停止/重启。Local development service console for DSH.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -51,7 +51,6 @@
|
|
|
51
51
|
},
|
|
52
52
|
"client": {
|
|
53
53
|
"inject": [
|
|
54
|
-
"@deepseek-ai/dsh-client-runtime",
|
|
55
54
|
"@deepseek-ai/dsh-client-locale",
|
|
56
55
|
"@deepseek-ai/dsh-client-ui-slots",
|
|
57
56
|
"@deepseek-ai/dsh-client-ui-conversation"
|
|
@@ -78,13 +77,12 @@
|
|
|
78
77
|
"test": "npm run build && node --test test/*.test.mjs"
|
|
79
78
|
},
|
|
80
79
|
"devDependencies": {
|
|
81
|
-
"@deepseek-ai/cordis": "^4.0.
|
|
82
|
-
"@deepseek-ai/dsh-client-locale": "^0.1.
|
|
83
|
-
"@deepseek-ai/dsh-client-
|
|
84
|
-
"@deepseek-ai/dsh-client-ui-
|
|
85
|
-
"@deepseek-ai/dsh-
|
|
86
|
-
"@deepseek-ai/dsh-
|
|
87
|
-
"@deepseek-ai/dsh-invariants": "^0.1.0-rc.6",
|
|
80
|
+
"@deepseek-ai/cordis": "^4.0.2",
|
|
81
|
+
"@deepseek-ai/dsh-client-locale": "^0.1.5-rc.2",
|
|
82
|
+
"@deepseek-ai/dsh-client-ui-conversation": "^0.1.5-rc.2",
|
|
83
|
+
"@deepseek-ai/dsh-client-ui-slots": "^0.1.5-rc.2",
|
|
84
|
+
"@deepseek-ai/dsh-host-webserver": "^0.1.5-rc.2",
|
|
85
|
+
"@deepseek-ai/dsh-invariants": "^0.1.5-rc.2",
|
|
88
86
|
"@types/node": "^22.0.0",
|
|
89
87
|
"@types/react": "^18.3.1",
|
|
90
88
|
"cordis": "^4.0.0-rc.7",
|
|
@@ -95,7 +93,7 @@
|
|
|
95
93
|
"typescript": "^5.6.0"
|
|
96
94
|
},
|
|
97
95
|
"peerDependencies": {
|
|
98
|
-
"@deepseek-ai/cordis": "^4.0.
|
|
96
|
+
"@deepseek-ai/cordis": "^4.0.2",
|
|
99
97
|
"react": "^18.2.0"
|
|
100
98
|
}
|
|
101
99
|
}
|