@arbidocs/sdk 0.3.133 → 0.3.134

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/index.js CHANGED
@@ -4234,7 +4234,7 @@ function formatAgentStepLabel(step, docNames) {
4234
4234
  if (step.label) return `${step.label}${suffix}`;
4235
4235
  const detail = step.detail;
4236
4236
  if (step.step === "tool_progress" && detail && detail.length > 0) {
4237
- const label = detail[0].label || humanizeStep(step.step);
4237
+ const label = detail[0].label || detail[0].tool && humanizeStep(detail[0].tool) || humanizeStep(step.step);
4238
4238
  if (suffix) return `${label}${suffix}`;
4239
4239
  const message = detail[0].message;
4240
4240
  return message ? `${label}: ${resolveDocRefs(message, docNames)}` : label;