@blueking/chat-helper 0.0.12-beta.2 → 0.0.12-beta.20

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.
@@ -113,6 +113,7 @@ import { ActivityType, MessageRole, MessageType } from '../../message/type.ts.js
113
113
  break;
114
114
  }
115
115
  case ActivityType.FlowAgent:
116
+ case ActivityType.ArtifactsGenerated:
116
117
  default:
117
118
  content = activityData.content;
118
119
  break;
@@ -120,6 +121,7 @@ import { ActivityType, MessageRole, MessageType } from '../../message/type.ts.js
120
121
  const result = _object_spread_props(_object_spread({}, baseMessage), {
121
122
  activityType: activityData.activity_type,
122
123
  content,
124
+ property: activityData.property,
123
125
  role: activityData.role
124
126
  });
125
127
  return result;
@@ -337,6 +339,11 @@ import { ActivityType, MessageRole, MessageType } from '../../message/type.ts.js
337
339
  });
338
340
  return result;
339
341
  }
342
+ case MessageRole.Interrupt:
343
+ {
344
+ const result = _object_spread({}, baseMessage, data);
345
+ return result;
346
+ }
340
347
  }
341
348
  };
342
349
  /**
@@ -377,6 +384,7 @@ import { ActivityType, MessageRole, MessageType } from '../../message/type.ts.js
377
384
  break;
378
385
  }
379
386
  case ActivityType.FlowAgent:
387
+ case ActivityType.ArtifactsGenerated:
380
388
  default:
381
389
  content = activityData.content;
382
390
  break;
@@ -384,6 +392,7 @@ import { ActivityType, MessageRole, MessageType } from '../../message/type.ts.js
384
392
  const result = _object_spread_props(_object_spread({}, baseMessage), {
385
393
  activity_type: activityData.activityType,
386
394
  content,
395
+ property: activityData.property,
387
396
  role: activityData.role
388
397
  });
389
398
  return result;
@@ -601,5 +610,10 @@ import { ActivityType, MessageRole, MessageType } from '../../message/type.ts.js
601
610
  });
602
611
  return result;
603
612
  }
613
+ case MessageRole.Interrupt:
614
+ {
615
+ const result = _object_spread({}, baseMessage, data);
616
+ return result;
617
+ }
604
618
  }
605
619
  };