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/package.json CHANGED
@@ -1,19 +1,33 @@
1
1
  {
2
2
  "name": "tabby-group-server-stats",
3
- "version": "1.7.1",
4
- "description": "Server statistics for Tabby with validated custom metrics, hover details and grouped overview, carousel and static layouts",
3
+ "version": "1.7.3",
4
+ "description": "Tabby server monitoring: CPU, memory, disk, network and GPU metrics with grouped labels and hover details. Tabby 服务器监控:显存、磁盘、网络、自定义指标与多标签组。",
5
5
  "keywords": [
6
6
  "tabby-plugin",
7
+ "tabby",
8
+ "server-stats",
9
+ "server-monitoring",
7
10
  "ssh",
11
+ "metrics",
8
12
  "stats",
9
13
  "monitoring",
10
- "chartjs"
14
+ "gpu",
15
+ "disk",
16
+ "memory",
17
+ "network",
18
+ "metric-groups",
19
+ "服务器监控",
20
+ "显存",
21
+ "标签组"
11
22
  ],
12
- "author": "Akkariin",
23
+ "author": {
24
+ "name": "lishuainan0209",
25
+ "url": "https://github.com/lishuainan0209"
26
+ },
13
27
  "contributors": [
14
28
  {
15
- "name": "lishuainan0209",
16
- "url": "https://github.com/lishuainan0209"
29
+ "name": "Akkariin",
30
+ "url": "https://github.com/kasuganosoras"
17
31
  }
18
32
  ],
19
33
  "license": "MIT",
package/presets.json CHANGED
@@ -233,7 +233,7 @@
233
233
  }
234
234
  },
235
235
  "source": {
236
- "name": "Tabby Group Server Stats",
236
+ "name": "lishuainan0209 / Tabby Group Server Stats",
237
237
  "url": "https://github.com/lishuainan0209/tabby-group-server-stats",
238
238
  "license": "MIT"
239
239
  }
@@ -469,7 +469,7 @@
469
469
  "zh": "显存使用率;悬停显示剩余/总显存(GiB)。自动隐藏不存在的 GPU 0–7。"
470
470
  },
471
471
  "source": {
472
- "name": "Tabby Group Server Stats",
472
+ "name": "lishuainan0209 / Tabby Group Server Stats",
473
473
  "url": "https://github.com/lishuainan0209/tabby-group-server-stats",
474
474
  "license": "MIT"
475
475
  },
@@ -865,7 +865,7 @@
865
865
  }
866
866
  },
867
867
  "source": {
868
- "name": "Tabby Group Server Stats",
868
+ "name": "lishuainan0209 / Tabby Group Server Stats",
869
869
  "url": "https://github.com/lishuainan0209/tabby-group-server-stats",
870
870
  "license": "MIT"
871
871
  },
@@ -958,7 +958,7 @@
958
958
  }
959
959
  },
960
960
  "source": {
961
- "name": "Tabby Group Server Stats",
961
+ "name": "lishuainan0209 / Tabby Group Server Stats",
962
962
  "url": "https://github.com/lishuainan0209/tabby-group-server-stats",
963
963
  "license": "MIT"
964
964
  },
@@ -1084,7 +1084,7 @@
1084
1084
  }
1085
1085
  },
1086
1086
  "source": {
1087
- "name": "Tabby Group Server Stats",
1087
+ "name": "lishuainan0209 / Tabby Group Server Stats",
1088
1088
  "url": "https://github.com/lishuainan0209/tabby-group-server-stats",
1089
1089
  "license": "MIT"
1090
1090
  },
@@ -1210,7 +1210,7 @@
1210
1210
  }
1211
1211
  },
1212
1212
  "source": {
1213
- "name": "Tabby Group Server Stats",
1213
+ "name": "lishuainan0209 / Tabby Group Server Stats",
1214
1214
  "url": "https://github.com/lishuainan0209/tabby-group-server-stats",
1215
1215
  "license": "MIT"
1216
1216
  },
@@ -1363,7 +1363,7 @@
1363
1363
  }
1364
1364
  },
1365
1365
  "source": {
1366
- "name": "Tabby Group Server Stats",
1366
+ "name": "lishuainan0209 / Tabby Group Server Stats",
1367
1367
  "url": "https://github.com/lishuainan0209/tabby-group-server-stats",
1368
1368
  "license": "MIT"
1369
1369
  },
@@ -1486,7 +1486,7 @@
1486
1486
  }
