stella-coder 4.0.0 → 5.0.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 (69) hide show
  1. package/README.md +25 -35
  2. package/dist/antimalware/index.mjs +0 -0
  3. package/package.json +3 -4
  4. package/stella-cli/banner.mjs +1 -1
  5. package/stella-cli/index.mjs +1 -1
  6. package/stella-cli/tools.mjs +6 -9
  7. package/create_cats_pptx.py +0 -121
  8. package/hello.py +0 -2
  9. package/presentation-advanced-features-demo/README.md +0 -27
  10. package/presentation-advanced-features-demo/index.html +0 -371
  11. package/presentation-advanced-features-demo/print.html +0 -81
  12. package/presentation-advanced-features-demo/slide-01.html +0 -98
  13. package/presentation-advanced-features-demo/slide-02.html +0 -101
  14. package/presentation-advanced-features-demo/slide-03.html +0 -100
  15. package/presentation-advanced-features-demo/slide-04.html +0 -100
  16. package/presentation-advanced-features-demo/slide-05.html +0 -100
  17. package/presentation-advanced-features-demo/slide-06.html +0 -64
  18. package/presentation-advanced-features-demo/slide-07.html +0 -101
  19. package/presentation-advanced-features-demo/slide-08.html +0 -91
  20. package/presentation-stella-coder---ai-coding-agent/README.md +0 -27
  21. package/presentation-stella-coder---ai-coding-agent/index.html +0 -168
  22. package/presentation-stella-coder---ai-coding-agent/slide-01.html +0 -98
  23. package/presentation-stella-coder---ai-coding-agent/slide-02.html +0 -101
  24. package/presentation-stella-coder---ai-coding-agent/slide-03.html +0 -100
  25. package/presentation-stella-coder---ai-coding-agent/slide-04.html +0 -100
  26. package/presentation-stella-coder---ai-coding-agent/slide-05.html +0 -100
  27. package/presentation-stella-coder---ai-coding-agent/slide-06.html +0 -100
  28. package/presentation-stella-coder---ai-coding-agent/slide-07.html +0 -100
  29. package/presentation-stella-coder---ai-coding-agent/slide-08.html +0 -64
  30. package/presentation-stella-coder---ai-coding-agent/slide-09.html +0 -101
  31. package/presentation-stella-coder---ai-coding-agent/slide-10.html +0 -91
  32. package/presentation-stella-coder-demo/README.md +0 -27
  33. package/presentation-stella-coder-demo/index.html +0 -371
  34. package/presentation-stella-coder-demo/slide-01.html +0 -98
  35. package/presentation-stella-coder-demo/slide-02.html +0 -101
  36. package/presentation-stella-coder-demo/slide-03.html +0 -100
  37. package/presentation-stella-coder-demo/slide-04.html +0 -100
  38. package/presentation-stella-coder-demo/slide-05.html +0 -100
  39. package/presentation-stella-coder-demo/slide-06.html +0 -64
  40. package/presentation-stella-coder-demo/slide-07.html +0 -101
  41. package/presentation-stella-coder-demo/slide-08.html +0 -91
  42. package/presentation-stella-coder-features/README.md +0 -27
  43. package/presentation-stella-coder-features/index.html +0 -364
  44. package/presentation-stella-coder-features/print.html +0 -77
  45. package/presentation-stella-coder-features/slide-01.html +0 -98
  46. package/presentation-stella-coder-features/slide-02.html +0 -101
  47. package/presentation-stella-coder-features/slide-03.html +0 -100
  48. package/presentation-stella-coder-features/slide-04.html +0 -100
  49. package/presentation-stella-coder-features/slide-05.html +0 -64
  50. package/presentation-stella-coder-features/slide-06.html +0 -101
  51. package/presentation-stella-coder-features/slide-07.html +0 -91
  52. package/presentation-test-presentation/README.md +0 -27
  53. package/presentation-test-presentation/index.html +0 -350
  54. package/presentation-test-presentation/print.html +0 -69
  55. package/presentation-test-presentation/slide-01.html +0 -98
  56. package/presentation-test-presentation/slide-02.html +0 -101
  57. package/presentation-test-presentation/slide-03.html +0 -64
  58. package/presentation-test-presentation/slide-04.html +0 -101
  59. package/presentation-test-presentation/slide-05.html +0 -91
  60. package/presentation-/321/202/320/265/321/201/321/202/320/276/320/262/320/260/321/217-/320/277/321/200/320/265/320/267/320/265/320/275/321/202/320/260/321/206/320/270/321/217/README.md +0 -27
  61. package/presentation-/321/202/320/265/321/201/321/202/320/276/320/262/320/260/321/217-/320/277/321/200/320/265/320/267/320/265/320/275/321/202/320/260/321/206/320/270/321/217/index.html +0 -159
  62. package/presentation-/321/202/320/265/321/201/321/202/320/276/320/262/320/260/321/217-/320/277/321/200/320/265/320/267/320/265/320/275/321/202/320/260/321/206/320/270/321/217/slide-01.html +0 -98
  63. package/presentation-/321/202/320/265/321/201/321/202/320/276/320/262/320/260/321/217-/320/277/321/200/320/265/320/267/320/265/320/275/321/202/320/260/321/206/320/270/321/217/slide-02.html +0 -101
  64. package/presentation-/321/202/320/265/321/201/321/202/320/276/320/262/320/260/321/217-/320/277/321/200/320/265/320/267/320/265/320/275/321/202/320/260/321/206/320/270/321/217/slide-03.html +0 -100
  65. package/presentation-/321/202/320/265/321/201/321/202/320/276/320/262/320/260/321/217-/320/277/321/200/320/265/320/267/320/265/320/275/321/202/320/260/321/206/320/270/321/217/slide-04.html +0 -100
  66. package/presentation-/321/202/320/265/321/201/321/202/320/276/320/262/320/260/321/217-/320/277/321/200/320/265/320/267/320/265/320/275/321/202/320/260/321/206/320/270/321/217/slide-05.html +0 -64
  67. package/presentation-/321/202/320/265/321/201/321/202/320/276/320/262/320/260/321/217-/320/277/321/200/320/265/320/267/320/265/320/275/321/202/320/260/321/206/320/270/321/217/slide-06.html +0 -101
  68. package/presentation-/321/202/320/265/321/201/321/202/320/276/320/262/320/260/321/217-/320/277/321/200/320/265/320/267/320/265/320/275/321/202/320/260/321/206/320/270/321/217/slide-07.html +0 -91
  69. package/stella-coder-3.9.2.tgz +0 -0
