glance-cli 0.13.0 → 0.14.0
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 +8 -0
- package/README.md +9 -0
- package/dist/cli.js +198 -1064
- package/package.json +4 -2
- package/src/cli/commands.ts +854 -0
- package/src/cli/config.ts +24 -0
- package/src/cli/display.ts +270 -0
- package/src/cli/errors.ts +31 -0
- package/src/cli/index.ts +239 -0
- package/src/cli/logger.ts +43 -0
- package/src/cli/types.ts +114 -0
- package/src/cli/utils.ts +239 -0
- package/src/cli/validators.ts +176 -0
- package/src/cli.ts +17 -0
- package/src/core/compat.ts +96 -0
- package/src/core/extractor.ts +532 -0
- package/src/core/fetcher.ts +592 -0
- package/src/core/formatter.ts +742 -0
- package/src/core/language-detector.ts +382 -0
- package/src/core/screenshot.ts +444 -0
- package/src/core/service-detector.ts +411 -0
- package/src/core/summarizer.ts +656 -0
- package/src/core/text-cleaner.ts +150 -0
- package/src/core/voice.ts +708 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,14 @@ 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.13.1] - 2026-01-05
|
|
9
|
+
|
|
10
|
+
### 📦 Optimized: Package Size (Breaking: Major Size Reduction)
|
|
11
|
+
- **Reduced bundle size by 98.8%**: From 10.6MB → 122KB
|
|
12
|
+
- **Externalized heavy dependencies**: AI libraries now loaded separately instead of bundled
|
|
13
|
+
- **Faster installation**: Significantly reduced download time for users
|
|
14
|
+
- **Same functionality**: All features work identically with much smaller footprint
|
|
15
|
+
|
|
8
16
|
## [0.13.0] - 2026-01-05
|
|
9
17
|
|
|
10
18
|
### 🌍 Enhanced: Multilingual Support
|
package/README.md
CHANGED
|
@@ -27,6 +27,7 @@ bun install -g glance-cli # Or: npm install -g glance-cli
|
|
|
27
27
|
glance https://www.ayiti.ai # AI summary
|
|
28
28
|
glance https://www.ayiti.ai/fr --read # Auto-detects French + voice
|
|
29
29
|
glance https://news.com --output summary.md # Save as markdown
|
|
30
|
+
glance https://news.com --copy # Copy to clipboard
|
|
30
31
|
```
|
|
31
32
|
|
|
32
33
|
**For 100% free local AI:**
|
|
@@ -51,6 +52,7 @@ glance <url> --key-points # Bullet points
|
|
|
51
52
|
glance <url> --eli5 # Simple explanation
|
|
52
53
|
glance <url> --full # Full content (no summary)
|
|
53
54
|
glance <url> --ask "..." # Ask specific question
|
|
55
|
+
glance <url> --copy # Copy summary to clipboard
|
|
54
56
|
```
|
|
55
57
|
|
|
56
58
|
### 🎤 **Voice & Audio**
|
|
@@ -101,6 +103,9 @@ glance <url> --free-only # Never use paid APIs
|
|
|
101
103
|
# Morning news with audio
|
|
102
104
|
glance https://news.ycombinator.com --tldr --read
|
|
103
105
|
|
|
106
|
+
# Quick copy for sharing
|
|
107
|
+
glance https://techcrunch.com/article --tldr --copy
|
|
108
|
+
|
|
104
109
|
# Documentation lookup
|
|
105
110
|
glance https://nextjs.org/docs --ask "What's the App Router?"
|
|
106
111
|
|
|
@@ -159,6 +164,7 @@ done
|
|
|
159
164
|
```bash
|
|
160
165
|
--format <type> # Output format: md, json, plain (default: terminal)
|
|
161
166
|
--output, -o <file> # Save to file (auto-detects format from extension)
|
|
167
|
+
--copy, -c # Copy summary to clipboard
|
|
162
168
|
--stream # Live streaming output
|
|
163
169
|
```
|
|
164
170
|
|
|
@@ -197,6 +203,9 @@ export OLLAMA_ENDPOINT=http://localhost:11434
|
|
|
197
203
|
# 1. Auto language detection + file saving
|
|
198
204
|
glance https://lemonde.fr --output french-article.md # Auto-detects French format
|
|
199
205
|
|
|
206
|
+
# 2. Quick sharing workflow
|
|
207
|
+
glance https://article.com --tldr --copy # Copy summary for instant sharing
|
|
208
|
+
|
|
200
209
|
# 2. Format override for different use cases
|
|
201
210
|
glance https://news.com --format json --output backup.md # JSON content in .md file
|
|
202
211
|
|