@probelabs/probe 0.6.0-rc113 → 0.6.0-rc114
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.
|
@@ -40,6 +40,7 @@ import {
|
|
|
40
40
|
createSchemaDefinitionCorrectionPrompt,
|
|
41
41
|
validateAndFixMermaidResponse
|
|
42
42
|
} from './schemaUtils.js';
|
|
43
|
+
import { removeThinkingTags } from './xmlParsingUtils.js';
|
|
43
44
|
import {
|
|
44
45
|
MCPXmlBridge,
|
|
45
46
|
parseHybridXmlToolCall,
|
|
@@ -1754,6 +1755,12 @@ Convert your previous response content into actual JSON data that follows this s
|
|
|
1754
1755
|
console.log(`[DEBUG] Mermaid validation: Skipped final validation due to disableMermaidValidation option`);
|
|
1755
1756
|
}
|
|
1756
1757
|
|
|
1758
|
+
// Remove thinking tags from final result before returning to user
|
|
1759
|
+
finalResult = removeThinkingTags(finalResult);
|
|
1760
|
+
if (this.debug) {
|
|
1761
|
+
console.log(`[DEBUG] Removed thinking tags from final result`);
|
|
1762
|
+
}
|
|
1763
|
+
|
|
1757
1764
|
return finalResult;
|
|
1758
1765
|
|
|
1759
1766
|
} catch (error) {
|
package/build/agent/index.js
CHANGED
|
@@ -55284,6 +55284,7 @@ var init_ProbeAgent = __esm({
|
|
|
55284
55284
|
init_mockProvider();
|
|
55285
55285
|
init_index();
|
|
55286
55286
|
init_schemaUtils();
|
|
55287
|
+
init_xmlParsingUtils();
|
|
55287
55288
|
init_mcp();
|
|
55288
55289
|
MAX_TOOL_ITERATIONS = parseInt(process.env.MAX_TOOL_ITERATIONS || "30", 10);
|
|
55289
55290
|
MAX_HISTORY_MESSAGES = 100;
|
|
@@ -56685,6 +56686,10 @@ Convert your previous response content into actual JSON data that follows this s
|
|
|
56685
56686
|
} else if (this.debug) {
|
|
56686
56687
|
console.log(`[DEBUG] Mermaid validation: Skipped final validation due to disableMermaidValidation option`);
|
|
56687
56688
|
}
|
|
56689
|
+
finalResult = removeThinkingTags(finalResult);
|
|
56690
|
+
if (this.debug) {
|
|
56691
|
+
console.log(`[DEBUG] Removed thinking tags from final result`);
|
|
56692
|
+
}
|
|
56688
56693
|
return finalResult;
|
|
56689
56694
|
} catch (error2) {
|
|
56690
56695
|
console.error(`[ERROR] ProbeAgent.answer failed:`, error2);
|
package/cjs/agent/ProbeAgent.cjs
CHANGED
|
@@ -55006,6 +55006,7 @@ var init_ProbeAgent = __esm({
|
|
|
55006
55006
|
init_mockProvider();
|
|
55007
55007
|
init_index();
|
|
55008
55008
|
init_schemaUtils();
|
|
55009
|
+
init_xmlParsingUtils();
|
|
55009
55010
|
init_mcp();
|
|
55010
55011
|
MAX_TOOL_ITERATIONS = parseInt(process.env.MAX_TOOL_ITERATIONS || "30", 10);
|
|
55011
55012
|
MAX_HISTORY_MESSAGES = 100;
|
|
@@ -56407,6 +56408,10 @@ Convert your previous response content into actual JSON data that follows this s
|
|
|
56407
56408
|
} else if (this.debug) {
|
|
56408
56409
|
console.log(`[DEBUG] Mermaid validation: Skipped final validation due to disableMermaidValidation option`);
|
|
56409
56410
|
}
|
|
56411
|
+
finalResult = removeThinkingTags(finalResult);
|
|
56412
|
+
if (this.debug) {
|
|
56413
|
+
console.log(`[DEBUG] Removed thinking tags from final result`);
|
|
56414
|
+
}
|
|
56410
56415
|
return finalResult;
|
|
56411
56416
|
} catch (error2) {
|
|
56412
56417
|
console.error(`[ERROR] ProbeAgent.answer failed:`, error2);
|
package/cjs/index.cjs
CHANGED
|
@@ -55151,6 +55151,7 @@ var init_ProbeAgent = __esm({
|
|
|
55151
55151
|
init_mockProvider();
|
|
55152
55152
|
init_index();
|
|
55153
55153
|
init_schemaUtils();
|
|
55154
|
+
init_xmlParsingUtils();
|
|
55154
55155
|
init_mcp();
|
|
55155
55156
|
MAX_TOOL_ITERATIONS = parseInt(process.env.MAX_TOOL_ITERATIONS || "30", 10);
|
|
55156
55157
|
MAX_HISTORY_MESSAGES = 100;
|
|
@@ -56552,6 +56553,10 @@ Convert your previous response content into actual JSON data that follows this s
|
|
|
56552
56553
|
} else if (this.debug) {
|
|
56553
56554
|
console.log(`[DEBUG] Mermaid validation: Skipped final validation due to disableMermaidValidation option`);
|
|
56554
56555
|
}
|
|
56556
|
+
finalResult = removeThinkingTags(finalResult);
|
|
56557
|
+
if (this.debug) {
|
|
56558
|
+
console.log(`[DEBUG] Removed thinking tags from final result`);
|
|
56559
|
+
}
|
|
56555
56560
|
return finalResult;
|
|
56556
56561
|
} catch (error2) {
|
|
56557
56562
|
console.error(`[ERROR] ProbeAgent.answer failed:`, error2);
|
package/package.json
CHANGED
package/src/agent/ProbeAgent.js
CHANGED
|
@@ -40,6 +40,7 @@ import {
|
|
|
40
40
|
createSchemaDefinitionCorrectionPrompt,
|
|
41
41
|
validateAndFixMermaidResponse
|
|
42
42
|
} from './schemaUtils.js';
|
|
43
|
+
import { removeThinkingTags } from './xmlParsingUtils.js';
|
|
43
44
|
import {
|
|
44
45
|
MCPXmlBridge,
|
|
45
46
|
parseHybridXmlToolCall,
|
|
@@ -1754,6 +1755,12 @@ Convert your previous response content into actual JSON data that follows this s
|
|
|
1754
1755
|
console.log(`[DEBUG] Mermaid validation: Skipped final validation due to disableMermaidValidation option`);
|
|
1755
1756
|
}
|
|
1756
1757
|
|
|
1758
|
+
// Remove thinking tags from final result before returning to user
|
|
1759
|
+
finalResult = removeThinkingTags(finalResult);
|
|
1760
|
+
if (this.debug) {
|
|
1761
|
+
console.log(`[DEBUG] Removed thinking tags from final result`);
|
|
1762
|
+
}
|
|
1763
|
+
|
|
1757
1764
|
return finalResult;
|
|
1758
1765
|
|
|
1759
1766
|
} catch (error) {
|