glance-cli 0.8.8 โ†’ 0.9.2

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 (4) hide show
  1. package/CHANGELOG.md +113 -0
  2. package/README.md +56 -1
  3. package/dist/cli.js +469 -382
  4. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -5,6 +5,119 @@ 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.9.2] - 2026-01-02
9
+
10
+ ### ๐Ÿ”ง Fixed: Cache Corruption Issues
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
17
+
18
+ ### Technical Details
19
+ - Modified cache system to only apply sanitization on write, not read operations
20
+ - Added proper encoding detection and UTF-8 conversion with fallback handling
21
+ - Improved binary artifact detection to avoid false positives from normal content
22
+ - Enhanced cache validation with better error messages and recovery mechanisms
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
29
+
30
+ ## [0.9.1] - 2026-01-02
31
+
32
+ ### ๐Ÿงพ MAJOR: AI-Powered Smart Formatting for Full Content
33
+ - **Revolutionary Feature**: `--full` mode now uses AI to intelligently format messy content!
34
+ - Automatically organizes blog posts, articles, and complex layouts
35
+ - Preserves ALL original content while making it beautifully readable
36
+ - Perfect structure for both reading and voice synthesis
37
+ - Works with any website layout - no more CSS selector limitations!
38
+
39
+ ### Enhanced
40
+ - **Smart Content Recognition**: AI identifies titles, dates, reading times, social links
41
+ - **Intelligent Spacing**: Proper paragraph breaks and section separation
42
+ - **Article Organization**: Blog posts formatted with metadata (dates, reading times)
43
+ - **Link Structure**: Navigation and social media links properly organized
44
+ - **Fallback System**: Smart formatting with graceful fallback to raw content
45
+
46
+ ### Performance
47
+ - **English Content**: `๐Ÿงพ Applying smart formatting...` (~3-6 seconds)
48
+ - **Multilingual**: Combined translation + formatting for non-English languages
49
+ - **Zero Content Loss**: Every piece of original information preserved
50
+
51
+ ### Examples
52
+ ```bash
53
+ # Before: messy wall of text
54
+ # After: beautifully structured, readable content
55
+ glance https://complex-blog.com --full --read
56
+
57
+ # Works perfectly with voice synthesis
58
+ glance https://personal-website.com --full --voice nova --read
59
+
60
+ # Multilingual with smart formatting
61
+ glance https://messy-site.com --full -l fr --read
62
+ ```
63
+
64
+ ### Technical Details
65
+ - Added `format` option to SummarizeOptions interface
66
+ - Created intelligent formatting prompts with content understanding
67
+ - Enhanced CLI to apply smart formatting for English content
68
+ - Improved error handling with multiple fallback levels
69
+
70
+ ## [0.9.0] - 2026-01-02
71
+
72
+ ### ๐ŸŒ MAJOR: Multilingual Full Content Support
73
+ - **Breakthrough Feature**: `--full` mode now supports translation to any language!
74
+ - Read entire English articles in French: `glance https://blog.com/post --full -l fr --read`
75
+ - Read French content in English: `glance https://lemonde.fr/article --full -l en --read`
76
+ - Perfect for language learning, accessibility, and international content consumption
77
+ - Preserves original formatting and structure while translating
78
+
79
+ ### Added
80
+ - **Translation Engine**: Dedicated translation prompts for accurate, structure-preserving translations
81
+ - **Language Detection**: Automatic translation when non-English language specified with `--full`
82
+ - **Voice Integration**: Translated full content works seamlessly with voice synthesis
83
+ - **Smart Fallback**: Falls back to original content if translation fails
84
+
85
+ ### Improved
86
+ - **Text Formatting**: Enhanced paragraph structure preservation in full content mode
87
+ - **Performance**: Optimized content extraction to reduce excessive newlines
88
+ - **User Experience**: Clear progress indicators ("๐ŸŒ Translating full content...")
89
+
90
+ ### Examples
91
+ ```bash
92
+ # Translate Sam Altman's blog to French and listen
93
+ glance https://blog.samaltman.com/post --full -l fr --read
94
+
95
+ # Read Spanish news in English with voice
96
+ glance https://elpais.com/news --full -l en --voice nova --read
97
+
98
+ # Export French content as English markdown
99
+ glance https://lemonde.fr/tech --full -l en --export article.md
100
+ ```
101
+
102
+ ## [0.8.9] - 2026-01-02
103
+
104
+ ### Added
105
+ - **Full Content Mode**: New `--full` flag to read entire articles without summarization
106
+ - Perfect for when you want to listen to complete blog posts or documentation
107
+ - Works seamlessly with voice synthesis (`--read`) and audio export (`--audio-output`)
108
+ - Maintains all formatting and structure from original content
109
+ - Example: `glance https://blog.com/article --full --read`
110
+
111
+ ### Improved
112
+ - **Content Display**: Shows "๐Ÿ“– Full Content" label when using --full mode
113
+ - **Voice Integration**: Full content can be read aloud or saved as audio files
114
+ - **Export Options**: Full content can be exported to markdown, JSON, or other formats
115
+
116
+ ### Technical Details
117
+ - Added isFullContent flag to formatter options
118
+ - Enhanced CLI to skip AI processing when --full is specified
119
+ - Optimized performance for full content delivery
120
+
8
121
  ## [0.8.8] - 2026-01-02
