pplx-zero 1.0.1 → 1.1.0

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/README.md +109 -29
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -29,16 +29,25 @@ A fast TypeScript CLI for Perplexity AI search with multimodal support. Built wi
29
29
 
30
30
  **📦 Package Manager Installation (Recommended)**
31
31
 
32
+ <p align="center">
33
+ <a href="https://badge.fury.io/js/pplx-zero"><img src="https://badge.fury.io/js/pplx-zero.svg" alt="npm version"></a>
34
+ <a href="https://aur.archlinux.org/packages/pplx-zero"><img src="https://img.shields.io/aur/version/pplx-zero?style=flat-square" alt="AUR package"></a>
35
+ </p>
36
+
32
37
  ```bash
33
- # npm (Node.js package manager)
38
+ # npm (Node.js package manager) - Global installation
34
39
  npm install -g pplx-zero
35
40
 
36
- # AUR (Arch Linux)
41
+ # AUR (Arch Linux) - Binary package
37
42
  yay -S pplx-zero
38
- # or manual AUR
43
+
44
+ # AUR (Arch Linux) - Manual build
39
45
  git clone https://aur.archlinux.org/pplx-zero.git
40
46
  cd pplx-zero
41
47
  makepkg -si
48
+
49
+ # Verify installation
50
+ pplx --version
42
51
  ```
43
52
 
44
53
  **🔨 Manual Installation**
@@ -51,6 +60,9 @@ bun install && bun run build
51
60
 
52
61
  # Add to PATH
53
62
  sudo ln -s "$(pwd)/dist/cli.js" /usr/local/bin/pplx
63
+
64
+ # Verify installation
65
+ pplx --version
54
66
  ```
55
67
 
56
68
  ### 2️⃣ Setup API Key
@@ -67,46 +79,90 @@ setx PERPLEXITY_API_KEY "your-api-key"
67
79
 
68
80
  **Get your API key:** https://www.perplexity.ai/account/api/keys
69
81
 
70
- ### 3️⃣ Start Searching
82
+ ### 3️⃣ Start Searching (Simplified Interface)
71
83
 
72
84
  ```bash
73
- # Basic search
85
+ # Simple search
74
86
  pplx "latest AI developments"
75
87
 
76
- # Choose model
77
- pplx --model sonar-pro "Detailed analysis"
88
+ # Choose model for detailed analysis
89
+ pplx --model sonar-pro "Explain quantum computing"
78
90
 
79
- # Document analysis
80
- pplx --attach report.pdf "Summarize this document"
91
+ # Analyze document (simplified syntax)
92
+ pplx --file report.pdf "Summarize this document"
81
93
 
82
- # Image analysis
83
- pplx --attach-image screenshot.png "Analyze this interface"
94
+ # Analyze image (simplified syntax)
95
+ pplx --image screenshot.png "What does this interface do?"
84
96
 
85
- # Batch processing
86
- pplx --input queries.json
97
+ # Document + image analysis
98
+ pplx --file data.csv --image chart.png "Analyze this data"
87
99
 
88
- # Stream processing
89
- cat queries.jsonl | pplx --stdin
100
+ # Advanced AI models
101
+ pplx --model sonar-reasoning "Solve this math problem"
102
+ pplx --model sonar-deep-research "History of artificial intelligence"
103
+
104
+ # See basic help
105
+ pplx --help
106
+
107
+ # See advanced options
108
+ pplx --help-advanced
109
+ ```
110
+
111
+ **🔄 Migration from v1.0.x:**
112
+ ```bash
113
+ # OLD: pplx --format jsonl --input queries.json "search"
114
+ # NEW: pplx --format jsonl --input queries.json "search" # format flag unchanged
115
+
116
+ # OLD: pplx --attach document.pdf "analyze"
117
+ # NEW: pplx --file document.pdf "analyze" # simplified syntax
90
118
  ```
91
119
 
92
120
  ## Usage Guide
93
121
 
94
122
  ### Command Line Options
95
123
 
124
+ **Simplified Interface (Everyday Usage):**
96
125
  ```bash
97
- # Search with custom settings
98
- pplx --concurrency 10 --timeout 60000 --format jsonl "machine learning trends"
126
+ # Basic search with model selection
127
+ pplx --model sonar-pro "Detailed analysis"
128
+
129
+ # File attachments (simplified syntax)
130
+ pplx --file document.pdf "Summarize this report"
131
+ pplx --image chart.png "Analyze this chart"
132
+
133
+ # Multiple attachments
134
+ pplx --file doc1.pdf --image img1.png "Analyze these files"
99
135
 
100
- # Model selection
136
+ # Output format selection
137
+ pplx --format jsonl "Machine learning trends"
138
+
139
+ # Choose AI models
101
140
  pplx --model sonar-pro "Detailed analysis"
