pplx-zero 1.1.3 → 1.1.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.
package/README.md CHANGED
@@ -22,6 +22,7 @@ A fast TypeScript CLI for Perplexity AI search with multimodal support. Built wi
22
22
  - **🤖 AI Models** - Sonar, Sonar Pro, Sonar Deep Research, Sonar Reasoning
23
23
  - **🛡️ Type Safe** - Full Zod validation and TypeScript support
24
24
  - **🌍 Cross-Platform** - Native Bun runtime support
25
+ - **🔄 Auto-Update** - Background update checking to stay current
25
26
 
26
27
  ## Quick Start
27
28
 
@@ -79,7 +80,7 @@ setx PERPLEXITY_API_KEY "your-api-key"
79
80
 
80
81
  **Get your API key:** https://www.perplexity.ai/account/api/keys
81
82
 
82
- ### 3️⃣ Start Searching (Simplified Interface)
83
+ ### 3️⃣ Start Searching
83
84
 
84
85
  ```bash
85
86
  # Simple search
@@ -88,10 +89,10 @@ pplx "latest AI developments"
88
89
  # Choose model for detailed analysis
89
90
  pplx --model sonar-pro "Explain quantum computing"
90
91
 
91
- # Analyze document (simplified syntax)
92
+ # Analyze document
92
93
  pplx --file report.pdf "Summarize this document"
93
94
 
94
- # Analyze image (simplified syntax)
95
+ # Analyze image
95
96
  pplx --image screenshot.png "What does this interface do?"
96
97
 
97
98
  # Document + image analysis
@@ -103,66 +104,93 @@ pplx --model sonar-deep-research "History of artificial intelligence"
103
104
 
104
105
  # See basic help
105
106
  pplx --help
106
-
107
- # See advanced options
108
- pplx --help-advanced
109
107
  ```
110
108
 
111
- **🔄 Migration from v1.0.x:**
109
+ ## Auto-Update
110
+
111
+ PPLX-Zero includes intelligent auto-update functionality that runs in the background to keep your CLI current.
112
+
113
+ ### How It Works
114
+
115
+ - **Background Checking**: Automatically checks for updates every 24 hours when you run searches
116
+ - **Non-Blocking**: Never slows down your search queries - updates happen in the background
117
+ - **Smart Caching**: Uses intelligent caching to avoid unnecessary network requests
118
+ - **Silent by Default**: Runs quietly without interrupting your workflow
119
+
120
+ ### Update Commands
121
+
112
122
  ```bash
113
- # OLD: pplx --format jsonl --input queries.json "search"
114
- # NEW: pplx --format jsonl --input queries.json "search" # format flag unchanged
123
+ # Check for updates manually
124
+ pplx update --check
125
+
126
+ # Install available updates automatically
127
+ pplx update --auto
128
+
129
+ # Show version information
130
+ pplx version
115
131
 
116
- # OLD: pplx --attach document.pdf "analyze"
117
- # NEW: pplx --file document.pdf "analyze" # simplified syntax
132
+ # Check updates with version command
133
+ pplx version --check-updates
118
134
  ```
119
135
 
120
- ## Usage Guide
136
+ ### Update Methods
121
137
 
122
- ### Command Line Options
138
+ The auto-update system tries multiple package managers in order of preference:
123
139
 
124
- **Simplified Interface (Everyday Usage):**
125
- ```bash
126
- # Basic search with model selection
127
- pplx --model sonar-pro "Detailed analysis"
140
+ 1. **npm global** (`npm update -g pplx-zero`)
141
+ 2. **bun global** (`bun update -g pplx-zero`)
142
+ 3. **yarn global** (`yarn global upgrade pplx-zero`)
143
+ 4. **pnpm global** (`pnpm update -g pplx-zero`)
128
144
 
129
- # File attachments (simplified syntax)
130
- pplx --file document.pdf "Summarize this report"
131
- pplx --image chart.png "Analyze this chart"
145
+ If automatic updates fail, you'll get helpful instructions to update manually.
132
146
 
133
- # Multiple attachments
134
- pplx --file doc1.pdf --image img1.png "Analyze these files"
147
+ ### Configuration
135
148
 
136
- # Output format selection
137
- pplx --format jsonl "Machine learning trends"
149
+ Auto-update settings are stored in `~/.pplx-zero/update-cache.json`:
138
150
 
139
- # Choose AI models
140
- pplx --model sonar-pro "Detailed analysis"
141
- pplx --model sonar-reasoning "Complex problem solving"
142
- ```
151
+ - **Check Interval**: 24 hours by default
152
+ - **Quiet Mode**: Silent operation to not interrupt workflow
153
+ - **Auto Install**: Disabled by default for safety
154
+
155
+ ### Privacy & Performance
156
+
157
+ - **Minimal Network**: Only checks npm registry for version information
158
+ - **No Data Collection**: Never sends search queries or personal data
159
+ - **Fast Performance**: Cached results prevent repeated network requests
160
+ - **Local Only**: All update logic runs locally on your machine
161
+
162
+ ## Usage Guide
143
163
 
