natureco-cli 5.6.40 → 5.6.41

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "natureco-cli",
3
- "version": "5.6.40",
3
+ "version": "5.6.41",
4
4
  "description": "OpenClaw'dan daha güvenli, daha hızlı, daha ucuz AI agent CLI. Multi-agent, self-evolving skills, audit log, maliyet optimizasyonu ve NatureCo platform-native.",
5
5
  "bin": {
6
6
  "natureco": "bin/natureco.js"
@@ -1511,6 +1511,19 @@ async function processImessageMessage(msg, config) {
1511
1511
 
1512
1512
  log('imessage', `Inbound from ${sender}: "${text.slice(0, 80)}"`, 'cyan');
1513
1513
 
1514
+ // v5.6.41: Slash-prefix komut sistemi - sadece / ile başlayan mesajlara cevap ver
1515
+ if (!text.startsWith('/')) {
1516
+ log('imessage', `Skipping non-command from ${sender}: "${text.slice(0, 40)}..."`, 'gray');
1517
+ return;
1518
+ }
1519
+ // / prefix'i kaldır
1520
+ const cleanCommand = text.replace(/^\/+/, '').trim();
1521
+ if (!cleanCommand) {
1522
+ log('imessage', `Empty command from ${sender}`, 'gray');
1523
+ return;
1524
+ }
1525
+ log('imessage', `Slash command: /${cleanCommand.slice(0, 60)}`, 'yellow');
1526
+
1514
1527
  const { sendMessage } = require('../utils/api');
1515
1528
  const { getMemoryPrompt } = require('../utils/memory');
1516
1529
  const { getConfig, saveConfig } = require('../utils/config');