9
122
 
10
123
  ### Fixed
package/README.md CHANGED
@@ -5,9 +5,10 @@
5
5
  - **100% FREE by default** โ€“ Uses local Ollama (no API keys needed!)
6
6
  - **Privacy-first** โ€“ Your data stays on your machine
7
7
  - **Lightning fast** โ€“ Built with Bun and TypeScript
8
+ - **AI-powered formatting** โ€“ Intelligent content structure for `--full` mode
8
9
  - **Production-ready** โ€“ Smart caching, error handling, and retry logic
9
10
 
10
- Turn any webpage into terminal-friendly insights โ€” no browser needed.
11
+ Turn any webpage into beautifully formatted, terminal-friendly insights โ€” no browser needed.
11
12
 
12
13
  [![npm version](https://badge.fury.io/js/glance-cli.svg)](https://www.npmjs.com/package/glance-cli)
13
14
  [![Downloads](https://img.shields.io/npm/dm/glance-cli.svg)](https://www.npmjs.com/package/glance-cli)
@@ -71,6 +72,14 @@ glance https://complex-topic.com --eli5
71
72
 
72
73
  # Ask specific questions
73
74
  glance https://nextjs.org/docs --ask "What's the App Router?"
75
+
76
+ # Read FULL content (no summarization)
77
+ glance https://blog.samaltman.com/article --full
78
+ glance https://important-article.com --full --read # Listen to entire article
79
+
80
+ # Read FULL content in different languages
81
+ glance https://blog.samaltman.com/article --full -l fr # Translate to French
82
+ glance https://lemonde.fr/article --full -l en --read # French article in English with voice
74
83
  ```
75
84
 
76
85
  ### AI Models
@@ -223,6 +232,39 @@ done
223
232
  glance https://api-docs.com --ask "How do I authenticate?" --format plain
224
233
  ```
225
234
 
235
+ ### 6. Listen to Full Articles
236
+ ```bash
237
+ # Read entire blog posts or articles
238
+ glance https://blog.example.com/long-post --full --read
239
+
240
+ # Save full content as audio
241
+ glance https://important-article.com --full --audio-output article.mp3
242
+
243
+ # Export full content to markdown
244
+ glance https://documentation.com/guide --full --export guide.md
245
+ ```
246
+
247
+ ### 7. Multilingual Full Content
248
+ ```bash
249
+ # Translate entire articles to other languages
250
+ glance https://blog.samaltman.com/post --full -l fr --read # English to French
251
+ glance https://lemonde.fr/article --full -l en --read # French to English
252
+ glance https://elpais.com/news --full -l en --voice nova --read # Spanish to English
253
+
254
+ # Perfect for language learning or accessibility
255
+ glance https://technical-docs.com --full -l es --audio-output spanish-docs.mp3
256
+ ```
257
+
258
+ ### 8. Smart Content Formatting
259
+ ```bash
260
+ # AI automatically formats messy websites for better readability
261
+ glance https://personal-blog.com --full # Cleans up layout
262
+ glance https://complex-site.com --full --read # Perfect for voice
263
+
264
+ # Works great for sites with poor formatting
265
+ glance https://old-website.com --full --export clean-article.md
266
+ ```
267
+
226
268
  ---
227
269
 
228
270
  ## ๐ŸŽค Voice & Language Support
@@ -264,6 +306,8 @@ glance <url> --tldr # One sentence
264
306
  glance <url> --key-points # Bullet points
265
307
  glance <url> --eli5 # Simple explanation
266
308
  glance <url> --ask "question" # Custom Q&A
309
+ glance <url> --full # Full content (no summary)
310
+ glance <url> --full -l fr # Full content translated to French
267
311
 
268
312
  # AI models
269
313
  --model <name> # llama3, gpt-4o-mini, gemini-2.0-flash-exp
@@ -396,6 +440,17 @@ glance https://article.com --tldr --audio-output commute.mp3
396
440
  glance https://long-article.com --stream
397
441
  ```
398
442
 
443
+ **6. Read full articles without summarization:**
444
+ ```bash
445
+ glance https://blog-post.com --full --read
446
+ ```
447
+
448
+ **7. AI-powered smart formatting:**
449
+ ```bash
450
+ # Automatically formats messy content for readability
451
+ glance https://complex-site.com --full # AI fixes formatting
452
+ ```
453
+
399
454
  ---
400
455
 
401
456
  ## ๐Ÿค Contributing