glance-cli 0.8.8 โ†’ 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.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,97 @@ 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
+
8
99
  ## [0.8.8] - 2026-01-02
9
100
 
10
101
  ### 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