Skills Plugins MCP Prompt Model 导航 博客 资讯 我的中心
开发与运行时 #deepseek-harness#dsh#dsh-plugin#restart

dsh-setting-restart

从设置→通用一键重启 DSH 服务:固定置底,重启后页面自动重连并以绿色 Connected 状态确认。

893413974-bit @893413974-bit ⬇ 1 ★ 1 main

安装

dsh plugin --profile web add github:893413974-bit/dsh-setting-restart
下载安装清单

需要可复现安装时,可在仓库后追加 #commit 固定提交。

从设置→通用一键重启 DSH 服务:固定置底,重启后页面自动重连并以绿色 Connected 状态确认。

该插件未提供要点说明,请参考仓库 README。

deepseek-harnessdshdsh-pluginrestart
  1. 安装并启动 DeepSeek Harness:npx @deepseek-ai/dsh web
  2. 在终端执行上面的安装命令(CLI 会解析插件并核验来源)
  3. 用 dsh plugins list 确认已安装,必要时重启 Harness 生效

插件以当前 dsh 进程的权限运行,安装时可能执行代码。请先通读仓库源码与许可证,确认无破坏性命令与越权访问;本站只做索引,不对第三方插件安全性作担保。

代码仓库github.com/893413974-bit/dsh-setting-restart
许可证MIT
主要语言main
下载量1
GitHub 星标1
最近推送2026-08-18
收录日期2026-09-19
分类开发与运行时

事实信息来自公开插件目录快照(2026-10-01),介绍文案由本站再加工。

以下为插件仓库 README 全文(原始内容,由公开目录抓取整理)。

# dsh-setting-restart

One-click restart of the DSH service, from **Settings → General**. The "一键重启" row is pinned at the very bottom of the General settings page — no matter how many rows are added above it later, it always stays the last one. After the restart the page reconnects automatically and the row confirms it with a green "Connected" state, so you always know the service is back.

[![dsh-plugin](https://img.shields.io/badge/topic-dsh--plugin-blue)](https://github.com/topics/dsh-plugin)

## Features

- A **one-click restart** row at the bottom of **Settings → General** (below "繁忙时 Enter 键行为" / whatever comes last).
- The row is pinned with the maximum slot `order`, so it always renders at the bottom of the page.
- Restart is a real process restart: the host spawns a detached helper, exits, and the helper re-spawns the exact same `dsh` command (same executable, arguments, cwd and environment). The browser tab reconnects automatically once the new instance binds the same port.
- Bilingual UI copy (简体中文 / English), following the DSH client conventions.
- Fully typed host invocation through the DSH Typert RPC registry (`settingRestart/restart`).

## Requirements

- DeepSeek Harness `dsh` ≥ 0.1.0-rc.6 (the `web` profile).
- Node.js ≥ 20.

## Installation

1. Install the package into the `web` profile (this runs `pnpm add` inside the profile directory):

   ```sh
   dsh plugin --profile web add dsh-setting-restart
   ```

2. Mount it as a loader entry by appending an `insert` patch to the profile's user patch layer — `$DSH_HOME/profiles/web/cordis.patch.yml` (`$DSH_HOME` defaults to `~/.dsh`):

   ```yaml
   # $DSH_HOME/profiles/web/cordis.patch.yml
   - insert:
       - id: setting-restart
         name: dsh-setting-restart
   ```

3. Start (or restart) the service:

   ```sh
   dsh web
   ```

4. Open **Settings → General** — the "一键重启" row is at the very bottom. Click **重启** to restart the service; the page reconnects automatically.

> The same patch can be added to the home-level `$DSH_HOME/cordis.patch.yml` to enable the plugin for every profile.

## Configuration

The loader entry accepts an optional `config` block:

```yaml
- insert:
    - id: setting-restart
      name: dsh-setting-restart
      config:
        exitDelayMs: 1500    # delay between the click response and process exit (default 1200)
        waitForExitMs: 30000 # how long the helper waits for the old process to exit (default 30000)
        respawn: true        # set false when a supervisor (systemd/pm2) already restarts the service
```

## How it works

```
browser row (client.js)
  └─ connection.rpc.call("/api", "settingRestart/restart", { args: {} })
       └─ api-gateway dispatches the strict typert invocation
            └─ SettingRestartService.restart() (index.js)
                 ├─ spawns relaunch.js detached  ── waits for pid to die ── re-spawns the same command
                 └─ process.exit(0) after exitDelayMs
```

- `client.js` — the browser bundle (`dsh.client` / `exports["./client"]`) that registers the settings row.
- `typert.host.js` — the TYPERT host manifest (`exports["./typert"]`) declaring the strict `settingRestart/restart` invocation.
- `index.js` — the host plugin (`SettingRestartService`) that performs the restart.
- `relaunch.js` — the detached helper that re-spawns the command after the old process exits.

## Publishing

This package is published to npm and hosted on GitHub under the [`dsh-plugin` topic](https://github.com/topics/dsh-plugin):

```sh
npm publish
# then, on the GitHub repository page:
# Settings → Manage topics → add "dsh-plugin"
```

## License

MIT

数据来源:公开的 DeepSeek Harness 插件目录与各插件 GitHub 仓库。本站为独立第三方目录,与 DeepSeek、幻方(High-Flyer)及插件作者均无隶属或背书关系。

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

提交后我们会发送一封确认邮件,点击邮件里的链接才会开始收信。

完全免费,取消任意时间。我们不会发送垃圾邮件。