package/README.md CHANGED
@@ -1,66 +1,56 @@
1
- # Stella Coder 3.9
1
+ # Stella Coder 5.0
2
2
 
3
- > AI coding agent with computer control, smart home, Office automation, and antivirus — all in your terminal.
3
+ > AI coding agent with Telegram bot, huge context, TDD, Git ecosystem, and more — all in your terminal.
4
4
 
5
5
  ## Features
6
6
 
7
7
  - **AI Agent** — Read, create, edit files; run shell commands; search code
8
- - **100+ commands** — `/help`, `/model`, `/plan`, `/commit`, `/exec`, `/open`, `/tv`, `/docker`, etc.
8
+ - **100+ commands** — `/help`, `/model`, `/plan`, `/commit`, `/exec`, `/open`, `/tv`, etc.
9
9
  - **20+ AI models** — Free defaults (MiMo, DeepSeek), plus GPT, Claude, Gemini
10
+ - **Telegram Bot** — Control your computer remotely from Telegram
11
+ - **Coding Brain** — Huge context (200K tokens), auto-load SPEC/CLAUDE.md
12
+ - **TDD** — Auto-write tests, run linters, fix code
13
+ - **Git Ecosystem** — Branches, PRs, merge conflicts resolution
14
+ - **Presentations** — Create beautiful HTML presentations
10
15
  - **Computer control** — Screenshot, volume, brightness, WiFi, notifications
11
16
  - **Server management** — SSH, Docker, PM2, ports, firewall
12
17
  - **Smart home** — Sony TV, HDMI-CEC, Yeelight, Chromecast, Wake-on-LAN
13
18
  - **Office automation** — PowerPoint, Word, Excel via COM
14
- - **Application control** — Focus windows, type text, hotkeys, screenshots
15
19
  - **Antivirus** — Built-in scanner with 100+ signatures
16
- - **Presentations** — Create beautiful HTML presentations from any topic
17
20
 
18
21
  ## Quick Install
19
22
 
20
- ### From npm (recommended)
21
-
22
23
  ```bash
23
24
  npm install -g stella-coder
24
25
  stella
25
26
  ```
26
27
 
27
- ### From source
28
-
29
- ```bash
30
- git clone https://github.com/codex-alex/stella-coder.git
31
- cd stella-coder
32
- npm install
33
- npm link
34
- stella
35
- ```
36
-
37
- ### Windows one-click
38
-
39
- Download `install.bat` and run it.
40
-
41
28
  ## Usage
42
29
 
