trace.ai-cli 1.1.1 → 1.1.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/README.markdown CHANGED
@@ -121,7 +121,13 @@ This launches the interactive CLI interface where you can enter commands and que
121
121
  ```
122
122
  /stats
123
123
  ```
124
-
124
+ - **System**:
125
+ ```
126
+ /system
127
+ ```
128
+ The system information feature supports natural language queries that automatically determine which information to return.
129
+ Example: `/system How much RAM do I have available?`
130
+
125
131
  - **Exit**:
126
132
  ```
127
133
  /exit
@@ -143,66 +149,6 @@ How do I implement a binary search tree in Python?
143
149
  What's the current CPU usage on my system?
144
150
  ```
145
151
 
146
- ## System Information Features
147
-
148
- Trace.AI CLI can provide detailed information about your system, including:
149
-
150
- - **System Overview**: Platform, architecture, hostname, uptime, manufacturer, model, and system details
151
- - **CPU Information**: Manufacturer, brand, model, cores, speed, temperature, load, virtualization, and cache details
152
- - **Memory Information**: Total, used, free, and available memory with usage percentages, swap information, and detailed memory module specifications
153
- - **Disk Information**: Filesystem details, block devices, disk layout, size, used space, available space, and usage percentages
154
- - **Network Information**: Interface details, IP addresses (IPv4/IPv6), MAC addresses, connection statistics, WiFi networks, internet latency, and public IP address
155
- - **Process Information**: Current process details, system process summary, top CPU-consuming processes, and system services
156
- - **Environment Variables**: Filtered environment variables for security (PATH, USER, HOME, etc.), user session information, and shell history
157
-
158
- The system information is retrieved using the powerful `systeminformation` library with fallback mechanisms for reliability across different operating systems.
159
-
160
- ## Examples
161
-
162
- ### Get All System Information
163
-
164
- ```
165
- /system
166
- ```
167
- Returns all available system information categories.
168
-
169
- ### Natural Language Queries
170
-
171
- The system information feature supports natural language queries that automatically determine which information to return:
172
-
173
- ```
174
- /system How much RAM do I have available?
175
- ```
176
- Automatically returns memory information.
177
-
178
- ```
179
- /system What's my CPU temperature?
180
- ```
181
- Automatically returns CPU information with temperature details.
182
-
183
- ```
184
- /system Tell me about my disk usage
185
- ```
186
- Automatically returns disk information with usage statistics.
187
-
188
- ```
189
- /system Show me my network connections
190
- ```
191
- Automatically returns network information.
192
-
193
- You can also ask direct questions without the /system command:
194
-
195
- ```
196
- What's my operating system version?
197
- ```
198
-
199
- ```
200
- How many CPU cores do I have?
201
- ```
202
-
203
- ```
204
- What's my current memory usage?
205
- ```
206
152
 
207
153
  ## License
208
154
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trace.ai-cli",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "description": "A powerful AI-powered CLI tool",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -11,31 +11,7 @@ const { getSystemInfo, formatBytes } = require('./systemInfoService');
11
11
  async function determineSystemInfoQuery(prompt, basicInfo) {
12
12
  try {
13
13
  // Create a prompt for the AI to analyze the user's query
14
- const analysisPrompt = `
15
- Based on the user's query: "${prompt}", determine which system information they are requesting.
16
-
17
- Available system information categories:
18
- - basic: Basic system overview (platform, architecture, hostname, uptime)
19
- - cpu: CPU information (model, cores, speed, load)
20
- - memory: Memory information (total, used, free)
21
- - disk: Disk information (size, used, available)
22
- - network: Network information (interfaces, IP addresses, MAC)
23
- - process: Process information (PID, Node.js version, memory usage)
24
- - environment: Environment variables (PATH, SHELL, etc.)
25
- - all: All system information
26
-
27
- Analyze the query and return the most relevant category or categories.
28
- If the query mentions IP address, network interfaces, or connectivity, include 'network'.
29
- If the query mentions storage, hard drive, or space, include 'disk'.
30
- If the query mentions RAM, memory usage, or available memory, include 'memory'.
31
- If the query mentions processor, cores, or CPU usage, include 'cpu'.
32
- If the query mentions environment variables or paths, include 'environment'.
33
- If the query mentions running processes or applications, include 'process'.
34
- If the query is general or unclear, include 'basic'.
35
- If the query asks for everything or all information, include 'all'.
36
-
37
- Return only the category keywords separated by spaces.
38
- `;
14
+ const analysisPrompt = `Analyze the user's query: "${prompt}" and determine which system information they need.`;
39
15
 
40
16
  // Use the AI to analyze the query
41
17
  const models = ['kimi', 'mvrk', 'gma3'];