trace.ai-cli 1.0.4 → 1.0.5

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/README.md +0 -90
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trace.ai-cli",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "A powerful AI-powered CLI tool",
5
5
  "main": "index.js",
6
6
  "bin": {
package/README.md DELETED
@@ -1,90 +0,0 @@
1
- # Trace AI CLI
2
-
3
- A powerful AI-powered command-line interface tool for analyzing files, folders, images, and answering questions.
4
-
5
- ## Features
6
-
7
- - **File Analysis**: Analyze code files with detailed insights
8
- - **Folder Analysis**: Understand project structures and architectures
9
- - **Image Text Extraction**: Extract text from images with optional question answering
10
- - **Context Management**: Maintain conversation context for follow-up queries
11
- - **Interactive CLI**: User-friendly command-line interface
12
-
13
- ## Installation
14
-
15
- ```bash
16
- npm install
17
- ```
18
-
19
- Make the CLI executable:
20
-
21
- ```bash
22
- chmod +x index.js
23
- ```
24
-
25
- ## Usage
26
-
27
- ### Interactive Mode
28
-
29
- Start the interactive CLI:
30
-
31
- ```bash
32
- ./index.js
33
- ```
34
-
35
- ### Commands
36
-
37
- - `/file "path/to/file.js" [question]` - Analyze a file with optional question
38
- - `/folder "path/to/folder" [question]` - Analyze a folder structure with optional question
39
- - `/image "path/to/image.png" [question]` - Extract text from an image with optional question
40
- - `/context <text>` - Set text context for conversations
41
- - `/context-file "path/to/file"` - Add file content to context
42
- - `/view-context` - View all contexts
43
- - `/clear [text|file "path"]` - Clear specific or all contexts
44
- - `/exit` - Exit the application
45
-
46
- ### Command Line Arguments
47
-
48
- You can also use the CLI with command line arguments:
49
-
50
- ```bash
51
- # Analyze a file
52
- ./index.js file path/to/file.js "What does this code do?"
53
-
54
- # Analyze a folder
55
- ./index.js folder path/to/folder "Explain the architecture"
56
-
57
- # Extract text from an image
58
- ./index.js image path/to/image.png "What is shown in this image?"
59
-
60
- # Ask a question
61
- ./index.js ask "Explain quantum computing"
62
- ```
63
-
64
- ## Project Structure
65
-
66
- ```
67
- ├── cli/
68
- │ └── traceAI.js # CLI interface implementation
69
- ├── services/
70
- │ ├── aiService.js # AI processing service
71
- │ ├── fileAnalyzer.js # File analysis service
72
- │ ├── folderAnalyzer.js # Folder analysis service
73
- │ └── imageService.js # Image processing service
74
- ├── utils/
75
- │ ├── encryption.js # Encryption utilities
76
- │ └── fileUtils.js # File handling utilities
77
- ├── index.js # Main entry point
78
- ├── package.json # Project metadata
79
- └── README.md # Documentation
80
- ```
81
-
82
- ## Dependencies
83
-
84
- - `node-fetch`: For making HTTP requests
85
- - `figlet`: For ASCII art generation
86
- - `chalk`: For colorful terminal output
87
-
88
- ## License
89
-
90
- MIT