102
141
  pplx --model sonar-reasoning "Complex problem solving"
142
+ ```
103
143
 
104
- # File attachments
105
- pplx --attach document.pdf "Summarize this report"
106
- pplx --attach-image chart.png "Analyze this chart"
144
+ **Advanced Interface (Power Users):**
145
+ ```bash
146
+ # Custom concurrency and timeout
147
+ pplx --concurrency 10 --timeout 60000 --format jsonl "machine learning trends"
107
148
 
108
- # Async processing
149
+ # Batch processing
150
+ pplx --input queries.json --concurrency 5
151
+
152
+ # Stream processing
153
+ cat queries.jsonl | pplx --stdin
154
+
155
+ # Advanced attachments (multiple files)
156
+ pplx --attach doc1.pdf --attach doc2.txt --attach-image img1.png "Analyze all files"
157
+
158
+ # Async processing with webhook
109
159
  pplx --async --webhook https://api.example.com/callback "Research task"
160
+
161
+ # Custom workspace
162
+ pplx --workspace /tmp/research "Custom workspace search"
163
+
164
+ # See all advanced options
165
+ pplx --help-advanced
110
166
  ```
111
167
 
112
168
  ### Batch Processing
@@ -176,20 +232,44 @@ console.log(result);
176
232
 
177
233
  ## Configuration
178
234
 
235
+ ### Simplified Options (Everyday Usage)
236
+
179
237
  | Option | Short | Type | Default | Description |
180
238
  |--------|-------|------|---------|-------------|
181
- | `--input` | `-i` | string | - | Read batch requests from JSON file |
239
+ | `--file` | `-f` | string | - | Attach document (PDF, DOC, DOCX, TXT, RTF) |
240
+ | `--image` | `-i` | string | - | Attach image (PNG, JPEG, WebP, HEIF, HEIC, GIF) |
241
+ | `--format` | `-o` | string | json | Output format: json|jsonl |
242
+ | `--model` | `-m` | string | sonar | AI model: sonar, sonar-pro, sonar-deep-research, sonar-reasoning |
243
+ | `--version` | `-v` | boolean | - | Show version |
244
+ | `--help` | `-h` | boolean | - | Show basic help |
245
+
246
+ ### Advanced Options (Power Users)
247
+
248
+ | Option | Short | Type | Default | Description |
249
+ |--------|-------|------|---------|-------------|
250
+ | `--input` | `-I` | string | - | Read batch requests from JSON file |
182
251
  | `--stdin` | `-s` | boolean | false | Read JSONL requests from stdin |
183
252
  | `--concurrency` | `-c` | number | 5 | Max concurrent requests (1-20) |
184
253
  | `--timeout` | `-t` | number | 30000 | Request timeout in ms (1000-300000) |
185
- | `--format` | `-f` | string | json | Output format: json|jsonl |
186
- | `--model` | `-m` | string | sonar | AI model to use |
187
- | `--attach` | - | string[] | - | Attach document files |
188
- | `--attach-image` | - | string[] | - | Attach image files |
254
+ | `--workspace` | `-w` | string | - | Workspace directory for sandboxing |
255
+ | `--attach` | - | string[] | - | Attach document files (multiple) |
256
+ | `--attach-image` | - | string[] | - | Attach image files (multiple) |
189
257
  | `--async` | - | boolean | false | Process requests asynchronously |
190
258
  | `--webhook` | - | string | - | Webhook URL for async notifications |
191
- | `--version` | `-v` | boolean | - | Show version |
192
- | `--help` | `-h` | boolean | - | Show help |
259
+ | `--help-advanced` | - | boolean | - | Show advanced help with all options |
260
+
261
+ ### Quick Reference
262
+
263
+ ```bash
264
+ # Basic usage (simplified)
265
+ pplx -f doc.pdf -m sonar-pro "analyze this"
266
+
267
+ # Advanced usage (full control)
268
+ pplx -I batch.json -c 10 -t 60000 --format jsonl "process all"
269
+
270
+ # See all available options
271
+ pplx --help-advanced
272
+ ```
193
273
 
194
274
  ### AI Models
195
275
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pplx-zero",
3
- "version": "1.0.1",
3
+ "version": "1.1.0",
4
4
  "description": "Fast Perplexity AI search CLI with multimodal support - minimal setup, maximal results",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -63,7 +63,7 @@
63
63
  "license": "MIT",
64
64
  "repository": {
65
65
  "type": "git",
66
- "url": "https://github.com/codewithkenzo/pplx-zero.git"
66
+ "url": "git+https://github.com/codewithkenzo/pplx-zero.git"
67
67
  },
68
68
  "files": [
69
69
  "dist",