natureco-cli 5.20.4 → 5.22.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 +779 -750
- package/README.md +608 -610
- package/bin/natureco.js +1099 -1095
- package/package.json +95 -94
- package/scripts/generate-qr.js +21 -0
- package/scripts/import-curated-skills-log.json +5 -0
- package/scripts/import-curated-skills.js +262 -0
- package/scripts/import-skills-log.json +167 -0
- package/scripts/import-skills.js +261 -0
- package/scripts/postinstall.js +125 -0
- package/src/commands/agent.js +280 -280
- package/src/commands/ask.js +4 -2
- package/src/commands/chat.js +0 -1
- package/src/commands/help.js +0 -2
- package/src/commands/naturehub.js +206 -373
- package/src/commands/repl.js +56 -63
- package/src/providers/mem0-memory.js +121 -121
- package/src/providers/supermemory-memory.js +117 -117
- package/src/tools/llm_task.js +150 -163
- package/src/tools/mac_alarm.js +199 -199
- package/src/tools/workflow.js +438 -439
- package/src/utils/api.js +1211 -1188
- package/src/utils/cost-tracker.js +361 -360
- package/src/utils/inquirer-wrapper.js +43 -31
- package/src/utils/paste-safe-input.js +346 -334
- package/src/utils/process-errors.js +129 -115
- package/src/utils/provider-detect.js +76 -72
- package/src/utils/skills.js +1 -1
- package/src/utils/system-prompt.js +141 -136
- package/src/utils/tools.js +324 -324
- package/README.md.bak +0 -565
- package/src/tools/http.js.bak +0 -78
package/README.md.bak
DELETED
|
@@ -1,565 +0,0 @@
|
|
|
1
|
-
# NatureCo CLI
|
|
2
|
-
|
|
3
|
-
[](https://www.npmjs.com/package/natureco-cli)
|
|
4
|
-
[](https://opensource.org/licenses/MIT)
|
|
5
|
-
[]()
|
|
6
|
-
[]()
|
|
7
|
-
|
|
8
|
-
Terminal-native AI agent CLI — sohbet et, kod yaz, workflow'ları otomatikleştir, Telegram/Discord/Slack/WhatsApp'ı bağla.
|
|
9
|
-
|
|
10
|
-
```
|
|
11
|
-
███╗ ██╗ █████╗ ████████╗██╗ ██╗██████╗ ███████╗ ██████╗ ██████╗
|
|
12
|
-
████╗ ██║██╔══██╗╚══██╔══╝██║ ██║██╔══██╗██╔════╝██╔════╝ ██╔═══██╗
|
|
13
|
-
██╔██╗ ██║███████║ ██║ ██║ ██║██████╔╝█████╗ ██║ ██║ ██║
|
|
14
|
-
██║╚██╗██║██╔══██║ ██║ ██║ ██║██╔══██╗██╔══╝ ██║ ██║ ██║
|
|
15
|
-
██║ ╚████║██║ ██║ ██║ ╚██████╔╝██║ ██║███████╗╚██████╗ ╚██████╔╝
|
|
16
|
-
╚═╝ ╚═══╝╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝ ╚═════╝ ╚═════╝
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
---
|
|
20
|
-
|
|
21
|
-
## ✨ Özellikler
|
|
22
|
-
|
|
23
|
-
- **📁 Dosya İşlemleri** — read, write, create, delete, rename
|
|
24
|
-
- **💻 Terminal Komut Çalıştırma** — bash komutları güvenli çalıştır
|
|
25
|
-
- **🔍 Proje Geneli Arama** — grep/ripgrep ile kod arama
|
|
26
|
-
- **📝 Multi-file Düzenleme** — birden fazla dosyayı aynı anda düzenle
|
|
27
|
-
- **🔗 Git Entegrasyonu** — status, diff, commit, push
|
|
28
|
-
- **🤖 Agentic Mod (--agent)** — görevi otonom tamamla, onay iste
|
|
29
|
-
- **🏷️ --fix, --explain, --review, --test** flagleri
|
|
30
|
-
- **🎨 Streaming Syntax Highlighting**
|
|
31
|
-
- **🧩 NatureCo Skill Sistemi** — aktif skill varsa prompt'a ekle
|
|
32
|
-
|
|
33
|
-
---
|
|
34
|
-
|
|
35
|
-
## 🚀 Hızlı Başlangıç
|
|
36
|
-
|
|
37
|
-
```bash
|
|
38
|
-
# Global kurulum
|
|
39
|
-
npm install -g natureco-cli
|
|
40
|
-
|
|
41
|
-
# İlk kurulum sihirbazı
|
|
42
|
-
natureco setup
|
|
43
|
-
|
|
44
|
-
# Sohbet başlat
|
|
45
|
-
natureco chat
|
|
46
|
-
|
|
47
|
-
# Code agent
|
|
48
|
-
natureco code
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
---
|
|
52
|
-
|
|
53
|
-
## 📋 Komutlar
|
|
54
|
-
|
|
55
|
-
### 🤖 AI & Chat
|
|
56
|
-
|
|
57
|
-
| Komut | Açıklama |
|
|
58
|
-
|-------|----------|
|
|
59
|
-
| `natureco chat` | AI sohbet başlat (varsayılan bot) |
|
|
60
|
-
| `natureco chat --resume` | Son oturumu devam ettir |
|
|
61
|
-
| `natureco code` | Code agent — dosya oku, yaz, komut çalıştır |
|
|
62
|
-
| `natureco ask "soru"` | Tek seferlik soru |
|
|
63
|
-
| `natureco run script.md` | Markdown script çalıştır |
|
|
64
|
-
| `natureco bots` | Bot listesi |
|
|
65
|
-
| `natureco agent run <task>` | One-shot agent görevi |
|
|
66
|
-
| `natureco agent abort <id>` | Agent görevi durdur |
|
|
67
|
-
| `natureco agent logs <id>` | Agent loglarını göster |
|
|
68
|
-
| `natureco commitments list` | Eylem taahhütlerini listele |
|
|
69
|
-
| `natureco commitments add <text>` | Taahhüt ekle |
|
|
70
|
-
| `natureco infer models` | Modelleri algıla |
|
|
71
|
-
| `natureco infer capabilities` | Yetenekleri sorgula |
|
|
72
|
-
|
|
73
|
-
**Chat içi komutlar:**
|
|
74
|
-
|
|
75
|
-
| Komut | Açıklama |
|
|
76
|
-
|-------|----------|
|
|
77
|
-
| `/clear` | Ekranı temizle |
|
|
78
|
-
| `/bot` | Bot listesi / bot değiştir |
|
|
79
|
-
| `/skills` | Aktif skill'ler |
|
|
80
|
-
| `/memory` | Hafıza durumu |
|
|
81
|
-
| `/memory clear` | Hafızayı temizle |
|
|
82
|
-
| `/commands` | Özel komutlar |
|
|
83
|
-
| `/help` | Yardım |
|
|
84
|
-
| `exit` / `quit` | Çıkış |
|
|
85
|
-
|
|
86
|
-
**Code agent komutları:**
|
|
87
|
-
|
|
88
|
-
| Komut | Açıklama |
|
|
89
|
-
|-------|----------|
|
|
90
|
-
| `/clear` | Ekranı temizle |
|
|
91
|
-
| `/summary` | Session özetini göster |
|
|
92
|
-
| `/done` | Bitir ve özet göster |
|
|
93
|
-
| `/help` | Yardım |
|
|
94
|
-
|
|
95
|
-
### ⚙️ Kurulum & Ayarlar
|
|
96
|
-
|
|
97
|
-
| Komut | Açıklama |
|
|
98
|
-
|-------|----------|
|
|
99
|
-
| `natureco setup` | İlk kurulum sihirbazı |
|
|
100
|
-
| `natureco login` | API key ile giriş |
|
|
101
|
-
| `natureco logout` | Çıkış |
|
|
102
|
-
| `natureco config list` | Tüm ayarları göster |
|
|
103
|
-
| `natureco config set key val` | Ayar değiştir |
|
|
104
|
-
| `natureco config get key` | Ayar oku |
|
|
105
|
-
| `natureco configure` | Interaktif yapılandırma sihirbazı |
|
|
106
|
-
| `natureco init` | Proje başlatma (.natureco dizini) |
|
|
107
|
-
| `natureco doctor` | Sistem sağlık kontrolü |
|
|
108
|
-
| `natureco doctor --fix` | Sorunları otomatik düzelt |
|
|
109
|
-
| `natureco update` | Güncelleme kontrol |
|
|
110
|
-
| `natureco completion bash` | Bash completion oluştur |
|
|
111
|
-
| `natureco completion powershell` | PowerShell completion oluştur |
|
|
112
|
-
|
|
113
|
-
### 🔌 Entegrasyonlar
|
|
114
|
-
|
|
115
|
-
| Komut | Açıklama |
|
|
116
|
-
|-------|----------|
|
|
117
|
-
| `natureco telegram connect` | Telegram bot bağla |
|
|
118
|
-
| `natureco discord connect` | Discord bot bağla |
|
|
119
|
-
| `natureco slack connect` | Slack workspace bağla |
|
|
120
|
-
| `natureco whatsapp connect` | WhatsApp QR ile bağla |
|
|
121
|
-
| `natureco signal connect` | Signal bağla |
|
|
122
|
-
| `natureco irc connect` | IRC bağla |
|
|
123
|
-
| `natureco mattermost connect` | Mattermost bağla |
|
|
124
|
-
| `natureco imessage connect` | iMessage bağla |
|
|
125
|
-
| `natureco sms connect` | SMS (Twilio) bağla |
|
|
126
|
-
| `natureco webhooks connect` | Webhook ekle |
|
|
127
|
-
| `natureco gateway start` | WebSocket gateway başlat |
|
|
128
|
-
| `natureco gateway stop` | Gateway durdur |
|
|
129
|
-
| `natureco gateway status` | Gateway durumu |
|
|
130
|
-
|
|
131
|
-
### 🛠️ Geliştirici Araçları
|
|
132
|
-
|
|
133
|
-
| Komut | Açıklama |
|
|
134
|
-
|-------|----------|
|
|
135
|
-
| `natureco git review` | Staged değişiklikleri incele |
|
|
136
|
-
| `natureco git commit` | AI ile commit mesajı oluştur |
|
|
137
|
-
| `natureco skills list` | Skill listesi |
|
|
138
|
-
| `natureco skills install slug` | Skill kur |
|
|
139
|
-
| `natureco skills remove slug` | Skill kaldır |
|
|
140
|
-
| `natureco mcp list` | MCP sunucuları |
|
|
141
|
-
| `natureco mcp add` | MCP sunucu ekle |
|
|
142
|
-
| `natureco hooks create type` | Hook oluştur |
|
|
143
|
-
| `natureco commands create name` | Özel komut oluştur |
|
|
144
|
-
| `natureco cron add` | Zamanlanmış görev ekle |
|
|
145
|
-
| `natureco ultrareview file.js` | Detaylı kod inceleme |
|
|
146
|
-
| `natureco migrate --from openclaw` | OpenClaw'dan taşı |
|
|
147
|
-
| `natureco transcripts list` | Transcript listele |
|
|
148
|
-
| `natureco transcripts show <id>` | Transcript detayı |
|
|
149
|
-
|
|
150
|
-
### 📊 Yönetim & Sistem
|
|
151
|
-
|
|
152
|
-
| Komut | Açıklama |
|
|
153
|
-
|-------|----------|
|
|
154
|
-
| `natureco dashboard` | Web UI aç (localhost:3848) |
|
|
155
|
-
| `natureco memory status` | Hafıza durumu |
|
|
156
|
-
| `natureco logs` | Gateway logları |
|
|
157
|
-
| `natureco status` | Sistem durumu |
|
|
158
|
-
| `natureco system status` | Detaylı sistem durumu |
|
|
159
|
-
| `natureco system heartbeat` | Sistem heartbeat |
|
|
160
|
-
| `natureco system presence` | Presence durumu |
|
|
161
|
-
| `natureco health` | Servis sağlık kontrolü |
|
|
162
|
-
| `natureco agents list` | Agent listesi |
|
|
163
|
-
| `natureco plugins list` | Plugin listesi |
|
|
164
|
-
| `natureco security audit` | Güvenlik denetimi |
|
|
165
|
-
| `natureco reset` | Sıfırlama |
|
|
166
|
-
| `natureco sessions list` | Oturum listesi |
|
|
167
|
-
| `natureco backup create` | Yedek oluştur |
|
|
168
|
-
| `natureco backup list` | Yedekleri listele |
|
|
169
|
-
| `natureco backup restore <id>` | Yedekten geri yükle |
|
|
170
|
-
| `natureco secrets list` | Gizli değerleri listele |
|
|
171
|
-
| `natureco secrets set <key> <value>` | Gizli değer ekle |
|
|
172
|
-
| `natureco approvals list` | Onay politikasını göster |
|
|
173
|
-
| `natureco approvals allow <command>` | Komuta onay ver |
|
|
174
|
-
| `natureco workboard show` | Görev panosunu göster |
|
|
175
|
-
| `natureco workboard add <task>` | Görev ekle |
|
|
176
|
-
|
|
177
|
-
### 🛰️ Ağ & Cihaz
|
|
178
|
-
|
|
179
|
-
| Komut | Açıklama |
|
|
180
|
-
|-------|----------|
|
|
181
|
-
| `natureco bonjour scan` | Ağ keşfi — LAN'da servis tara |
|
|
182
|
-
| `natureco bonjour discover` | Servisleri keşfet |
|
|
183
|
-
| `natureco dns resolve <host>` | DNS ile host çözümle |
|
|
184
|
-
| `natureco dns discover` | Ağdaki servisleri bul |
|
|
185
|
-
| `natureco directory query <query>` | Dizin sorgulama |
|
|
186
|
-
| `natureco policy check` | Workspace uyumluluk kontrolü |
|
|
187
|
-
| `natureco voice status` | Ses yapılandırması |
|
|
188
|
-
| `natureco voice providers` | TTS sağlayıcılarını listele |
|
|
189
|
-
| `natureco admin-rpc start` | HTTP admin RPC başlat |
|
|
190
|
-
| `natureco admin-rpc call <method>` | RPC metodu çağır |
|
|
191
|
-
| `natureco oc-path resolve <uri>` | nc:// URI çözümle |
|
|
192
|
-
| `natureco devices pair` | Cihaz eşleştir |
|
|
193
|
-
| `natureco devices list` | Eşleşmiş cihazları listele |
|
|
194
|
-
| `natureco device-pair list` | Eşleşme isteklerini göster |
|
|
195
|
-
| `natureco qr show` | QR kod göster |
|
|
196
|
-
| `natureco qr verify <code>` | QR kodu doğrula |
|
|
197
|
-
| `natureco onboard` | Interaktif onboarding sihirbazı |
|
|
198
|
-
| `natureco clickclack status` | Bildirim kanalı durumu |
|
|
199
|
-
| `natureco thread-ownership list` | Thread sahipliğini göster |
|
|
200
|
-
|
|
201
|
-
### 🔧 Altyapı
|
|
202
|
-
|
|
203
|
-
| Komut | Açıklama |
|
|
204
|
-
|-------|----------|
|
|
205
|
-
| `natureco daemon status` | Gateway daemon durumu |
|
|
206
|
-
| `natureco daemon start` | Daemon başlat |
|
|
207
|
-
| `natureco node status` | Node host durumu |
|
|
208
|
-
| `natureco node start` | Node host başlat (HTTP health endpoint) |
|
|
209
|
-
| `natureco node info` | Detaylı node bilgisi |
|
|
210
|
-
| `natureco nodes list` | Node network listesi |
|
|
211
|
-
| `natureco nodes pair <url>` | Node ekle |
|
|
212
|
-
| `natureco proxy start [port]` | Debug proxy başlat |
|
|
213
|
-
| `natureco proxy start 9090 --forward http://...` | Proxy ile yönlendirme |
|
|
214
|
-
| `natureco proxy capture` | Yakalanan istekleri göster |
|
|
215
|
-
| `natureco sandbox create <name>` | İzole çalışma dizini oluştur |
|
|
216
|
-
| `natureco sandbox exec <name> <command>` | Sandbox'ta komut çalıştır |
|
|
217
|
-
| `natureco capability list` | Yetenekleri listele |
|
|
218
|
-
| `natureco capability infer <provider>` | Sağlayıcı yeteneklerini sorgula |
|
|
219
|
-
|
|
220
|
-
### 📦 Medya & İçerik
|
|
221
|
-
|
|
222
|
-
| Komut | Açıklama |
|
|
223
|
-
|-------|----------|
|
|
224
|
-
| `natureco open-prose list` | Prose skills bundle bilgisi |
|
|
225
|
-
| `natureco vydra status` | Vydra medya sağlayıcı durumu |
|
|
226
|
-
| `natureco docs search <query>` | Dokümantasyon ara |
|
|
227
|
-
| `natureco docs open <topic>` | Dokümanı aç |
|
|
228
|
-
|
|
229
|
-
### 🔗 OpenClaw Uyumlu Takma Adlar
|
|
230
|
-
|
|
231
|
-
| Takma Ad | Asıl Komut |
|
|
232
|
-
|----------|-----------|
|
|
233
|
-
| `natureco acp` | `natureco code` |
|
|
234
|
-
| `natureco exec-policy` | `natureco policy` |
|
|
235
|
-
|
|
236
|
-
---
|
|
237
|
-
|
|
238
|
-
## ⚡ Code Agent
|
|
239
|
-
|
|
240
|
-
`natureco code` — dosyaları oku, değiştir, komut çalıştır. Claude Code alternatifi.
|
|
241
|
-
|
|
242
|
-
```bash
|
|
243
|
-
# Genel code agent
|
|
244
|
-
natureco code
|
|
245
|
-
|
|
246
|
-
# Belirli dosyaya odaklan
|
|
247
|
-
natureco code src/pages/Login.tsx
|
|
248
|
-
natureco code backend/api/routes.js
|
|
249
|
-
```
|
|
250
|
-
|
|
251
|
-
**Özellikler:**
|
|
252
|
-
- **Streaming output** — yanıt gelirken ekrana yazılır
|
|
253
|
-
- **Tool spinner** — her tool çalışırken animasyon gösterir
|
|
254
|
-
- **Onay mekanizması** — `write_file` ve tehlikeli bash komutlarında onay ister
|
|
255
|
-
- **Proje context** — başlangıçta dizini otomatik tarar
|
|
256
|
-
- **Session özeti** — kaç dosya değiştirildi, kaç komut çalıştı
|
|
257
|
-
- **Max 20 iteration** — karmaşık görevler için uzun tool loop
|
|
258
|
-
|
|
259
|
-
```
|
|
260
|
-
⚡ NatureCo Code · İchigo · v2.19.0
|
|
261
|
-
────────────────────────────────────────────────────────────────────────────────
|
|
262
|
-
|
|
263
|
-
You Login sayfasındaki form validasyonunu düzelt
|
|
264
|
-
|
|
265
|
-
İchigo Önce mevcut kodu okuyayım...
|
|
266
|
-
|
|
267
|
-
✓ read_file — {"path":"src/pages/Login.tsx"}
|
|
268
|
-
|
|
269
|
-
Sorunu buldum. email regex yanlış. Düzeltiyorum...
|
|
270
|
-
|
|
271
|
-
⚠️ write_file: {"path":"src/pages/Login.tsx"}
|
|
272
|
-
Devam edilsin mi? (Y/n)
|
|
273
|
-
|
|
274
|
-
✓ write_file — {"path":"src/pages/Login.tsx"}
|
|
275
|
-
|
|
276
|
-
Düzeltme tamamlandı. email validasyonu artık RFC 5322 uyumlu.
|
|
277
|
-
|
|
278
|
-
─── Agent Session Özeti ───
|
|
279
|
-
✓ 1 dosya değiştirildi
|
|
280
|
-
✓ 0 komut çalıştırıldı
|
|
281
|
-
✓ 2 tool çağrısı yapıldı
|
|
282
|
-
◉ 1 mesaj
|
|
283
|
-
```
|
|
284
|
-
|
|
285
|
-
---
|
|
286
|
-
|
|
287
|
-
## 🎨 Terminal UI
|
|
288
|
-
|
|
289
|
-
Chalk tabanlı saf terminal arayüzü — blessed yok, çift karakter sorunu yok.
|
|
290
|
-
|
|
291
|
-
```
|
|
292
|
-
███╗ ██╗ █████╗ ████████╗██╗ ██╗██████╗ ███████╗ ██████╗ ██████╗
|
|
293
|
-
...
|
|
294
|
-
╚═╝ ╚═══╝╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝ ╚═════╝ ╚═════╝
|
|
295
|
-
|
|
296
|
-
(\\_/) Hoş geldin, Gencay · İchigo hazır · v2.19.1
|
|
297
|
-
────────────────────────────────────────────────────────────────────────────────
|
|
298
|
-
llama-3.3 · /help için yardım · Ctrl+C çıkış
|
|
299
|
-
────────────────────────────────────────────────────────────────────────────────
|
|
300
|
-
|
|
301
|
-
You merhaba
|
|
302
|
-
İchigo Merhaba! Nasıl yardımcı olabilirim?
|
|
303
|
-
```
|
|
304
|
-
|
|
305
|
-
**Günlük tip sistemi** — her gün farklı bir Nature.co özelliği gösterilir. Yeni versiyon varsa changelog gösterilir.
|
|
306
|
-
|
|
307
|
-
---
|
|
308
|
-
|
|
309
|
-
## 🔧 Yapılandırma
|
|
310
|
-
|
|
311
|
-
Config dosyası: `~/.natureco/config.json`
|
|
312
|
-
|
|
313
|
-
```json
|
|
314
|
-
{
|
|
315
|
-
"providerUrl": "https://api.groq.com/openai/v1",
|
|
316
|
-
"providerApiKey": "gsk_xxx",
|
|
317
|
-
"providerModel": "llama-3.3-70b-versatile",
|
|
318
|
-
"botName": "İchigo",
|
|
319
|
-
"userName": "Gencay",
|
|
320
|
-
"debug": false,
|
|
321
|
-
"mcpEnabled": true,
|
|
322
|
-
"mcpServers": {}
|
|
323
|
-
}
|
|
324
|
-
```
|
|
325
|
-
|
|
326
|
-
**Desteklenen provider'lar:**
|
|
327
|
-
|
|
328
|
-
| Provider | URL |
|
|
329
|
-
|----------|-----|
|
|
330
|
-
| Groq | `https://api.groq.com/openai/v1` |
|
|
331
|
-
| OpenAI | `https://api.openai.com/v1` |
|
|
332
|
-
| Anthropic | `https://api.anthropic.com` |
|
|
333
|
-
| Together AI | `https://api.together.xyz/v1` |
|
|
334
|
-
| Fireworks | `https://api.fireworks.ai/inference/v1` |
|
|
335
|
-
| DeepSeek | `https://api.deepseek.com/v1` |
|
|
336
|
-
| OpenRouter | `https://openrouter.ai/api/v1` |
|
|
337
|
-
| Ollama (local) | `http://localhost:11434/v1` |
|
|
338
|
-
| LM Studio (local) | `http://localhost:1234/v1` |
|
|
339
|
-
|
|
340
|
-
```bash
|
|
341
|
-
# Provider değiştir
|
|
342
|
-
natureco config set providerUrl https://api.openai.com/v1
|
|
343
|
-
natureco config set providerApiKey sk-xxx
|
|
344
|
-
natureco config set providerModel gpt-4o
|
|
345
|
-
```
|
|
346
|
-
|
|
347
|
-
---
|
|
348
|
-
|
|
349
|
-
## 🧠 Hafıza Sistemi
|
|
350
|
-
|
|
351
|
-
Bot başına kalıcı hafıza. Kullanıcı adı, bot adı, tercihler, otomatik bilgi çıkarımı.
|
|
352
|
-
|
|
353
|
-
```bash
|
|
354
|
-
# Hafızayı göster
|
|
355
|
-
/memory
|
|
356
|
-
|
|
357
|
-
# Hafızayı temizle
|
|
358
|
-
/memory clear
|
|
359
|
-
```
|
|
360
|
-
|
|
361
|
-
```json
|
|
362
|
-
{
|
|
363
|
-
"name": "Gencay",
|
|
364
|
-
"botName": "İchigo",
|
|
365
|
-
"facts": [
|
|
366
|
-
{ "value": "Timezone: UTC+3", "score": 6 },
|
|
367
|
-
{ "value": "Developer", "score": 5 }
|
|
368
|
-
]
|
|
369
|
-
}
|
|
370
|
-
```
|
|
371
|
-
|
|
372
|
-
---
|
|
373
|
-
|
|
374
|
-
## 📁 Dosya Yapısı
|
|
375
|
-
|
|
376
|
-
```
|
|
377
|
-
~/.natureco/
|
|
378
|
-
├── config.json # Ana yapılandırma
|
|
379
|
-
├── gateway.pid # Gateway process ID
|
|
380
|
-
├── gateway.log # Gateway logları
|
|
381
|
-
├── lastVersion # Son görülen versiyon
|
|
382
|
-
├── skills/ # Yüklü skill'ler
|
|
383
|
-
├── memory/ # Bot hafızaları
|
|
384
|
-
├── history/ # Chat geçmişi
|
|
385
|
-
├── sessions/ # Chat oturumları
|
|
386
|
-
├── conversations/ # Konuşma geçmişi (disk)
|
|
387
|
-
└── whatsapp-sessions/ # WhatsApp session'ları
|
|
388
|
-
```
|
|
389
|
-
|
|
390
|
-
---
|
|
391
|
-
|
|
392
|
-
## 📚 Kaynaklar
|
|
393
|
-
|
|
394
|
-
- **Web:** [natureco.me](https://natureco.me)
|
|
395
|
-
- **CLI Docs:** [natureco.me/cli](https://natureco.me/cli)
|
|
396
|
-
- **npm:** [npmjs.com/package/natureco-cli](https://www.npmjs.com/package/natureco-cli)
|
|
397
|
-
- **API:** [natureco.me/developer](https://natureco.me/developer)
|
|
398
|
-
|
|
399
|
-
---
|
|
400
|
-
|
|
401
|
-
## 📝 Lisans
|
|
402
|
-
|
|
403
|
-
MIT © NatureCo
|
|
404
|
-
|
|
405
|
-
---
|
|
406
|
-
|
|
407
|
-
**Version:** 3.0.0 | **Node.js:** >=18.0.0 (recommended 20+) | **Platform:** macOS, Windows, Linux
|
|
408
|
-
|
|
409
|
-
---
|
|
410
|
-
|
|
411
|
-
## ✨ What's New in v4.1 — "MULTI-AGENT"
|
|
412
|
-
|
|
413
|
-
### 🤖 Phase 7 — Multi-Agent Orkestrasyon
|
|
414
|
-
- **8 uzman agent** (önceki 3, +5 yeni):
|
|
415
|
-
- `explore`, `general`, `review` (mevcut)
|
|
416
|
-
- **seo**: Anahtar kelime, meta tag, içerik optimizasyonu
|
|
417
|
-
- **content**: NatureCo için SEO uyumlu özgün içerik
|
|
418
|
-
- **security**: OWASP top 10, dependency güvenliği
|
|
419
|
-
- **translator**: Doğal, akıcı çeviriler (teknik terim korumalı)
|
|
420
|
-
- **debugger**: Hata analizi, kök neden tespiti
|
|
421
|
-
- **`natureco team list`** — Tüm agent tipleri
|
|
422
|
-
- **`natureco team status`** — Çalışan/tamamlanan/başarısız istatistikleri
|
|
423
|
-
- **`natureco team spawn <type> <task>`** — Tek agent çalıştır
|
|
424
|
-
- **`natureco team parallel '<json>'`** — N agent paralel çalıştır
|
|
425
|
-
|
|
426
|
-
### 🌿 Phase 6 — NatureCo Özgü Entegrasyonlar
|
|
427
|
-
OpenClaw generic bir agent. NatureCo CLI, **natureco.me platformunun native parçası**.
|
|
428
|
-
|
|
429
|
-
- **`natureco naturehub post "<text>"`** — Topluluk akışına içerik yayınla
|
|
430
|
-
- **`natureco medium draft <file.md>`** — Markdown'tan Medium taslağı (Parton'un ayda 4 makale hedefi için)
|
|
431
|
-
- **`natureco medium publish <file.md>`** — Doğrudan Medium'da yayınla
|
|
432
|
-
- **`natureco seo audit <url>`** — Tam SEO denetimi, 100-üzerinden skor
|
|
433
|
-
- **`natureco seo audit https://natureco.me`** → **71/100**, H1 eksik, title uzunluğu raporlandı
|
|
434
|
-
- **`natureco xp`** — 8 seviye gamification (Tohum → Galaksi), 7 ödül
|
|
435
|
-
|
|
436
|
-
### 🎯 Canlı SEO Denetimi (natureco.me)
|
|
437
|
-
|
|
438
|
-
```
|
|
439
|
-
✅ Description (149 karakter)
|
|
440
|
-
✅ Canonical URL var
|
|
441
|
-
✅ Open Graph (7 tag)
|
|
442
|
-
✅ Twitter Card (6 tag)
|
|
443
|
-
✅ Schema.org markup var
|
|
444
|
-
⚠️ Title çok uzun (64 karakter, ideal: 50-60)
|
|
445
|
-
❌ H1 tag eksik
|
|
446
|
-
⚠️ İçerik kısa (9 kelime)
|
|
447
|
-
🎯 SEO Skoru: 71/100
|
|
448
|
-
```
|
|
449
|
-
|
|
450
|
-
### 🖥️ Phase 5 — Local Web Dashboard
|
|
451
|
-
- **`natureco dashboard`** → http://127.0.0.1:7421 (otomatik tarayıcı açılır)
|
|
452
|
-
- **Vanilla JS + HTML** — framework yok, hızlı, dependency yok
|
|
453
|
-
- **6 widget** tek sayfada:
|
|
454
|
-
- 💰 Bugünkü maliyet (limit bar ile)
|
|
455
|
-
- 📦 Yüklü skill + bekleyen proposal sayısı
|
|
456
|
-
- ⏰ Aktif cron sayısı
|
|
457
|
-
- 📋 Bugünkü audit kaydı
|
|
458
|
-
- 💵 Provider/model bazlı maliyet breakdown
|
|
459
|
-
- 🧠 Self-evolving skill proposals tablosu
|
|
460
|
-
- 📜 Son tool çağrıları timeline
|
|
461
|
-
- **Otomatik yenileme** — 5 saniyede bir auto-refresh
|
|
462
|
-
- **JSON API** — `/api` endpoint
|
|
463
|
-
- **PID management** — start/stop/status/url
|
|
464
|
-
|
|
465
|
-
### 🆚 OpenClaw Dashboard vs NatureCo
|
|
466
|
-
|
|
467
|
-
| Özellik | OpenClaw | NatureCo CLI v3.4 |
|
|
468
|
-
|---------|---------|-------------------|
|
|
469
|
-
| Local web dashboard | ❌ (cloud bağımlı) | ✅ (127.0.0.1:7421) |
|
|
470
|
-
| Framework dependency | — | **Yok** (vanilla JS) |
|
|
471
|
-
| Real-time auto-refresh | ❌ | ✅ (5s) |
|
|
472
|
-
| Maliyet görselleştirme | ❌ | ✅ |
|
|
473
|
-
| Self-evolving skill UI | ❌ | ✅ |
|
|
474
|
-
| Audit log görüntüleme | ❌ | ✅ |
|
|
475
|
-
|
|
476
|
-
### 💰 Phase 4 — Maliyet Optimizasyonu
|
|
477
|
-
- **21 model × provider** fiyat tablosu (Groq, OpenAI, Anthropic, DeepSeek, Together, Fireworks, Ollama)
|
|
478
|
-
- **Model router** — prompt karmaşıklığını tahmin eder, en uygun (en ucuz) modeli önerir
|
|
479
|
-
- Simple: `llama-3.1-8b-instant` ($0.05/M in)
|
|
480
|
-
- Medium: `llama-3.3-70b-versatile` ($0.59/M in)
|
|
481
|
-
- Complex: kod için `claude-sonnet-4-6` veya `groq:llama-3.3-70b`
|
|
482
|
-
- Creative: `claude-sonnet-4-6` veya `gpt-4o`
|
|
483
|
-
- **`natureco cost today|week|month|all`** — Provider/model bazlı maliyet breakdown
|
|
484
|
-
- **`natureco cost budget`** — Günlük $5, aylık $100 limit, görsel progress bar
|
|
485
|
-
- **`natureco cost model "<prompt>"`** — Bir prompt için en uygun modeli öner
|
|
486
|
-
- **`natureco cost prices`** — Tüm fiyatları gör
|
|
487
|
-
- **`natureco cost set <key> <value>`** — Bütçe ayarla (örn: `set dailyLimit 3.00`)
|
|
488
|
-
|
|
489
|
-
### 💵 OpenClaw Karşılaştırması
|
|
490
|
-
|
|
491
|
-
| Kullanım | OpenClaw | NatureCo CLI v3.3 |
|
|
492
|
-
|---------|---------|-------------------|
|
|
493
|
-
| Aylık ortalama maliyet | $50-200 | **$5-15** |
|
|
494
|
-
| Model seçimi | Sabit (kullanıcı bilinçli değil) | Otomatik router |
|
|
495
|
-
| Maliyet görünürlüğü | ❌ | ✅ (real-time) |
|
|
496
|
-
| Bütçe limiti | ❌ | ✅ (günlük + aylık) |
|
|
497
|
-
| Otomatik downgrade | ❌ | ✅ (%90'da) |
|
|
498
|
-
| Prompt analizi ile model seçimi | ❌ | ✅ |
|
|
499
|
-
|
|
500
|
-
### 🧠 Phase 3 — Self-Evolving Skills
|
|
501
|
-
- **Pattern detector** — Aynı tool çağrı pattern'i 3 kez tekrar → otomatik skill önerisi
|
|
502
|
-
- **Akıllı normalize** — URL, dosya yolu, sayı, UUID, tarih generic hale getirilir (gerçek değerler değil türler eşleşir)
|
|
503
|
-
- **Sliding window** — Son 5 tool çağrısından pattern çıkarır
|
|
504
|
-
- **24 saat cooldown** — Aynı pattern spam olmaz
|
|
505
|
-
- **`natureco skills suggest`** — Bekleyen proposal'ları listele
|
|
506
|
-
- **`natureco skills accept <id>`** — Otomatik SKILL.md oluştur
|
|
507
|
-
- **`natureco skills reject <id>`** — Reddet
|
|
508
|
-
- **`natureco skills forget`** — Pattern hafızasını sıfırla
|
|
509
|
-
|
|
510
|
-
### 🎯 Self-Evolving Test Sonucu
|
|
511
|
-
3 ardışık `web_search → web_fetch → write_file` çağrısı sonrası sistem otomatik olarak:
|
|
512
|
-
- Pattern'i tanıdı
|
|
513
|
-
- `web-search-to-web-fetch` adında skill önerisi oluşturdu
|
|
514
|
-
- Kabul edilirse `~/.natureco/skills/web-search-to-web-fetch/SKILL.md` otomatik üretildi
|
|
515
|
-
|
|
516
|
-
### 🚀 OpenClaw Karşılaştırması (güncel)
|
|
517
|
-
|
|
518
|
-
| Özellik | OpenClaw | NatureCo CLI v3.2 |
|
|
519
|
-
|---------|---------|-------------------|
|
|
520
|
-
| İlk kurulum süresi | 30-60 dakika | **60 saniye** |
|
|
521
|
-
| Onay mekanizması | ❌ | ✅ (5 mod) |
|
|
522
|
-
| Audit log | ❌ | ✅ (JSONL, 30 gün) |
|
|
523
|
-
| Secret scanner | ❌ | ✅ (22 pattern + entropy) |
|
|
524
|
-
| **Self-evolving skills** | ❌ | ✅ (Hermes tarzı) |
|
|
525
|
-
| Türkçe yerelleştirme | ❌ | ✅ |
|
|
526
|
-
|
|
527
|
-
### 🛡️ Phase 2 — Güvenlik
|
|
528
|
-
- **Merkezi audit log** — Tüm komut, onay, tool call, secret erişimi JSONL olarak kayıt altında (30 gün retention, async non-blocking)
|
|
529
|
-
- **Secret scanner** — 22 bilinen secret pattern + Shannon entropi analizi (OpenAI, Anthropic, Groq, AWS, GitHub, Slack, Stripe, NatureCo, JWT, private key vs.)
|
|
530
|
-
- **`natureco audit`** — Bugünkü logları göster, 24 saat istatistik, dosya listesi, canlı tail, arama, cleanup
|
|
531
|
-
- **Doctor 2 yeni check:** `auditLog`, `secretsClean`
|
|
532
|
-
- **Toplam doctor check:** 10 (Phase 1: 8, ilk halde: 5)
|
|
533
|
-
|
|
534
|
-
### 🚀 OpenClaw Karşılaştırması (güncel)
|
|
535
|
-
|
|
536
|
-
| Özellik | OpenClaw | NatureCo CLI v3.1 |
|
|
537
|
-
|---------|---------|-------------------|
|
|
538
|
-
| İlk kurulum süresi | 30-60 dakika | **60 saniye** |
|
|
539
|
-
| First-run auto-detection | ❌ | ✅ |
|
|
540
|
-
| Onay mekanizması | ❌ (tam erişim) | ✅ (risk-seviyeli, 5 mod) |
|
|
541
|
-
| Audit log | ❌ | ✅ (JSONL, 30 gün retention) |
|
|
542
|
-
| Secret scanner | ❌ | ✅ (22 pattern + entropy) |
|
|
543
|
-
| Self-evolving skills | ❌ | ✅ (Phase 3'te) |
|
|
544
|
-
| Real disk space check | ❌ (RAM ölçüyordu) | ✅ |
|
|
545
|
-
| Türkçe yerelleştirme | ❌ | ✅ |
|
|
546
|
-
|
|
547
|
-
### 🎯 Phase 1 — Brand & Onboarding
|
|
548
|
-
- **First-run auto-detection** — `natureco` (boş argüman) kurulum yoksa wizard'a yönlendirir
|
|
549
|
-
- **Yeni NatureCo ASCII art logosu** — brand kimliği her yerde tutarlı
|
|
550
|
-
- **`natureco doctor` genişletildi** — 8 sistem check (önceki: 5)
|
|
551
|
-
- `configExists`, `nodeVersion`, `npmPackages`, `diskSpace`, `writePermission`
|
|
552
|
-
- Yeni: `apiKeyValid`, `providerReachable`, `dataDirs` (auto-create eksik dizinler)
|
|
553
|
-
- **Daily tip** — gateway ekranı her gün farklı NatureCo özelliği önerir
|
|
554
|
-
|
|
555
|
-
### 🚀 OpenClaw Karşılaştırması
|
|
556
|
-
|
|
557
|
-
| Özellik | OpenClaw | NatureCo CLI v3.0 |
|
|
558
|
-
|---------|---------|-------------------|
|
|
559
|
-
| İlk kurulum süresi | 30-60 dakika | **60 saniye** |
|
|
560
|
-
| First-run auto-detection | ❌ | ✅ |
|
|
561
|
-
| Güvenlik: onay mekanizması | ❌ (tam erişim) | ✅ (risk-seviyeli) |
|
|
562
|
-
| Kurulum hatalarını otomatik düzeltme | ❌ | ✅ (doctor auto-fix) |
|
|
563
|
-
| Self-evolving skills | ❌ | ✅ (Phase 3'te) |
|
|
564
|
-
| Gerçek disk alanı kontrolü | ❌ (RAM ölçüyordu) | ✅ |
|
|
565
|
-
| Türkçe yerelleştirme | ❌ | ✅ |
|
package/src/tools/http.js.bak
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
name: 'http_request',
|
|
3
|
-
description: 'Make HTTP requests to any URL (GET, POST, PUT, DELETE, PATCH)',
|
|
4
|
-
inputSchema: {
|
|
5
|
-
type: 'object',
|
|
6
|
-
properties: {
|
|
7
|
-
method: {
|
|
8
|
-
type: 'string',
|
|
9
|
-
description: 'HTTP method: GET, POST, PUT, DELETE, PATCH',
|
|
10
|
-
enum: ['GET', 'POST', 'PUT', 'DELETE', 'PATCH'],
|
|
11
|
-
default: 'GET'
|
|
12
|
-
},
|
|
13
|
-
url: {
|
|
14
|
-
type: 'string',
|
|
15
|
-
description: 'Full URL to request'
|
|
16
|
-
},
|
|
17
|
-
headers: {
|
|
18
|
-
type: 'object',
|
|
19
|
-
description: 'Optional headers (key-value pairs)'
|
|
20
|
-
},
|
|
21
|
-
body: {
|
|
22
|
-
type: 'object',
|
|
23
|
-
description: 'Optional request body (for POST/PUT/PATCH)'
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
required: ['url']
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
async execute(params) {
|
|
30
|
-
try {
|
|
31
|
-
const method = (params.method || 'GET').toUpperCase();
|
|
32
|
-
|
|
33
|
-
const options = {
|
|
34
|
-
method,
|
|
35
|
-
headers: {
|
|
36
|
-
'Content-Type': 'application/json',
|
|
37
|
-
'User-Agent': 'NatureCo-CLI/2.7.0',
|
|
38
|
-
...(params.headers || {})
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
// Add body for POST/PUT/PATCH
|
|
43
|
-
if (params.body && ['POST', 'PUT', 'PATCH'].includes(method)) {
|
|
44
|
-
options.body = JSON.stringify(params.body);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
const response = await fetch(params.url, options);
|
|
48
|
-
const text = await response.text();
|
|
49
|
-
|
|
50
|
-
// Try to parse as JSON
|
|
51
|
-
let data;
|
|
52
|
-
try {
|
|
53
|
-
data = JSON.parse(text);
|
|
54
|
-
} catch {
|
|
55
|
-
data = text;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
// Truncate large responses
|
|
59
|
-
if (typeof data === 'string' && data.length > 2000) {
|
|
60
|
-
data = data.slice(0, 2000) + '... (truncated)';
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
return {
|
|
64
|
-
success: true,
|
|
65
|
-
status: response.status,
|
|
66
|
-
ok: response.ok,
|
|
67
|
-
statusText: response.statusText,
|
|
68
|
-
headers: Object.fromEntries(response.headers.entries()),
|
|
69
|
-
data: data
|
|
70
|
-
};
|
|
71
|
-
} catch (error) {
|
|
72
|
-
return {
|
|
73
|
-
success: false,
|
|
74
|
-
error: error.message
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
};
|