@yeaft/webchat-agent 1.0.556 → 1.0.557

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yeaft/webchat-agent",
3
- "version": "1.0.556",
3
+ "version": "1.0.557",
4
4
  "description": "Remote worker agent for Yeaft Web Code Agent — connects the native Yeaft engine, CLI providers, and workbench tools",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -4290,12 +4290,14 @@ function handleEngineEvent(event, hctx) {
4290
4290
  case 'tool_end': {
4291
4291
  const images = Array.isArray(event.displayImages) ? event.displayImages : [];
4292
4292
  const displayOutput = typeof event.output === 'string' ? event.output : JSON.stringify(event.output ?? '');
4293
- for (const image of images) {
4293
+ for (const [sourceImageIndex, image] of images.entries()) {
4294
4294
  const persistedImage = imageMetadataForPersistence(image);
4295
4295
  try {
4296
4296
  if (!ctx.assetOutbox) throw new Error('asset outbox is unavailable');
4297
4297
  const deliveryId = ctx.assetOutbox.enqueue({
4298
4298
  conversationId: yeaftConversationId,
4299
+ sourceToolCallId: event.id,
4300
+ sourceImageIndex,
4299
4301
  metadata: persistedImage,
4300
4302
  sessionId: hctx.sessionId,
4301
4303
  vpId: hctx.vpId,