page-agent-sdk 4.2.1 → 4.2.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.
@@ -13832,6 +13832,7 @@ function hm(e = {}) {
13832
13832
  content: "",
13833
13833
  timestamp: Date.now(),
13834
13834
  reasoning: "",
13835
+ reasoningTotal: 0,
13835
13836
  steps: []
13836
13837
  }), r = !1;
13837
13838
  s.messages.push(t);
@@ -13842,7 +13843,7 @@ function hm(e = {}) {
13842
13843
  e.round > 1 && (t.content || t.reasoning) && (r = !0);
13843
13844
  break;
13844
13845
  case "reasoning":
13845
- r &&= (t.reasoning += "\n", !1), t.reasoning = (t.reasoning + e.delta).slice(-4e3);
13846
+ r &&= (t.reasoning += "\n", !1), t.reasoningTotal += e.delta.length, t.reasoning = (t.reasoning + e.delta).slice(-4e3);
13846
13847
  break;
13847
13848
  case "text":
13848
13849
  r &&= (t.content += "\n", !1), t.content += e.delta;