pplx-zero 1.1.4 → 1.1.6

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
 
@@ -105,6 +106,59 @@ pplx --model sonar-deep-research "History of artificial intelligence"
105
106
  pplx --help
106
107
  ```
107
108
 
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
+
122
+ ```bash
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
131
+
132
+ # Check updates with version command
133
+ pplx version --check-updates
134
+ ```
135
+
136
+ ### Update Methods
137
+
138
+ The auto-update system tries multiple package managers in order of preference:
139
+
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`)
144
+
145
+ If automatic updates fail, you'll get helpful instructions to update manually.
146
+
147
+ ### Configuration
148
+
149
+ Auto-update settings are stored in `~/.pplx-zero/update-cache.json`:
150
+
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
+
108
162
  ## Usage Guide
109
163
 
110
164
  ### Command Line Options
@@ -121,7 +175,7 @@ pplx -f document.pdf "Summarize this"
121
175
  pplx --input queries.json -c 10 -t 60000
122
176
 
123
177
  # See all options
124
- pplx --help-advanced
178
+ pplx --help
125
179
  ```
126
180
 
127
181
  **Essential Commands:**
@@ -217,6 +271,15 @@ console.log(result);
217
271
  | `--version` | `-v` | boolean | - | Show version |
218
272
  | `--help` | `-h` | boolean | - | Show basic help |
219
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
+
220
283
  ### Advanced Options (Power Users)
221
284
 
222
285
  | Option | Short | Type | Default | Description |
@@ -230,7 +293,7 @@ console.log(result);
230
293
  | `--attach-image` | - | string[] | - | Attach image files (multiple) |
231
294
  | `--async` | - | boolean | false | Process requests asynchronously |
232
295
  | `--webhook` | - | string | - | Webhook URL for async notifications |
233
- | `--help-advanced` | - | boolean | - | Show advanced help with all options |
296
+ |
234
297
 
235
298
  ### Quick Reference
236
299
 
@@ -242,7 +305,7 @@ pplx -f doc.pdf -m sonar-pro "analyze this"
242
305
  pplx -I batch.json -c 10 -t 60000 --format jsonl "process all"
243
306
 
244
307
  # See all available options
245
- pplx --help-advanced
308
+ pplx --help
246
309
  ```
247
310
 
248
311
  ### AI Models