43
30
  ```bash
44
31
  stella # Interactive REPL
45
- stella -p "fix bug in utils.ts" # One-shot command
32
+ stella -p "fix bug" # One-shot command
46
33
  ```
47
34
 
48
- ### Key Commands
35
+ ## Telegram Bot
36
+
37
+ 1. Start bot: `/tg`
38
+ 2. Generate code: `/tg-code`
39
+ 3. Share code with friends
40
+ 4. Friends enter code in @stella_CLI_bot
41
+ 5. They can now control your computer!
42
+
43
+ ## Key Commands
49
44
 
50
45
  | Command | Description |
51
46
  |---------|-------------|
52
47
  | `/help` | Show all commands |
53
- | `/model` | Select AI model |
54
- | `/plan` | Execute multi-step tasks |
55
- | `/exec <cmd>` | Run shell command |
56
- | `/open <app>` | Open application |
57
- | `/tv discover` | Find Sony TV |
58
- | `/docker ps` | List containers |
59
- | `/av` | Launch antivirus |
60
- | `/presentation <topic>` | Create presentation from topic |
61
- | `/presentation-theme` | List available themes |
62
- | `/presentation-custom` | Create custom presentation |
63
- | `/presentation-export <dir>` | Export to print-friendly HTML |
48
+ | `/brain` | Project diagnostics |
49
+ | `/tdd <file>` | Auto-write tests |
50
+ | `/fix-all` | Lint + format + types + tests |
51
+ | `/tg` | Start Telegram bot |
52
+ | `/tg-code` | Generate access code |
53
+ | `/presentation <topic>` | Create presentation |
64
54
 
65
55
  ## Configuration
66
56
 
@@ -74,4 +64,4 @@ MIT
74
64
 
75
65
  ---
76
66
 
