about-system 0.0.40 → 0.0.45

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.
@@ -18,9 +18,10 @@ import { CACHE_FILE } from "./info/settings"; // Using CACHE_FILE from settings
18
18
 
19
19
  // Import info functions from modules
20
20
  import { user, hostname, os_info, kernel, device } from "./info/platform";
21
- import { cpu, gpu, screen_resolution, bench, cpu_bench_info } from "./info/hardware";
21
+ import { cpu, gpu, screen_resolution, bench, cpu_bench_info, gpu_bench, gpu_bench_info } from "./info/hardware";
22
22
  import {
23
23
  disk_used,
24
+ disk_size,
24
25
  ram_used,
25
26
  memory_available,
26
27
  swap_used,
@@ -54,6 +55,8 @@ const CACHE_DURATION = {
54
55
  gpu: 24 * 60 * 60 * 1000,
55
56
  bench: 24 * 60 * 60 * 1000,
56
57
  cpu_bench_info: 24 * 60 * 60 * 1000,
58
+ gpu_bench: 24 * 60 * 60 * 1000,
59
+ gpu_bench_info: 24 * 60 * 60 * 1000,
57
60
  os: 24 * 60 * 60 * 1000,
58
61
  device: 24 * 60 * 60 * 1000,
59
62
  kernel: 60 * 60 * 1000,
@@ -62,6 +65,7 @@ const CACHE_DURATION = {
62
65
  containers: 5 * 60 * 1000,
63
66
  top_process: 5 * 1000,
64
67
  disk_used: 60 * 1000,
68
+ disk_size: 60 * 1000,
65
69
  ram_used: 10 * 1000,
66
70
  services_running: 5 * 60 * 1000,
67
71
  temperature: 30 * 1000,
@@ -195,7 +199,10 @@ export const infoFunctions = {
195
199
  gpu,
196
200
  bench,
197
201
  cpu_bench_info,
202
+ gpu_bench,
203
+ gpu_bench_info,
198
204
  disk_used,
205
+ disk_size,
199
206
  ram_used,
200
207
  top_process,
201
208
  uptime,
@@ -109,15 +109,16 @@ export interface SystemInfo {
109
109
  cpu: string;
110
110
 
111
111
  /**
112
- * Graphics card model name
113
- * Primary GPU identification (Linux systems primarily)
114
- * Extracted from lspci output when available
115
- * Empty string if no discrete GPU or detection fails
112
+ * Graphics card model name(s)
113
+ * All detected GPUs, comma-separated if multiple
114
+ * Matches VGA, 3D controller, and Display controller devices
115
+ * Extracted from lspci output (Linux) or WMI (Windows)
116
+ * Empty string if no GPU detected or detection fails
116
117
  *
117
118
  * @example
118
119
  * - "NVIDIA GeForce RTX 4070"
119
- * - "AMD Radeon RX 6800 XT"
120
- * - "Intel UHD Graphics 770"
120
+ * - "GeForce RTX 3070, Radeon RX 6800 XT"
121
+ * - "Intel UHD Graphics 770, NVIDIA GeForce RTX 4090"
121
122
  */
122
123
  gpu: string;
123
124
 
@@ -128,8 +129,8 @@ export interface SystemInfo {
128
129
  * Empty string if CPU not found or benchmark data unavailable
129
130
  *
130
131
  * @example
131
- * - "💪 37.9k #1" (top performing CPU)
132
- * - "💪 20.5k #68" (mid-range CPU)
132
+ * - "37.9k #1" (top performing CPU)
133
+ * - "20.5k #68" (mid-range CPU)
133
134
  * - "" (CPU not in benchmark database)
134
135
  */
135
136
  bench: string;
@@ -148,6 +149,32 @@ export interface SystemInfo {
148
149
  */
149
150
  cpu_bench_info: string;
150
151
 
152
+ /**
153
+ * GPU benchmark score from Geekbench 6 OpenCL
154
+ * Shows performance score (in thousands) and ranking position
155
+ * Uses fuzzy matching to find similar GPU models from benchmark data
156
+ * Empty string if GPU not found or benchmark data unavailable
157
+ *
158
+ * @example
159
+ * - "37.9k #1" (top performing GPU)
160
+ * - "20.5k #68" (mid-range GPU)
161
+ * - "" (GPU not in benchmark database)
162
+ */
163
+ gpu_bench: string;
164
+
165
+ /**
166
+ * Detailed GPU benchmark information from Geekbench 6 OpenCL
167
+ * Shows score, rank, and vendor type (NVIDIA/AMD/Intel)
168
+ * Uses fuzzy matching to find similar GPU models
169
+ * Empty string if GPU not found or benchmark data unavailable
170
+ *
171
+ * @example
172
+ * - "Geekbench 6: 37.9k (Rank #1) - NVIDIA" (NVIDIA GPU)
173
+ * - "Geekbench 6: 20.5k (Rank #68) - AMD" (AMD GPU)
174
+ * - "" (GPU not in benchmark database)
175
+ */
176
+ gpu_bench_info: string;
177
+
151
178
  /**
152
179
  * Device or computer model name
153
180
  * Hardware model identification when available
@@ -176,6 +203,18 @@ export interface SystemInfo {
176
203
  */
177
204
  disk_used: string;
178
205
 
206
+ /**
207
+ * Disk size (used/total) for each real disk
208
+ * Format: "used/total GB" when a single real disk is found, or
209
+ * "mount(used/total GB) ..." per disk when multiple are found
210
+ * Pseudo filesystems and small system/boot partitions (under 10GB) are
211
+ * excluded
212
+ * Empty string if unable to determine
213
+ *
214
+ * @example "256/512GB", "/(100/500GB) /Volumes/Backup(900/2000GB)"
215
+ */
216
+ disk_size: string;
217
+
179
218
  /**
180
219
  * Memory usage in gigabytes
181
220
  * Format: "used/total GB" showing current RAM consumption