@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.cjs CHANGED
@@ -4243,7 +4243,7 @@ function formatAgentStepLabel(step, docNames) {
4243
4243
  if (step.label) return `${step.label}${suffix}`;
4244
4244
  const detail = step.detail;
4245
4245
  if (step.step === "tool_progress" && detail && detail.length > 0) {
4246
- const label = detail[0].label || humanizeStep(step.step);
4246
+ const label = detail[0].label || detail[0].tool && humanizeStep(detail[0].tool) || humanizeStep(step.step);
4247
4247
  if (suffix) return `${label}${suffix}`;
4248
4248
  const message = detail[0].message;
4249
4249
  return message ? `${label}: ${resolveDocRefs(message, docNames)}` : label;