77
- **Stella Coder 3.9** · powered by codex alex
67
+ **Stella Coder 5.0** · powered by codex alex
File without changes
package/package.json CHANGED
@@ -1,12 +1,11 @@
1
1
  {
2
2
  "name": "stella-coder",
3
- "version": "4.0.0",
3
+ "version": "5.0.1",
4
4
  "private": false,
5
- "description": "Stella Coder 4.0 — AI coding agent with subagents, MCP, computer control, smart home, Office automation, and antivirus",
5
+ "description": "Stella Coder 5.0 — AI coding agent with Telegram bot, huge context, TDD, Git ecosystem, presentations, computer control, smart home, Office automation, and antivirus",
6
6
  "main": "stella-cli/index.mjs",
7
7
  "bin": {
8
- "stella": "stella-cli/index.mjs",
9
- "stellar-av": "antimalware/index.mjs"
8
+ "stella": "stella-cli/index.mjs"
10
9
  },
11
10
  "scripts": {
12
11
  "stella": "node stella-cli/index.mjs",
@@ -30,7 +30,7 @@ export function printBanner({ model, cwd, version }) {
30
30
  console.log(
31
31
  box(
32
32
  [
33
- violet("✻") + " Добро пожаловать в " + bold(violet("Stella Coder 3.9")) + "!",
33
+ violet("✻") + " Добро пожаловать в " + bold(violet("Stella Coder 5.0")) + "!",
34
34
  "",
35
35
  dim(" модель: ") + blue(model),
36
36
  dim(" папка: ") + gray(cwd),
@@ -40,7 +40,7 @@ import {
40
40
  generateAdminCode, listAuthorizedUsers,
41
41
  } from "./telegram-bot.mjs"
42
42
 
43
- const VERSION = "4.0.0"
43
+ const VERSION = "5.0.1"
44
44
  const CONFIG_DIR = path.join(os.homedir(), ".stella")
45
45
  const CONFIG_PATH = path.join(CONFIG_DIR, "config.json")
46
46
  const HISTORY_PATH = path.join(CONFIG_DIR, "history.json")
@@ -2192,15 +2192,12 @@ export function createTools(permissions) {
2192
2192
  if (!cmd) return { error: `Неизвестная команда: ${command}` }
2193
2193
 
2194
2194
  const authHeader = psk ? { "X-Auth-PSK": psk } : {}
2195
- const url = `http://${ip}/sony/videoControl`
2196
-
2197
- // First try to get the API version
2198
- const verRes = await fetch(`http://${ip}/sony/videoControl`, {
2199
- method: "POST",
2200
- headers: { "Content-Type": "application/json", ...authHeader },
2201
- body: JSON.stringify({ method: "getVersions", params: [] }),
2202
- signal: AbortSignal.timeout(5000),
2203
- }).catch(() => null)
2195
+
2196
+ // Power commands use /sony/system, others use /sony/videoControl
2197
+ const isPowerCommand = command === "power" || command === "power_on" || command === "power_off"
2198
+ const url = isPowerCommand
2199
+ ? `http://${ip}/sony/system`
2200
+ : `http://${ip}/sony/videoControl`
2204
2201
 
2205
2202
  // Send the command
2206
2203
  const res = await fetch(url, {
@@ -1,121 +0,0 @@
1
- from pptx import Presentation
2
- from pptx.util import Inches, Pt, Emu
3
- from pptx.dml.color import RGBColor
4
- from pptx.enum.text import PP_ALIGN
5
-
6
- prs = Presentation()
7
- prs.slide_width = Inches(13.333)
8
- prs.slide_height = Inches(7.5)
9
-
10
- # Цвета
11
- ORANGE = RGBColor(0xFF, 0x8C, 0x00)
12
- DARK = RGBColor(0x2D, 0x2D, 0x2D)
13
- WHITE = RGBColor(0xFF, 0xFF, 0xFF)
14
- LIGHT_BG = RGBColor(0xFF, 0xF5, 0xE6)
15
-
16
- def set_slide_bg(slide, r, g, b):
17
- background = slide.background
18
- fill = background.fill
19
- fill.solid()
20
- fill.fore_color.rgb = RGBColor(r, g, b)
21
-
22
- def add_text_box(slide, left, top, width, height, text, font_size=24, bold=False, color=DARK, alignment=PP_ALIGN.LEFT):
23
- txBox = slide.shapes.add_textbox(Inches(left), Inches(top), Inches(width), Inches(height))
24
- tf = txBox.text_frame
25
- tf.word_wrap = True
26
- p = tf.paragraphs[0]
27
- p.text = text
28
- p.font.size = Pt(font_size)
29
- p.font.bold = bold
30
- p.font.color.rgb = color
31
- p.alignment = alignment
32
- return txBox
33
-
34
- def add_bullets(slide, left, top, width, height, items, font_size=20, color=DARK):
35
- txBox = slide.shapes.add_textbox(Inches(left), Inches(top), Inches(width), Inches(height))
36
- tf = txBox.text_frame
37
- tf.word_wrap = True
38
- for i, item in enumerate(items):
39
- if i == 0:
40
- p = tf.paragraphs[0]
41
- else:
42
- p = tf.add_paragraph()
43
- p.text = item
44
- p.font.size = Pt(font_size)
45
- p.font.color.rgb = color
46
- p.space_after = Pt(12)
47
- p.level = 0
48
- return txBox
49
-
50
- # Слайд 1 — Титульный
51
- slide = prs.slides.add_slide(prs.slide_layouts[6]) # Blank
52
- set_slide_bg(slide, 0xFF, 0x8C, 0x00)
53
- add_text_box(slide, 1, 1.5, 11, 2, "🐱 КОТЫ", font_size=72, bold=True, color=WHITE, alignment=PP_ALIGN.CENTER)
54
- add_text_box(slide, 1, 3.5, 11, 1.5, "Лучшие друзья человека", font_size=36, color=WHITE, alignment=PP_ALIGN.CENTER)
55
- add_text_box(slide, 1, 5.5, 11, 1, "🐾 🐾 🐾 🐾 🐾", font_size=36, color=WHITE, alignment=PP_ALIGN.CENTER)
56
-
57
- # Слайд 2 — Интересные факты
58
- slide = prs.slides.add_slide(prs.slide_layouts[6])
59
- set_slide_bg(slide, 0xFF, 0xF5, 0xE6)
60
- add_text_box(slide, 0.5, 0.5, 12, 1.2, "🔍 Интересные факты о котах", font_size=40, bold=True, color=ORANGE, alignment=PP_ALIGN.CENTER)
61
- facts = [
62
- "😴 Коты проводят 70% своей жизни во сне",
63
- "👃 У каждого кота уникальный рисунок носа — как отпечаток пальца",
64
- "🔊 Коты могут издавать более 100 различных звуков",
65
- "🏆 Самый старый кот прожил 38 лет",
66
- "🏃 Коты бегают со скоростью до 48 км/ч",
67
- "❤️ Коты мурлыкают на частоте 25-150 Гц — это помогает заживлению тканей",
68
- ]
69
- add_bullets(slide, 1.5, 2, 10, 5, facts, font_size=24, color=DARK)
70
-
71
- # Слайд 3 — Популярные породы
72
- slide = prs.slides.add_slide(prs.slide_layouts[6])
73
- set_slide_bg(slide, 0xFF, 0xF5, 0xE6)
74
- add_text_box(slide, 0.5, 0.5, 12, 1.2, "🐈 Популярные породы", font_size=40, bold=True, color=ORANGE, alignment=PP_ALIGN.CENTER)
75
- breeds = [
76
- "🦁 Мейн-кун — гигант среди домашних котов (до 12 кг!)",
77
- "👻 Сфинкс — бесшёрстная, но очень ласковая порода",
78
- "🇬🇧 Британская короткошёрстная — классика жанра",
79
- "🦄 Шотландская вислоухая — с милыми загнутыми ушами",
80
- "🇹🇭 Сиамская — умная и голосистая порода",
81
- "👑 Персидская — царственная красота и спокойный характер",
82
- ]
83
- add_bullets(slide, 1.5, 2, 10, 5, breeds, font_size=24, color=DARK)
84
-
85
- # Слайд 4 — Польза для здоровья
86
- slide = prs.slides.add_slide(prs.slide_layouts[6])
87
- set_slide_bg(slide, 0xFF, 0xF5, 0xE6)
88
- add_text_box(slide, 0.5, 0.5, 12, 1.2, "💚 Польза котов для здоровья", font_size=40, bold=True, color=ORANGE, alignment=PP_ALIGN.CENTER)
89
- health = [
90
- "😌 Снижают уровень стресса и тревожности",
91
- "🎵 Мурлыкание помогает заживлять кости и ткани",
92
- "💊 Понижают давление и уровень холестерина",
93
- "🫀 Уменьшают риск инфаркта на 40%",
94
- "🤗 Помогают бороться с одиночеством",
95
- "👶 Дети, растущие с котами, реже болеют аллергией",
96
- ]
97
- add_bullets(slide, 1.5, 2, 10, 5, health, font_size=24, color=DARK)
98
-
99
- # Слайд 5 — Коты в культуре
100
- slide = prs.slides.add_slide(prs.slide_layouts[6])
101
- set_slide_bg(slide, 0xFF, 0xF5, 0xE6)
102
- add_text_box(slide, 0.5, 0.5, 12, 1.2, "🌍 Коты в культуре", font_size=40, bold=True, color=ORANGE, alignment=PP_ALIGN.CENTER)
103
- culture = [
104
- "🏛️ В Древнем Египте котов боготворили и мумифицировали",
105
- "📱 Интернет-мемы сделали котов самыми популярными животными онлайн",
106
- "🎨 Сальвадор Дали был известным любителем котов",
107
- "🇯🇵 В Японии манэки-нэко (кот-привет) приносит удачу",
108
- "🐈 Кот Боб — знаменитый рыжий уличный кот из Лондона",
109
- "📚 Кошка Бегемот из «Мастера и Маргариты» — один из самых известных котов в литературе",
110
- ]
111
- add_bullets(slide, 1.5, 2, 10, 5, culture, font_size=24, color=DARK)
112
-
113
- # Слайд 6 — Заключительный
114
- slide = prs.slides.add_slide(prs.slide_layouts[6])
115
- set_slide_bg(slide, 0xFF, 0x8C, 0x00)
116
- add_text_box(slide, 1, 2, 11, 2, "Спасибо за внимание!", font_size=60, bold=True, color=WHITE, alignment=PP_ALIGN.CENTER)
117
- add_text_box(slide, 1, 4.2, 11, 1.5, "🐾 Возьмите кота — и ваша жизнь станет ярче! 🐾", font_size=28, color=WHITE, alignment=PP_ALIGN.CENTER)
118
-
119
- output = r"C:\Users\user\Desktop\cats.pptx"
120
- prs.save(output)
121
- print(f"Презентация сохранена: {output}")
package/hello.py DELETED
@@ -1,2 +0,0 @@
1
- print("Привет, мир!")
2
- input("Нажмите Enter для закрытия...")
@@ -1,27 +0,0 @@
1
- # Advanced Features Demo
2
-
3
- ## Презентация
4
-
5
- Эта презентация содержит 8 слайдов.
6
-
7
- ### Просмотр
8
-
9
- Откройте `index.html` в браузере для просмотра презентации.
10
-
11
- ### Навигация
12
-
13
- - Используйте клавиши ← → для навигации
14
- - Нажмите F11 для полноэкранного режима
15
-
16
- ### Тема
17
-
18
- Tech Blue
19
-
20
- ### Цвета
21
-
22
- - Primary: #0ea5e9
23
- - Secondary: #06b6d4
24
- - Accent: #0ea5e9
25
-
26
- ---
27
- Создано с помощью Stella Coder