返回目录
其他 待识别

dsh-plugin-sysmon

hnmrxz/dsh-plugin-sysmon

Local system resource monitor (CPU / memory / disk / load / uptime) for the DeepSeek Harness bottom status bar.

Stars
2
Forks
0
Issues
0
更新
3 天前

PROJECT TOPICS

项目标签

PROJECT README

README

dsh-plugin-sysmon

DeepSeek Harness (dsh) 底部状态栏实时显示本机系统资源:CPU / 内存 / 磁盘 / 负载 / 运行时间。

Real-time local system monitor (CPU / memory / disk / load / uptime) in the DSH bottom status bar.

Features

  • 状态栏 chip:DS CPU 23% · 内存 41%,CPU ≥ 80% 时橙色高亮
  • 悬停查看明细:CPU 核数/负载、内存已用/总量、磁盘占用、运行时间
  • 每 5 秒自动刷新,点击立即刷新
  • Host 端用 Node os/fs 原生模块采样,零依赖、零子进程,CPU 使用率按两次 tick 差值计算
  • 中英文自动跟随 DSH 界面语言

Install

需要 DSH 0.1.0-rc.x(Web profile)。

1. 安装到 profile

cd ~/.dsh/profiles/web
npm install dsh-plugin-sysmon
# 本地开发:npm install /path/to/dsh-plugin-sysmon

2. 加入 composition

编辑 ~/.dsh/profiles/web/cordis.patch.yml

- insert:
    - id: sysmon
      name: dsh-plugin-sysmon

3. 重启 dsh

dsh --profile web

Configuration

无配置项。刷新间隔可在 lib/index.jsCACHE_MS(默认 5000ms)与 lib/client.jsPOLL_MS(默认 5000ms)调整。

How it works

Browser client.js          dsh Host process
┌──────────────┐   GET    ┌─────────────────────────┐
│ composer.dock│ ───────► │ /dsh-sysmon             │
│  chip        │ ◄─────── │   ├─ node:os            │
└──────────────┘  JSON    │   │   (cpus/mem/loadavg)│
                          │   └─ node:fs statfs     │
                          └─────────────────────────┘

Development

lib/index.js    # Host half:os/fs 采样 + CPU tick 差值,注册 /dsh-sysmon 路由
lib/client.js   # Client half:状态栏 chip(__ModuleLoader__ bundle)

License

MIT

CLASSIFICATION EVIDENCE

分类依据

项目类型待识别
功能分类其他
规则置信度

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。