144
- **Advanced Interface (Power Users):**
164
+ ### Command Line Options
165
+
166
+ **Quick Reference:**
145
167
  ```bash
146
- # Custom concurrency and timeout
147
- pplx --concurrency 10 --timeout 60000 --format jsonl "machine learning trends"
168
+ # Basic search
169
+ pplx "latest AI developments"
170
+
171
+ # File analysis (simplified)
172
+ pplx -f document.pdf "Summarize this"
148
173
 
149
- # Batch processing
150
- pplx --input queries.json --concurrency 5
174
+ # Advanced batch processing
175
+ pplx --input queries.json -c 10 -t 60000
151
176
 
152
- # Stream processing
153
- cat queries.jsonl | pplx --stdin
177
+ # See all options
178
+ pplx --help
179
+ ```
154
180
 
155
- # Advanced attachments (multiple files)
156
- pplx --attach doc1.pdf --attach doc2.txt --attach-image img1.png "Analyze all files"
181
+ **Essential Commands:**
182
+ ```bash
183
+ # Model selection
184
+ pplx -m sonar-pro "Detailed analysis"
157
185
 
158
- # Async processing with webhook
159
- pplx --async --webhook https://api.example.com/callback "Research task"
186
+ # File + image
187
+ pplx -f doc.md -i chart.png "Analyze both"
160
188
 
161
- # Custom workspace
162
- pplx --workspace /tmp/research "Custom workspace search"
189
+ # Output format
190
+ pplx -o jsonl "Get streaming output"
163
191
 
164
- # See all advanced options
165
- pplx --help-advanced
192
+ # Async with webhook
193
+ pplx --async --webhook https://api.example.com "Long task"
166
194
  ```
167
195
 
168
196
  ### Batch Processing
@@ -243,6 +271,15 @@ console.log(result);
243
271
  | `--version` | `-v` | boolean | - | Show version |
244
272
  | `--help` | `-h` | boolean | - | Show basic help |
245
273
 
274
+ ### Update Commands
275
+
276
+ | Command | Options | Description |
277
+ |---------|---------|-------------|
278
+ | `pplx update` | `--check` | Check for available updates |
279
+ | `pplx update` | `--auto` | Install available updates automatically |
280
+ | `pplx version` | `--check-updates` | Show version and check for updates |
281
+ | `pplx version` | `--verbose` | Show detailed version information |
282
+
246
283
  ### Advanced Options (Power Users)
247
284
 
248
285
  | Option | Short | Type | Default | Description |
@@ -256,7 +293,7 @@ console.log(result);
256
293
  | `--attach-image` | - | string[] | - | Attach image files (multiple) |
257
294
  | `--async` | - | boolean | false | Process requests asynchronously |
258
295
  | `--webhook` | - | string | - | Webhook URL for async notifications |
259
- | `--help-advanced` | - | boolean | - | Show advanced help with all options |
296
+ |
260
297
 
261
298
  ### Quick Reference
262
299
 
@@ -268,7 +305,7 @@ pplx -f doc.pdf -m sonar-pro "analyze this"
268
305
  pplx -I batch.json -c 10 -t 60000 --format jsonl "process all"
269
306
 
270
307
  # See all available options
271
- pplx --help-advanced
308
+ pplx --help
272
309
  ```
273
310
 
274
311
  ### AI Models
@@ -304,15 +341,17 @@ Each result printed as a separate JSON line for real-time processing.
304
341
  ## Development
305
342
 
306
343
  ```bash
344
+ # Clone and build
345
+ git clone https://github.com/codewithkenzo/pplx-zero.git
346
+ cd pplx-zero
347
+ bun install && bun run build
348
+
307
349
  # Development mode
308
350
  bun run dev
309
351
 
310
352
  # Type checking
311
353
  bun run typecheck
312
354
 
313
- # Run tests
314
- bun test
315
-
316
355
  # Build for production
317
356
  bun run build
318
357