natureco-cli 5.6.40 → 5.6.42
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.
|
|
3
|
+
"version": "5.6.42",
|
|
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"
|
|
@@ -1151,7 +1151,7 @@ async function processIrcMessage(config, sender, target, text, socket) {
|
|
|
1151
1151
|
if (memoryPrompt) systemPrompt += '\n\n' + memoryPrompt;
|
|
1152
1152
|
|
|
1153
1153
|
const response = await sendMessage(
|
|
1154
|
-
cfg.providerApiKey || cfg.apiKey || '', botId,
|
|
1154
|
+
cfg.providerApiKey || cfg.apiKey || '', botId, cleanCommand,
|
|
1155
1155
|
conversationId, systemPrompt
|
|
1156
1156
|
);
|
|
1157
1157
|
const reply = response?.reply || response?.message || '';
|
|
@@ -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');
|
|
@@ -1524,7 +1537,7 @@ async function processImessageMessage(msg, config) {
|
|
|
1524
1537
|
if (memoryPrompt) systemPrompt += '\n\n' + memoryPrompt;
|
|
1525
1538
|
|
|
1526
1539
|
const response = await sendMessage(
|
|
1527
|
-
cfg.providerApiKey || cfg.apiKey || '', botId,
|
|
1540
|
+
cfg.providerApiKey || cfg.apiKey || '', botId, cleanCommand,
|
|
1528
1541
|
conversationId, systemPrompt
|
|
1529
1542
|
);
|
|
1530
1543
|
const reply = response?.reply || response?.message || '';
|
|
@@ -1699,7 +1712,7 @@ async function handleSmsWebhook(config, body, req) {
|
|
|
1699
1712
|
if (memoryPrompt) systemPrompt += '\n\n' + memoryPrompt;
|
|
1700
1713
|
|
|
1701
1714
|
const response = await sendMessage(
|
|
1702
|
-
cfg.providerApiKey || cfg.apiKey || '', botId,
|
|
1715
|
+
cfg.providerApiKey || cfg.apiKey || '', botId, cleanCommand,
|
|
1703
1716
|
conversationId, systemPrompt
|
|
1704
1717
|
);
|
|
1705
1718
|
const reply = response?.reply || response?.message || '';
|