codeep 1.0.131 → 1.0.132
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 +7 -1
- package/package.json +1 -1
package/dist/utils/agent.js
CHANGED
|
@@ -635,7 +635,13 @@ export async function runAgent(prompt, projectContext, options = {}) {
|
|
|
635
635
|
if (toolCalls.length === 0) {
|
|
636
636
|
debug(`No tool calls at iteration ${iteration}, content length: ${content.length}`);
|
|
637
637
|
// Remove <think>...</think> tags from response (some models include thinking)
|
|
638
|
-
|
|
638
|
+
// Also remove Tool parameters/tool call artifacts that AI sometimes includes in text
|
|
639
|
+
finalResponse = content
|
|
640
|
+
.replace(/<think>[\s\S]*?<\/think>/gi, '')
|
|
641
|
+
.replace(/Tool parameters:[\s\S]*?(?=\n\n|$)/gi, '')
|
|
642
|
+
.replace(/\{'path'[\s\S]*?\}/g, '')
|
|
643
|
+
.replace(/```[\s\S]*?```/g, '')
|
|
644
|
+
.trim();
|
|
639
645
|
// Check if model indicates it wants to continue (incomplete response)
|
|
640
646
|
const continueIndicators = [
|
|
641
647
|
'let me', 'i will', 'i\'ll', 'now i', 'next i',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codeep",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.132",
|
|
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",
|