tabby-group-server-stats 1.7.1 → 1.7.3
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/NOTICE +3 -2
- package/PUBLISHING.zh-CN.md +19 -9
- package/README.en.md +25 -6
- package/README.md +25 -6
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +20 -6
- package/presets.json +9 -9
- package/typings/components/metric-strip.component.d.ts +6 -0
- package/typings/components/settings.component.d.ts +1 -0
- package/typings/metric-display.d.ts +11 -0
- package/typings/preset-library.d.ts +15 -0
package/NOTICE
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
Tabby Group Server Stats
|
|
1
|
+
Tabby Group Server Stats
|
|
2
2
|
|
|
3
3
|
This project is a modified fork of Tabby Server Stats:
|
|
4
4
|
https://github.com/kasuganosoras/tabby-server-stats
|
|
5
5
|
|
|
6
6
|
Original work: Copyright (c) 2023 Akkariin Meiko.
|
|
7
7
|
Original package author: Akkariin.
|
|
8
|
-
Fork maintainer: lishuainan0209.
|
|
8
|
+
Fork author and maintainer: lishuainan0209.
|
|
9
|
+
Fork modifications: Copyright (c) 2026 lishuainan0209.
|
|
9
10
|
Fork repository: https://github.com/lishuainan0209/tabby-group-server-stats
|
|
10
11
|
|
|
11
12
|
The original MIT license and copyright notice are preserved in LICENSE.
|
package/PUBLISHING.zh-CN.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# 打包、本地测试与发布
|
|
2
2
|
|
|
3
|
-
本文面向 `tabby-group-server-stats 1.7.
|
|
3
|
+
本文面向 `tabby-group-server-stats 1.7.3` 的维护者。源码目录为 `D:\tabby-group-server-stats`;功能与预设说明见 [中文 README](README.md) / [English README](README.en.md)。
|
|
4
4
|
|
|
5
|
-
1.7.
|
|
5
|
+
1.7.3 统一 fork 作者和维护者为 lishuainan0209,加入预设重复添加保护,并完善中英文搜索元数据与安装说明;保留上游 MIT 版权与贡献声明,包含 1.7.2 的显示修正。
|
|
6
6
|
|
|
7
7
|
1.7.0 增加 GitHub 预设导入、内置项持久化排序、清晰分区与卡片边框、紧凑组分隔,并更新磁盘汇总、登录会话名单、双向网络速率及累计量和默认颜色阈值。版本号不表示已经推送或发布。
|
|
8
8
|
|
|
@@ -46,10 +46,10 @@ TypeScript、Angular 和 Webpack 使用项目内依赖,不需要全局安装
|
|
|
46
46
|
```powershell
|
|
47
47
|
npm.cmd pack --dry-run
|
|
48
48
|
npm.cmd pack
|
|
49
|
-
tar -tf .\tabby-group-server-stats-1.7.
|
|
49
|
+
tar -tf .\tabby-group-server-stats-1.7.3.tgz
|
|
50
50
|
```
|
|
51
51
|
|
|
52
|
-
`prepack` 自动执行类型检查、普通测试和正式构建;任一失败会阻止打包。浏览器测试需另外运行。产物为 `tabby-group-server-stats-1.7.
|
|
52
|
+
`prepack` 自动执行类型检查、普通测试和正式构建;任一失败会阻止打包。浏览器测试需另外运行。产物为 `tabby-group-server-stats-1.7.3.tgz`,后续本地验收与发布应使用同一份已检查的包。[npm pack 文档](https://docs.npmjs.com/cli/v11/commands/npm-pack/)
|
|
53
53
|
|
|
54
54
|
确认包内包含:
|
|
55
55
|
|
|
@@ -59,7 +59,7 @@ tar -tf .\tabby-group-server-stats-1.7.1.tgz
|
|
|
59
59
|
|
|
60
60
|
离线预设会随构建打入插件,无需联网即可使用。用户点击“从 GitHub 导入”时才从当前 fork 的 `main/presets.json` 获取并合并预览,保留本地和此前导入的其他条目;远端内容以实际推送状态为准,不保证已包含本地新改动。检查包中没有 SSH 凭据、连接地址、用户配置、私有配置 ID 或开发用整个 `node_modules`。共享标签库也应只包含可公开的命令、说明和连接名称,不包含真实连接参数。
|
|
61
61
|
|
|
62
|
-
`LICENSE` 必须保留原 MIT 全文及 Copyright (c) 2023 Akkariin Meiko;`NOTICE`
|
|
62
|
+
`LICENSE` 必须保留原 MIT 全文及 Copyright (c) 2023 Akkariin Meiko;`NOTICE` 保留来源、原作者与 fork 修改说明。`package.json` 的 `author` 标注本 fork 作者和维护者 lishuainan0209,`contributors` 保留上游作者 Akkariin。依赖许可证继续分别适用。
|
|
63
63
|
|
|
64
64
|
## 在独立便携版 Tabby 中安装
|
|
65
65
|
|
|
@@ -72,7 +72,7 @@ Tabby 1.0.238 在发现 `Tabby.exe` 同级的 `data` 目录时将用户数据放
|
|
|
72
72
|
```powershell
|
|
73
73
|
Set-Location -LiteralPath 'D:\tabby-group-server-stats'
|
|
74
74
|
$testRoot = Join-Path (Get-Location).Path 'work\tabby-portable-test'
|
|
75
|
-
$archive = (Resolve-Path -LiteralPath '.\tabby-group-server-stats-1.7.
|
|
75
|
+
$archive = (Resolve-Path -LiteralPath '.\tabby-group-server-stats-1.7.3.tgz').Path
|
|
76
76
|
|
|
77
77
|
if (-not (Test-Path -LiteralPath (Join-Path $testRoot 'Tabby.exe'))) {
|
|
78
78
|
throw '请先将 Tabby 便携版解压到测试目录。'
|
|
@@ -108,8 +108,9 @@ npm.cmd install --prefix "$pluginRoot" --omit=dev --legacy-peer-deps "$archive"
|
|
|
108
108
|
10. **范围生命周期**:重命名保持关联;删除后不转为全局,同名新连接不继承。指定范围为空仍不显示。仅针对整个布局绑定,未标记的旧布局或刚保存的新布局重开一次,再检查恢复、分屏和移动窗格。
|
|
109
109
|
11. **离线与 GitHub 库**:20 项(12 单标签、8 组)可离线搜索、加载和添加;GitHub 与 JSON 导入均只预览、点击添加才生效,保留当前及此前导入的条目并按同 ID 更新。检查 15 秒超时、2 MiB 上限、HTTP/JSON 错误时原列表不变。导出/导入保留类型、颜色规则、开关、来源与双语描述,不携带本地范围 ID。缺失或重名连接提示补选,保持指定范围为空而非全局。
|
|
110
110
|
12. **磁盘与 GPU**:所有磁盘组主标签为总余量、系统盘为第一子标签;只汇总可读有效文件系统,同一文件系统的绑定挂载不重复计数。P1 宿主模板只绑定 P1(ai)、仅系统盘;P1 容器模板绑定 P1(s_lsn)、包含 `/public`。P0/P2/P4 检查 `/data`,P3 检查 `/data` 和 `/lsn_disk1`。GPU 主值为显存占比,详情用 `memory.free / 1024` 的 GiB;无设备主标签提示、缺失子 GPU 隐藏。
|
|
111
|
-
13. **登录用户与网络**:登录用户主值包含正常 tty/pts/console 会话,悬停按用户名稳定汇总;空数据为 `0`/`-`,命令失败不冒充空数据。网络按默认路由网卡优先、无路由时回退非回环网卡;Linux/macOS
|
|
111
|
+
13. **登录用户与网络**:登录用户主值包含正常 tty/pts/console 会话,悬停按用户名稳定汇总;空数据为 `0`/`-`,命令失败不冒充空数据。网络按默认路由网卡优先、无路由时回退非回环网卡;Linux/macOS 下载和上传分别验证原始速率 KiB/s、显示速率 MB/s(三位小数)、累计 GiB 与网卡名称,颜色判断保持使用原始速率。累计量自接口建立或计数器重置起算,不是本次 SSH 登录后的流量。
|
|
112
112
|
14. **阈值与双语**:红色规则先于橙色。逐一验证边界:单盘 20/40 GiB、总余量 50/100 GiB、GPU 显存 50/80%、RAM 60/80%、CPU 1min/5min 负载 100/150%;比较方向与包含边界应符合 README 表格。检查中英文切换、26 个图标搜索分类及自定义 SVG。
|
|
113
|
+
15. **预设重复添加**:同来源、同稳定 ID 的单标签或标签组只添加一次;改名和禁用后仍能识别。旧配置结合命令与显示范围匹配,不仅凭标题去重;不同范围的旧配置不能被误判。防止新增重复项与清理历史副本分别验收,清理本地副本前保留配置备份。
|
|
113
114
|
|
|
114
115
|
## 发布到 npm
|
|
115
116
|
|
|
@@ -126,7 +127,7 @@ npm.cmd whoami --registry=https://registry.npmjs.org/
|
|
|
126
127
|
验收通过后,手动发布刚才测试的同一个包:
|
|
127
128
|
|
|
128
129
|
```powershell
|
|
129
|
-
npm.cmd publish .\tabby-group-server-stats-1.7.
|
|
130
|
+
npm.cmd publish .\tabby-group-server-stats-1.7.3.tgz --access public --registry=https://registry.npmjs.org/
|
|
130
131
|
npm.cmd view tabby-group-server-stats version dist.tarball --registry=https://registry.npmjs.org/
|
|
131
132
|
```
|
|
132
133
|
|
|
@@ -136,4 +137,13 @@ npm.cmd view tabby-group-server-stats version dist.tarball --registry=https://re
|
|
|
136
137
|
|
|
137
138
|
Tabby 1.0.238 的插件管理器通过 npm 的 `tabby-plugin` 关键词搜索,并过滤以 `tabby-` 开头的包名。本项目使用非 scoped 的 `tabby-group-server-stats`,且包含所需关键词。[插件管理器源码](https://github.com/Eugeny/tabby/blob/v1.0.238/tabby-plugin-manager/src/services/pluginManager.service.ts)
|
|
138
139
|
|
|
139
|
-
发布成功且 npm 搜索索引更新后,在 Tabby 设置 →
|
|
140
|
+
发布成功且 npm 搜索索引更新后,在 Tabby 设置 → 插件 → 可用中搜索 **`maintainer:lishuainan0209`**,选择 **`group-server-stats`** 安装并重启。也可搜索包名,但新包可能排在大量结果后面;Tabby 的显示名称省略了 `tabby-` 前缀。先用 `npm view` 确认公开版本和元数据,再刷新插件列表。推送 GitHub 或上传 GitHub Release 本身不会发布 npm 包。[Tabby 插件开发说明](https://github.com/Eugeny/tabby/blob/master/HACKING.md#plugins)
|
|
141
|
+
|
|
142
|
+
发布验收可以直接查询 Tabby 使用的搜索接口,确认结果包含目标版本:
|
|
143
|
+
|
|
144
|
+
```powershell
|
|
145
|
+
$searchUrl = 'https://registry.npmjs.com/-/v1/search?text=keywords%3Atabby-plugin%20maintainer%3Alishuainan0209&size=250'
|
|
146
|
+
(Invoke-RestMethod -Uri $searchUrl).objects.package | Select-Object name, version
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
`description` 和 `keywords` 只填写项目实际功能;本项目覆盖 Tabby、SSH 服务器监控、CPU、内存、GPU 显存、磁盘、网络、自定义指标和多标签组。npm 根据包名、描述、README 和关键词进行匹配,排序由 npm 决定。维护相关元数据有助于表达用途,但不能保证名次或索引更新时间;不要把下载量、GitHub 星标或重复发布写成必然提升排名的方法。[npm 搜索说明](https://docs.npmjs.com/searching-for-and-choosing-packages-to-download/)
|
package/README.en.md
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
[中文](README.md) | English
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
SSH server monitoring for [Tabby](https://github.com/Eugeny/tabby): CPU load, memory, disk capacity, network rates and GPU memory metrics. Add custom shell commands, hover details and metric groups with overview, carousel or static layouts. The current version is **1.7.3**, adding duplicate-preset protection while retaining compact rows, three-decimal MB/s rates and aligned capacity columns.
|
|
6
6
|
|
|
7
|
-
This is an MIT-licensed fork of [Akkariin's tabby-server-stats](https://github.com/kasuganosoras/tabby-server-stats). The version number alone does not mean that the package has been published to npm.
|
|
7
|
+
Fork author and maintainer: [lishuainan0209](https://github.com/lishuainan0209). This is an MIT-licensed fork of [Akkariin's tabby-server-stats](https://github.com/kasuganosoras/tabby-server-stats). The version number alone does not mean that the package has been published to npm.
|
|
8
8
|
|
|
9
9
|
**The SSH hotfix from 1.6.1 is retained.** Previously, oversized SSH execution requests could disconnect the entire connection when many metrics were enabled. A fixed short command now receives the script through standard input in 8 KiB chunks, retaining the bounded completion acknowledgment. Transfer failures close only the statistics channel, without deliberately closing the terminal session or automatically rerunning user commands.
|
|
10
10
|
|
|
@@ -20,7 +20,7 @@ The preview uses example configuration data and the Chinese interface.
|
|
|
20
20
|
- **Independent switches:** disable a standalone label, an entire group, its main label or individual children without deleting commands or color rules.
|
|
21
21
|
- **Connection scopes:** select saved connections or layouts; each pane in a mixed layout retains its own connection identity.
|
|
22
22
|
- **Editable, reorderable built-ins:** customize CPU, memory, disk and network definitions, move them up or down in both panels, or restore one built-in's defaults.
|
|
23
|
-
- **Offline and GitHub library:** 20 bundled presets—12 standalone labels and 8 groups—with imports from this fork, JSON import/export and search.
|
|
23
|
+
- **Offline and GitHub library:** 20 bundled presets—12 standalone labels and 8 groups—with imports from this fork, JSON import/export and search; repeated clicks do not add another copy of an existing preset.
|
|
24
24
|
- **Clear section and card borders:** separate built-ins, presets, standalone labels and groups; compact line separators between displayed groups.
|
|
25
25
|
- **English/Chinese UI and 26 original monitoring icons:** searchable categories, existing icon support and custom SVGs.
|
|
26
26
|
|
|
@@ -85,7 +85,7 @@ Use each card's up/down buttons to reorder CPU, memory, disk and network. The or
|
|
|
85
85
|
|
|
86
86
|
**Restore defaults** removes only the selected built-in's override, preserving its top-level enable switch and ordering, and leaving other built-ins and custom labels untouched. Restoring network resets that group's main/child definitions to their factory configuration.
|
|
87
87
|
|
|
88
|
-
Built-in CPU, memory, disk and network commands support Linux/macOS; most other library presets target Linux. Download and upload show the current received/sent rates in KiB/s. Each direction's hover detail shows its own cumulative GiB and the interfaces included. Default-route interfaces are preferred; without a usable default route, eligible non-loopback interfaces are used. **Totals cover the time since interface creation or counter reset, not since the current SSH login.**
|
|
88
|
+
Built-in CPU, memory, disk and network commands support Linux/macOS; most other library presets target Linux. Download and upload show the current received/sent rates in decimal MB/s with three fractional digits and thousands separators. Commands still return KiB/s; thresholds continue to use raw values. Each direction's hover detail shows its own cumulative GiB and the interfaces included. Default-route interfaces are preferred; without a usable default route, eligible non-loopback interfaces are used. **Totals cover the time since interface creation or counter reset, not since the current SSH login.**
|
|
89
89
|
|
|
90
90
|
The target system needs `timeout`, `gtimeout` or `setsid` for bounded command execution.
|
|
91
91
|
|
|
@@ -95,6 +95,8 @@ The shipped library works offline. **Import from GitHub** reads [this fork's mai
|
|
|
95
95
|
|
|
96
96
|
GitHub and JSON imports only preview entries: they do not execute commands or add status-bar items until you click **Add**. GitHub downloads have a 15-second timeout and a 2 MiB size limit, and do not upload local configuration or connection information. Search or export the current custom standalone labels and groups; exports omit built-in overrides. The format supports `kind: "metric"` and `kind: "group"`, and accepts the original flat metric array.
|
|
97
97
|
|
|
98
|
+
**Add each preset once.** Newly added standalone labels and groups record their source and stable preset ID. Renaming or disabling an item does not allow another copy to be added from the same preset. Legacy configuration without source markers is checked using commands and display scope rather than its name alone. This protection does not automatically delete historical duplicates: back up local configuration before removing unwanted copies.
|
|
99
|
+
|
|
98
100
|
The 12 standalone presets cover uptime, temperature, system load, logged-in users, Docker containers, GPU memory, SSH sessions, SSH latency, I/O wait, CPU steal, failed services and service state. The 8 groups are:
|
|
99
101
|
|
|
100
102
|
**Laboratory-specific presets: P0磁盘, P1磁盘, P1容器磁盘, P2磁盘, P3磁盘 and P4磁盘 are for the author's laboratory only. Other users: please do not download or use these presets.** Their mount paths and saved connection names are specific to the author's laboratory; they are not generic server templates. This usage-scope notice does not apply to the general GPU or CPU-load presets and does not change the rights granted by the MIT license.
|
|
@@ -148,7 +150,11 @@ Saved layouts have IDs separate from the connections inside them. The plugin rec
|
|
|
148
150
|
|
|
149
151
|
## Install, develop and publish
|
|
150
152
|
|
|
151
|
-
|
|
153
|
+
In **Tabby Settings → Plugins → Available**, search for **`maintainer:lishuainan0209`**, install **`group-server-stats`**, then restart Tabby. Filtering by maintainer makes the package easier to find when a newly published package appears low in a long result list. You can also search for `tabby-group-server-stats`; Tabby omits the `tabby-` prefix from the displayed name.
|
|
154
|
+
|
|
155
|
+
The description and keywords cover server monitoring, GPU memory, disk, network and metric groups. npm matches package names, descriptions, README content and keywords; npm controls result ordering, so metadata changes do not guarantee a particular ranking or immediate visibility. [npm search documentation](https://docs.npmjs.com/searching-for-and-choosing-packages-to-download/)
|
|
156
|
+
|
|
157
|
+
See the [npm package page](https://www.npmjs.com/package/tabby-group-server-stats) for public versions. Test unpublished local versions with a `.tgz`. A GitHub fork, a successful build, npm publication and Tabby's search index are separate steps.
|
|
152
158
|
|
|
153
159
|
Development needs Node.js, npm, Git and Tabby. Global Angular CLI/Webpack installations and Python are not required for this project. Keep the lockfile and `.npmrc`, then run from the repository root:
|
|
154
160
|
|
|
@@ -161,7 +167,7 @@ npm.cmd run test:ui
|
|
|
161
167
|
npm.cmd pack
|
|
162
168
|
```
|
|
163
169
|
|
|
164
|
-
`npm pack` reruns type checking, unit tests and the production build, producing `tabby-group-server-stats-1.7.
|
|
170
|
+
`npm pack` reruns type checking, unit tests and the production build, producing `tabby-group-server-stats-1.7.3.tgz`; compiled files are in `dist/`. Browser tests use real Angular components with simulated data, while command tests use a local shell. Live SSH command validation and desktop split-pane acceptance need their own recorded results.
|
|
165
171
|
|
|
166
172
|
This fork retains `plugin.serverStats` configuration compatibility. **Enable either the upstream plugin or this fork in a Tabby instance**, to avoid duplicate collection. An isolated portable Tabby installation is recommended for initial testing. See the [packaging, local-installation and publishing guide (Chinese)](PUBLISHING.zh-CN.md) for commands and acceptance checks.
|
|
167
173
|
|
|
@@ -170,3 +176,16 @@ This fork retains `plugin.serverStats` configuration compatibility. **Enable eit
|
|
|
170
176
|
Original project: [kasuganosoras/tabby-server-stats](https://github.com/kasuganosoras/tabby-server-stats), by Akkariin, Copyright (c) 2023 Akkariin Meiko. [LICENSE](LICENSE) preserves the original MIT text, and [NOTICE](NOTICE) describes this fork's attribution and changes. The 26 new monitoring icons use MIT as well; dependencies retain their own licenses and notices.
|
|
171
177
|
|
|
172
178
|
Report problems or suggest improvements through [this project's Issues](https://github.com/lishuainan0209/tabby-group-server-stats/issues). Shared presets should state required tools, metric meaning and source licenses.
|
|
179
|
+
|
|
180
|
+
### 1.7.2 display fixes
|
|
181
|
+
|
|
182
|
+
- Convert KiB/s readings to MB/s with three fractional digits.
|
|
183
|
+
- Remove gaps between static vertical rows, add thin separators, and reduce bottom-bar padding.
|
|
184
|
+
- Right-align numeric columns and both sides of capacity ratios; hover popups retain comfortable spacing.
|
|
185
|
+
|
|
186
|
+
### 1.7.3 attribution, duplicate presets and discovery
|
|
187
|
+
|
|
188
|
+
- Identify lishuainan0209 as this fork's author and maintainer, including fork preset sources.
|
|
189
|
+
- Retain Akkariin's upstream MIT copyright, source links and contributor credit.
|
|
190
|
+
- Prevent duplicate preset additions using source and stable ID, including renamed or disabled items; use commands and scope to recognize legacy entries.
|
|
191
|
+
- Add relevant bilingual metadata and document installation through maintainer search, without promising a search ranking.
|
package/README.md
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
中文 | [English](README.en.md)
|
|
4
4
|
|
|
5
|
-
为 [Tabby](https://github.com/Eugeny/tabby)
|
|
5
|
+
为 [Tabby](https://github.com/Eugeny/tabby) 提供 SSH 服务器监控(server monitoring):CPU 负载、内存、磁盘容量、网络速率和 GPU 显存指标。支持自定义 Shell 命令、悬停详情,以及概览、轮播、静态显示的多标签组(metric groups)。当前版本为 **1.7.3**,加入预设重复添加保护,保留紧凑底栏、MB/s 三位小数及容量数字分列对齐。
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
本 fork 作者及维护者:[lishuainan0209](https://github.com/lishuainan0209)。本项目基于 [Akkariin 的 tabby-server-stats](https://github.com/kasuganosoras/tabby-server-stats) 二次开发,继续使用 MIT 许可证。版本号不代表已经发布到 npm。
|
|
8
8
|
|
|
9
9
|
**保留 1.6.1 的 SSH 热修复**:此前指标较多时,超长 SSH 执行请求可能导致整个连接断开。执行请求已改为固定短命令,脚本通过标准输入按 8 KiB 分块传输,保留完整接收后的有时限确认。传输失败只关闭本次统计通道,不主动关闭终端会话,也不会自动重跑用户命令。
|
|
10
10
|
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
- **分别启用**:单标签、整个标签组、组内主标签和每个子标签都能独立开关,配置及颜色规则保留。
|
|
21
21
|
- **按连接显示**:多选保存的连接或布局,正确区分混合分屏中的每个会话。
|
|
22
22
|
- **可编辑、可排序的内置指标**:CPU、内存、磁盘和网络可修改命令与样式,使用上下移按钮调整两种面板的显示顺序,也可单独恢复默认。
|
|
23
|
-
- **离线与 GitHub 标签库**:内附 20 个预设(12 个单标签、8 个标签组),支持从本 fork 的 GitHub 导入、JSON
|
|
23
|
+
- **离线与 GitHub 标签库**:内附 20 个预设(12 个单标签、8 个标签组),支持从本 fork 的 GitHub 导入、JSON 导入导出和搜索;已添加的预设不会因重复点击而产生副本。
|
|
24
24
|
- **清晰的区域与卡片边框**:内置指标、预设库、单标签、多标签组四块区域分别显示;状态栏组间采用紧凑细线分隔。
|
|
25
25
|
- **中英文界面与 26 款原创图标**:图标按用途分类、可搜索,也支持原有图标和自定义 SVG。
|
|
26
26
|
|
|
@@ -85,7 +85,7 @@ CPU、内存、磁盘是单标签;网络是静态竖排标签组,默认显
|
|
|
85
85
|
|
|
86
86
|
“恢复默认”只删除当前内置项的自定义覆盖,保留它的顶层启用开关和排列顺序,不影响其他内置项或自定义标签。网络恢复默认会恢复该组的出厂主、子标签配置。
|
|
87
87
|
|
|
88
|
-
内置 CPU、内存、磁盘和网络均包含 Linux/macOS 适配,多数其他离线预设面向 Linux
|
|
88
|
+
内置 CPU、内存、磁盘和网络均包含 Linux/macOS 适配,多数其他离线预设面向 Linux。网络下载、上传主值分别是当前接收、发送速率,显示单位为 MB/s(十进制),固定三位小数并带千位逗号;采集命令仍输出 KiB/s,颜色规则继续按原始数值判断;各自悬停显示对应方向的累计 GiB 和参与统计的网卡。默认优先选择默认路由网卡,没有可用默认路由时回退到符合条件的非回环网卡。**累计量从接口建立或计数器重置起计算,不是本次 SSH 登录后的流量**。
|
|
89
89
|
|
|
90
90
|
目标系统需要提供 `timeout`、`gtimeout` 或 `setsid` 之一,用于命令超时保护。
|
|
91
91
|
|
|
@@ -95,6 +95,8 @@ CPU、内存、磁盘是单标签;网络是静态竖排标签组,默认显
|
|
|
95
95
|
|
|
96
96
|
从 GitHub 或 JSON 导入仅预览,不执行命令,也不自动添加到状态栏;逐项点击“添加”才生效。GitHub 获取具有 15 秒超时和 2 MiB 大小上限,不上传本地配置或连接信息。设置页还支持搜索和导出当前自定义单标签/标签组;导出不包含内置指标覆盖。JSON 同时支持 `kind: "metric"`、`kind: "group"`,也兼容原版的平铺单标签数组。
|
|
97
97
|
|
|
98
|
+
**同一预设只添加一次。** 新添加的单标签和标签组会记录来源与预设的稳定 ID;即使之后改名或禁用,再次点击同一预设也不会创建重复项。没有来源标记的旧配置,会结合命令和显示范围识别已有项目,避免仅凭名称误判。重复添加保护不会自动删除历史副本;清理已有重复项时,应先备份本地配置,再保留需要的那一份。
|
|
99
|
+
|
|
98
100
|
12 个单标签覆盖运行时间、温度、系统负载、登录用户、Docker 容器、GPU 显存、SSH 会话、SSH 延迟、I/O 等待、CPU Steal、失败服务和服务状态。8 个标签组如下:
|
|
99
101
|
|
|
100
102
|
**实验室专用预设说明:P0磁盘、P1磁盘、P1容器磁盘、P2磁盘、P3磁盘、P4磁盘均为作者实验室自用,其他人请勿下载使用。** 这些预设依赖作者实验室的挂载路径和连接配置,不是通用服务器模板。通用 GPU、CPU 负载等预设不受此适用范围提示影响。此提示用于说明适用环境,不改变 MIT 许可证授予的权利。
|
|
@@ -148,7 +150,11 @@ GPU 阈值衡量显存占用,不是 GPU 计算利用率;CPU 负载按逻辑
|
|
|
148
150
|
|
|
149
151
|
## 安装、开发与发布
|
|
150
152
|
|
|
151
|
-
|
|
153
|
+
在 Tabby 设置 → 插件 → 可用中,搜索 **`maintainer:lishuainan0209`**,找到 **`group-server-stats`** 后安装并重启。这种按维护者筛选的方式可避免新包在大量搜索结果中排得靠后;也可搜索包名 `tabby-group-server-stats`。插件页显示名称会省略 `tabby-` 前缀。
|
|
154
|
+
|
|
155
|
+
包的介绍和关键词包含服务器监控、GPU 显存、磁盘、网络与多标签组,便于按实际功能查找。npm 会匹配包名、描述、README 和关键词,但搜索位置由 npm 决定,元数据调整不保证排名或立即生效。[npm 搜索说明](https://docs.npmjs.com/searching-for-and-choosing-packages-to-download/)
|
|
156
|
+
|
|
157
|
+
公开版本见 [npm 包页面](https://www.npmjs.com/package/tabby-group-server-stats)。尚未发布的本地版本使用 `.tgz` 包测试;GitHub fork、构建成功、npm 发布和 Tabby 搜索索引是不同步骤。
|
|
152
158
|
|
|
153
159
|
开发需要 Node.js、npm、Git 和 Tabby;无需全局安装 Angular CLI、Webpack 或 Python。保留仓库锁文件及 `.npmrc`,在仓库根目录执行:
|
|
154
160
|
|
|
@@ -161,7 +167,7 @@ npm.cmd run test:ui
|
|
|
161
167
|
npm.cmd pack
|
|
162
168
|
```
|
|
163
169
|
|
|
164
|
-
`npm pack` 会再次执行类型检查、普通测试和正式构建,生成 `tabby-group-server-stats-1.7.
|
|
170
|
+
`npm pack` 会再次执行类型检查、普通测试和正式构建,生成 `tabby-group-server-stats-1.7.3.tgz`;构建文件在 `dist/`。浏览器测试使用真实 Angular 组件与模拟数据,命令测试在本机 shell 运行;真实 SSH 命令验证与 Tabby 分屏验收需要分别记录结果。
|
|
165
171
|
|
|
166
172
|
本 fork 继续使用 `plugin.serverStats` 配置,方便沿用已有指标。**同一个 Tabby 实例只启用原版或本 fork 其中一个**,避免重复采集。推荐先使用独立便携版测试。完整的本地安装命令、验收项目和 npm/Tabby 发布步骤见 [打包、测试与发布](PUBLISHING.zh-CN.md)。
|
|
167
173
|
|
|
@@ -170,3 +176,16 @@ npm.cmd pack
|
|
|
170
176
|
原项目为 [kasuganosoras/tabby-server-stats](https://github.com/kasuganosoras/tabby-server-stats),原作者 Akkariin,版权声明为 Copyright (c) 2023 Akkariin Meiko。[LICENSE](LICENSE) 保留原始 MIT 全文,[NOTICE](NOTICE) 说明本 fork 的修改和来源。新增 26 款监控图标同样采用 MIT 许可证;依赖及其许可证声明保留各自要求。
|
|
171
177
|
|
|
172
178
|
问题反馈和改进建议请提交到 [本项目 Issues](https://github.com/lishuainan0209/tabby-group-server-stats/issues)。分享预设时请附命令所需工具、显示含义和来源许可证。
|
|
179
|
+
|
|
180
|
+
### 1.7.2 显示修正
|
|
181
|
+
|
|
182
|
+
- 网速由 KiB/s 换算为 MB/s,固定三位小数。
|
|
183
|
+
- 静态竖排标签取消行间空隙,用细线分隔;底栏上下留白缩小。
|
|
184
|
+
- 同组数值右对齐,容量详情中斜杠两侧数字分别对齐,悬停弹窗保留较宽松行距。
|
|
185
|
+
|
|
186
|
+
### 1.7.3 署名、预设去重与搜索说明
|
|
187
|
+
|
|
188
|
+
- 本 fork 的作者和维护者统一为 lishuainan0209,预设来源同步标注。
|
|
189
|
+
- 保留上游作者 Akkariin 的 MIT 版权、来源链接和贡献声明。
|
|
190
|
+
- 预设按来源和稳定 ID 防止重复添加,改名或禁用后仍能识别;旧配置以命令与显示范围辅助匹配。
|
|
191
|
+
- 补充中英文功能描述与相关关键词,并说明按维护者搜索安装的方法;不承诺搜索排名。
|