glance-cli 0.8.7 β†’ 0.9.1

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 +112 -0
  2. package/README.md +98 -3
  3. package/dist/cli.js +471 -389
  4. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -5,6 +5,118 @@ 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.1] - 2026-01-02
9
+
10
+ ### 🧾 MAJOR: AI-Powered Smart Formatting for Full Content
11
+ - **Revolutionary Feature**: `--full` mode now uses AI to intelligently format messy content!
12
+ - Automatically organizes blog posts, articles, and complex layouts
13
+ - Preserves ALL original content while making it beautifully readable
14
+ - Perfect structure for both reading and voice synthesis
15
+ - Works with any website layout - no more CSS selector limitations!
16
+
17
+ ### Enhanced
18
+ - **Smart Content Recognition**: AI identifies titles, dates, reading times, social links
19
+ - **Intelligent Spacing**: Proper paragraph breaks and section separation
20
+ - **Article Organization**: Blog posts formatted with metadata (dates, reading times)
21
+ - **Link Structure**: Navigation and social media links properly organized
22
+ - **Fallback System**: Smart formatting with graceful fallback to raw content
23
+
24
+ ### Performance
25
+ - **English Content**: `🧾 Applying smart formatting...` (~3-6 seconds)
26
+ - **Multilingual**: Combined translation + formatting for non-English languages
27
+ - **Zero Content Loss**: Every piece of original information preserved
28
+
29
+ ### Examples
30
+ ```bash
31
+ # Before: messy wall of text
32
+ # After: beautifully structured, readable content
33
+ glance https://complex-blog.com --full --read
34
+
35
+ # Works perfectly with voice synthesis
36
+ glance https://personal-website.com --full --voice nova --read
37
+
38
+ # Multilingual with smart formatting
39
+ glance https://messy-site.com --full -l fr --read
40
+ ```
41
+
42
+ ### Technical Details
43
+ - Added `format` option to SummarizeOptions interface
44
+ - Created intelligent formatting prompts with content understanding
45
+ - Enhanced CLI to apply smart formatting for English content
46
+ - Improved error handling with multiple fallback levels
47
+
48
+ ## [0.9.0] - 2026-01-02
49
+
50
+ ### 🌍 MAJOR: Multilingual Full Content Support
51
+ - **Breakthrough Feature**: `--full` mode now supports translation to any language!
52
+ - Read entire English articles in French: `glance https://blog.com/post --full -l fr --read`
53
+ - Read French content in English: `glance https://lemonde.fr/article --full -l en --read`
54
+ - Perfect for language learning, accessibility, and international content consumption
55
+ - Preserves original formatting and structure while translating
56
+
57
+ ### Added
58
+ - **Translation Engine**: Dedicated translation prompts for accurate, structure-preserving translations
59
+ - **Language Detection**: Automatic translation when non-English language specified with `--full`
60
+ - **Voice Integration**: Translated full content works seamlessly with voice synthesis
61
+ - **Smart Fallback**: Falls back to original content if translation fails
62
+
63
+ ### Improved
64
+ - **Text Formatting**: Enhanced paragraph structure preservation in full content mode
65
+ - **Performance**: Optimized content extraction to reduce excessive newlines
66
+ - **User Experience**: Clear progress indicators ("🌍 Translating full content...")
67
+
68
+ ### Examples
69
+ ```bash
70
+ # Translate Sam Altman's blog to French and listen
71
+ glance https://blog.samaltman.com/post --full -l fr --read
72
+
73
+ # Read Spanish news in English with voice
74
+ glance https://elpais.com/news --full -l en --voice nova --read
75
+
76
+ # Export French content as English markdown
77
+ glance https://lemonde.fr/tech --full -l en --export article.md
78
+ ```
79
+
80
+ ## [0.8.9] - 2026-01-02
81
+
82
+ ### Added
83
+ - **Full Content Mode**: New `--full` flag to read entire articles without summarization
84
+ - Perfect for when you want to listen to complete blog posts or documentation
85
+ - Works seamlessly with voice synthesis (`--read`) and audio export (`--audio-output`)
86
+ - Maintains all formatting and structure from original content
87
+ - Example: `glance https://blog.com/article --full --read`
88
+
89
+ ### Improved
90
+ - **Content Display**: Shows "πŸ“– Full Content" label when using --full mode
91
+ - **Voice Integration**: Full content can be read aloud or saved as audio files
92
+ - **Export Options**: Full content can be exported to markdown, JSON, or other formats
93
+
94
+ ### Technical Details
95
+ - Added isFullContent flag to formatter options
96
+ - Enhanced CLI to skip AI processing when --full is specified
97
+ - Optimized performance for full content delivery
98
+
99
+ ## [0.8.8] - 2026-01-02
100
+
101
+ ### Fixed
102
+ - **Voice System Improvements**: Fixed voice listing to show only working voices with proper language mapping
103
+ - **Text Cleaner Optimization**: Made text cleaning less aggressive to prevent legitimate content removal
104
+ - **Cache System**: Resolved overly aggressive cleaning of cache-related terms and content
105
+ - **--prefer-quality Flag**: Fixed issue where flag wasn't affecting automatic model selection
106
+ - **Voice Validation**: Improved voice name/ID validation and error messages
107
+
108
+ ### Improved
109
+ - **Voice Listing**: Clean, organized display by language (πŸ‡ΊπŸ‡Έ English, πŸ‡«πŸ‡· French, πŸ‡ͺπŸ‡Έ Spanish, πŸ‡­πŸ‡Ή Haitian Creole)
110
+ - **Error Messages**: More specific and helpful voice synthesis error messages
111
+ - **Text Processing**: Smarter cleaning that preserves paragraph structure and legitimate content
112
+ - **Model Selection**: --prefer-quality now correctly prioritizes OpenAI/Gemini over Ollama
113
+
114
+ ### Technical Details
115
+ - Enhanced voice mapping system to show only available voices in user's ElevenLabs account
116
+ - Refined binary artifact detection to avoid false positives from ANSI color codes
117
+ - Improved cache system stability with better error handling
118
+ - More conservative text cleaning patterns to preserve legitimate content
119
+
8
120
  ## [0.8.7] - 2026-01-02
