felo-ai 0.2.6 → 0.2.9

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 (39) hide show
  1. package/.github/workflows/publish-npm.yml +39 -0
  2. package/CHANGELOG.md +30 -0
  3. package/CONTRIBUTING.md +346 -346
  4. package/README.en.md +129 -129
  5. package/README.md +435 -408
  6. package/docs/EXAMPLES.md +632 -632
  7. package/docs/FAQ.md +479 -479
  8. package/felo-search/LICENSE +21 -21
  9. package/felo-search/README.md +440 -440
  10. package/felo-search/SKILL.md +291 -291
  11. package/felo-slides/LICENSE +21 -21
  12. package/felo-slides/README.md +87 -87
  13. package/felo-slides/SKILL.md +166 -166
  14. package/felo-slides/scripts/run_ppt_task.mjs +251 -251
  15. package/felo-superAgent/LICENSE +21 -0
  16. package/felo-superAgent/README.md +125 -0
  17. package/felo-superAgent/SKILL.md +165 -0
  18. package/felo-web-fetch/README.md +127 -0
  19. package/felo-web-fetch/SKILL.md +204 -0
  20. package/felo-web-fetch/scripts/run_web_fetch.mjs +316 -0
  21. package/felo-x-search/SKILL.md +204 -0
  22. package/felo-x-search/scripts/run_x_search.mjs +385 -0
  23. package/felo-youtube-subtitling/README.md +59 -59
  24. package/felo-youtube-subtitling/SKILL.md +161 -161
  25. package/felo-youtube-subtitling/scripts/run_youtube_subtitling.mjs +239 -239
  26. package/package.json +37 -35
  27. package/src/cli.js +370 -252
  28. package/src/config.js +66 -66
  29. package/src/search.js +142 -142
  30. package/src/slides.js +332 -332
  31. package/src/superAgent.js +609 -0
  32. package/src/{webExtract.js → webFetch.js} +148 -148
  33. package/src/xSearch.js +366 -0
  34. package/src/youtubeSubtitling.js +179 -179
  35. package/tests/config.test.js +78 -78
  36. package/tests/search.test.js +100 -100
  37. package/felo-web-extract/README.md +0 -78
  38. package/felo-web-extract/SKILL.md +0 -200
  39. package/felo-web-extract/scripts/run_web_extract.mjs +0 -232
