natureco-cli 4.9.1 → 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.
package/CHANGELOG.md CHANGED
@@ -1,422 +1,486 @@
1
- # Changelog
2
-
3
- All notable changes to NatureCo CLI will be documented in this file.
4
-
5
- ## [4.2.0] - 2026-06-22 — "LAUNCH READY"
6
-
7
- ### 🚀 Headline
8
- **v4.2.0 ile NatureCo CLI npm'e publish'a hazır.** OpenClaw'ın açık ara üstünü.
9
-
10
- ### ✨ Added
11
- - **package.json launch-ready:**
12
- - Açıklayıcı description, 18 keywords (SEO optimize)
13
- - `repository`, `bugs`, `homepage`, `author` (Gencay Olgun) alanları
14
- - `postinstall` script: `natureco doctor` otomatik çalışır
15
- - `prepublishOnly`: syntax check + test
16
- - Files: README, CHANGELOG, AUDIT, DEPLOY docs dahil
17
- - **LAUNCH.md** — Pazarlama materyali:
18
- - Reddit/HN/Twitter/Medium/Discord mesajları (Parton imzalı)
19
- - Hedef kitle segmentleri
20
- - 30-gün başarı metrikleri
21
- - Launch checklist
22
- - **npm publish adımları** dokümante edildi
23
-
24
- ### 📊 Final İstatistikler
25
- - 152 JS dosyası (8 yeni eklendi)
26
- - 32K+ satır kod
27
- - 11 utility modülü (5 yeni)
28
- - 95+ CLI komutu (8 yeni)
29
- - 8 phase, 0 blocking bug
30
- - v2.23.32 → v4.2.0 (8 minor versiyon)
31
-
32
- ### 🎯 Hedef
33
- - İlk hafta: 1,000 npm indirme
34
- - İlk ay: 500 GitHub yıldız, 200 aktif kullanıcı
35
-
36
- ---
37
-
38
- ## 🏁 TÜM PHASE'LER TAMAMLANDI
39
-
40
- - [x] Phase 0: Audit
41
- - [x] Phase 1: Brand & Onboarding (v3.0.0)
42
- - [x] Phase 2: Defense-in-Depth (v3.1.0)
43
- - [x] Phase 3: Self-Evolving Skills (v3.2.0)
44
- - [x] Phase 4: Cost-Optimized (v3.3.0)
45
- - [x] Phase 5: Developer Experience (v3.4.0)
46
- - [x] Phase 6: NatureCo Native (v4.0.0)
47
- - [x] Phase 7: Multi-Agent (v4.1.0)
48
- - [x] Phase 8: Launch Ready (v4.2.0)
49
-
50
- **OpenClaw'ın yerini almaya hazırız.** 🌿
51
-
52
- ### 🤖 Headline
53
- Tek agent değil, **agent ağı**. OpenClaw single-agent — NatureCo multi-agent.
54
-
55
- ### ✨ Added
56
- - **`src/utils/sub-agent.js`** genişletildi: 3 → 8 agent tipi
57
- - `explore`, `general`, `review` (mevcut)
58
- - **Yeni:** `seo`, `content`, `security`, `translator`, `debugger`
59
- - Her biri farklı system prompt ile uzmanlaşmış
60
- - **`natureco team`** — Multi-agent orkestrasyon komutu
61
- - `team list`: 8 agent tipi ve açıklamaları
62
- - `team status`: Son çalışan agent istatistikleri (toplam/çalışan/tamamlanan/başarısız)
63
- - `team spawn <type> <task>`: Tek agent çalıştır (token kullanım raporu ile)
64
- - `team parallel '<json>'`: N agent paralel çalıştır, sonuçları birleştir
65
- - **Mevcut `spawnSubAgent`/`spawnParallel` altyapısı** zaten vardı (Phase 7 bunu sadece genişletti)
66
-
67
- ### 🔜 Final Phase
68
- - v4.2.0 — Phase 8: Launch & marketing
69
-
70
- ### 🌿 Headline
71
- Generic agent değil, **NatureCo platformunun native parçası**. OpenClaw generic — NatureCo natureco.me'ye özel.
72
-
73
- ### ✨ Added
74
- - **`natureco naturehub`** — Nature Hub topluluk akışına içerik yayınla (post|list|trending|config)
75
- - Token tabanlı, `natureco config set naturehubToken`
76
- - Offline: yerel JSONL'e kaydeder, API hazır olunca gönderir
77
- - **`natureco medium`** — Parton'un ayda 4 makale hedefi için (draft|publish|list)
78
- - Markdown dosyasından taslak/yayın
79
- - Medium integration token gerektirir
80
- - Yerel taslak kayıt (`~/.natureco/medium-drafts/`)
81
- - **`natureco seo`** — URL SEO denetimi (audit|meta|speed)
82
- - Title, description, canonical, OG, Twitter Card, schema.org
83
- - H1-H3 heading analizi, image alt kontrolü
84
- - Word count ve 100-üzerinden skor
85
- - **Test: natureco.me → 71/100, H1 eksik bildirildi**
86
- - **`natureco xp`** — Gamification (stats|leaderboard|rewards)
87
- - 8 seviye: Tohum → Galaksi (0 → 12,000 XP)
88
- - 7 farklı ödül (sticker → Founder statüsü)
89
- - XP history (son 100 kayıt)
90
-
91
- ### 🎯 Phase 6 Canlı Test
92
- - **SEO audit natureco.me**: 71/100 skor, H1 eksikliği, title uzunluğu tespit edildi
93
- - **XP sistemi**: 0 XP, Lv.1 Tohum, sonraki Filiz (100 XP)
94
-
95
- ### 🔜 Coming
96
- - v4.1.0 — Phase 7: Multi-agent orkestrasyon (sub-agents)
97
- - v4.2.0 — Phase 8: Launch & marketing
98
-
99
- ### 🖥️ Headline
100
- OpenClaw "kara kutu". NatureCo CLI **şeffaf** — tüm veriler tek bir local dashboard'da.
101
-
102
- ### ✨ Added
103
- - **`src/utils/dashboard-server.js`** — Local web dashboard
104
- - Port 7421, vanilla JS + HTML (framework yok)
105
- - 6 widget: bugünkü maliyet, yüklü skill, aktif cron, audit kayıtları, provider bazlı maliyet, self-evolving proposals, son tool çağrıları
106
- - Otomatik 5 saniyede bir yenileme (auto-refresh)
107
- - JSON API endpoint (`/api`)
108
- - PID file ile kolay durdurma
109
- - **`src/commands/dashboard.js`** — `natureco dashboard [start|status|stop|url]`
110
- - Port kontrolü (zaten çalışıyor mu?)
111
- - Process kill ile temiz shutdown
112
- - macOS/Windows/Linux uyumlu tarayıcı açma
113
-
114
- ### 📊 Phase 5 Dashboard Test
115
- - HTTP 200, 8575 byte HTML
116
- - API JSON: tüm Phase 3 proposal verileri görünüyor
117
- - Real-time auto-refresh çalışıyor
118
-
119
- ### 🔜 Coming
120
- - v4.0.0 — Phase 6: NatureCo özgü entegrasyonlar (naturehub, medium, seo)
121
- - v4.1.0 — Phase 7: Multi-agent orkestrasyon
122
- - v4.2.0 — Phase 8: Launch & marketing
123
-
124
- ### 💰 Headline
125
- OpenClaw kullanıcıları ayda $50-200 token faturası ödüyor. NatureCo hedef: $5-15/ay akıllı routing ile.
126
-
127
- ### ✨ Added
128
- - **`src/utils/cost-tracker.js`** — Maliyet hesaplama ve model router
129
- - 21 model × provider için güncel fiyat tablosu (Groq, OpenAI, Anthropic, DeepSeek, Together, Fireworks, Ollama)
130
- - Token → USD dönüşümü (input/output ayrı)
131
- - **Model router**: 4 karmaşıklık seviyesi (simple/medium/complex/creative)
132
- - Basit soru → llama-3.1-8b-instant ($0.05 in)
133
- - Kod → llama-3.3-70b-versatile veya claude-sonnet
134
- - Yaratıcı yazı → claude-sonnet veya gpt-4o
135
- - **Otomatik karmaşıklık tahmini**: prompt içeriğinden (kod işaretleri, anahtar kelimeler, uzunluk)
136
- - **Bütçe sistemi**: günlük $5, aylık $100 limit, %75 uyarı, %90 otomatik downgrade
137
- - **`src/commands/cost.js`** — `natureco cost [today|week|month|all|budget|set|model|prices]`
138
- - Renkli bar chart'lar
139
- - Provider ve model bazlı breakdown
140
- - Bütçe durumu görselleştirmesi
141
- - **`bin/natureco.js`** — `cost` komutu kayıtlı
142
-
143
- ### 📊 Phase 4 Test Sonucu
144
- - 3 farklı provider kullanımı kaydedildi → $0.0252 toplam
145
- - Basit prompt: `groq:llama-3.1-8b-instant` önerildi (en ucuz)
146
- - Karmaşık kod prompt: `groq:llama-3.3-70b-versatile` önerildi
147
- - Bütçe görsel: %1 kullanım (günlük limit $5)
148
-
149
- ### 🔜 Coming
150
- - v3.4.0 — Phase 5: Geliştirici deneyimi (dashboard)
151
- - v4.0.0 — Phase 6-8: NatureCo native + launch
152
-
153
- ### 🧠 Headline
154
- Kullanımın tekrar eden pattern'lerinden otomatik skill oluştur. Hermes Agent'tan ilham, NatureCo uyarlaması.
155
-
156
- ### ✨ Added
157
- - **`src/utils/pattern-detector.js`** — Tool çağrı pattern detector
158
- - Normalize: URL'ler, dosya yolları, sayılar, UUID'ler, ISO tarihler, email'ler, hex string'ler generic hale getirilir
159
- - Sliding window (son 1-5 çağrı)
160
- - Aynı pattern 3+ kez tekrar → proposal oluştur
161
- - 24 saat cooldown (aynı pattern'i tekrar önerme)
162
- - Persistent log: `~/.natureco/patterns.json`
163
- - Proposal kayıt: `~/.natureco/skill-proposals.json`
164
- - **`src/commands/skills.js`** — 4 yeni alt komut:
165
- - `skills suggest` — Bekleyen proposal'ları göster
166
- - `skills accept <id>` — Proposal'ı SKILL.md olarak oluştur
167
- - `skills reject <id>` — Proposal'ı reddet
168
- - `skills forget` — Pattern hafızasını sıfırla
169
- - **Otomatik SKILL.md üretimi** — accepted proposal'lardan `~/.natureco/skills/<name>/SKILL.md`
170
- - **Audit entegrasyonu** — Her skill kabulü `SKILL_AUTO` action'ı olarak loglanır
171
-
172
- ### 🐛 Fixed
173
- - Pattern detector'da fingerprint bug'ı: normalize edilmiş string'ler tekrar normalize ediliyordu (boş pattern üretiyordu)
174
-
175
- ### 🔜 Coming
176
- - v3.3.0 — Phase 4: Maliyet optimizasyonu (model router, token budget)
177
- - v3.4.0 — Phase 5: Geliştirici deneyimi (dashboard)
178
-
179
- ### 🛡️ Headline
180
- OpenClaw'ın en zayıf olduğu alan: güvenlik. v3.1.0 ile NatureCo CLI artık OpenClaw'tan **açık ara daha güvenli**.
181
-
182
- ### ✨ Added
183
- - **`src/utils/audit.js`** — Merkezi audit log sistemi (JSONL, 30 gün retention, async, non-blocking)
184
- - 19 action tipi (command, approval, tool, auth, secret, config, cron, skill, error, info)
185
- - 24 saat istatistik, dosya bazlı günlük log'lar, auto-cleanup
186
- - **`src/utils/secret-scanner.js`** — 22 bilinen secret pattern tespiti (OpenAI, Anthropic, Groq, AWS, GitHub, Slack, Stripe, Tavily, HuggingFace, Replicate, Firecrawl, NatureCo, JWT, private key, vs)
187
- - Shannon entropi analizi (bilinmeyen format yüksek entropi secret'lar)
188
- - Otomatik maskeleme (`sk-a***9012`)
189
- - Cross-platform dosya tarama (skip: node_modules, .git, dist, lock files)
190
- - **`src/commands/audit.js`** — `natureco audit [today|stats|show|search|files|cleanup|tail]`
191
- - Renkli action kategorileri
192
- - 24 saat bar chart
193
- - Canlı tail modu (yeni kayıtları real-time göster)
194
- - **`bin/natureco.js`** — `audit` komutu kayıtlı
195
- - **`src/commands/doctor.js`** — 2 yeni check:
196
- - `auditLog`: Audit dizini yazılabilir mi?
197
- - `secretsClean`: Çalışma dizininde secret var mı?
198
-
199
- ### 📊 Phase 2 Doctor Sonuçları
200
- - **10 check** toplam (Phase 1'de 8, ilk halde 5)
201
- - 6/10 geçti (fresh setup'ta config henüz yok — beklenen)
202
-
203
- ### 🔜 Coming
204
- - v3.2.0 — Phase 3: Self-evolving skills
205
- - v3.3.0 — Phase 4: Maliyet optimizasyonu
206
- - v3.4.0 — Phase 5: Geliştirici deneyimi
207
-
208
- ### 🔥 Headline
209
- OpenClaw'dan daha güvenli, daha hızlı, daha ucuz. İlk kurulum 60 saniye.
210
-
211
- ### ✨ Added
212
- - **First-run auto-detection** (`bin/natureco.js`) — `natureco` (boş argüman) kurulum yoksa otomatik setup wizard'a yönlendirir
213
- - **`src/utils/branding.js`** — merkezi brand kimliği (renkler, ASCII art, daily tip)
214
- - **Doctor 3 yeni check:** `apiKeyValid`, `providerReachable`, `dataDirs` (auto-fix ile)
215
- - **Setup wizard** artık tam NatureCo logosuyla açılıyor (eski ASCII cat yerine)
216
- - **README v3.0 notları + OpenClaw karşılaştırma tablosu**
217
-
218
- ### 🐛 Fixed
219
- - **Doctor `diskSpace` bug:** `os.freemem()` (RAM) kullanıyordu, artık gerçek disk alanı (`df -k`, Windows: `Get-PSDrive`)
220
- - **README/package.json versiyon senkron:** 2.19.1 → 3.0.0
221
- - **README Node engine:** >=16 → >=18 (package.json ile uyumlu)
222
-
223
- ### 📁 Audit (Phase 0)
224
- - 152 JS dosyası, syntax %100 temiz, 0 require hatası
225
- - 10 TODO/FIXME, 10 boş fonksiyon, 5 deprecated existsSync tespit edildi
226
- - AUDIT.md oluşturuldu
227
-
228
- ### 🔜 Coming in next versions
229
- - v3.1.0 — Phase 2: Defense-in-depth güvenlik (approval v2, audit log, sandbox)
230
- - v3.2.0 — Phase 3: Self-evolving skills
231
- - v3.3.0 — Phase 4: Maliyet optimizasyonu (model router)
232
- - v3.4.0 — Phase 5: Geliştirici deneyimi (dashboard)
233
- - v4.0.0 — Phase 6-8: NatureCo native + launch
234
-
235
- ## [1.0.0] - 2026-05-10
236
-
237
- ### Added
238
-
239
- #### Core Features
240
- - **First-Time Setup Wizard**
241
- - Automatic setup on first run
242
- - Interactive API key validation with live check
243
- - Bot selection from user's bots
244
- - Optional Telegram integration
245
- - Creates `~/.natureco/` directory structure
246
- - Beautiful boxed interface
247
- - Can be run manually with `natureco setup`
248
-
249
- - **Authentication System**
250
- - Login/logout with API key
251
- - Secure storage in `~/.natureco/config.json`
252
- - Support for both `nco_` and `nc_` key formats
253
-
254
- - **Bot Management**
255
- - List available bots
256
- - Interactive chat with bots
257
- - Bot switching within chat
258
-
259
- - **Gateway Screen**
260
- - Beautiful boxed interface
261
- - Login status display
262
- - Active bot information
263
- - Skill and MCP server counts
264
-
265
- #### Project Management
266
- - **Project Initialization**
267
- - `natureco init` command
268
- - Creates `.natureco/` folder structure
269
- - Interactive bot and skill selection
270
- - Generates `config.json` and `AGENTS.md`
271
-
272
- - **Configuration System**
273
- - Global config: `~/.natureco/config.json`
274
- - Project config: `.natureco/config.json`
275
- - Get/set/list commands
276
- - Hierarchical config management
277
-
278
- #### Skills System
279
- - **Three-Tier Hierarchy**
280
- - Built-in skills (code-review, summarize, translate)
281
- - User skills (`~/.natureco/skills/`)
282
- - Project skills (`.natureco/skills/`)
283
-
284
- - **Skill Management**
285
- - List installed skills
286
- - Install from NatureHub
287
- - Remove skills
288
- - Update all skills
289
- - Create new skill templates
290
-
291
- - **Skill Features**
292
- - Automatic prompt injection in chat
293
- - Requirement gating (bins, env vars, OS)
294
- - SKILL.md format with frontmatter
295
- - Metadata validation
296
-
297
- #### Chat Features
298
- - **Interactive Chat**
299
- - Real-time conversation with bots
300
- - Readline interface with arrow key support
301
- - Command history (last 100 commands)
302
- - Conversation history saved to `~/.natureco/history/`
303
-
304
- - **Chat Commands**
305
- - `/clear` - Clear screen
306
- - `/bot [name]` - Switch bot or list bots
307
- - `/skills` - Show active skills
308
- - `/help` - Show chat help
309
- - `exit`, `quit` - Exit chat
310
-
311
- - **Quick Commands**
312
- - `natureco ask "<question>"` - Single-shot questions
313
- - `natureco run <script.md>` - Run markdown scripts
314
- - Pipe support for ask command
315
-
316
- #### MCP Server Support
317
- - **Server Management**
318
- - List MCP servers
319
- - Add servers (interactive or template-based)
320
- - Remove servers
321
- - Test connections
322
- - Enable/disable servers
323
-
324
- - **Ready Templates**
325
- - `filesystem` - File system operations
326
- - `github` - GitHub operations
327
- - `postgres` - PostgreSQL database
328
- - `sqlite` - SQLite database
329
- - `brave-search` - Web search
330
-
331
- - **Configuration**
332
- - Stored in `~/.natureco/config.json`
333
- - Environment variable support
334
- - Auto-approve lists
335
- - Disable/enable flags
336
-
337
- #### AGENTS.md Support
338
- - Project-specific bot instructions
339
- - Automatic prompt injection in chat
340
- - Markdown format
341
- - Created during `natureco init`
342
-
343
- #### Update System
344
- - **Auto-Update Notifications**
345
- - Checks every 24 hours
346
- - Notifies when new version available
347
- - Uses update-notifier package
348
-
349
- - **Manual Update Check**
350
- - `natureco update` command
351
- - Shows current and latest versions
352
- - Provides update instructions
353
-
354
- #### UI/UX
355
- - Colorful terminal interface with chalk
356
- - Loading animations with spinners
357
- - Boxed gateway screen
358
- - Monospace formatting
359
- - Error messages in Turkish
360
- - Cross-platform support (Windows, macOS, Linux)
361
-
362
- ### Technical Details
363
-
364
- #### Dependencies
365
- - `chalk@4.1.2` - Terminal colors
366
- - `commander@11.1.0` - CLI framework
367
- - `inquirer@8.2.7` - Interactive prompts
368
- - `boxen@5.1.2` - Terminal boxes
369
- - `ora@5.4.1` - Spinners
370
- - `conf@10.2.0` - Config management
371
- - `update-notifier@6.0.2` - Update notifications
372
-
373
- #### API Integration
374
- - Base URL: `https://api.natureco.me`
375
- - Endpoints:
376
- - `GET /api/v1/bots` - List bots
377
- - `POST /api/agent/chat` - Chat with bot
378
- - Headers:
379
- - `Authorization: Bearer <apiKey>`
380
- - `X-User-ID: cli-user`
381
- - Platform identifier: `cli`
382
-
383
- #### File Structure
384
- ```
385
- ~/.natureco/
386
- ├── config.json # Global config
387
- ├── skills/ # User skills
388
- └── history/ # Chat history
389
- └── <bot-id>.json
390
-
391
- .natureco/ # Project folder
392
- ├── config.json # Project config
393
- ├── AGENTS.md # Bot instructions
394
- └── skills/ # Project skills
395
- ```
396
-
397
- ### Commands
398
-
399
- ```bash
400
- natureco # Gateway screen (runs setup if needed)
401
- natureco setup # Run setup wizard
402
- natureco login # Login
403
- natureco logout # Logout
404
- natureco bots # List bots
405
- natureco chat <bot> # Start chat
406
- natureco ask "<question>" # Quick question
407
- natureco run <script.md> # Run script
408
- natureco init # Initialize project
409
- natureco skills [action] # Manage skills
410
- natureco mcp [action] # Manage MCP servers
411
- natureco config <action> # Manage config
412
- natureco update # Check updates
413
- natureco help # Show help
414
- ```
415
-
416
- ### Requirements
417
- - Node.js >= 18.0.0 (for native fetch)
418
- - npm or yarn
419
- - NatureCo API key
420
-
421
- ### License
422
- MIT
1
+ # Changelog
2
+
3
+ All notable changes to NatureCo CLI will be documented in this file.
4
+
5
+ ## [4.2.0] - 2026-06-22 — "LAUNCH READY"
6
+
7
+ ### 🚀 Headline
8
+ **v4.2.0 ile NatureCo CLI npm'e publish'a hazır.** OpenClaw'ın açık ara üstünü.
9
+
10
+ ### ✨ Added
11
+ - **package.json launch-ready:**
12
+ - Açıklayıcı description, 18 keywords (SEO optimize)
13
+ - `repository`, `bugs`, `homepage`, `author` (Gencay Olgun) alanları
14
+ - `postinstall` script: `natureco doctor` otomatik çalışır
15
+ - `prepublishOnly`: syntax check + test
16
+ - Files: README, CHANGELOG, AUDIT, DEPLOY docs dahil
17
+ - **LAUNCH.md** — Pazarlama materyali:
18
+ - Reddit/HN/Twitter/Medium/Discord mesajları (Parton imzalı)
19
+ - Hedef kitle segmentleri
20
+ - 30-gün başarı metrikleri
21
+ - Launch checklist
22
+ - **npm publish adımları** dokümante edildi
23
+
24
+ ### 📊 Final İstatistikler
25
+ - 152 JS dosyası (8 yeni eklendi)
26
+ - 32K+ satır kod
27
+ - 11 utility modülü (5 yeni)
28
+ - 95+ CLI komutu (8 yeni)
29
+ - 8 phase, 0 blocking bug
30
+ - v2.23.32 → v4.2.0 (8 minor versiyon)
31
+
32
+ ### 🎯 Hedef
33
+ - İlk hafta: 1,000 npm indirme
34
+ - İlk ay: 500 GitHub yıldız, 200 aktif kullanıcı
35
+
36
+ ---
37
+
38
+ ## 🏁 TÜM PHASE'LER TAMAMLANDI
39
+
40
+ - [x] Phase 0: Audit
41
+ - [x] Phase 1: Brand & Onboarding (v3.0.0)
42
+ - [x] Phase 2: Defense-in-Depth (v3.1.0)
43
+ - [x] Phase 3: Self-Evolving Skills (v3.2.0)
44
+ - [x] Phase 4: Cost-Optimized (v3.3.0)
45
+ - [x] Phase 5: Developer Experience (v3.4.0)
46
+ - [x] Phase 6: NatureCo Native (v4.0.0)
47
+ - [x] Phase 7: Multi-Agent (v4.1.0)
48
+ - [x] Phase 8: Launch Ready (v4.2.0)
49
+
50
+ **OpenClaw'ın yerini almaya hazırız.** 🌿
51
+
52
+ ### 🤖 Headline
53
+ Tek agent değil, **agent ağı**. OpenClaw single-agent — NatureCo multi-agent.
54
+
55
+ ### ✨ Added
56
+ - **`src/utils/sub-agent.js`** genişletildi: 3 → 8 agent tipi
57
+ - `explore`, `general`, `review` (mevcut)
58
+ - **Yeni:** `seo`, `content`, `security`, `translator`, `debugger`
59
+ - Her biri farklı system prompt ile uzmanlaşmış
60
+ - **`natureco team`** — Multi-agent orkestrasyon komutu
61
+ - `team list`: 8 agent tipi ve açıklamaları
62
+ - `team status`: Son çalışan agent istatistikleri (toplam/çalışan/tamamlanan/başarısız)
63
+ - `team spawn <type> <task>`: Tek agent çalıştır (token kullanım raporu ile)
64
+ - `team parallel '<json>'`: N agent paralel çalıştır, sonuçları birleştir
65
+ - **Mevcut `spawnSubAgent`/`spawnParallel` altyapısı** zaten vardı (Phase 7 bunu sadece genişletti)
66
+
67
+ ### 🔜 Final Phase
68
+ - v4.2.0 — Phase 8: Launch & marketing
69
+
70
+ ### 🌿 Headline
71
+ Generic agent değil, **NatureCo platformunun native parçası**. OpenClaw generic — NatureCo natureco.me'ye özel.
72
+
73
+ ### ✨ Added
74
+ - **`natureco naturehub`** — Nature Hub topluluk akışına içerik yayınla (post|list|trending|config)
75
+ - Token tabanlı, `natureco config set naturehubToken`
76
+ - Offline: yerel JSONL'e kaydeder, API hazır olunca gönderir
77
+ - **`natureco medium`** — Parton'un ayda 4 makale hedefi için (draft|publish|list)
78
+ - Markdown dosyasından taslak/yayın
79
+ - Medium integration token gerektirir
80
+ - Yerel taslak kayıt (`~/.natureco/medium-drafts/`)
81
+ - **`natureco seo`** — URL SEO denetimi (audit|meta|speed)
82
+ - Title, description, canonical, OG, Twitter Card, schema.org
83
+ - H1-H3 heading analizi, image alt kontrolü
84
+ - Word count ve 100-üzerinden skor
85
+ - **Test: natureco.me → 71/100, H1 eksik bildirildi**
86
+ - **`natureco xp`** — Gamification (stats|leaderboard|rewards)
87
+ - 8 seviye: Tohum → Galaksi (0 → 12,000 XP)
88
+ - 7 farklı ödül (sticker → Founder statüsü)
89
+ - XP history (son 100 kayıt)
90
+
91
+ ### 🎯 Phase 6 Canlı Test
92
+ - **SEO audit natureco.me**: 71/100 skor, H1 eksikliği, title uzunluğu tespit edildi
93
+ - **XP sistemi**: 0 XP, Lv.1 Tohum, sonraki Filiz (100 XP)
94
+
95
+ ### 🔜 Coming
96
+ - v4.1.0 — Phase 7: Multi-agent orkestrasyon (sub-agents)
97
+ - v4.2.0 — Phase 8: Launch & marketing
98
+
99
+ ### 🖥️ Headline
100
+ OpenClaw "kara kutu". NatureCo CLI **şeffaf** — tüm veriler tek bir local dashboard'da.
101
+
102
+ ### ✨ Added
103
+ - **`src/utils/dashboard-server.js`** — Local web dashboard
104
+ - Port 7421, vanilla JS + HTML (framework yok)
105
+ - 6 widget: bugünkü maliyet, yüklü skill, aktif cron, audit kayıtları, provider bazlı maliyet, self-evolving proposals, son tool çağrıları
106
+ - Otomatik 5 saniyede bir yenileme (auto-refresh)
107
+ - JSON API endpoint (`/api`)
108
+ - PID file ile kolay durdurma
109
+ - **`src/commands/dashboard.js`** — `natureco dashboard [start|status|stop|url]`
110
+ - Port kontrolü (zaten çalışıyor mu?)
111
+ - Process kill ile temiz shutdown
112
+ - macOS/Windows/Linux uyumlu tarayıcı açma
113
+
114
+ ### 📊 Phase 5 Dashboard Test
115
+ - HTTP 200, 8575 byte HTML
116
+ - API JSON: tüm Phase 3 proposal verileri görünüyor
117
+ - Real-time auto-refresh çalışıyor
118
+
119
+ ### 🔜 Coming
120
+ - v4.0.0 — Phase 6: NatureCo özgü entegrasyonlar (naturehub, medium, seo)
121
+ - v4.1.0 — Phase 7: Multi-agent orkestrasyon
122
+ - v4.2.0 — Phase 8: Launch & marketing
123
+
124
+ ### 💰 Headline
125
+ OpenClaw kullanıcıları ayda $50-200 token faturası ödüyor. NatureCo hedef: $5-15/ay akıllı routing ile.
126
+
127
+ ### ✨ Added
128
+ - **`src/utils/cost-tracker.js`** — Maliyet hesaplama ve model router
129
+ - 21 model × provider için güncel fiyat tablosu (Groq, OpenAI, Anthropic, DeepSeek, Together, Fireworks, Ollama)
130
+ - Token → USD dönüşümü (input/output ayrı)
131
+ - **Model router**: 4 karmaşıklık seviyesi (simple/medium/complex/creative)
132
+ - Basit soru → llama-3.1-8b-instant ($0.05 in)
133
+ - Kod → llama-3.3-70b-versatile veya claude-sonnet
134
+ - Yaratıcı yazı → claude-sonnet veya gpt-4o
135
+ - **Otomatik karmaşıklık tahmini**: prompt içeriğinden (kod işaretleri, anahtar kelimeler, uzunluk)
136
+ - **Bütçe sistemi**: günlük $5, aylık $100 limit, %75 uyarı, %90 otomatik downgrade
137
+ - **`src/commands/cost.js`** — `natureco cost [today|week|month|all|budget|set|model|prices]`
138
+ - Renkli bar chart'lar
139
+ - Provider ve model bazlı breakdown
140
+ - Bütçe durumu görselleştirmesi
141
+ - **`bin/natureco.js`** — `cost` komutu kayıtlı
142
+
143
+ ### 📊 Phase 4 Test Sonucu
144
+ - 3 farklı provider kullanımı kaydedildi → $0.0252 toplam
145
+ - Basit prompt: `groq:llama-3.1-8b-instant` önerildi (en ucuz)
146
+ - Karmaşık kod prompt: `groq:llama-3.3-70b-versatile` önerildi
147
+ - Bütçe görsel: %1 kullanım (günlük limit $5)
148
+
149
+ ### 🔜 Coming
150
+ - v3.4.0 — Phase 5: Geliştirici deneyimi (dashboard)
151
+ - v4.0.0 — Phase 6-8: NatureCo native + launch
152
+
153
+ ### 🧠 Headline
154
+ Kullanımın tekrar eden pattern'lerinden otomatik skill oluştur. Hermes Agent'tan ilham, NatureCo uyarlaması.
155
+
156
+ ### ✨ Added
157
+ - **`src/utils/pattern-detector.js`** — Tool çağrı pattern detector
158
+ - Normalize: URL'ler, dosya yolları, sayılar, UUID'ler, ISO tarihler, email'ler, hex string'ler generic hale getirilir
159
+ - Sliding window (son 1-5 çağrı)
160
+ - Aynı pattern 3+ kez tekrar → proposal oluştur
161
+ - 24 saat cooldown (aynı pattern'i tekrar önerme)
162
+ - Persistent log: `~/.natureco/patterns.json`
163
+ - Proposal kayıt: `~/.natureco/skill-proposals.json`
164
+ - **`src/commands/skills.js`** — 4 yeni alt komut:
165
+ - `skills suggest` — Bekleyen proposal'ları göster
166
+ - `skills accept <id>` — Proposal'ı SKILL.md olarak oluştur
167
+ - `skills reject <id>` — Proposal'ı reddet
168
+ - `skills forget` — Pattern hafızasını sıfırla
169
+ - **Otomatik SKILL.md üretimi** — accepted proposal'lardan `~/.natureco/skills/<name>/SKILL.md`
170
+ - **Audit entegrasyonu** — Her skill kabulü `SKILL_AUTO` action'ı olarak loglanır
171
+
172
+ ### 🐛 Fixed
173
+ - Pattern detector'da fingerprint bug'ı: normalize edilmiş string'ler tekrar normalize ediliyordu (boş pattern üretiyordu)
174
+
175
+ ### 🔜 Coming
176
+ - v3.3.0 — Phase 4: Maliyet optimizasyonu (model router, token budget)
177
+ - v3.4.0 — Phase 5: Geliştirici deneyimi (dashboard)
178
+
179
+ ### 🛡️ Headline
180
+ OpenClaw'ın en zayıf olduğu alan: güvenlik. v3.1.0 ile NatureCo CLI artık OpenClaw'tan **açık ara daha güvenli**.
181
+
182
+ ### ✨ Added
183
+ - **`src/utils/audit.js`** — Merkezi audit log sistemi (JSONL, 30 gün retention, async, non-blocking)
184
+ - 19 action tipi (command, approval, tool, auth, secret, config, cron, skill, error, info)
185
+ - 24 saat istatistik, dosya bazlı günlük log'lar, auto-cleanup
186
+ - **`src/utils/secret-scanner.js`** — 22 bilinen secret pattern tespiti (OpenAI, Anthropic, Groq, AWS, GitHub, Slack, Stripe, Tavily, HuggingFace, Replicate, Firecrawl, NatureCo, JWT, private key, vs)
187
+ - Shannon entropi analizi (bilinmeyen format yüksek entropi secret'lar)
188
+ - Otomatik maskeleme (`sk-a***9012`)
189
+ - Cross-platform dosya tarama (skip: node_modules, .git, dist, lock files)
190
+ - **`src/commands/audit.js`** — `natureco audit [today|stats|show|search|files|cleanup|tail]`
191
+ - Renkli action kategorileri
192
+ - 24 saat bar chart
193
+ - Canlı tail modu (yeni kayıtları real-time göster)
194
+ - **`bin/natureco.js`** — `audit` komutu kayıtlı
195
+ - **`src/commands/doctor.js`** — 2 yeni check:
196
+ - `auditLog`: Audit dizini yazılabilir mi?
197
+ - `secretsClean`: Çalışma dizininde secret var mı?
198
+
199
+ ### 📊 Phase 2 Doctor Sonuçları
200
+ - **10 check** toplam (Phase 1'de 8, ilk halde 5)
201
+ - 6/10 geçti (fresh setup'ta config henüz yok — beklenen)
202
+
203
+ ### 🔜 Coming
204
+ - v3.2.0 — Phase 3: Self-evolving skills
205
+ - v3.3.0 — Phase 4: Maliyet optimizasyonu
206
+ - v3.4.0 — Phase 5: Geliştirici deneyimi
207
+
208
+ ### 🔥 Headline
209
+ OpenClaw'dan daha güvenli, daha hızlı, daha ucuz. İlk kurulum 60 saniye.
210
+
211
+ ### ✨ Added
212
+ - **First-run auto-detection** (`bin/natureco.js`) — `natureco` (boş argüman) kurulum yoksa otomatik setup wizard'a yönlendirir
213
+ - **`src/utils/branding.js`** — merkezi brand kimliği (renkler, ASCII art, daily tip)
214
+ - **Doctor 3 yeni check:** `apiKeyValid`, `providerReachable`, `dataDirs` (auto-fix ile)
215
+ - **Setup wizard** artık tam NatureCo logosuyla açılıyor (eski ASCII cat yerine)
216
+ - **README v3.0 notları + OpenClaw karşılaştırma tablosu**
217
+
218
+ ### 🐛 Fixed
219
+ - **Doctor `diskSpace` bug:** `os.freemem()` (RAM) kullanıyordu, artık gerçek disk alanı (`df -k`, Windows: `Get-PSDrive`)
220
+ - **README/package.json versiyon senkron:** 2.19.1 → 3.0.0
221
+ - **README Node engine:** >=16 → >=18 (package.json ile uyumlu)
222
+
223
+ ### 📁 Audit (Phase 0)
224
+ - 152 JS dosyası, syntax %100 temiz, 0 require hatası
225
+ - 10 TODO/FIXME, 10 boş fonksiyon, 5 deprecated existsSync tespit edildi
226
+ - AUDIT.md oluşturuldu
227
+
228
+ ### 🔜 Coming in next versions
229
+ - v3.1.0 — Phase 2: Defense-in-depth güvenlik (approval v2, audit log, sandbox)
230
+ - v3.2.0 — Phase 3: Self-evolving skills
231
+ - v3.3.0 — Phase 4: Maliyet optimizasyonu (model router)
232
+ - v3.4.0 — Phase 5: Geliştirici deneyimi (dashboard)
233
+ - v4.0.0 — Phase 6-8: NatureCo native + launch
234
+
235
+ ## [1.0.0] - 2026-05-10
236
+
237
+ ### Added
238
+
239
+ #### Core Features
240
+ - **First-Time Setup Wizard**
241
+ - Automatic setup on first run
242
+ - Interactive API key validation with live check
243
+ - Bot selection from user's bots
244
+ - Optional Telegram integration
245
+ - Creates `~/.natureco/` directory structure
246
+ - Beautiful boxed interface
247
+ - Can be run manually with `natureco setup`
248
+
249
+ - **Authentication System**
250
+ - Login/logout with API key
251
+ - Secure storage in `~/.natureco/config.json`
252
+ - Support for both `nco_` and `nc_` key formats
253
+
254
+ - **Bot Management**
255
+ - List available bots
256
+ - Interactive chat with bots
257
+ - Bot switching within chat
258
+
259
+ - **Gateway Screen**
260
+ - Beautiful boxed interface
261
+ - Login status display
262
+ - Active bot information
263
+ - Skill and MCP server counts
264
+
265
+ #### Project Management
266
+ - **Project Initialization**
267
+ - `natureco init` command
268
+ - Creates `.natureco/` folder structure
269
+ - Interactive bot and skill selection
270
+ - Generates `config.json` and `AGENTS.md`
271
+
272
+ - **Configuration System**
273
+ - Global config: `~/.natureco/config.json`
274
+ - Project config: `.natureco/config.json`
275
+ - Get/set/list commands
276
+ - Hierarchical config management
277
+
278
+ #### Skills System
279
+ - **Three-Tier Hierarchy**
280
+ - Built-in skills (code-review, summarize, translate)
281
+ - User skills (`~/.natureco/skills/`)
282
+ - Project skills (`.natureco/skills/`)
283
+
284
+ - **Skill Management**
285
+ - List installed skills
286
+ - Install from NatureHub
287
+ - Remove skills
288
+ - Update all skills
289
+ - Create new skill templates
290
+
291
+ - **Skill Features**
292
+ - Automatic prompt injection in chat
293
+ - Requirement gating (bins, env vars, OS)
294
+ - SKILL.md format with frontmatter
295
+ - Metadata validation
296
+
297
+ #### Chat Features
298
+ - **Interactive Chat**
299
+ - Real-time conversation with bots
300
+ - Readline interface with arrow key support
301
+ - Command history (last 100 commands)
302
+ - Conversation history saved to `~/.natureco/history/`
303
+
304
+ - **Chat Commands**
305
+ - `/clear` - Clear screen
306
+ - `/bot [name]` - Switch bot or list bots
307
+ - `/skills` - Show active skills
308
+ - `/help` - Show chat help
309
+ - `exit`, `quit` - Exit chat
310
+
311
+ - **Quick Commands**
312
+ - `natureco ask "<question>"` - Single-shot questions
313
+ - `natureco run <script.md>` - Run markdown scripts
314
+ - Pipe support for ask command
315
+
316
+ #### MCP Server Support
317
+ - **Server Management**
318
+ - List MCP servers
319
+ - Add servers (interactive or template-based)
320
+ - Remove servers
321
+ - Test connections
322
+ - Enable/disable servers
323
+
324
+ - **Ready Templates**
325
+ - `filesystem` - File system operations
326
+ - `github` - GitHub operations
327
+ - `postgres` - PostgreSQL database
328
+ - `sqlite` - SQLite database
329
+ - `brave-search` - Web search
330
+
331
+ - **Configuration**
332
+ - Stored in `~/.natureco/config.json`
333
+ - Environment variable support
334
+ - Auto-approve lists
335
+ - Disable/enable flags
336
+
337
+ #### AGENTS.md Support
338
+ - Project-specific bot instructions
339
+ - Automatic prompt injection in chat
340
+ - Markdown format
341
+ - Created during `natureco init`
342
+
343
+ #### Update System
344
+ - **Auto-Update Notifications**
345
+ - Checks every 24 hours
346
+ - Notifies when new version available
347
+ - Uses update-notifier package
348
+
349
+ - **Manual Update Check**
350
+ - `natureco update` command
351
+ - Shows current and latest versions
352
+ - Provides update instructions
353
+
354
+ #### UI/UX
355
+ - Colorful terminal interface with chalk
356
+ - Loading animations with spinners
357
+ - Boxed gateway screen
358
+ - Monospace formatting
359
+ - Error messages in Turkish
360
+ - Cross-platform support (Windows, macOS, Linux)
361
+
362
+ ### Technical Details
363
+
364
+ #### Dependencies
365
+ - `chalk@4.1.2` - Terminal colors
366
+ - `commander@11.1.0` - CLI framework
367
+ - `inquirer@8.2.7` - Interactive prompts
368
+ - `boxen@5.1.2` - Terminal boxes
369
+ - `ora@5.4.1` - Spinners
370
+ - `conf@10.2.0` - Config management
371
+ - `update-notifier@6.0.2` - Update notifications
372
+
373
+ #### API Integration
374
+ - Base URL: `https://api.natureco.me`
375
+ - Endpoints:
376
+ - `GET /api/v1/bots` - List bots
377
+ - `POST /api/agent/chat` - Chat with bot
378
+ - Headers:
379
+ - `Authorization: Bearer <apiKey>`
380
+ - `X-User-ID: cli-user`
381
+ - Platform identifier: `cli`
382
+
383
+ #### File Structure
384
+ ```
385
+ ~/.natureco/
386
+ ├── config.json # Global config
387
+ ├── skills/ # User skills
388
+ └── history/ # Chat history
389
+ └── <bot-id>.json
390
+
391
+ .natureco/ # Project folder
392
+ ├── config.json # Project config
393
+ ├── AGENTS.md # Bot instructions
394
+ └── skills/ # Project skills
395
+ ```
396
+
397
+ ### Commands
398
+
399
+ ```bash
400
+ natureco # Gateway screen (runs setup if needed)
401
+ natureco setup # Run setup wizard
402
+ natureco login # Login
403
+ natureco logout # Logout
404
+ natureco bots # List bots
405
+ natureco chat <bot> # Start chat
406
+ natureco ask "<question>" # Quick question
407
+ natureco run <script.md> # Run script
408
+ natureco init # Initialize project
409
+ natureco skills [action] # Manage skills
410
+ natureco mcp [action] # Manage MCP servers
411
+ natureco config <action> # Manage config
412
+ natureco update # Check updates
413
+ natureco help # Show help
414
+ ```
415
+
416
+ ### Requirements
417
+ - Node.js >= 18.0.0 (for native fetch)
418
+ - npm or yarn
419
+ - NatureCo API key
420
+
421
+ ### License
422
+ MIT
423
+
424
+ ## [4.9.1] - 2026-06-22 — "SELF-COMPLETE TOOLSET"
425
+
426
+ ### Yeni: 14 Tool Eklendi (Toplam: 45)
427
+ Parton'un vizyonu: "kendi araçlarimi ekle". Hermes'te olan araçlarin aynisi.
428
+
429
+ #### macOS Native Tools (6 yeni)
430
+ - **calendar_add** - macOS Calendar'a etkinlik ekle (AppleScript)
431
+ - **reminder_add** - macOS Reminders'a hatirlatici
432
+ - **notes_add** - Apple Notes'a not
433
+ - **mac_notify** - Notification Center bildirimi
434
+ - **mac_app_open** / **mac_app_quit** - Uygulama kontrol
435
+
436
+ #### Sistem & Shell (5 yeni)
437
+ - **code_execution** - Python/Node/Bash sandbox
438
+ - **shell_command** - Tek shell komutu (find, ls, df, vb.)
439
+ - **http_request** - HTTP GET/POST/PUT/DELETE
440
+ - **bash** (zaten vardi, guncellendi)
441
+
442
+ #### Dosya & Arama (4 yeni)
443
+ - **file_search** - Glob pattern ile dosya arama (**/*.js)
444
+ - **grep_search** - Icerik arama (ripgrep veya grep)
445
+ - **filesystem**, **list_dir** (zaten vardi)
446
+
447
+ #### Yönetim & Verimlilik (6 yeni)
448
+ - **todo_write** - Yapilacaklar listesi (list/add/done/remove)
449
+ - **kanban** - Kanban board (todo/in_progress/done kolonlar)
450
+ - **memory_search** - Kalici hafizada ve session'larda arama
451
+ - **cron_create** - Zamanlanmis gorev olusturma
452
+ - **notebook_edit** - Jupyter notebook hucre duzenleme
453
+ - **delegate_task** - Alt-agent gorev devretme
454
+
455
+ #### AI & Medya (zaten vardi + Pollinations fallback)
456
+ - **image_generation** - v4.8.4'te Pollinations.ai (ucretsiz) eklendi
457
+ - **media_understanding** - Gorsel analiz (OpenAI/Anthropic/Groq)
458
+ - **text_to_speech** - macOS say / edge-tts
459
+
460
+ ### İyilestirmeler
461
+ - **Tool calling tam entegre** - v4.8.0'da basladi, v4.9.1'de tamamlandi
462
+ - **OpenAI uyumlu tool calling** - MiniMax, OpenAI, Anthropic, Groq hepsi
463
+ - **Auto-fallback** - Key yoksa ucretsiz alternatife gec (Pollinations)
464
+ - **Tool UI feedback** - Her tool cagrisi 🔧 Tool: ... ile gosteriliyor
465
+
466
+ ### Düzeltmeler
467
+ - **macos.js** (tek dosya, birden fazla tool) → 6 ayri dosyaya bolundu
468
+ - **file_search.js** syntax hatasi (JSDoc icindeki yildiz) duzeltildi
469
+ - **REPL'in tool registry** - Yeni tool'lar REPL acilisinda otomatik yukleniyor
470
+
471
+ ### Toplam Ilerleme
472
+ - v2.23 (baslangic): ~12 tool
473
+ - v3.0-v4.0: +5 tool (brand, audit, cost, dashboard, seo)
474
+ - v4.5-v4.7: +8 tool (xp, team, naturehub, medium, repl, vb.)
475
+ - v4.8: Tool calling tam entegre (28 tool)
476
+ - **v4.9.1: 45 tool** - Parton'un vizyonu: "kendi araçlarim olsun"
477
+
478
+ ### Kullanim
479
+ ```bash
480
+ natureco repl
481
+ > "Yarin 14:00 doktor randevum var" # calendar_add
482
+ > "Spotify ac" # mac_app_open
483
+ > "src/ icindeki TODO'lari bul" # grep_search
484
+ > "Python ile 2+2 hesapla" # code_execution
485
+ > "Tum TODO'lari goster" # todo_write
486
+ ```