natureco-cli 2.18.1 → 2.18.2
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 +1 -2
- package/src/commands/code.js +15 -3
package/package.json
CHANGED
package/src/commands/chat.js
CHANGED
|
@@ -312,11 +312,10 @@ 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 — 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));
|
|
320
319
|
if (!toolCalls?.length) break;
|
|
321
320
|
console.log(chalk.yellow(`🔧 ${toolCalls.length} tool çalıştırılıyor...`));
|
|
322
321
|
const toolResults = await executeToolCalls(toolCalls);
|
package/src/commands/code.js
CHANGED
|
@@ -92,7 +92,20 @@ async function code(targetFile, options = {}) {
|
|
|
92
92
|
|
|
93
93
|
// ── Header ──────────────────────────────────────────────────────────────────
|
|
94
94
|
console.clear();
|
|
95
|
-
|
|
95
|
+
const codeLogo = [
|
|
96
|
+
'███╗ ██╗ █████╗ ████████╗██╗ ██╗██████╗ ███████╗ ██████╗ ██████╗',
|
|
97
|
+
'████╗ ██║██╔══██╗╚══██╔══╝██║ ██║██╔══██╗██╔════╝██╔════╝ ██╔═══██╗',
|
|
98
|
+
'██╔██╗ ██║███████║ ██║ ██║ ██║██████╔╝█████╗ ██║ ██║ ██║',
|
|
99
|
+
'██║╚██╗██║██╔══██║ ██║ ██║ ██║██╔══██╗██╔══╝ ██║ ██║ ██║',
|
|
100
|
+
'██║ ╚████║██║ ██║ ██║ ╚██████╔╝██║ ██║███████╗╚██████╗ ╚██████╔╝',
|
|
101
|
+
'╚═╝ ╚═══╝╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝ ╚═════╝ ╚═════╝',
|
|
102
|
+
].join('\n');
|
|
103
|
+
const codeSubLogo = [
|
|
104
|
+
'█▀▀ █▀█ █▀▄ █▀▀',
|
|
105
|
+
'█▄▄ █▄█ █▄▀ ██▄',
|
|
106
|
+
].join('\n');
|
|
107
|
+
console.log(centerText(chalk.green(codeLogo)));
|
|
108
|
+
console.log(centerText(chalk.green(codeSubLogo)));
|
|
96
109
|
console.log(sep());
|
|
97
110
|
if (targetFile) {
|
|
98
111
|
console.log(centerText(chalk.gray(`📄 ${targetFile}`)));
|
|
@@ -178,11 +191,10 @@ async function code(targetFile, options = {}) {
|
|
|
178
191
|
|
|
179
192
|
if (response.conversation_id) conversationId = response.conversation_id;
|
|
180
193
|
|
|
181
|
-
// Tool loop —
|
|
194
|
+
// Tool loop — api.js zaten tool loop yapıyor, bu loop çalışmamalı
|
|
182
195
|
let iter = 0;
|
|
183
196
|
while (iter < 10) {
|
|
184
197
|
const toolCalls = extractToolCalls(response);
|
|
185
|
-
console.log('[DEBUG] Tool calls:', JSON.stringify(toolCalls));
|
|
186
198
|
if (!toolCalls?.length) break;
|
|
187
199
|
console.log(chalk.yellow(`\n🔧 ${toolCalls.length} tool çalıştırılıyor...\n`));
|
|
188
200
|
const toolResults = await executeToolCalls(toolCalls, { agentMode: true });
|