@jiyr0119/dsh-service-console 0.3.2 → 0.4.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 CHANGED
@@ -9,6 +9,10 @@
9
9
  [![Last commit](https://img.shields.io/github/last-commit/Jiyr0119/dsh-service-console)](https://github.com/Jiyr0119/dsh-service-console)
10
10
  [![GitHub stars](https://img.shields.io/github/stars/Jiyr0119/dsh-service-console?style=social)](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
  [![Last commit](https://img.shields.io/github/last-commit/Jiyr0119/dsh-service-console)](https://github.com/Jiyr0119/dsh-service-console)
10
10
  [![GitHub stars](https://img.shields.io/github/stars/Jiyr0119/dsh-service-console?style=social)](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.2",
3
+ "version": "0.4.1",
4
4
  "main": "./lib/index.js",
5
5
  "description": "本地开发服务控制台:发现监听端口,识别服务归属,安全查看/停止/重启。Local development service console for DSH.",
6
6
  "engines": {
7
- "dsh": ">=0.0.1"
7
+ "dsh": ">=0.1.2-rc.1"
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",
42
+ "starSection": "PuSt5a_starSection",
51
43
  "rowDot": "PuSt5a_rowDot",
52
- "tabOn": "PuSt5a_tabOn",
53
- "popupOn": "PuSt5a_popupOn",
54
- "head": "PuSt5a_head",
55
- "filterRow": "PuSt5a_filterRow",
56
- "tabInd": "PuSt5a_tabInd",
57
- "sc-spin": "PuSt5a_sc-spin",
58
- "row": "PuSt5a_row",
59
- "rowName": "PuSt5a_rowName",
44
+ "detailBox": "PuSt5a_detailBox",
45
+ "starLink": "PuSt5a_starLink",
46
+ "detailLabel": "PuSt5a_detailLabel",
60
47
  "evidenceArrow": "PuSt5a_evidenceArrow",
61
- "starSection": "PuSt5a_starSection",
62
- "confirmTxt": "PuSt5a_confirmTxt",
63
- "evidenceItem": "PuSt5a_evidenceItem",
64
- "tabBody": "PuSt5a_tabBody",
65
- "spin": "PuSt5a_spin",
66
- "empty": "PuSt5a_empty",
67
- "setInfo": "PuSt5a_setInfo",
68
- "starRow": "PuSt5a_starRow",
69
- "starLabel": "PuSt5a_starLabel",
70
48
  "setSection": "PuSt5a_setSection",
49
+ "rowAct": "PuSt5a_rowAct",
50
+ "tab": "PuSt5a_tab",
51
+ "detailAccent": "PuSt5a_detailAccent",
52
+ "empty": "PuSt5a_empty",
53
+ "icoBtn": "PuSt5a_icoBtn",
54
+ "row": "PuSt5a_row",
55
+ "spin": "PuSt5a_spin",
71
56
  "setRow": "PuSt5a_setRow",
72
- "confirmCancel": "PuSt5a_confirmCancel",
57
+ "confirmOk": "PuSt5a_confirmOk",
58
+ "switch": "PuSt5a_switch",
59
+ "detailHead": "PuSt5a_detailHead",
60
+ "setLabel": "PuSt5a_setLabel",
61
+ "filterRow": "PuSt5a_filterRow",
73
62
  "filterClear": "PuSt5a_filterClear",
74
- "okText": "PuSt5a_okText",
75
- "detailLabel": "PuSt5a_detailLabel",
76
- "starInfo": "PuSt5a_starInfo",
77
- "rowBtn": "PuSt5a_rowBtn",
78
- "starLink": "PuSt5a_starLink",
63
+ "tabOn": "PuSt5a_tabOn",
79
64
  "detailGrid": "PuSt5a_detailGrid",
65
+ "sc-spin": "PuSt5a_sc-spin",
66
+ "setPage": "PuSt5a_setPage",
67
+ "prevBtn": "PuSt5a_prevBtn",
80
68
  "rowSub": "PuSt5a_rowSub",
81
- "headTitle": "PuSt5a_headTitle",
82
- "popup": "PuSt5a_popup",
83
- "rowMeta": "PuSt5a_rowMeta",
84
- "setLabel": "PuSt5a_setLabel",
69
+ "confirmCancel": "PuSt5a_confirmCancel",
70
+ "layer": "PuSt5a_layer",
71
+ "hintLine": "PuSt5a_hintLine",
85
72
  "headerBtnOn": "PuSt5a_headerBtnOn",
86
- "detailAccent": "PuSt5a_detailAccent",
87
- "prevBtn": "PuSt5a_prevBtn",
88
- "detailBox": "PuSt5a_detailBox",
73
+ "tabInd": "PuSt5a_tabInd",
74
+ "rowBtn": "PuSt5a_rowBtn",
75
+ "noteWarn": "PuSt5a_noteWarn",
76
+ "rowMain": "PuSt5a_rowMain",
77
+ "noteErr": "PuSt5a_noteErr",
78
+ "liveDot": "PuSt5a_liveDot",
79
+ "headIco": "PuSt5a_headIco",
80
+ "popup": "PuSt5a_popup",
89
81
  "errText": "PuSt5a_errText",
90
- "evidenceBlock": "PuSt5a_evidenceBlock",
91
- "setNote": "PuSt5a_setNote",
92
82
  "note": "PuSt5a_note",
93
- "layer": "PuSt5a_layer",
83
+ "okText": "PuSt5a_okText",
84
+ "confirmRow": "PuSt5a_confirmRow",
85
+ "confirmTxt": "PuSt5a_confirmTxt",
86
+ "starRow": "PuSt5a_starRow",
87
+ "tabBody": "PuSt5a_tabBody",
88
+ "rowName": "PuSt5a_rowName",
89
+ "setFooter": "PuSt5a_setFooter",
90
+ "filter": "PuSt5a_filter",
94
91
  "tabs": "PuSt5a_tabs",
95
- "tab": "PuSt5a_tab",
96
- "hintLine": "PuSt5a_hintLine",
97
- "icoBtn": "PuSt5a_icoBtn",
98
- "headIco": "PuSt5a_headIco",
99
- "badge": "PuSt5a_badge",
100
- "noteErr": "PuSt5a_noteErr",
101
- "setPage": "PuSt5a_setPage",
102
- "switch": "PuSt5a_switch",
92
+ "evidenceItem": "PuSt5a_evidenceItem",
93
+ "setNote": "PuSt5a_setNote",
94
+ "head": "PuSt5a_head",
95
+ "starLabel": "PuSt5a_starLabel",
103
96
  "headerBtn": "PuSt5a_headerBtn",
104
- "confirmRow": "PuSt5a_confirmRow",
105
- "confirmOk": "PuSt5a_confirmOk",
106
- "detailHead": "PuSt5a_detailHead"
97
+ "spacer": "PuSt5a_spacer",
98
+ "setInput": "PuSt5a_setInput",
99
+ "badge": "PuSt5a_badge",
100
+ "popupOn": "PuSt5a_popupOn",
101
+ "rowMeta": "PuSt5a_rowMeta",
102
+ "starInfo": "PuSt5a_starInfo",
103
+ "setCap": "PuSt5a_setCap",
104
+ "setInfo": "PuSt5a_setInfo",
105
+ "evidenceBlock": "PuSt5a_evidenceBlock",
106
+ "headTitle": "PuSt5a_headTitle"
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: () => "Service Console"
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: () => "Service Console"
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.2",
3
+ "version": "0.4.1",
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.1",
82
- "@deepseek-ai/dsh-client-locale": "^0.1.0-rc.6",
83
- "@deepseek-ai/dsh-client-runtime": "^0.1.0-rc.6",
84
- "@deepseek-ai/dsh-client-ui-conversation": "^0.1.0-rc.6",
85
- "@deepseek-ai/dsh-client-ui-slots": "^0.1.0-rc.6",
86
- "@deepseek-ai/dsh-host-webserver": "^0.1.0-rc.6",
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.2-rc.1",
82
+ "@deepseek-ai/dsh-client-ui-conversation": "^0.1.2-rc.1",
83
+ "@deepseek-ai/dsh-client-ui-slots": "^0.1.2-rc.1",
84
+ "@deepseek-ai/dsh-host-webserver": "^0.1.2-rc.1",
85
+ "@deepseek-ai/dsh-invariants": "^0.1.2-rc.1",
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.1",
96
+ "@deepseek-ai/cordis": "^4.0.2",
99
97
  "react": "^18.2.0"
100
98
  }
101
99
  }