@ai-sdk-tool/parser 3.0.0-canary.2 → 3.0.0-canary.3

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.
@@ -2268,6 +2268,26 @@ var morphXmlProtocol = (protocolOptions) => {
2268
2268
  seen.add(key);
2269
2269
  return true;
2270
2270
  }).sort((a, b) => a.startIndex - b.startIndex);
2271
+ if (process.env.DEBUG_PARSER_OUTPUT === "true") {
2272
+ console.log("\n=== PARSER DEBUG ===");
2273
+ console.log(`Available tools: ${toolNames.join(", ")}`);
2274
+ console.log(`Full text length: ${text.length}`);
2275
+ console.log(`Full text:
2276
+ ${text}
2277
+ `);
2278
+ console.log(`Tool calls found: ${toolCalls.length}`);
2279
+ for (let i = 0; i < toolCalls.length; i++) {
2280
+ const tc = toolCalls[i];
2281
+ console.log(`
2282
+ [Tool Call ${i + 1}] ${tc.toolName}`);
2283
+ console.log(`Position: ${tc.startIndex} - ${tc.endIndex}`);
2284
+ console.log(`Segment:
2285
+ ${tc.segment}`);
2286
+ console.log(`Content:
2287
+ ${tc.content}`);
2288
+ }
2289
+ console.log("===================\n");
2290
+ }
2271
2291
  for (const toolCall of toolCalls) {
2272
2292
  currentIndex = processTextBeforeToolCall(
2273
2293
  text,
@@ -3566,4 +3586,4 @@ export {
3566
3586
  hermesToolMiddleware,
3567
3587
  morphXmlToolMiddleware
3568
3588
  };
3569
- //# sourceMappingURL=chunk-LB5ALTRD.js.map
3589
+ //# sourceMappingURL=chunk-2B2YNKXY.js.map