@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/local-runtime/server/handlers/agent-output.js +28 -8
- package/local-runtime/server/yeaft-asset-store.js +41 -2
- package/local-runtime/version.json +1 -1
- package/local-runtime/web/app.bundle.js +135 -141
- package/local-runtime/web/app.bundle.js.gz +0 -0
- package/local-runtime/web/index.html +2 -2
- package/local-runtime/web/style.bundle.css +1 -1
- package/local-runtime/web/style.bundle.css.gz +0 -0
- package/package.json +1 -1
- package/yeaft/web-bridge.js +3 -1
|
Binary file
|
package/package.json
CHANGED
package/yeaft/web-bridge.js
CHANGED
|
@@ -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,
|