dsh-stop-service 0.4.0 → 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.
Files changed (2) hide show
  1. package/lib/client.js +18 -22
  2. package/package.json +1 -1
package/lib/client.js CHANGED
@@ -247,31 +247,31 @@ window.__ModuleLoader__.load({
247
247
  }
248
248
 
249
249
  return jsx("div", {
250
- style: cardStyle,
250
+ style: {
251
+ ...cardStyle,
252
+ padding: "12px 16px",
253
+ display: "flex",
254
+ justifyContent: "space-between",
255
+ alignItems: "center",
256
+ gap: 16,
257
+ marginBottom: 20,
258
+ flexWrap: "wrap",
259
+ },
251
260
  children: [
252
- jsx("h3", {
253
- key: "title",
254
- style: { margin: "0 0 8px", fontSize: 15 },
255
- children: t("title")
256
- }),
257
- jsx("p", {
261
+ jsx("span", {
258
262
  key: "desc",
259
- style: { margin: "0 0 4px", fontSize: 13, opacity: 0.85, lineHeight: 1.7 },
260
- children: t("desc")
261
- }),
262
- jsx("p", {
263
- key: "hint",
264
- style: { margin: "0 0 16px", fontSize: 12, opacity: 0.6, lineHeight: 1.7 },
265
- children: t("hint")
263
+ style: { fontSize: 12.5, opacity: 0.8, lineHeight: 1.6 },
264
+ children: t("stopRowDesc")
266
265
  }),
267
266
  jsx("button", {
268
267
  key: "button",
269
268
  onClick: onStop,
270
269
  disabled: state === "stopping",
271
270
  style: {
272
- padding: "8px 18px",
271
+ padding: "7px 16px",
273
272
  fontSize: 13,
274
273
  borderRadius: 8,
274
+ flexShrink: 0,
275
275
  border: "1px solid var(--dsw-danger, #d33)",
276
276
  background: state === "stopping" ? "transparent" : "var(--dsw-danger, #d33)",
277
277
  color: state === "stopping" ? "var(--dsw-danger, #d33)" : "var(--dsw-danger-text, #fff)",
@@ -396,8 +396,8 @@ window.__ModuleLoader__.load({
396
396
  style: { padding: "24px 8px", maxWidth: 560 },
397
397
  children: [
398
398
  jsx(UpdateBanner, { key: "updates", t: t, info: info }),
399
- jsx(InfoCard, { key: "info", t: t, info: info, history: history, cpuHistory: cpuHistory }),
400
399
  jsx(StopCard, { key: "stop", t: t }),
400
+ jsx(InfoCard, { key: "info", t: t, info: info, history: history, cpuHistory: cpuHistory }),
401
401
  ]
402
402
  });
403
403
  };
@@ -430,11 +430,9 @@ window.__ModuleLoader__.load({
430
430
  hourUnit: "小时",
431
431
  minUnit: "分",
432
432
  secUnit: "秒",
433
- title: "终止服务",
433
+ stopRowDesc: "优雅停止宿主进程(SIGTERM,与终端 kill 等效),不留孤儿进程。",
434
434
  updHost: "DSH 宿主有新版本 {v} 可用(当前 {c}),可在终端升级:npm install -g @deepseek-ai/dsh@{v}",
435
435
  updPlugin: "插件有新版本 {v} 可用(当前 {c}):dsh plugin --profile web add dsh-stop-service@{v}",
436
- desc: "优雅停止当前 DeepSeek Harness 宿主进程(SIGTERM,与终端 kill 相同):会话落盘、端口释放,不会留下后台孤儿进程。",
437
- hint: "停止后需要重启:在终端运行 npx @deepseek-ai/dsh web,服务回归后本页自动刷新。",
438
436
  stop: "终止服务",
439
437
  stopping: "正在停止…",
440
438
  confirm: "确定要终止当前 DeepSeek Harness 服务吗?所有会话将断开(已保存的会话不受影响)。",
@@ -463,11 +461,9 @@ window.__ModuleLoader__.load({
463
461
  hourUnit: "h ",
464
462
  minUnit: "m ",
465
463
  secUnit: "s",
466
- title: "Stop Service",
464
+ stopRowDesc: "Gracefully stop the host process (SIGTERM, like a terminal kill) — no orphaned processes.",
467
465
  updHost: "A newer DSH host {v} is available (current {c}) — upgrade from a terminal: npm install -g @deepseek-ai/dsh@{v}",
468
466
  updPlugin: "A newer plugin {v} is available (current {c}) — dsh plugin --profile web add dsh-stop-service@{v}",
469
- desc: "Gracefully stops the current DeepSeek Harness host process (SIGTERM, same as a terminal kill): sessions flush and the port is released — no orphaned background process.",
470
- hint: "To start it again, run npx @deepseek-ai/dsh web in a terminal; this page reloads automatically once it is back.",
471
467
  stop: "Stop Service",
472
468
  stopping: "Stopping…",
473
469
  confirm: "Stop the current DeepSeek Harness service? All sessions disconnect (saved sessions are unaffected).",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-stop-service",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "type": "module",
5
5
  "main": "lib/index.js",
6
6
  "description": "A stop-service button for DeepSeek Harness Web: one confirmed click gracefully terminates the running dsh host (SIGTERM) — no orphaned background processes",