glance-cli 0.10.2 → 0.10.3
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/CHANGELOG.md +45 -19
- package/README.md +11 -44
- package/dist/cli.js +381 -383
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,27 +5,53 @@ All notable changes to glance-cli will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
-
## [0.
|
|
8
|
+
## [0.10.2] - 2026-01-03
|
|
9
|
+
|
|
10
|
+
### 🗑️ Removed: Cache System (Temporary)
|
|
11
|
+
- **Major Change**: Completely removed caching functionality to eliminate corruption issues
|
|
12
|
+
- All cache-related CLI options removed (--no-cache, --clear-cache, --cache-stats)
|
|
13
|
+
- Fresh content generation on every request - no caching artifacts
|
|
14
|
+
- Implementation preserved in next-features/ for future robust restoration
|
|
15
|
+
|
|
16
|
+
### ✅ Benefits
|
|
17
|
+
- Zero cache corruption - no binary artifacts in summaries
|
|
18
|
+
- Predictable behavior - same input gives consistent output
|
|
19
|
+
- Simpler debugging - fewer moving parts during development
|
|
20
|
+
- User confidence - reliable, clean results every time
|
|
21
|
+
|
|
22
|
+
### 🔧 Technical Changes
|
|
23
|
+
- Replaced cache system with stub functions for API compatibility
|
|
24
|
+
- Removed cache references from help text and documentation
|
|
25
|
+
- Simplified command flow without cache complexity
|
|
26
|
+
- All existing functionality works without caching dependency
|
|
27
|
+
|
|
28
|
+
## [0.10.1] - 2026-01-03
|
|
29
|
+
|
|
30
|
+
### 🏗️ Major: CLI Modularization
|
|
31
|
+
- Complete restructure from 1219-line monolith into 9 focused modules
|
|
32
|
+
- Exportable components for programmatic usage (see examples/)
|
|
33
|
+
- Production-ready error handling with custom GlanceError classes
|
|
34
|
+
- Zero TypeScript errors with comprehensive type safety
|
|
35
|
+
|
|
36
|
+
### 🔧 Critical Fixes
|
|
37
|
+
- Fixed service detection to properly recognize Ollama availability
|
|
38
|
+
- Fixed language parameter defaulting to undefined (was causing failures)
|
|
39
|
+
- Resolved summarization failures after modularization
|
|
40
|
+
- All AI models (Llama, OpenAI, Gemini) working correctly
|
|
41
|
+
|
|
42
|
+
### 📦 Programmatic API
|
|
43
|
+
- All CLI components now exportable and reusable
|
|
44
|
+
- Full TypeScript support with proper interfaces
|
|
45
|
+
- Package exports configured for easy imports
|
|
46
|
+
- Example usage provided in examples/ directory
|
|
9
47
|
|
|
10
|
-
|
|
11
|
-
- **Critical Fix**: Resolved cache corruption causing garbled/binary artifacts in cached content
|
|
12
|
-
- Fixed double nuclear cleaning that was corrupting cached data on read operations
|
|
13
|
-
- Implemented proper UTF-8 encoding with error handling using TextDecoder
|
|
14
|
-
- Reduced overly aggressive text sanitization that destroyed content structure
|
|
15
|
-
- Added validation to prevent empty/corrupted content from being cached
|
|
16
|
-
- Enhanced error recovery for corrupted cache entries with automatic cleanup
|
|
48
|
+
## [0.9.2] - 2026-01-02
|
|
17
49
|
|
|
18
|
-
###
|
|
19
|
-
-
|
|
20
|
-
-
|
|
21
|
-
-
|
|
22
|
-
-
|
|
23
|
-
- Fixed memory corruption issues that were causing truncated Ollama responses
|
|
24
|
-
|
|
25
|
-
### Performance Improvements
|
|
26
|
-
- Faster cache operations with reduced processing overhead
|
|
27
|
-
- Better memory management for large cached content
|
|
28
|
-
- Improved reliability of cache reads across all AI providers
|
|
50
|
+
### 🔧 Fixed: Cache Corruption Issues (Later Removed)
|
|
51
|
+
- **Note**: Cache system was later removed in v0.10.2 due to persistent corruption
|
|
52
|
+
- Attempted fixes included UTF-8 encoding improvements and validation
|
|
53
|
+
- Issues with binary artifacts persisted despite multiple fix attempts
|
|
54
|
+
- Full cache removal provided permanent solution to corruption problems
|
|
29
55
|
|
|
30
56
|
## [0.9.1] - 2026-01-02
|
|
31
57
|
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
- **Privacy-first** – Your data stays on your machine
|
|
7
7
|
- **Lightning fast** – Built with Bun and TypeScript
|
|
8
8
|
- **AI-powered formatting** – Intelligent content structure for `--full` mode
|
|
9
|
-
- **Production-ready** –
|
|
9
|
+
- **Production-ready** – Error handling, and retry logic
|
|
10
10
|
|
|
11
11
|
Turn any webpage into beautifully formatted, terminal-friendly insights — no browser needed.
|
|
12
12
|
|
|
@@ -177,29 +177,11 @@ glance https://example.com --format plain | grep "keyword"
|
|
|
177
177
|
|
|
178
178
|
---
|
|
179
179
|
|
|
180
|
-
##
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
# First request: ~3 seconds
|
|
186
|
-
glance https://example.com
|
|
187
|
-
|
|
188
|
-
# Cached request: ~0.1 seconds
|
|
189
|
-
glance https://example.com
|
|
190
|
-
|
|
191
|
-
# View cache stats
|
|
192
|
-
glance --cache-stats
|
|
193
|
-
|
|
194
|
-
# Clear cache
|
|
195
|
-
glance --clear-cache
|
|
196
|
-
```
|
|
197
|
-
|
|
198
|
-
**Cache features:**
|
|
199
|
-
- 24-hour TTL (configurable)
|
|
200
|
-
- 70% compression
|
|
201
|
-
- LRU eviction (100MB max)
|
|
202
|
-
- Hit rate tracking
|
|
180
|
+
## 🚀 Performance
|
|
181
|
+
- Fast content extraction with Cheerio
|
|
182
|
+
- Optimized AI model selection
|
|
183
|
+
- Efficient text processing pipeline
|
|
184
|
+
- Lightweight 8MB bundle
|
|
203
185
|
|
|
204
186
|
---
|
|
205
187
|
|
|
@@ -339,12 +321,6 @@ glance <url> --full -l fr # Full content translated to French
|
|
|
339
321
|
-l, --language <code> # Output language (en, fr, es, ht)
|
|
340
322
|
-e, --emoji # Add emojis
|
|
341
323
|
|
|
342
|
-
# Cache
|
|
343
|
-
--cache-stats # Show cache statistics
|
|
344
|
-
--cache-cleanup # Remove expired entries
|
|
345
|
-
--clear-cache # Clear all cache
|
|
346
|
-
--no-cache # Skip cache for this request
|
|
347
|
-
|
|
348
324
|
# Other
|
|
349
325
|
-v, --verbose # Show detailed logs
|
|
350
326
|
-h, --help # Show help
|
|
@@ -368,9 +344,6 @@ export ELEVENLABS_API_KEY=...
|
|
|
368
344
|
# Ollama (optional, auto-detected)
|
|
369
345
|
export OLLAMA_ENDPOINT=http://localhost:11434
|
|
370
346
|
|
|
371
|
-
# Cache (optional)
|
|
372
|
-
export GLANCE_CACHE_DIR=~/.glance/cache
|
|
373
|
-
export GLANCE_CACHE_TTL=86400000 # 24h in ms
|
|
374
347
|
```
|
|
375
348
|
|
|
376
349
|
---
|
|
@@ -419,33 +392,27 @@ glance https://lemonde.fr --tldr -l fr --export french-news.md
|
|
|
419
392
|
glance https://example.com --model llama3 # Free, fast, private
|
|
420
393
|
```
|
|
421
394
|
|
|
422
|
-
**2.
|
|
423
|
-
```bash
|
|
424
|
-
glance https://docs.com # First: 3s
|
|
425
|
-
glance https://docs.com # Cached: 0.1s
|
|
426
|
-
```
|
|
427
|
-
|
|
428
|
-
**3. Pipe output for scripting:**
|
|
395
|
+
**2. Pipe output for scripting:**
|
|
429
396
|
```bash
|
|
430
397
|
glance https://example.com --format plain | grep "keyword" | wc -l
|
|
431
398
|
```
|
|
432
399
|
|
|
433
|
-
**
|
|
400
|
+
**3. Save audio for commute:**
|
|
434
401
|
```bash
|
|
435
402
|
glance https://article.com --tldr --audio-output commute.mp3
|
|
436
403
|
```
|
|
437
404
|
|
|
438
|
-
**
|
|
405
|
+
**4. Use streaming for long content:**
|
|
439
406
|
```bash
|
|
440
407
|
glance https://long-article.com --stream
|
|
441
408
|
```
|
|
442
409
|
|
|
443
|
-
**
|
|
410
|
+
**5. Read full articles without summarization:**
|
|
444
411
|
```bash
|
|
445
412
|
glance https://blog-post.com --full --read
|
|
446
413
|
```
|
|
447
414
|
|
|
448
|
-
**
|
|
415
|
+
**6. AI-powered smart formatting:**
|
|
449
416
|
```bash
|
|
450
417
|
# Automatically formats messy content for readability
|
|
451
418
|
glance https://complex-site.com --full # AI fixes formatting
|