natureco-cli 2.18.0 → 2.18.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/package.json +1 -1
- package/src/commands/chat.js +2 -1
- package/src/commands/code.js +2 -1
package/package.json
CHANGED
package/src/commands/chat.js
CHANGED
|
@@ -312,10 +312,11 @@ async function chat(botName, options = {}) {
|
|
|
312
312
|
|
|
313
313
|
if (response.conversation_id) conversationId = response.conversation_id;
|
|
314
314
|
|
|
315
|
-
// Tool loop
|
|
315
|
+
// Tool loop — DEBUG: api.js zaten tool loop yapıyor, bu loop çalışmamalı
|
|
316
316
|
let iter = 0;
|
|
317
317
|
while (iter < 5) {
|
|
318
318
|
const toolCalls = extractToolCalls(response);
|
|
319
|
+
console.log('[DEBUG] Tool calls:', JSON.stringify(toolCalls));
|
|
319
320
|
if (!toolCalls?.length) break;
|
|
320
321
|
console.log(chalk.yellow(`🔧 ${toolCalls.length} tool çalıştırılıyor...`));
|
|
321
322
|
const toolResults = await executeToolCalls(toolCalls);
|
package/src/commands/code.js
CHANGED
|
@@ -178,10 +178,11 @@ async function code(targetFile, options = {}) {
|
|
|
178
178
|
|
|
179
179
|
if (response.conversation_id) conversationId = response.conversation_id;
|
|
180
180
|
|
|
181
|
-
// Tool loop —
|
|
181
|
+
// Tool loop — DEBUG: api.js zaten tool loop yapıyor, bu loop çalışmamalı
|
|
182
182
|
let iter = 0;
|
|
183
183
|
while (iter < 10) {
|
|
184
184
|
const toolCalls = extractToolCalls(response);
|
|
185
|
+
console.log('[DEBUG] Tool calls:', JSON.stringify(toolCalls));
|
|
185
186
|
if (!toolCalls?.length) break;
|
|
186
187
|
console.log(chalk.yellow(`\n🔧 ${toolCalls.length} tool çalıştırılıyor...\n`));
|
|
187
188
|
const toolResults = await executeToolCalls(toolCalls, { agentMode: true });
|