package/README.en.md CHANGED
@@ -1,129 +1,129 @@
1
- # Felo AI
2
-
3
- **Ask anything. Get current answers powered by AI.**
4
-
5
- Felo AI provides a terminal CLI and Claude Code skill, with support for English, Chinese (Simplified & Traditional), Japanese, and Korean.
6
-
7
- [![License](https://img.shields.io/badge/license-MIT-green)]()
8
-
9
- ---
10
-
11
- ## Capabilities
12
-
13
- Felo AI offers **Real-time Search**, **PPT Generation**, **Web Page Extraction**, and **YouTube Subtitles**. Use them via the CLI in your terminal, or in Claude Code via skills (search can trigger automatically).
14
-
15
- ### Capability 1: Real-time Search
16
-
17
- Search the web for up-to-date information and get AI-synthesized answers. Ideal for weather, news, prices, documentation, tech updates, and any question that needs “right now” information.
18
-
19
- - **Multi-language**: Ask in your preferred language.
20
- - **Terminal**: `felo search "your question"`
21
- - **Claude Code**: After installing the skill, it triggers automatically, or type `/felo-ai your question`
22
- - **Examples**: `felo search "Tokyo weather"`, `felo search "React 19 new features" --verbose`
23
-
24
- ### Capability 2: Generate PPT (Felo Slides)
25
-
26
- Terminal: `felo slides "your topic"`. In Claude Code: install `npx @claude/skills add felo-slides`, then `/felo-slides your topic`. You get an online document link when done. Examples: `felo slides "Felo product intro, 3 slides"`, `felo slides "Introduction to React"`.
27
-
28
- ---
29
-
30
- ## Install & Configure
31
-
32
- ### Install CLI
33
-
34
- ```bash
35
- npm install -g felo-ai
36
- ```
37
-
38
- Run without installing: `npx felo-ai search "Tokyo weather"`
39
- After install, the command is `felo`.
40
-
41
- ### Configure API Key
42
-
43
- Recommended (persisted):
44
-
45
- ```bash
46
- felo config set FELO_API_KEY your-api-key-here
47
- ```
48
-
49
- Or set the environment variable: `export FELO_API_KEY="your-api-key-here"` (Linux/macOS), `$env:FELO_API_KEY="your-api-key-here"` (Windows PowerShell).
50
-
51
- Get your API key at [felo.ai](https://felo.ai) (Settings → API Keys).
52
-
53
- ### Commands
54
-
55
- | Command | Description |
56
- |---------|-------------|
57
- | `felo search "<query>"` | Real-time search |
58
- | `felo slides "<prompt>"` | Generate PPT |
59
- | `felo web-extract --url <url>` | Extract webpage content (markdown/text/html) |
60
- | `felo youtube-subtitling -v <url-or-id>` | Fetch YouTube video subtitles |
61
- | `felo config set FELO_API_KEY <key>` | Save API key |
62
- | `felo config get/list/path/unset` | View / list / path / remove config |
63
-
64
- ### Examples
65
-
66
- **Search**
67
-
68
- ```bash
69
- felo search "Tokyo weather"
70
- felo search "MacBook Air M3 price"
71
- felo search "React 19 new features" --verbose
72
- npx felo-ai search "Tokyo weather"
73
- ```
74
-
75
- **Slides**
76
-
77
- ```bash
78
- felo slides "Felo product intro, 3 slides"
79
- felo slides "Introduction to React"
80
- felo slides "Q4 2024 business review, 10 pages" --poll-timeout 300
81
- npx felo-ai slides "Tokyo travel guide, 5 slides"
82
- ```
83
-
84
- **Web extract**
85
-
86
- ```bash
87
- felo web-extract --url "https://example.com"
88
- felo web-extract --url "https://example.com" --format text --readability
89
- node felo-web-extract/scripts/run_web_extract.mjs --url "https://example.com" --format markdown
90
- ```
91
-
92
- **YouTube subtitling**
93
-
94
- ```bash
95
- felo youtube-subtitling -v "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
96
- felo youtube-subtitling -v "dQw4w9WgXcQ" --language en
97
- node felo-youtube-subtitling/scripts/run_youtube_subtitling.mjs -v "dQw4w9WgXcQ" -l zh-CN
98
- ```
99
-
100
- ---
101
-
102
- ## Claude Code Skills
103
-
104
- **Search** — Install and use real-time search:
105
-
106
- ```bash
107
- npx @claude/skills add felo-search
108
- ```
109
-
110
- After setting `FELO_API_KEY`, ask Claude things like “What’s the weather in Tokyo today?” or “React 19 new features”; the search skill triggers automatically (or use `/felo-search your question`).
111
-
112
- **Slides (PPT)** — `npx @claude/skills add felo-slides`, then `/felo-slides your topic`. Same `FELO_API_KEY`. [Details →](./felo-slides/README.md)
113
-
114
- **Web Extract** — `felo web-extract --url "https://example.com"` or run `node felo-web-extract/scripts/run_web_extract.mjs` from repo. [Details →](./felo-web-extract/README.md)
115
-
116
- **YouTube Subtitling** — `felo youtube-subtitling -v "URL_or_VIDEO_ID"` or run `node felo-youtube-subtitling/scripts/run_youtube_subtitling.mjs` from repo. [Details →](./felo-youtube-subtitling/README.md)
117
-
118
- ---
119
-
120
- ## Links
121
-
122
- - [Felo Open Platform](https://openapi.felo.ai/docs/) — Get your API key
123
- - [API Documentation](https://openapi.felo.ai/docs/api-reference/v2/chat.html)
124
- - [More examples](./docs/EXAMPLES.md) | [FAQ](./docs/FAQ.md) | [GitHub Issues](https://github.com/Felo-Inc/felo-skills/issues)
125
-
126
- ---
127
-
128
- **Other languages:** [Chinese (Simplified)](README.zh-CN.md) | [Japanese](README.ja.md) | [Korean](README.ko.md) | [Chinese (Traditional)](README.zh-TW.md)
129
-
1
+ # Felo AI
2
+
3
+ **Ask anything. Get current answers powered by AI.**
4
+
5
+ Felo AI provides a terminal CLI and Claude Code skill, with support for English, Chinese (Simplified & Traditional), Japanese, and Korean.
6
+
7
+ [![License](https://img.shields.io/badge/license-MIT-green)]()
8
+
9
+ ---
10
+
11
+ ## Capabilities
12
+
13
+ Felo AI offers **Real-time Search**, **PPT Generation**, **Web Fetch**, and **YouTube Subtitles**. Use them via the CLI in your terminal, or in Claude Code via skills (search can trigger automatically).
14
+
15
+ ### Capability 1: Real-time Search
16
+
17
+ Search the web for up-to-date information and get AI-synthesized answers. Ideal for weather, news, prices, documentation, tech updates, and any question that needs “right now” information.
18
+
19
+ - **Multi-language**: Ask in your preferred language.
20
+ - **Terminal**: `felo search "your question"`
21
+ - **Claude Code**: After installing the skill, it triggers automatically, or type `/felo-ai your question`
22
+ - **Examples**: `felo search "Tokyo weather"`, `felo search "React 19 new features" --verbose`
23
+
24
+ ### Capability 2: Generate PPT (Felo Slides)
25
+
26
+ Terminal: `felo slides "your topic"`. In Claude Code: install `npx @claude/skills add felo-slides`, then `/felo-slides your topic`. You get an online document link when done. Examples: `felo slides "Felo product intro, 3 slides"`, `felo slides "Introduction to React"`.
27
+
28
+ ---
29
+
30
+ ## Install & Configure
31
+
32
+ ### Install CLI
33
+
34
+ ```bash
35
+ npm install -g felo-ai
36
+ ```
37
+
38
+ Run without installing: `npx felo-ai search "Tokyo weather"`
39
+ After install, the command is `felo`.
40
+
41
+ ### Configure API Key
42
+
43
+ Recommended (persisted):
44
+
45
+ ```bash
46
+ felo config set FELO_API_KEY your-api-key-here
47
+ ```
48
+
49
+ Or set the environment variable: `export FELO_API_KEY="your-api-key-here"` (Linux/macOS), `$env:FELO_API_KEY="your-api-key-here"` (Windows PowerShell).
50
+
51
+ Get your API key at [felo.ai](https://felo.ai) (Settings → API Keys).
52
+
53
+ ### Commands
54
+
55
+ | Command | Description |
56
+ |---------|-------------|
57
+ | `felo search "<query>"` | Real-time search |
58
+ | `felo slides "<prompt>"` | Generate PPT |
59
+ | `felo web-fetch --url <url>` | Fetch webpage content (markdown/text/html) |
60
+ | `felo youtube-subtitling -v <url-or-id>` | Fetch YouTube video subtitles |
61
+ | `felo config set FELO_API_KEY <key>` | Save API key |
62
+ | `felo config get/list/path/unset` | View / list / path / remove config |
63
+
64
+ ### Examples
65
+
66
+ **Search**
67
+
68
+ ```bash
69
+ felo search "Tokyo weather"
70
+ felo search "MacBook Air M3 price"
71
+ felo search "React 19 new features" --verbose
72
+ npx felo-ai search "Tokyo weather"
73
+ ```
74
+
75
+ **Slides**
76
+
77
+ ```bash
78
+ felo slides "Felo product intro, 3 slides"
79
+ felo slides "Introduction to React"
80
+ felo slides "Q4 2024 business review, 10 pages" --poll-timeout 300
81
+ npx felo-ai slides "Tokyo travel guide, 5 slides"
82
+ ```
83
+
84
+ **Web fetch**
85
+
86
+ ```bash
87
+ felo web-fetch --url "https://example.com"
88
+ felo web-fetch --url "https://example.com" --format text --readability
89
+ node felo-web-fetch/scripts/run_web_fetch.mjs --url "https://example.com" --format markdown
90
+ ```
91
+
92
+ **YouTube subtitling**
93
+
94
+ ```bash
95
+ felo youtube-subtitling -v "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
96
+ felo youtube-subtitling -v "dQw4w9WgXcQ" --language en
97
+ node felo-youtube-subtitling/scripts/run_youtube_subtitling.mjs -v "dQw4w9WgXcQ" -l zh-CN
98
+ ```
99
+
100
+ ---
101
+
102
+ ## Claude Code Skills
103
+
104
+ **Search** — Install and use real-time search:
105
+
106
+ ```bash
107
+ npx @claude/skills add felo-search
108
+ ```
109
+
110
+ After setting `FELO_API_KEY`, ask Claude things like “What’s the weather in Tokyo today?” or “React 19 new features”; the search skill triggers automatically (or use `/felo-search your question`).
111
+
112
+ **Slides (PPT)** — `npx @claude/skills add felo-slides`, then `/felo-slides your topic`. Same `FELO_API_KEY`. [Details →](./felo-slides/README.md)
113
+
114
+ **Web Fetch** — `felo web-fetch --url "https://example.com"` or run `node felo-web-fetch/scripts/run_web_fetch.mjs` from repo. [Details →](./felo-web-fetch/README.md)
115
+
116
+ **YouTube Subtitling** — `felo youtube-subtitling -v "URL_or_VIDEO_ID"` or run `node felo-youtube-subtitling/scripts/run_youtube_subtitling.mjs` from repo. [Details →](./felo-youtube-subtitling/README.md)
117
+
118
+ ---
119
+
120
+ ## Links
121
+
122
+ - [Felo Open Platform](https://openapi.felo.ai/docs/) — Get your API key
123
+ - [API Documentation](https://openapi.felo.ai/docs/api-reference/v2/chat.html)
124
+ - [More examples](./docs/EXAMPLES.md) | [FAQ](./docs/FAQ.md) | [GitHub Issues](https://github.com/Felo-Inc/felo-skills/issues)
125
+
126
+ ---
127
+
128
+ **Other languages:** [Chinese (Simplified)](README.zh-CN.md) | [Japanese](README.ja.md) | [Korean](README.ko.md) | [Chinese (Traditional)](README.zh-TW.md)
129
+