natureco-cli 2.23.11 → 2.23.12
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 +1 -1
- package/src/commands/chat.js +7 -3
- package/src/utils/api.js +8 -1
package/package.json
CHANGED
package/src/commands/chat.js
CHANGED
|
@@ -126,9 +126,13 @@ async function chat(botName, options = {}) {
|
|
|
126
126
|
const memoryPrompt = getMemoryPrompt(bot.id);
|
|
127
127
|
|
|
128
128
|
let systemPrompt = '';
|
|
129
|
-
if (
|
|
130
|
-
|
|
131
|
-
|
|
129
|
+
if (config.providerUrl && config.providerUrl.includes('natureco.me')) {
|
|
130
|
+
systemPrompt = 'Sen yardımcı bir AI asistansın.';
|
|
131
|
+
} else {
|
|
132
|
+
if (skillPrompts) systemPrompt += skillPrompts;
|
|
133
|
+
if (agentsPrompt) systemPrompt += `\n\n## Project Instructions\n${agentsPrompt}`;
|
|
134
|
+
if (memoryPrompt) systemPrompt += '\n\n' + memoryPrompt;
|
|
135
|
+
}
|
|
132
136
|
|
|
133
137
|
// ── Session ─────────────────────────────────────────────────────────────────
|
|
134
138
|
let session;
|
package/src/utils/api.js
CHANGED
|
@@ -731,7 +731,14 @@ async function sendMessage(apiKey, botId, message, conversationId = null, chatSy
|
|
|
731
731
|
|
|
732
732
|
// Get config to check MCP status
|
|
733
733
|
const config = getConfig();
|
|
734
|
-
|
|
734
|
+
const providerConfig = getProviderConfig();
|
|
735
|
+
|
|
736
|
+
// NatureCo — minimal system prompt, skip tool descriptions/MCP
|
|
737
|
+
if (providerConfig && providerConfig.url.includes('api.natureco.me')) {
|
|
738
|
+
const prompt = chatSystemPrompt || 'Sen yardımcı bir AI asistansın.';
|
|
739
|
+
return sendMessageToProvider(apiKey, message, conversationId, prompt, options);
|
|
740
|
+
}
|
|
741
|
+
|
|
735
742
|
// Base system prompt — sıkıştırılmış (~120 token)
|
|
736
743
|
const toolDefs = getToolDefinitions();
|
|
737
744
|
const toolsDesc = toolDefs.map(t => t.name + (t.description ? ' (' + t.description.slice(0, 30) + ')' : '')).join(', ');
|