trace.ai-cli 1.1.1 → 1.1.2

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,6 +1,6 @@
1
1
  {
2
2
  "name": "trace.ai-cli",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
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'];