9
121
 
10
122
  ### 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
@@ -118,6 +127,15 @@ glance https://article.com --audio-output summary.mp3
118
127
 
119
128
  # Read aloud immediately
120
129
  glance https://blog.com --read
130
+
131
+ # Use specific voice
132
+ glance https://news.com --voice nova --read
133
+
134
+ # French content with French voice
135
+ glance https://lemonde.fr --voice antoine -l fr --read
136
+
137
+ # Spanish content with Spanish voice
138
+ glance https://elpais.com --voice isabella -l es --read
121
139
  ```
122
140
 
123
141
  ### Advanced Features
@@ -214,6 +232,69 @@ done
214
232
  glance https://api-docs.com --ask "How do I authenticate?" --format plain
215
233
  ```
216
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
+
268
+ ---
269
+
270
+ ## 🎀 Voice & Language Support
271
+
272
+ Glance supports **multi-language voice synthesis** with ElevenLabs integration:
273
+
274
+ ```bash
275
+ # List available voices by language
276
+ glance --list-voices
277
+
278
+ # English voices (default)
279
+ glance https://news.com --voice nova --read # Energetic
280
+ glance https://docs.com --voice onyx --read # Deep, authoritative
281
+
282
+ # French voices
283
+ glance https://lemonde.fr --voice antoine -l fr --read
284
+
285
+ # Spanish voices
286
+ glance https://elpais.com --voice isabella -l es --read
287
+
288
+ # Haitian Creole support
289
+ glance https://example.ht --voice nova -l ht --read
290
+ ```
291
+
292
+ **Voice Quality Levels:**
293
+ - **Free**: System TTS (macOS Say, Windows SAPI, Linux espeak)
294
+ - **Premium**: ElevenLabs voices with natural pronunciation (requires API key)
295
+
296
+ Set `ELEVENLABS_API_KEY` environment variable for premium voices.
297
+
217
298
  ---
218
299
 
219
300
  ## πŸ“š All Options
@@ -225,6 +306,8 @@ glance <url> --tldr # One sentence
225
306
  glance <url> --key-points # Bullet points
226
307
  glance <url> --eli5 # Simple explanation
227
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
228
311
 
229
312
  # AI models
230
313
  --model <name> # llama3, gpt-4o-mini, gemini-2.0-flash-exp
@@ -243,8 +326,9 @@ glance <url> --ask "question" # Custom Q&A
243
326
  # Voice/Audio
244
327
  --read, --speak # Read aloud (text-to-speech)
245
328
  --audio-output <file> # Save as MP3
246
- --voice <name> # Choose voice (alloy, echo, nova, etc.)
247
- --list-voices # Show available voices
329
+ --voice <name> # Choose voice (nova, onyx, antoine, etc.)
330
+ --list-voices # Show available voices by language
331
+ -l, --language <code> # Language for voice selection (en, fr, es, ht)
248
332
 
249
333
  # Advanced
250
334
  --screenshot <file> # Capture screenshot
@@ -356,6 +440,17 @@ glance https://article.com --tldr --audio-output commute.mp3
356
440
  glance https://long-article.com --stream
357
441
  ```
358
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
+
359
454
  ---
360
455
 
361
456
  ## 🀝 Contributing