1487
1487
  },
1488
1488
  "source": {
1489
- "name": "Tabby Group Server Stats",
1489
+ "name": "lishuainan0209 / Tabby Group Server Stats",
1490
1490
  "url": "https://github.com/lishuainan0209/tabby-group-server-stats",
1491
1491
  "license": "MIT"
1492
1492
  },
@@ -1515,7 +1515,7 @@
1515
1515
  "zh": "线程数与按处理器数量归一化的 1 分钟、5 分钟负载。"
1516
1516
  },
1517
1517
  "source": {
1518
- "name": "Tabby Group Server Stats",
1518
+ "name": "lishuainan0209 / Tabby Group Server Stats",
1519
1519
  "url": "https://github.com/lishuainan0209/tabby-group-server-stats",
1520
1520
  "license": "MIT"
1521
1521
  },
@@ -61,7 +61,13 @@ export declare class MetricStripComponent implements OnInit, OnChanges, OnDestro
61
61
  status(metric: CustomMetric): string;
62
62
  color(metric: CustomMetric): string;
63
63
  progress(metric: CustomMetric): number;
64
+ private isNetworkRate;
65
+ displayValue(metric: CustomMetric): string;
64
66
  suffix(metric: CustomMetric): string;
67
+ detailRatio(metric: CustomMetric): import("../metric-display").NumericRatio;
68
+ ratioColumnWidth(group: CustomMetricGroup, column: 'numerator' | 'denominator'): string;
69
+ ratioUnitWidth(group: CustomMetricGroup): string;
70
+ networkAmountWidth(group: CustomMetricGroup): string;
65
71
  detailError(metric: CustomMetric): boolean;
66
72
  networkDetail(metric: CustomMetric): {
67
73
  label: string;
@@ -128,6 +128,7 @@ export declare class ServerStatsSettingsComponent {
128
128
  importPresetFile(event: any): void;
129
129
  currentPresetLibrary(): string;
130
130
  exportCurrentPresets(): void;
131
+ isPresetAdded(preset: MetricPreset): boolean;
131
132
  addPreset(preset: MetricPreset | Partial<CustomMetric>): void;
132
133
  editMetric(index: number): void;
133
134
  cancelEdit(): void;
@@ -4,6 +4,17 @@ export interface DisplayResult {
4
4
  value: string;
5
5
  status?: 'ok' | 'unavailable' | 'error' | 'pending';
6
6
  }
7
+ /** True only for a complete, finite numeric display value (including grouped values). */
8
+ export declare function isNumericDisplayValue(value: string): boolean;
9
+ /** Convert a KiB/s reading to decimal MB/s with exactly three fractional digits. */
10
+ export declare function formatNetworkRate(value: string): string;
11
+ export interface NumericRatio {
12
+ numerator: string;
13
+ denominator: string;
14
+ suffix: string;
15
+ }
16
+ /** Split capacity-style pairs into independent columns without changing precision. */
17
+ export declare function parseNumericRatio(value: string): NumericRatio | null;
7
18
  /** Parse the built-in network protocol without translating numbers or interface names. */
8
19
  export declare function parseNetworkDetail(value: string): {
9
20
  label: string;
@@ -32,6 +32,21 @@ export interface InstantiatedPreset {
32
32
  metricGroups: CustomMetricGroup[];
33
33
  missingProfileNames: string[];
34
34
  }
35
+ export interface PresetOrigin {
36
+ id: string;
37
+ source: string;
38
+ kind: 'metric' | 'group';
39
+ }
40
+ /** A conservative legacy fallback: actual commands and targets, never display names. */
41
+ export declare function presetDefinitionFingerprint(item: CustomMetric | CustomMetricGroup, kind: 'metric' | 'group'): string;
42
+ /** Same preset remains installed after renaming, disabling or editing its rules. */
43
+ export declare function findInstalledPreset(preset: MetricPreset, config: {
44
+ customMetrics?: CustomMetric[];
45
+ metricGroups?: CustomMetricGroup[];
46
+ }, profiles?: PresetProfile[]): {
47
+ kind: 'metric' | 'group';
48
+ id: string;
49
+ } | null;
35
50
  /** A failed query stays failed; empty or zero-capacity output is never shown as 0%. */
36
51
  export declare function createGpuCommand(index?: number, detail?: boolean): string;
37
52
  export declare function createGpuCheckCommand(index?: number): string;