codeep 1.0.15 → 1.0.16
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/dist/utils/agent.js +4 -0
- package/package.json +1 -1
package/dist/utils/agent.js
CHANGED
|
@@ -456,6 +456,7 @@ export async function runAgent(prompt, projectContext, options = {}) {
|
|
|
456
456
|
}
|
|
457
457
|
// Check abort signal
|
|
458
458
|
if (opts.abortSignal?.aborted) {
|
|
459
|
+
console.error(`[DEBUG] Agent aborted at iteration ${iteration}, signal:`, opts.abortSignal.aborted);
|
|
459
460
|
result = {
|
|
460
461
|
success: false,
|
|
461
462
|
iterations: iteration,
|
|
@@ -466,6 +467,7 @@ export async function runAgent(prompt, projectContext, options = {}) {
|
|
|
466
467
|
return result;
|
|
467
468
|
}
|
|
468
469
|
iteration++;
|
|
470
|
+
console.error(`[DEBUG] Starting iteration ${iteration}/${opts.maxIterations}, actions: ${actions.length}`);
|
|
469
471
|
opts.onIteration?.(iteration, `Iteration ${iteration}/${opts.maxIterations}`);
|
|
470
472
|
// Get AI response
|
|
471
473
|
let chatResponse;
|
|
@@ -497,6 +499,8 @@ export async function runAgent(prompt, projectContext, options = {}) {
|
|
|
497
499
|
}
|
|
498
500
|
// If no tool calls, this is the final response
|
|
499
501
|
if (toolCalls.length === 0) {
|
|
502
|
+
console.error(`[DEBUG] No tool calls at iteration ${iteration}, content length: ${content.length}, actions so far: ${actions.length}`);
|
|
503
|
+
console.error(`[DEBUG] Response preview:`, content.substring(0, 200));
|
|
500
504
|
// Remove <think>...</think> tags from response (some models include thinking)
|
|
501
505
|
finalResponse = content.replace(/<think>[\s\S]*?<\/think>/gi, '').trim();
|
|
502
506
|
// Check if we're using task planning and there are more tasks
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codeep",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.16",
|
|
4
4
|
"description": "AI-powered coding assistant built for the terminal. Multiple LLM providers, project-aware context, and a seamless development workflow.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|